Skip to content

Commit

Permalink
Fix command registration collision
Browse files Browse the repository at this point in the history
  • Loading branch information
desplesda committed Oct 7, 2023
1 parent 64ba033 commit 262a061
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
],
Expand Down
4 changes: 2 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>("extract.format");
Expand Down Expand Up @@ -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) {

Expand Down

0 comments on commit 262a061

Please sign in to comment.