diff options
Diffstat (limited to 'editors/code/package.json')
-rw-r--r-- | editors/code/package.json | 62 |
1 files changed, 36 insertions, 26 deletions
diff --git a/editors/code/package.json b/editors/code/package.json index 86683eb73..1ed834d62 100644 --- a/editors/code/package.json +++ b/editors/code/package.json | |||
@@ -44,7 +44,9 @@ | |||
44 | "vscode": "^1.1.26" | 44 | "vscode": "^1.1.26" |
45 | }, | 45 | }, |
46 | "activationEvents": [ | 46 | "activationEvents": [ |
47 | "onLanguage:rust" | 47 | "onLanguage:rust", |
48 | "onCommand:rust-analyzer.analyzerStatus", | ||
49 | "onCommand:rust-analyzer.collectGarbage" | ||
48 | ], | 50 | ], |
49 | "main": "./out/extension", | 51 | "main": "./out/extension", |
50 | "contributes": { | 52 | "contributes": { |
@@ -72,61 +74,69 @@ | |||
72 | ], | 74 | ], |
73 | "commands": [ | 75 | "commands": [ |
74 | { | 76 | { |
75 | "command": "ra-lsp.syntaxTree", | 77 | "command": "rust-analyzer.syntaxTree", |
76 | "title": "Show Rust syntax tree" | 78 | "title": "Show syntax tree for current file", |
79 | "category": "Rust Analyzer" | ||
77 | }, | 80 | }, |
78 | { | 81 | { |
79 | "command": "ra-lsp.extendSelection", | 82 | "command": "rust-analyzer.extendSelection", |
80 | "title": "Rust Extend Selection" | 83 | "title": "Extend selection", |
84 | "category": "Rust Analyzer" | ||
81 | }, | 85 | }, |
82 | { | 86 | { |
83 | "command": "ra-lsp.matchingBrace", | 87 | "command": "rust-analyzer.matchingBrace", |
84 | "title": "Rust Matching Brace" | 88 | "title": "Find matching brace", |
89 | "category": "Rust Analyzer" | ||
85 | }, | 90 | }, |
86 | { | 91 | { |
87 | "command": "ra-lsp.parentModule", | 92 | "command": "rust-analyzer.parentModule", |
88 | "title": "Rust Parent Module" | 93 | "title": "Locate parent module", |
94 | "category": "Rust Analyzer" | ||
89 | }, | 95 | }, |
90 | { | 96 | { |
91 | "command": "ra-lsp.joinLines", | 97 | "command": "rust-analyzer.joinLines", |
92 | "title": "Rust Join Lines" | 98 | "title": "Join lines", |
99 | "category": "Rust Analyzer" | ||
93 | }, | 100 | }, |
94 | { | 101 | { |
95 | "command": "ra-lsp.run", | 102 | "command": "rust-analyzer.run", |
96 | "title": "Rust Run" | 103 | "title": "Run", |
104 | "category": "Rust Analyzer" | ||
97 | }, | 105 | }, |
98 | { | 106 | { |
99 | "command": "ra-lsp.analyzerStatus", | 107 | "command": "rust-analyzer.analyzerStatus", |
100 | "title": "Status of rust-analyzer (debug)" | 108 | "title": "Status", |
109 | "category": "Rust Analyzer" | ||
101 | }, | 110 | }, |
102 | { | 111 | { |
103 | "command": "ra-lsp.collectGarbage", | 112 | "command": "rust-analyzer.collectGarbage", |
104 | "title": "Run rust-analyzer's GC" | 113 | "title": "Run garbage collection", |
114 | "category": "Rust Analyzer" | ||
105 | } | 115 | } |
106 | ], | 116 | ], |
107 | "keybindings": [ | 117 | "keybindings": [ |
108 | { | 118 | { |
109 | "command": "ra-lsp.parentModule", | 119 | "command": "rust-analyzer.parentModule", |
110 | "key": "ctrl+u", | 120 | "key": "ctrl+u", |
111 | "when": "editorTextFocus && editorLangId == rust" | 121 | "when": "editorTextFocus && editorLangId == rust" |
112 | }, | 122 | }, |
113 | { | 123 | { |
114 | "command": "ra-lsp.matchingBrace", | 124 | "command": "rust-analyzer.matchingBrace", |
115 | "key": "ctrl+shift+m", | 125 | "key": "ctrl+shift+m", |
116 | "when": "editorTextFocus && editorLangId == rust" | 126 | "when": "editorTextFocus && editorLangId == rust" |
117 | }, | 127 | }, |
118 | { | 128 | { |
119 | "command": "ra-lsp.extendSelection", | 129 | "command": "rust-analyzer.extendSelection", |
120 | "key": "shift+alt+right", | 130 | "key": "shift+alt+right", |
121 | "when": "editorTextFocus && editorLangId == rust" | 131 | "when": "editorTextFocus && editorLangId == rust" |
122 | }, | 132 | }, |
123 | { | 133 | { |
124 | "command": "ra-lsp.joinLines", | 134 | "command": "rust-analyzer.joinLines", |
125 | "key": "ctrl+shift+j", | 135 | "key": "ctrl+shift+j", |
126 | "when": "editorTextFocus && editorLangId == rust" | 136 | "when": "editorTextFocus && editorLangId == rust" |
127 | }, | 137 | }, |
128 | { | 138 | { |
129 | "command": "ra-lsp.run", | 139 | "command": "rust-analyzer.run", |
130 | "key": "ctrl+r", | 140 | "key": "ctrl+r", |
131 | "when": "editorTextFocus && editorLangId == rust" | 141 | "when": "editorTextFocus && editorLangId == rust" |
132 | } | 142 | } |
@@ -135,19 +145,19 @@ | |||
135 | "type": "object", | 145 | "type": "object", |
136 | "title": "Rust Analyzer", | 146 | "title": "Rust Analyzer", |
137 | "properties": { | 147 | "properties": { |
138 | "ra-lsp.highlightingOn": { | 148 | "rust-analyzer.highlightingOn": { |
139 | "type": "boolean", | 149 | "type": "boolean", |
140 | "default": true, | 150 | "default": true, |
141 | "description": "Highlight Rust code (overrides built-in syntax highlighting)" | 151 | "description": "Highlight Rust code (overrides built-in syntax highlighting)" |
142 | }, | 152 | }, |
143 | "ra-lsp.raLspServerPath": { | 153 | "rust-analyzer.raLspServerPath": { |
144 | "type": [ | 154 | "type": [ |
145 | "string" | 155 | "string" |
146 | ], | 156 | ], |
147 | "default": "ra_lsp_server", | 157 | "default": "ra_lsp_server", |
148 | "description": "Path to ra_lsp_server executable" | 158 | "description": "Path to ra_lsp_server executable" |
149 | }, | 159 | }, |
150 | "ra-lsp.trace.server": { | 160 | "rust-analyzer.trace.server": { |
151 | "type": "string", | 161 | "type": "string", |
152 | "scope": "window", | 162 | "scope": "window", |
153 | "enum": [ | 163 | "enum": [ |
@@ -156,7 +166,7 @@ | |||
156 | "verbose" | 166 | "verbose" |
157 | ], | 167 | ], |
158 | "default": "off", | 168 | "default": "off", |
159 | "description": "Trace requests to the ra-lsp server" | 169 | "description": "Trace requests to the ra_lsp_server" |
160 | } | 170 | } |
161 | } | 171 | } |
162 | }, | 172 | }, |