aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/main.ts
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-12-30 16:03:05 +0000
committerAleksey Kladov <[email protected]>2019-12-30 18:07:59 +0000
commit9bfeac708d33056b37d780b948cb1f117cac19af (patch)
treeb8c6c457728fdf360cae10de9ef5b68ee2548f65 /editors/code/src/main.ts
parent5aebf1081dced95a71c674aba65fb5b3e40e6ff1 (diff)
Move parentModule to the new Ctx
Diffstat (limited to 'editors/code/src/main.ts')
-rw-r--r--editors/code/src/main.ts20
1 files changed, 10 insertions, 10 deletions
diff --git a/editors/code/src/main.ts b/editors/code/src/main.ts
index c3f280630..55fedd8bb 100644
--- a/editors/code/src/main.ts
+++ b/editors/code/src/main.ts
@@ -19,6 +19,7 @@ export async function activate(context: vscode.ExtensionContext) {
19 ctx.registerCommand('collectGarbage', commands.collectGarbage); 19 ctx.registerCommand('collectGarbage', commands.collectGarbage);
20 ctx.registerCommand('matchingBrace', commands.matchingBrace); 20 ctx.registerCommand('matchingBrace', commands.matchingBrace);
21 ctx.registerCommand('joinLines', commands.joinLines); 21 ctx.registerCommand('joinLines', commands.joinLines);
22 ctx.registerCommand('parentModule', commands.parentModule);
22 23
23 function disposeOnDeactivation(disposable: vscode.Disposable) { 24 function disposeOnDeactivation(disposable: vscode.Disposable) {
24 context.subscriptions.push(disposable); 25 context.subscriptions.push(disposable);
@@ -29,7 +30,6 @@ export async function activate(context: vscode.ExtensionContext) {
29 } 30 }
30 31
31 // Commands are requests from vscode to the language server 32 // Commands are requests from vscode to the language server
32 registerCommand('rust-analyzer.parentModule', commands.parentModule.handle);
33 registerCommand('rust-analyzer.run', commands.runnables.handle); 33 registerCommand('rust-analyzer.run', commands.runnables.handle);
34 // Unlike the above this does not send requests to the language server 34 // Unlike the above this does not send requests to the language server
35 registerCommand('rust-analyzer.runSingle', commands.runnables.handleSingle); 35 registerCommand('rust-analyzer.runSingle', commands.runnables.handleSingle);
@@ -59,15 +59,15 @@ export async function activate(context: vscode.ExtensionContext) {
59 string, 59 string,
60 lc.GenericNotificationHandler, 60 lc.GenericNotificationHandler,
61 ]> = [ 61 ]> = [
62 [ 62 [
63 'rust-analyzer/publishDecorations', 63 'rust-analyzer/publishDecorations',
64 notifications.publishDecorations.handle, 64 notifications.publishDecorations.handle,
65 ], 65 ],
66 [ 66 [
67 '$/progress', 67 '$/progress',
68 params => watchStatus.handleProgressNotification(params), 68 params => watchStatus.handleProgressNotification(params),
69 ], 69 ],
70 ]; 70 ];
71 const syntaxTreeContentProvider = new SyntaxTreeContentProvider(); 71 const syntaxTreeContentProvider = new SyntaxTreeContentProvider();
72 const expandMacroContentProvider = new ExpandMacroContentProvider(); 72 const expandMacroContentProvider = new ExpandMacroContentProvider();
73 73