@@ -18,8 +18,6 @@ export interface CommonOptions {
18
18
readonly defaultSolution : string ;
19
19
readonly unitTestDebuggingOptions : object ;
20
20
readonly runSettingsPath : string ;
21
- readonly analyzerDiagnosticScope : string ;
22
- readonly compilerDiagnosticScope : string ;
23
21
}
24
22
25
23
export interface OmnisharpServerOptions {
@@ -77,6 +75,8 @@ export interface LanguageServerOptions {
77
75
readonly preferCSharpExtension : boolean ;
78
76
readonly startTimeout : number ;
79
77
readonly crashDumpPath : string | undefined ;
78
+ readonly analyzerDiagnosticScope : string ;
79
+ readonly compilerDiagnosticScope : string ;
80
80
}
81
81
82
82
export interface RazorOptions {
@@ -155,12 +155,6 @@ class CommonOptionsImpl implements CommonOptions {
155
155
public get runSettingsPath ( ) {
156
156
return readOption < string > ( 'dotnet.unitTests.runSettingsPath' , '' , 'omnisharp.testRunSettings' ) ;
157
157
}
158
- public get analyzerDiagnosticScope ( ) {
159
- return readOption < string > ( 'dotnet.backgroundAnalysis.analyzerDiagnosticsScope' , 'openFiles' ) ;
160
- }
161
- public get compilerDiagnosticScope ( ) {
162
- return readOption < string > ( 'dotnet.backgroundAnalysis.compilerDiagnosticsScope' , 'openFiles' ) ;
163
- }
164
158
}
165
159
166
160
class OmnisharpOptionsImpl implements OmnisharpServerOptions {
@@ -397,6 +391,12 @@ class LanguageServerOptionsImpl implements LanguageServerOptions {
397
391
public get crashDumpPath ( ) {
398
392
return readOption < string | undefined > ( 'dotnet.server.crashDumpPath' , undefined ) ;
399
393
}
394
+ public get analyzerDiagnosticScope ( ) {
395
+ return readOption < string > ( 'dotnet.backgroundAnalysis.analyzerDiagnosticsScope' , 'openFiles' ) ;
396
+ }
397
+ public get compilerDiagnosticScope ( ) {
398
+ return readOption < string > ( 'dotnet.backgroundAnalysis.compilerDiagnosticsScope' , 'openFiles' ) ;
399
+ }
400
400
}
401
401
402
402
class RazorOptionsImpl implements RazorOptions {
0 commit comments