File tree Expand file tree Collapse file tree 3 files changed +6
-19
lines changed Expand file tree Collapse file tree 3 files changed +6
-19
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import { languageServerOptions } from '../shared/options';
10
10
import { ServerState } from './serverStateChange' ;
11
11
import { getCSharpDevKit } from '../utils/getCSharpDevKit' ;
12
12
import { RazorLanguage } from '../razor/src/razorLanguage' ;
13
- import { VSWorkspaceKind } from './roslynProtocol' ;
14
13
15
14
let currentServerState : ServerState = ServerState . Stopped ;
16
15
@@ -87,10 +86,9 @@ class ProjectContextStatus {
87
86
// Show a warning when the active file is part of the Miscellaneous File workspace and
88
87
// project initialization is complete.
89
88
if ( currentServerState === ServerState . ProjectInitializationComplete ) {
90
- item . severity =
91
- e . context . _vs_workspace_kind === VSWorkspaceKind . MiscellaneousFiles
92
- ? vscode . LanguageStatusSeverity . Warning
93
- : vscode . LanguageStatusSeverity . Information ;
89
+ item . severity = e . context . _vs_is_miscellaneous
90
+ ? vscode . LanguageStatusSeverity . Warning
91
+ : vscode . LanguageStatusSeverity . Information ;
94
92
} else {
95
93
item . severity = vscode . LanguageStatusSeverity . Information ;
96
94
}
Original file line number Diff line number Diff line change @@ -13,17 +13,11 @@ export interface VSProjectContextList {
13
13
_vs_defaultIndex : number ;
14
14
}
15
15
16
- export enum VSWorkspaceKind {
17
- Unknown = 0 ,
18
- Host = 1 ,
19
- MiscellaneousFiles = 2 ,
20
- }
21
-
22
16
export interface VSProjectContext {
23
17
_vs_label : string ;
24
18
_vs_id : string ;
25
19
_vs_kind : string ;
26
- _vs_workspace_kind : VSWorkspaceKind ;
20
+ _vs_is_miscellaneous : boolean ;
27
21
}
28
22
29
23
export interface VSTextDocumentIdentifier extends lsp . TextDocumentIdentifier {
Original file line number Diff line number Diff line change 5
5
6
6
import * as vscode from 'vscode' ;
7
7
import { RoslynLanguageServer } from '../roslynLanguageServer' ;
8
- import {
9
- VSGetProjectContextsRequest ,
10
- VSProjectContext ,
11
- VSProjectContextList ,
12
- VSWorkspaceKind ,
13
- } from '../roslynProtocol' ;
8
+ import { VSGetProjectContextsRequest , VSProjectContext , VSProjectContextList } from '../roslynProtocol' ;
14
9
import { TextDocumentIdentifier } from 'vscode-languageserver-protocol' ;
15
10
import { UriConverter } from '../uriConverter' ;
16
11
import { LanguageServerEvents } from '../languageServerEvents' ;
@@ -31,7 +26,7 @@ export class ProjectContextService {
31
26
_vs_id : '' ,
32
27
_vs_kind : '' ,
33
28
_vs_label : '' ,
34
- _vs_workspace_kind : VSWorkspaceKind . Unknown ,
29
+ _vs_is_miscellaneous : false ,
35
30
} ;
36
31
37
32
constructor ( private _languageServer : RoslynLanguageServer , _languageServerEvents : LanguageServerEvents ) {
You can’t perform that action at this time.
0 commit comments