mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-23 16:03:06 +00:00
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 <242808782+xtr-hub@users.noreply.github.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user