mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
fix(vscode-ide-companion): ensure restored panel title resets to default
- Added code to reset restored panel title to 'Qwen Code' on initialization - Added error handling for title reset operation This ensures consistent panel labeling when restoring previous sessions.
This commit is contained in:
@@ -799,6 +799,16 @@ export class WebViewProvider {
|
|||||||
);
|
);
|
||||||
this.panelManager.setPanel(panel);
|
this.panelManager.setPanel(panel);
|
||||||
|
|
||||||
|
// Ensure restored tab title starts from default label
|
||||||
|
try {
|
||||||
|
panel.title = 'Qwen Code';
|
||||||
|
} catch (e) {
|
||||||
|
console.warn(
|
||||||
|
'[WebViewProvider] Failed to reset restored panel title:',
|
||||||
|
e,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
panel.webview.html = WebViewContent.generate(panel, this.extensionUri);
|
panel.webview.html = WebViewContent.generate(panel, this.extensionUri);
|
||||||
|
|
||||||
// Handle messages from WebView (restored panel)
|
// Handle messages from WebView (restored panel)
|
||||||
|
|||||||
Reference in New Issue
Block a user