aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/main.ts
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-12-30 14:20:13 +0000
committerAleksey Kladov <[email protected]>2019-12-30 14:23:55 +0000
commit5dd9edaeafde3d5b5975cefe8dc1a65ccd9cd59f (patch)
tree12032141b5a113aca0a05ce2ebb3da55ce87f7f9 /editors/code/src/main.ts
parent57df9bed703bd0f8b7a7cc593152b65b543ad121 (diff)
Move matching brace to new Ctx
Diffstat (limited to 'editors/code/src/main.ts')
-rw-r--r--editors/code/src/main.ts5
1 files changed, 1 insertions, 4 deletions
diff --git a/editors/code/src/main.ts b/editors/code/src/main.ts
index f96fb1962..a4149a059 100644
--- a/editors/code/src/main.ts
+++ b/editors/code/src/main.ts
@@ -17,6 +17,7 @@ export async function activate(context: vscode.ExtensionContext) {
17 ctx = new Ctx(context); 17 ctx = new Ctx(context);
18 ctx.registerCommand('analyzerStatus', commands.analyzerStatus); 18 ctx.registerCommand('analyzerStatus', commands.analyzerStatus);
19 ctx.registerCommand('collectGarbage', commands.collectGarbage); 19 ctx.registerCommand('collectGarbage', commands.collectGarbage);
20 ctx.registerCommand('matchingBrace', commands.matchingBrace);
20 21
21 function disposeOnDeactivation(disposable: vscode.Disposable) { 22 function disposeOnDeactivation(disposable: vscode.Disposable) {
22 context.subscriptions.push(disposable); 23 context.subscriptions.push(disposable);
@@ -55,10 +56,6 @@ export async function activate(context: vscode.ExtensionContext) {
55 } 56 }
56 57
57 // Commands are requests from vscode to the language server 58 // Commands are requests from vscode to the language server
58 registerCommand(
59 'rust-analyzer.matchingBrace',
60 commands.matchingBrace.handle,
61 );
62 registerCommand('rust-analyzer.joinLines', commands.joinLines.handle); 59 registerCommand('rust-analyzer.joinLines', commands.joinLines.handle);
63 registerCommand('rust-analyzer.parentModule', commands.parentModule.handle); 60 registerCommand('rust-analyzer.parentModule', commands.parentModule.handle);
64 registerCommand('rust-analyzer.run', commands.runnables.handle); 61 registerCommand('rust-analyzer.run', commands.runnables.handle);