@@ -30,12 +30,12 @@ import { bootstrap } from "./bootstrap";
30
30
export type Workspace =
31
31
| { kind : "Empty" }
32
32
| {
33
- kind : "Workspace Folder" ;
34
- }
33
+ kind : "Workspace Folder" ;
34
+ }
35
35
| {
36
- kind : "Detached Files" ;
37
- files : vscode . TextDocument [ ] ;
38
- } ;
36
+ kind : "Detached Files" ;
37
+ files : vscode . TextDocument [ ] ;
38
+ } ;
39
39
40
40
export function fetchWorkspace ( ) : Workspace {
41
41
const folders = ( vscode . workspace . workspaceFolders || [ ] ) . filter (
@@ -49,9 +49,9 @@ export function fetchWorkspace(): Workspace {
49
49
? rustDocuments . length === 0
50
50
? { kind : "Empty" }
51
51
: {
52
- kind : "Detached Files" ,
53
- files : rustDocuments ,
54
- }
52
+ kind : "Detached Files" ,
53
+ files : rustDocuments ,
54
+ }
55
55
: { kind : "Workspace Folder" } ;
56
56
}
57
57
@@ -189,7 +189,7 @@ export class Ctx {
189
189
if ( this . config . discoverProjectRunner ) {
190
190
const command = `${ this . config . discoverProjectRunner } .discoverWorkspaceCommand` ;
191
191
log . info ( `running command: ${ command } ` ) ;
192
- const project = ( await vscode . commands . executeCommand ( command ) ) as JsonProject ;
192
+ const project : JsonProject = await vscode . commands . executeCommand ( command ) ;
193
193
this . addToDiscoveredWorkspaces ( [ project ] ) ;
194
194
}
195
195
@@ -441,8 +441,7 @@ export class Ctx {
441
441
}
442
442
statusBar . tooltip . appendMarkdown ( "\n\n[Open Logs](command:rust-analyzer.openLogs)" ) ;
443
443
statusBar . tooltip . appendMarkdown (
444
- `\n\n[${
445
- this . config . checkOnSave ? "Disable" : "Enable"
444
+ `\n\n[${ this . config . checkOnSave ? "Disable" : "Enable"
446
445
} Check on Save](command:rust-analyzer.toggleCheckOnSave)`,
447
446
) ;
448
447
statusBar . tooltip . appendMarkdown (
0 commit comments