@@ -18,8 +18,8 @@ connection.onInitialize(params => {
18
18
if ( ! options . typescript ?. tsdk ) {
19
19
throw new Error ( 'typescript.tsdk is required' ) ;
20
20
}
21
- if ( ! options . typescript ?. requestForwardingCommand ) {
22
- connection . console . warn ( 'typescript.requestForwardingCommand is required since >= 3.0 for complete TS features' ) ;
21
+ if ( ! options . typescript ?. tsserverRequestCommand ) {
22
+ connection . console . warn ( 'typescript.tsserverRequestCommand is required since >= 3.0 for complete TS features' ) ;
23
23
}
24
24
25
25
const { typescript : ts } = loadTsdkByPath ( options . typescript . tsdk , params . locale ) ;
@@ -42,7 +42,7 @@ connection.onInitialize(params => {
42
42
{
43
43
setup ( ) { } ,
44
44
async getLanguageService ( uri ) {
45
- if ( uri . scheme === 'file' && options . typescript . requestForwardingCommand ) {
45
+ if ( uri . scheme === 'file' && options . typescript . tsserverRequestCommand ) {
46
46
const fileName = uri . fsPath . replace ( / \\ / g, '/' ) ;
47
47
const projectInfo = await sendTsRequest < ts . server . protocol . ProjectInfo > (
48
48
ts . server . protocol . CommandTypes . ProjectInfo ,
@@ -80,7 +80,7 @@ connection.onInitialize(params => {
80
80
simpleLs = undefined ;
81
81
} ,
82
82
} ,
83
- getHybridModeLanguageServicePlugins ( ts , options . typescript . requestForwardingCommand ? {
83
+ getHybridModeLanguageServicePlugins ( ts , options . typescript . tsserverRequestCommand ? {
84
84
collectExtractProps ( ...args ) {
85
85
return sendTsRequest ( 'vue:collectExtractProps' , args ) ;
86
86
} ,
@@ -115,7 +115,7 @@ connection.onInitialize(params => {
115
115
) ;
116
116
117
117
function sendTsRequest < T > ( command : string , args : any ) : Promise < T | null > {
118
- return connection . sendRequest < T > ( options . typescript . requestForwardingCommand ! , [ command , args ] ) ;
118
+ return connection . sendRequest < T > ( options . typescript . tsserverRequestCommand ! , [ command , args ] ) ;
119
119
}
120
120
121
121
function createLs ( server : LanguageServer , tsconfig : string | undefined ) {
0 commit comments