@@ -18,8 +18,6 @@ export interface CommonOptions {
1818 readonly defaultSolution : string ;
1919 readonly unitTestDebuggingOptions : object ;
2020 readonly runSettingsPath : string ;
21- readonly analyzerDiagnosticScope : string ;
22- readonly compilerDiagnosticScope : string ;
2321}
2422
2523export interface OmnisharpServerOptions {
@@ -77,6 +75,8 @@ export interface LanguageServerOptions {
7775 readonly preferCSharpExtension : boolean ;
7876 readonly startTimeout : number ;
7977 readonly crashDumpPath : string | undefined ;
78+ readonly analyzerDiagnosticScope : string ;
79+ readonly compilerDiagnosticScope : string ;
8080}
8181
8282export interface RazorOptions {
@@ -155,12 +155,6 @@ class CommonOptionsImpl implements CommonOptions {
155155 public get runSettingsPath ( ) {
156156 return readOption < string > ( 'dotnet.unitTests.runSettingsPath' , '' , 'omnisharp.testRunSettings' ) ;
157157 }
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- }
164158}
165159
166160class OmnisharpOptionsImpl implements OmnisharpServerOptions {
@@ -397,6 +391,12 @@ class LanguageServerOptionsImpl implements LanguageServerOptions {
397391 public get crashDumpPath ( ) {
398392 return readOption < string | undefined > ( 'dotnet.server.crashDumpPath' , undefined ) ;
399393 }
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+ }
400400}
401401
402402class RazorOptionsImpl implements RazorOptions {
0 commit comments