@@ -8,7 +8,7 @@ import { EventEmitter } from 'events';
8
8
import * as vscode from 'vscode' ;
9
9
import { RequestHandler , RequestType } from 'vscode-jsonrpc' ;
10
10
import { GenericNotificationHandler , InitializeResult , LanguageClientOptions , State } from 'vscode-languageclient' ;
11
- import { LanguageClient , ServerOptions } from 'vscode-languageclient/node' ;
11
+ import { ServerOptions } from 'vscode-languageclient/node' ;
12
12
import { RazorLanguage } from './razorLanguage' ;
13
13
import { RazorLanguageServerOptions } from './razorLanguageServerOptions' ;
14
14
import { resolveRazorLanguageServerOptions } from './razorLanguageServerOptionsResolver' ;
@@ -18,6 +18,7 @@ import { TelemetryReporter as RazorTelemetryReporter } from './telemetryReporter
18
18
import TelemetryReporter from '@vscode/extension-telemetry' ;
19
19
import { randomUUID } from 'crypto' ;
20
20
import { showErrorMessage } from '../../shared/observers/utils/showMessage' ;
21
+ import { RazorLanguageClient } from './razorLanguageClient' ;
21
22
22
23
const events = {
23
24
ServerStop : 'ServerStop' ,
@@ -26,7 +27,7 @@ const events = {
26
27
export class RazorLanguageServerClient implements vscode . Disposable {
27
28
private clientOptions ! : LanguageClientOptions ;
28
29
private serverOptions ! : ServerOptions ;
29
- private client ! : LanguageClient ;
30
+ private client ! : RazorLanguageClient ;
30
31
private onStartListeners : Array < ( ) => Promise < any > > = [ ] ;
31
32
private onStartedListeners : Array < ( ) => Promise < any > > = [ ] ;
32
33
private eventBus : EventEmitter ;
@@ -299,11 +300,12 @@ export class RazorLanguageServerClient implements vscode.Disposable {
299
300
300
301
this . serverOptions = childProcess ;
301
302
302
- this . client = new LanguageClient (
303
+ this . client = new RazorLanguageClient (
303
304
'razorLanguageServer' ,
304
305
'Razor Language Server' ,
305
306
this . serverOptions ,
306
- this . clientOptions
307
+ this . clientOptions ,
308
+ options
307
309
) ;
308
310
}
309
311
}
0 commit comments