File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -171,13 +171,16 @@ function launch(context: vscode.ExtensionContext) {
171
171
) ;
172
172
173
173
client . onNotification ( 'tsserver/request' , async ( [ seq , command , args ] ) => {
174
- const res = await vscode . commands . executeCommand < { body : unknown } | undefined > (
174
+ vscode . commands . executeCommand < { body : unknown } | undefined > (
175
175
'typescript.tsserverRequest' ,
176
176
command ,
177
177
args ,
178
178
{ isAsync : true , lowPriority : true } ,
179
- ) ;
180
- client . sendNotification ( 'tsserver/response' , [ seq , res ?. body ] ) ;
179
+ ) . then ( res => {
180
+ client . sendNotification ( 'tsserver/response' , [ seq , res ?. body ] ) ;
181
+ } , ( ) => {
182
+ client . sendNotification ( 'tsserver/response' , [ seq , undefined ] ) ;
183
+ } ) ;
181
184
} ) ;
182
185
client . start ( ) ;
183
186
You can’t perform that action at this time.
0 commit comments