feat(run): choose the JRE and the module of an Application configuration (#1172)

Application / Spring Boot configurations found their module only from the main class, so the same class in two modules failed with "Cannot determine the module for main class", and the JVM was always the module's. The form now has JRE (the module's JDK or an installed JDK) and Use classpath of module (found by main class, or a project module, stored as RunConfig.module). Run configuration selects can load their options when shown.

Fixes #1153
Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-11-04 12:41:34 +08:00
1 джерело b31938db00
коміт 65ca0390de
6 files changed
+98 -8

No files matched your search

+3 -1
Переглянути файл
@@ -1107,7 +1107,9 @@ export interface RunConfigTypeField {
/** Visible lines of a `textarea` (default 4). */
rows?: number;
placeholder?: string;
options?: ReadonlyArray<{ value: string; label: string }>;
options?: ReadonlyArray<{ value: string; label: string; detail?: string }>;
/** A `select`'s further options, read when the form shows it (installed JDKs, build modules). */
loadOptions?(): Promise<ReadonlyArray<{ value: string; label: string; detail?: string }>>;
/** Values offered while typing (e.g. the scripts of detected configurations). */
suggestions?(configs: readonly RunConfig[], params: Readonly<Record<string, string>>): string[];
required?: boolean;