Skip to content

Commit 4107f30

Browse files
committed
fix:修复代码相关功能webview切换丢失信息
1 parent 8a66b86 commit 4107f30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/UIComponents.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export async function showInputMultiLineBox(options: InputMultiLineBoxOptions):
2020
'multiLineInput',
2121
options.title || 'Multi-line Input',
2222
vscode.ViewColumn.One,
23-
{ enableScripts: true, localResourceRoots: [] } // 允许 JavaScript
23+
{ enableScripts: true, localResourceRoots: [], retainContextWhenHidden: true } // 允许 JavaScript
2424
);
2525

2626
// 设置 Webview 内容

0 commit comments

Comments
 (0)