Skip to content

Commit c244add

Browse files
committed
Bump default language version 25.04 (close #134)
1 parent 34ef89c commit c244add

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@
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": {

src/languageServer/index.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff 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) => {

0 commit comments

Comments
 (0)