File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 246246 " 25.04" ,
247247 " 24.10"
248248 ],
249- "default" : " 24.10 " ,
249+ "default" : " 25.04 " ,
250250 "markdownDescription" : " Nextflow language version to be used by the language server."
251251 },
252252 "nextflow.telemetry.enabled" : {
Original file line number Diff line number Diff line change @@ -176,7 +176,10 @@ export function activateLanguageServer(
176176 trackEvent : TrackEvent
177177) {
178178 vscode . workspace . onDidChangeConfiguration ( ( event : vscode . ConfigurationChangeEvent ) => {
179- if ( event . affectsConfiguration ( "nextflow.java.home" ) ) {
179+ const shouldRestart =
180+ event . affectsConfiguration ( "nextflow.java.home" ) ||
181+ event . affectsConfiguration ( "nextflow.languageVersion" ) ;
182+ if ( shouldRestart ) {
180183 restartLanguageServer ( context ) ;
181184 }
182185 } ) ;
@@ -188,7 +191,9 @@ export function activateLanguageServer(
188191 "nextflow.languageServer.restart" ,
189192 ( ) => { restartLanguageServer ( context ) ; }
190193 ) ;
191- vscode . commands . registerCommand ( "nextflow.languageServer.stop" , stopLanguageServer ) ;
194+ vscode . commands . registerCommand ( "nextflow.languageServer.stop" ,
195+ ( ) => { stopLanguageServer ( ) ; }
196+ ) ;
192197 vscode . commands . registerCommand (
193198 "nextflow.openFileFromWebview" ,
194199 async ( uriString : string ) => {
You can’t perform that action at this time.
0 commit comments