Files
cline-multi-mirror/src/registry.ts
T
celestial-vaultandSarah Fortune ba12672600 Remove open in editor button (#6462)
* first pass of removing all related code

# Conflicts:
#	src/hosts/external/ExternalWebviewProvider.ts
#	src/hosts/vscode/VscodeWebviewProvider.ts

* remove more things

* rename all sidebarWebviews to webview

* remove null from getInstance and remove null checks

* remove client id logic and update RPC subscriptions to match this

* add back extension.test.ts without irrelevant webview panel tests

* Refresh CI cache - fix proto compilation

* add comment to try to invalidate CI cache

* add clean script to test.yml for test-platform-integration

* remove clean script didn't work

* finally found the error in the code - linter wasn't highlighting it

* Don't delete unrelated tests in this PR

---------

Co-authored-by: Sarah Fortune <sarah.fortune@gmail.com>
2025-09-29 21:15:17 -07:00

49 lines
1.6 KiB
TypeScript

import { name, publisher, version } from "../package.json"
const prefix = name === "claude-dev" ? "cline" : name
/**
* List of commands with the name of the extension they are registered under.
* These should match the command IDs defined in package.json.
* For Nightly build, the publish script has updated all the commands to use the extension name as prefix.
* In production, all commands are registered under "cline" for consistency.
*/
const ClineCommands = {
PlusButton: prefix + ".plusButtonClicked",
McpButton: prefix + ".mcpButtonClicked",
SettingsButton: prefix + ".settingsButtonClicked",
HistoryButton: prefix + ".historyButtonClicked",
AccountButton: prefix + ".accountButtonClicked",
TerminalOutput: prefix + ".addTerminalOutputToChat",
AddToChat: prefix + ".addToChat",
FixWithCline: prefix + ".fixWithCline",
ExplainCode: prefix + ".explainCode",
ImproveCode: prefix + ".improveCode",
FocusChatInput: prefix + ".focusChatInput",
Walkthrough: prefix + ".openWalkthrough",
GenerateCommit: prefix + ".generateGitCommitMessage",
AbortCommit: prefix + ".abortGitCommitMessage",
ReconstructTaskHistory: prefix + ".reconstructTaskHistory",
}
/**
* IDs for the views registered by the extension.
* These should match the name + view IDs defined in package.json.
*/
const ClineViewIds = {
Sidebar: name + ".SidebarProvider",
}
/**
* The registry info for the extension, including its ID, name, version, commands, and views
* registered for the current host.
*/
export const ExtensionRegistryInfo = {
id: publisher + "." + name,
name,
version,
publisher,
commands: ClineCommands,
views: ClineViewIds,
}