diff options
Diffstat (limited to 'editors/code/src/main.ts')
-rw-r--r-- | editors/code/src/main.ts | 8 |
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 | } |