Compare commits

...
Author SHA1 Message Date
Cline Evaluation 8fee673d43 Changing Title wording for cline extension 2025-05-22 06:44:39 +04:00
5 changed files with 23 additions and 25 deletions
+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.
}
}