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';
1919import { randomUUID } from 'crypto' ;
2020import { showErrorMessage } from '../../shared/observers/utils/showMessage' ;
2121import { RazorLanguageClient } from './razorLanguageClient' ;
22+ import { provideDiagnostics , provideWorkspaceDiagnostics } from '../../lsptoolshost/diagnostics/diagnosticMiddleware' ;
2223
2324const events = {
2425 ServerStop : 'ServerStop' ,
@@ -237,6 +238,10 @@ export class RazorLanguageServerClient implements vscode.Disposable {
237238 this . clientOptions = {
238239 outputChannel : options . outputChannel ,
239240 documentSelector : [ { language : RazorLanguage . id , pattern : RazorLanguage . globbingPattern } ] ,
241+ middleware : {
242+ provideDiagnostics,
243+ provideWorkspaceDiagnostics,
244+ } ,
240245 } ;
241246
242247 const args : string [ ] = [ ] ;
You can’t perform that action at this time.
0 commit comments