feat(app): ask before closing with running Run/Debug processes (#1445)

Closing a window, closing or switching a project, or quitting while Run/Debug sessions are still running now asks before terminating them (Terminate / Cancel / Don't ask again, sharing run.confirmTerminate with the Run tab prompt). Run publishes its live sessions through a RunningProcessesProvider contribution, so the close guard collects them without importing the run feature; the prompt comes before the unsaved-changes step so cancelling never discards edits.

Closes #1433

Co-authored-by: ppxb <[email protected]>
Цей коміт міститься в:
ppxbтаppxb authored and GitHub committed 2026-11-05 12:34:35 +08:00
1 джерело 3e88fa1f39
коміт 43af99d3ec
7 files changed
+223 -7

No files matched your search

+6
Переглянути файл
@@ -50,6 +50,12 @@
"app.lightEdit.openProjectTooltip": "Open {folder} as a project",
"app.log.failed": "Cannot show the log",
"app.project.opening": "Opening {name}…",
"app.terminateProcesses.bodyMany": "Do you want to terminate these {count} processes: {names}?",
"app.terminateProcesses.bodyOne": "Do you want to terminate the process '{name}'?",
"app.terminateProcesses.dontAsk": "Don't ask again",
"app.terminateProcesses.terminate": "Terminate",
"app.terminateProcesses.titleMany": "Processes Are Running",
"app.terminateProcesses.titleOne": "Process '{name}' Is Running",
"app.title.default": "OpenIDEA",
"app.unsaved.body": "{count, plural, one {# file has} other {# files have}} unsaved changes in {project}. Save before closing?",
"app.unsaved.discard": "Don't Save",
+6
Переглянути файл
@@ -50,6 +50,12 @@
"app.lightEdit.openProjectTooltip": "将 {folder} 作为项目打开",
"app.log.failed": "无法显示日志",
"app.project.opening": "正在打开 {name}…",
"app.terminateProcesses.bodyMany": "是否要终止这 {count} 个进程:{names}?",
"app.terminateProcesses.bodyOne": "是否要终止进程“{name}”?",
"app.terminateProcesses.dontAsk": "不再询问",
"app.terminateProcesses.terminate": "终止",
"app.terminateProcesses.titleMany": "有进程正在运行",
"app.terminateProcesses.titleOne": "进程“{name}”正在运行",
"app.title.default": "OpenIDEA",
"app.unsaved.body": "{project} 中有 {count} 个文件尚未保存。关闭前是否保存?",
"app.unsaved.discard": "不保存",