feat(run): keep service debugging in the Services tool window (#1844)

Closes #1684. Debug and rerun started from the Services tool window used startSession(), which opened the Debug tool window whenever run.showOnStart was on. Services-originated debug sessions and reruns now start with show: false and stay in the Services detail pane (in-place launches and reruns keep that origin; a breakpoint hit still shows the paused session). Debug from the toolbar, gutter, context menu and the Debug window keeps opening the Debug window. Also: palette themes inherit the macOS window button colours, and the title bar's fullscreen buttons skip Tauri calls outside Tauri (fixes the theme-token and title-bar test failures on main).

Co-authored-by: xtr-hub <[email protected]>
Цей коміт міститься в:
xtr-hubтаxtr-hub authored and GitHub committed 2026-11-08 00:46:39 +08:00
1 джерело f407880204
коміт b790a9ddb6
16 files changed
+314 -92

No files matched your search

+3 -1
Переглянути файл
@@ -73,7 +73,7 @@ export function jdwpLaunch(config: RunConfig): RunConfig | null {
}
/** Runs `config` with a JDWP agent and attaches the Java debugger to every JVM it starts. */
export async function debugWithAgent(config: RunConfig): Promise<boolean> {
export async function debugWithAgent(config: RunConfig, show?: boolean): Promise<boolean> {
const launch = jdwpLaunch(config);
if (!launch) return false;
let sessionId: string | null = null;
@@ -88,10 +88,12 @@ export async function debugWithAgent(config: RunConfig): Promise<boolean> {
port,
process: runId,
runConfig: config,
show,
});
};
const session = await startRun(config, undefined, undefined, {
launch,
show,
onLine: (line) => {
const port = jdwpListeningPort(line);
if (port === null) return;