aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/main.ts
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-12-30 19:46:14 +0000
committerAleksey Kladov <[email protected]>2019-12-30 20:32:04 +0000
commitefbbc903e68aaf32ee1fba5537769070cd2d01e8 (patch)
tree7895d32c183bb8bf23ccf5a47011e4561c0db413 /editors/code/src/main.ts
parent7646dc046eb562276231de8ec6a4df1bc691cafc (diff)
Add config to Ctx
Diffstat (limited to 'editors/code/src/main.ts')
-rw-r--r--editors/code/src/main.ts8
1 files changed, 3 insertions, 5 deletions
diff --git a/editors/code/src/main.ts b/editors/code/src/main.ts
index 45657532e..345ae0685 100644
--- a/editors/code/src/main.ts
+++ b/editors/code/src/main.ts
@@ -28,13 +28,11 @@ export async function activate(context: vscode.ExtensionContext) {
28 ctx.registerCommand('runSingle', commands.runSingle); 28 ctx.registerCommand('runSingle', commands.runSingle);
29 ctx.registerCommand('showReferences', commands.showReferences); 29 ctx.registerCommand('showReferences', commands.showReferences);
30 30
31 if (Server.config.enableEnhancedTyping) { 31 if (ctx.config.enableEnhancedTyping) {
32 ctx.overrideCommand('type', commands.onEnter); 32 ctx.overrideCommand('type', commands.onEnter);
33 } 33 }
34 34
35 const watchStatus = new StatusDisplay( 35 const watchStatus = new StatusDisplay(ctx.config.cargoWatchOptions.command);
36 Server.config.cargoWatchOptions.command,
37 );
38 ctx.pushCleanup(watchStatus); 36 ctx.pushCleanup(watchStatus);
39 37
40 activateHighlighting(ctx); 38 activateHighlighting(ctx);
@@ -63,7 +61,7 @@ export async function activate(context: vscode.ExtensionContext) {
63 vscode.window.showErrorMessage(e.message); 61 vscode.window.showErrorMessage(e.message);
64 } 62 }
65 63
66 if (Server.config.displayInlayHints) { 64 if (ctx.config.displayInlayHints) {
67 activateInlayHints(ctx); 65 activateInlayHints(ctx);
68 } 66 }
69} 67}