@@ -8,7 +8,7 @@ import { EventEmitter } from 'events';
88import * as vscode from 'vscode' ;
99import { RequestHandler , RequestType } from 'vscode-jsonrpc' ;
1010import { GenericNotificationHandler , InitializeResult , LanguageClientOptions , State } from 'vscode-languageclient' ;
11- import { LanguageClient , ServerOptions } from 'vscode-languageclient/node' ;
11+ import { ServerOptions } from 'vscode-languageclient/node' ;
1212import { RazorLanguage } from './razorLanguage' ;
1313import { RazorLanguageServerOptions } from './razorLanguageServerOptions' ;
1414import { resolveRazorLanguageServerOptions } from './razorLanguageServerOptionsResolver' ;
@@ -18,6 +18,7 @@ import { TelemetryReporter as RazorTelemetryReporter } from './telemetryReporter
1818import TelemetryReporter from '@vscode/extension-telemetry' ;
1919import { randomUUID } from 'crypto' ;
2020import { showErrorMessage } from '../../shared/observers/utils/showMessage' ;
21+ import { RazorLanguageClient } from './razorLanguageClient' ;
2122
2223const events = {
2324 ServerStop : 'ServerStop' ,
@@ -26,7 +27,7 @@ const events = {
2627export class RazorLanguageServerClient implements vscode . Disposable {
2728 private clientOptions ! : LanguageClientOptions ;
2829 private serverOptions ! : ServerOptions ;
29- private client ! : LanguageClient ;
30+ private client ! : RazorLanguageClient ;
3031 private onStartListeners : Array < ( ) => Promise < any > > = [ ] ;
3132 private onStartedListeners : Array < ( ) => Promise < any > > = [ ] ;
3233 private eventBus : EventEmitter ;
@@ -299,11 +300,12 @@ export class RazorLanguageServerClient implements vscode.Disposable {
299300
300301 this . serverOptions = childProcess ;
301302
302- this . client = new LanguageClient (
303+ this . client = new RazorLanguageClient (
303304 'razorLanguageServer' ,
304305 'Razor Language Server' ,
305306 this . serverOptions ,
306- this . clientOptions
307+ this . clientOptions ,
308+ options
307309 ) ;
308310 }
309311}
0 commit comments