aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/extension.ts
diff options
context:
space:
mode:
Diffstat (limited to 'editors/code/src/extension.ts')
-rw-r--r--editors/code/src/extension.ts10
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';
5import { ExpandMacroContentProvider } from './commands/expand_macro'; 5import { ExpandMacroContentProvider } from './commands/expand_macro';
6import { HintsUpdater } from './commands/inlay_hints'; 6import { HintsUpdater } from './commands/inlay_hints';
7import { SyntaxTreeContentProvider } from './commands/syntaxTree'; 7import { SyntaxTreeContentProvider } from './commands/syntaxTree';
8import { StatusDisplay } from './commands/watch_status';
8import * as events from './events'; 9import * as events from './events';
9import * as notifications from './notifications'; 10import * as notifications from './notifications';
10import { Server } from './server'; 11import { Server } from './server';
11import { StatusDisplay } from './commands/watch_status';
12 12
13export async function activate(context: vscode.ExtensionContext) { 13export 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();