Skip to content

Commit 1672e8d

Browse files
committed
genDebugConfig_internal -> show it after create a new launch.json
1 parent bfba8e8 commit 1672e8d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/EIDEProjectExplorer.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7215,7 +7215,10 @@ export class ProjectExplorer implements CustomConfigurationProvider {
72157215
const idx = old_cfgs.findIndex(cfg => cfg.name == debugConfig.name);
72167216
if (idx != -1) {
72177217
const item = await vscode.window.showWarningMessage(
7218-
`${WARNING}: Debug Configuration '${debugConfig.name}' is already existed ! override it ?`, 'Yes', 'No');
7218+
isChinese
7219+
? `${WARNING}: 名称为 '${debugConfig.name}' 的调试配置已经存在,需要覆盖它吗?`
7220+
: `${WARNING}: Debugger Configuration '${debugConfig.name}' is already existed ! Override It ?`,
7221+
'Yes', 'No');
72197222
if (item === undefined || item === 'No') {
72207223
return 'canceled';
72217224
}
@@ -7253,6 +7256,7 @@ export class ProjectExplorer implements CustomConfigurationProvider {
72537256
version: '0.2.0',
72547257
configurations: [result.debug_config]
72557258
}, undefined, 4));
7259+
vscode.window.showTextDocument(vscode.Uri.file(cfgfile.path), { preview: true });
72567260
return;
72577261
}
72587262

0 commit comments

Comments
 (0)