File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ export function activate(context: vscode.ExtensionContext) {
3434
3535// this method is called when your extension is deactivated
3636export function deactivate ( ) {
37+ stopServer ( ) ;
3738}
3839
3940function startClient ( ) {
@@ -71,7 +72,7 @@ function startClient() {
7172 return Promise . resolve ( result ) ;
7273 } ;
7374 } else {
74- let cp = path . resolve ( savedContext . extensionPath , "../EmmyLua-LanguageServer/EmmyLua-PSI/build/libs " , "*" ) ;
75+ let cp = path . resolve ( savedContext . extensionPath , "res/jar " , "*" ) ;
7576 serverOptions = {
7677 command : "java" ,
7778 args : [ "-cp" , cp , "com.tang.vscode.vscode.MainKt" ]
@@ -115,4 +116,10 @@ function restartServer() {
115116 startClient ( ) ;
116117 } ) ;
117118 }
119+ }
120+
121+ function stopServer ( ) {
122+ if ( client ) {
123+ client . stop ( ) ;
124+ }
118125}
You can’t perform that action at this time.
0 commit comments