From 262a0614c41009377535c74659471469f76b2601 Mon Sep 17 00:00:00 2001 From: Jon Manning Date: Sat, 7 Oct 2023 18:59:40 +1100 Subject: [PATCH] Fix command registration collision --- CHANGELOG.md | 2 ++ package.json | 4 ++-- src/extension.ts | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7806ade..f0f6a2e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ ### Changed +- Fixed a bug where not all language server features would successfully register (and would present as a random subset of features, like code completion or code lens, would simply not work.) + ### Removed ## [2.2.128] 2023-08-29 diff --git a/package.json b/package.json index 463c443..16a80c1 100644 --- a/package.json +++ b/package.json @@ -131,9 +131,9 @@ "title": "Export Dialogue as Graph..." }, { - "command": "yarnspinner.generateDebugOutput", + "command": "yarnspinner.exportDebugOutput", "category": "Yarn Spinner", - "title": "Generate Debug Output", + "title": "Export Debug Output", "enablement": "config.yarnspinner.enableExperimentalFeatures" } ], diff --git a/src/extension.ts b/src/extension.ts index 264d3a4..39f6221 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -305,7 +305,7 @@ async function launchLanguageServer(context: vscode.ExtensionContext, configs: v })); // recording strings extraction command - context.subscriptions.push(vscode.commands.registerCommand("yarnspinner.extract", () => { + context.subscriptions.push(vscode.commands.registerCommand("yarnspinner.export-spreadsheet", () => { var configs = vscode.workspace.getConfiguration("yarnspinner"); let format = configs.get("extract.format"); @@ -482,7 +482,7 @@ async function launchLanguageServer(context: vscode.ExtensionContext, configs: v }); })); - context.subscriptions.push(vscode.commands.registerCommand("yarnspinner.generateDebugOutput", () => { + context.subscriptions.push(vscode.commands.registerCommand("yarnspinner.exportDebugOutput", () => { getDebugOutput(client).then((debugOutput) => { for (const item of debugOutput) {