diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index 0030d3ea59c..30f037fb8b6 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -191,7 +191,7 @@ { "command": "continue.focusContinueInput", "category": "Continue", - "title": "Add Highlighted Code to Context and Clear Chat", + "title": "Focus Continue Chat", "group": "Continue" }, { @@ -329,12 +329,6 @@ "title": "Docs Force Re-Index", "group": "Continue" }, - { - "command": "continue.focusContinueInput", - "category": "Continue", - "title": "Focus Continue Chat", - "group": "Continue" - }, { "command": "continue.enterEnterpriseLicenseKey", "category": "Continue", diff --git a/extensions/vscode/src/packageManifest.vitest.ts b/extensions/vscode/src/packageManifest.vitest.ts new file mode 100644 index 00000000000..d7e99b5dcf5 --- /dev/null +++ b/extensions/vscode/src/packageManifest.vitest.ts @@ -0,0 +1,20 @@ +import { describe, expect, it } from "vitest"; + +import packageJson from "../package.json"; + +describe("VS Code package manifest", () => { + it("contributes each command identifier once", () => { + const commandIds = packageJson.contributes.commands.map( + ({ command }) => command, + ); + const duplicateCommandIds = [ + ...new Set( + commandIds.filter( + (command, index) => commandIds.indexOf(command) !== index, + ), + ), + ]; + + expect(duplicateCommandIds).toEqual([]); + }); +});