aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/main.ts
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-12-30 13:53:43 +0000
committerAleksey Kladov <[email protected]>2019-12-30 13:53:43 +0000
commit29e86c0c726c20cf1add94a322b9c147b67ca1f6 (patch)
treefc9842d28586acb138fb228730555812ebd6e98f /editors/code/src/main.ts
parente53ccb6e99bb0e92ebea19f150c8fbf9b6958634 (diff)
More second command to Ctx
Diffstat (limited to 'editors/code/src/main.ts')
-rw-r--r--editors/code/src/main.ts10
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
16export async function activate(context: vscode.ExtensionContext) { 16export 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,