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 {
141141 this . clients . clear ( ) ;
142142
143143 for ( const client of clients ) {
144- promises . push ( client . stop ( 5000 ) ) ;
144+ promises . push ( client . dispose ( 5000 ) ) ;
145145 }
146+ await sleep ( 500 ) ;
146147
147148 return Promise . all ( promises ) . then (
148149 ( r ) => {
@@ -160,7 +161,6 @@ export class LanguageClientsManager {
160161 ( _ ) => undefined ,
161162 ( _ ) => undefined
162163 ) ;
163-
164164 this . _disposables . dispose ( ) ;
165165 }
166166
@@ -509,7 +509,7 @@ export class LanguageClientsManager {
509509 this . clients . delete ( workspaceFolder . uri . toString ( ) ) ;
510510
511511 if ( client ) {
512- await client . stop ( 5000 ) ;
512+ await client . dispose ( 5000 ) ;
513513 await sleep ( 500 ) ;
514514 }
515515 } else {
You can’t perform that action at this time.
0 commit comments