File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import TelemetryReporter from '@vscode/extension-telemetry';
19
19
import { randomUUID } from 'crypto' ;
20
20
import { showErrorMessage } from '../../shared/observers/utils/showMessage' ;
21
21
import { RazorLanguageClient } from './razorLanguageClient' ;
22
+ import { provideDiagnostics , provideWorkspaceDiagnostics } from '../../lsptoolshost/diagnostics/diagnosticMiddleware' ;
22
23
23
24
const events = {
24
25
ServerStop : 'ServerStop' ,
@@ -237,6 +238,10 @@ export class RazorLanguageServerClient implements vscode.Disposable {
237
238
this . clientOptions = {
238
239
outputChannel : options . outputChannel ,
239
240
documentSelector : [ { language : RazorLanguage . id , pattern : RazorLanguage . globbingPattern } ] ,
241
+ middleware : {
242
+ provideDiagnostics,
243
+ provideWorkspaceDiagnostics,
244
+ } ,
240
245
} ;
241
246
242
247
const args : string [ ] = [ ] ;
You can’t perform that action at this time.
0 commit comments