diff options
Diffstat (limited to 'editors/code/src/extension.ts')
-rw-r--r-- | editors/code/src/extension.ts | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/editors/code/src/extension.ts b/editors/code/src/extension.ts index 1507cb26e..36163b6bb 100644 --- a/editors/code/src/extension.ts +++ b/editors/code/src/extension.ts | |||
@@ -5,10 +5,10 @@ import * as commands from './commands'; | |||
5 | import { ExpandMacroContentProvider } from './commands/expand_macro'; | 5 | import { ExpandMacroContentProvider } from './commands/expand_macro'; |
6 | import { HintsUpdater } from './commands/inlay_hints'; | 6 | import { HintsUpdater } from './commands/inlay_hints'; |
7 | import { SyntaxTreeContentProvider } from './commands/syntaxTree'; | 7 | import { SyntaxTreeContentProvider } from './commands/syntaxTree'; |
8 | import { StatusDisplay } from './commands/watch_status'; | ||
8 | import * as events from './events'; | 9 | import * as events from './events'; |
9 | import * as notifications from './notifications'; | 10 | import * as notifications from './notifications'; |
10 | import { Server } from './server'; | 11 | import { Server } from './server'; |
11 | import { StatusDisplay } from './commands/watch_status'; | ||
12 | 12 | ||
13 | export async function activate(context: vscode.ExtensionContext) { | 13 | export async function activate(context: vscode.ExtensionContext) { |
14 | function disposeOnDeactivation(disposable: vscode.Disposable) { | 14 | function disposeOnDeactivation(disposable: vscode.Disposable) { |
@@ -84,7 +84,9 @@ export async function activate(context: vscode.ExtensionContext) { | |||
84 | overrideCommand('type', commands.onEnter.handle); | 84 | overrideCommand('type', commands.onEnter.handle); |
85 | } | 85 | } |
86 | 86 | ||
87 | const watchStatus = new StatusDisplay(Server.config.cargoCheckOptions.command || 'check'); | 87 | const watchStatus = new StatusDisplay( |
88 | Server.config.cargoCheckOptions.command || 'check', | ||
89 | ); | ||
88 | disposeOnDeactivation(watchStatus); | 90 | disposeOnDeactivation(watchStatus); |
89 | 91 | ||
90 | // Notifications are events triggered by the language server | 92 | // Notifications are events triggered by the language server |
@@ -98,8 +100,8 @@ export async function activate(context: vscode.ExtensionContext) { | |||
98 | ], | 100 | ], |
99 | [ | 101 | [ |
100 | '$/progress', | 102 | '$/progress', |
101 | (params) => watchStatus.handleProgressNotification(params), | 103 | params => watchStatus.handleProgressNotification(params), |
102 | ] | 104 | ], |
103 | ]; | 105 | ]; |
104 | const syntaxTreeContentProvider = new SyntaxTreeContentProvider(); | 106 | const syntaxTreeContentProvider = new SyntaxTreeContentProvider(); |
105 | const expandMacroContentProvider = new ExpandMacroContentProvider(); | 107 | const expandMacroContentProvider = new ExpandMacroContentProvider(); |