diff --git a/.changeset/strong-crews-rush.md b/.changeset/strong-crews-rush.md new file mode 100644 index 00000000..992f9d76 --- /dev/null +++ b/.changeset/strong-crews-rush.md @@ -0,0 +1,5 @@ +--- +"claude-dev": patch +--- + +Change the extension title name wording diff --git a/package.json b/package.json index e5988945..f24bc64d 100644 --- a/package.json +++ b/package.json @@ -50,8 +50,21 @@ "activitybar": [ { "id": "claude-dev-ActivityBar", - "title": "Cline", - "icon": "assets/icons/icon.svg" + "title": "Cline (⌘+')", + "icon": "assets/icons/icon.svg", + "when": "isMac" + }, + { + "id": "claude-dev-ActivityBar", + "title": "Cline (Ctrl+')", + "icon": "assets/icons/icon.svg", + "when": "isWindows" + }, + { + "id": "claude-dev-ActivityBar", + "title": "Cline (Ctrl+')", + "icon": "assets/icons/icon.svg", + "when": "isLinux || !isMac && !isWindows" } ] }, diff --git a/src/core/controller/ui/index.ts b/src/core/controller/ui/index.ts index d97ded27..00a6baa4 100644 --- a/src/core/controller/ui/index.ts +++ b/src/core/controller/ui/index.ts @@ -19,4 +19,4 @@ export const handleUiServiceStreamingRequest = uiService.handleStreamingRequest export const isStreamingMethod = uiService.isStreamingMethod // Register all ui methods -registerAllMethods() +registerAllMethods() \ No newline at end of file diff --git a/src/core/controller/ui/methods.ts b/src/core/controller/ui/methods.ts index 71d14ea5..552794d4 100644 --- a/src/core/controller/ui/methods.ts +++ b/src/core/controller/ui/methods.ts @@ -9,4 +9,4 @@ import { scrollToSettings } from "./scrollToSettings" export function registerAllMethods(): void { // Register each method with the registry registerMethod("scrollToSettings", scrollToSettings) -} +} \ No newline at end of file diff --git a/src/core/webview/index.ts b/src/core/webview/index.ts index fc26a7ac..b276427d 100644 --- a/src/core/webview/index.ts +++ b/src/core/webview/index.ts @@ -150,27 +150,7 @@ export class WebviewProvider implements vscode.WebviewViewProvider { this.outputChannel.appendLine("Webview view resolved") - // Set the title to include the keyboard shortcut - if (this.view && "title" in this.view) { - // Check if the view object has a title property - const isMac = process.platform === "darwin" - const shortcutDisplay = isMac ? " (⌘+')" : " (Ctrl+')" - const baseTitle = this.context.extension.packageJSON.displayName || "Cline" - const newTitleWithShortcut = `${baseTitle}${shortcutDisplay}` - - const currentTitle = this.view.title - - if (typeof currentTitle === "string") { - if (!currentTitle.includes(shortcutDisplay)) { - // Title exists and is a string, but doesn't have the shortcut - this.view.title = newTitleWithShortcut - } - // If it includes shortcutDisplay, do nothing - } else { - // Title is undefined or not a string (e.g., for sidebar initially) - this.view.title = newTitleWithShortcut - } - } + // Title setting logic removed to allow VSCode to use the container title primarily. } }