File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -142,11 +142,11 @@ function restartLanguageServer() {
142
142
) ;
143
143
}
144
144
145
- function stopLanguageServer ( ) {
145
+ function stopLanguageServer ( ) : Thenable < void > | undefined {
146
146
if ( ! languageClient ) {
147
- return ;
147
+ return undefined ;
148
148
}
149
- languageClient . stop ( ) ;
149
+ return languageClient . stop ( ) ;
150
150
}
151
151
152
152
function onDidChangeConfiguration ( event : vscode . ConfigurationChangeEvent ) {
@@ -174,7 +174,6 @@ export function activate(context: vscode.ExtensionContext) {
174
174
startLanguageServer ( ) ;
175
175
}
176
176
177
- export function deactivate ( ) {
178
- stopLanguageServer ( ) ;
179
- extensionContext = null ;
177
+ export function deactivate ( ) : Thenable < void > | undefined {
178
+ return stopLanguageServer ( ) ;
180
179
}
You can’t perform that action at this time.
0 commit comments