File tree Expand file tree Collapse file tree 2 files changed +12
-17
lines changed Expand file tree Collapse file tree 2 files changed +12
-17
lines changed Original file line number Diff line number Diff line change @@ -11,17 +11,6 @@ let ctx!: Ctx;
11
11
export async function activate ( context : vscode . ExtensionContext ) {
12
12
ctx = new Ctx ( context ) ;
13
13
14
- // Note: we try to start the server before we register various commands, so
15
- // that it registers its `onDidChangeDocument` handler before us.
16
- //
17
- // This a horribly, horribly wrong way to deal with this problem.
18
- try {
19
- await ctx . restartServer ( ) ;
20
- } catch ( e ) {
21
- vscode . window . showErrorMessage ( e . message ) ;
22
- }
23
-
24
-
25
14
// Commands which invokes manually via command pallet, shortcut, etc.
26
15
ctx . registerCommand ( 'analyzerStatus' , commands . analyzerStatus ) ;
27
16
ctx . registerCommand ( 'collectGarbage' , commands . collectGarbage ) ;
@@ -42,7 +31,17 @@ export async function activate(context: vscode.ExtensionContext) {
42
31
ctx . overrideCommand ( 'type' , commands . onEnter ) ;
43
32
}
44
33
activateStatusDisplay ( ctx ) ;
34
+
45
35
activateHighlighting ( ctx ) ;
36
+ // Note: we try to start the server before we activate type hints so that it
37
+ // registers its `onDidChangeDocument` handler before us.
38
+ //
39
+ // This a horribly, horribly wrong way to deal with this problem.
40
+ try {
41
+ await ctx . restartServer ( ) ;
42
+ } catch ( e ) {
43
+ vscode . window . showErrorMessage ( e . message ) ;
44
+ }
46
45
activateInlayHints ( ctx ) ;
47
46
}
48
47
Original file line number Diff line number Diff line change @@ -36,13 +36,9 @@ class StatusDisplay implements vscode.Disposable {
36
36
this . timer ||
37
37
setInterval ( ( ) => {
38
38
if ( this . packageName ) {
39
- this . statusBarItem ! . text = `cargo ${ this . command } [${
40
- this . packageName
41
- } ] ${ this . frame ( ) } `;
39
+ this . statusBarItem ! . text = `${ this . frame ( ) } cargo ${ this . command } [${ this . packageName } ]` ;
42
40
} else {
43
- this . statusBarItem ! . text = `cargo ${
44
- this . command
45
- } ${ this . frame ( ) } `;
41
+ this . statusBarItem ! . text = `${ this . frame ( ) } cargo ${ this . command } ` ;
46
42
}
47
43
} , 300 ) ;
48
44
You can’t perform that action at this time.
0 commit comments