Changing Title wording for cline extension (#3712)

Co-authored-by: Cline Evaluation <cline@example.com>
This commit is contained in:
AraandCline Evaluation authored and GitHub committed 2025-05-22 10:37:16 +04:00
1 parent 58f80d4d16
commit efb6ae1529
5 files changed
+23 -25

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"claude-dev": patch
---
Change the extension title name wording
+15 -2
View File
@@ -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"
}
]
},
+1 -1
View File
@@ -19,4 +19,4 @@ export const handleUiServiceStreamingRequest = uiService.handleStreamingRequest
export const isStreamingMethod = uiService.isStreamingMethod
// Register all ui methods
registerAllMethods()
registerAllMethods()
+1 -1
View File
@@ -9,4 +9,4 @@ import { scrollToSettings } from "./scrollToSettings"
export function registerAllMethods(): void {
// Register each method with the registry
registerMethod("scrollToSettings", scrollToSettings)
}
}
+1 -21
View File
@@ -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.
}
}