mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-08 08:52:12 +00:00
fix(debugger): coloured Spring Boot output, Soft-Wrap and Scroll to End in the debug console (#1353)
Debugging a Spring Boot configuration showed its log uncoloured: Run adds -Dspring.output.ansi.enabled=always (Spring only colours output for a terminal, the process runs on pipes), the java-debug and Kotlin debug launches built their VM options without it. They now add the same console VM options as Run, unless the configuration sets the property itself. The debug console also gets the Run console's Soft-Wrap toggle (default from Settings › Console › Use soft wraps) and Scroll to End, which follows new output, turns off when scrolling up and on again at the end. Fixes #1262
This commit is contained in:
1 parent
2fc3535300
commit
c83264ae75
4 files changed
+57
-7
No files matched your search
@@ -7,6 +7,7 @@
|
||||
import { executeAction } from "@/platform/actions";
|
||||
import { call, commands, IpcError, nextRequestId, type LaunchConfig, type RunConfig } from "@/platform/ipc";
|
||||
import {
|
||||
consoleVmArgs,
|
||||
formatCompileErrors,
|
||||
isJvmApplication,
|
||||
joinJavaArgs,
|
||||
@@ -117,7 +118,7 @@ export async function javaLaunchConfig(
|
||||
classPaths,
|
||||
modulePaths: info.modulePaths,
|
||||
javaExec: resolved.command,
|
||||
vmArguments: parsed.vmArgs,
|
||||
vmArguments: [...consoleVmArgs(rc), ...parsed.vmArgs],
|
||||
programArgs: parsed.programArgs,
|
||||
}),
|
||||
};
|
||||
@@ -139,7 +140,7 @@ export async function javaLaunchConfig(
|
||||
classPaths,
|
||||
modulePaths: info.modulePaths,
|
||||
javaExec: resolved.command === "java" ? undefined : resolved.command,
|
||||
vmArgs: joinJavaArgs(parsed.vmArgs),
|
||||
vmArgs: joinJavaArgs([...consoleVmArgs(rc), ...parsed.vmArgs]),
|
||||
args: joinJavaArgs(parsed.programArgs),
|
||||
// java-debug spawns the JVM itself: it must shorten a classpath too long for the OS the same way Run does.
|
||||
shortenCommandLine: info.shortenCommandLine ?? "none",
|
||||
|
||||
Reference in new issue
Block a user