diff options
Diffstat (limited to 'editors/code/src/main.ts')
-rw-r--r-- | editors/code/src/main.ts | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/editors/code/src/main.ts b/editors/code/src/main.ts index 048b9bbd4..9500219ca 100644 --- a/editors/code/src/main.ts +++ b/editors/code/src/main.ts | |||
@@ -15,11 +15,8 @@ let ctx!: Ctx; | |||
15 | 15 | ||
16 | export async function activate(context: vscode.ExtensionContext) { | 16 | export async function activate(context: vscode.ExtensionContext) { |
17 | ctx = new Ctx(context); | 17 | ctx = new Ctx(context); |
18 | ctx.registerCommand( | 18 | ctx.registerCommand('analyzerStatus', commands.analyzerStatus); |
19 | 'analyzerStatus', | 19 | ctx.registerCommand('collectGarbage', commands.collectGarbage); |
20 | commands.analyzerStatus | ||
21 | ); | ||
22 | |||
23 | 20 | ||
24 | function disposeOnDeactivation(disposable: vscode.Disposable) { | 21 | function disposeOnDeactivation(disposable: vscode.Disposable) { |
25 | context.subscriptions.push(disposable); | 22 | context.subscriptions.push(disposable); |
@@ -58,9 +55,6 @@ export async function activate(context: vscode.ExtensionContext) { | |||
58 | } | 55 | } |
59 | 56 | ||
60 | // Commands are requests from vscode to the language server | 57 | // Commands are requests from vscode to the language server |
61 | registerCommand('rust-analyzer.collectGarbage', () => | ||
62 | Server.client.sendRequest<null>('rust-analyzer/collectGarbage', null), | ||
63 | ); | ||
64 | registerCommand( | 58 | registerCommand( |
65 | 'rust-analyzer.matchingBrace', | 59 | 'rust-analyzer.matchingBrace', |
66 | commands.matchingBrace.handle, | 60 | commands.matchingBrace.handle, |