File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -141,8 +141,9 @@ export class LanguageClientsManager {
141
141
this . clients . clear ( ) ;
142
142
143
143
for ( const client of clients ) {
144
- promises . push ( client . stop ( 5000 ) ) ;
144
+ promises . push ( client . dispose ( 5000 ) ) ;
145
145
}
146
+ await sleep ( 500 ) ;
146
147
147
148
return Promise . all ( promises ) . then (
148
149
( r ) => {
@@ -160,7 +161,6 @@ export class LanguageClientsManager {
160
161
( _ ) => undefined ,
161
162
( _ ) => undefined
162
163
) ;
163
-
164
164
this . _disposables . dispose ( ) ;
165
165
}
166
166
@@ -509,7 +509,7 @@ export class LanguageClientsManager {
509
509
this . clients . delete ( workspaceFolder . uri . toString ( ) ) ;
510
510
511
511
if ( client ) {
512
- await client . stop ( 5000 ) ;
512
+ await client . dispose ( 5000 ) ;
513
513
await sleep ( 500 ) ;
514
514
}
515
515
} else {
You can’t perform that action at this time.
0 commit comments