дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-05 17:47:08 +02:00
Open in New Window on a project file's tab now opens an editor-only window (editor-<parent>-n) instead of a second project workbench. It shares the parent's documents and language servers; unsaved text, caret and selection move with the tab, and the source tab is removed only after the new window reports ready. Files outside the project keep opening a full window. Review changes: closing the window settles only its own unsaved files (the project window's guard also asked to terminate running processes); Escape no longer closes it; error messages go through the text catalog; the window has its own stylesheet. Closes #4117 Co-authored-by: GGVidal <[email protected]>
35 рядки
1.2 KiB
TypeScript
35 рядки
1.2 KiB
TypeScript
import type { AuxKind } from "./platform/auxWindow";
|
|
import { mountWindowRoot } from "./windowBoot";
|
|
import { activateSecondaryWindow } from "./workbench/activateSecondary";
|
|
|
|
export async function bootAuxiliaryWindow(aux: { kind: AuxKind; parent: string }): Promise<void> {
|
|
activateSecondaryWindow();
|
|
switch (aux.kind) {
|
|
case "settings": {
|
|
const { bootSettingsWindow } = await import("./settingsWindowBoot");
|
|
mountWindowRoot(bootSettingsWindow(aux.parent));
|
|
return;
|
|
}
|
|
case "comparison": {
|
|
const { bootComparisonWindow } = await import("./comparisonWindowBoot");
|
|
mountWindowRoot(bootComparisonWindow(aux.parent));
|
|
return;
|
|
}
|
|
case "diff": {
|
|
const { bootDiffWindow } = await import("./diffWindowBoot");
|
|
mountWindowRoot(bootDiffWindow(aux.parent));
|
|
return;
|
|
}
|
|
case "editor": {
|
|
const { bootEditorWindow } = await import("./editorWindowBoot");
|
|
mountWindowRoot(bootEditorWindow(aux.parent));
|
|
return;
|
|
}
|
|
case "deployment": {
|
|
const { bootDeploymentWindow } = await import("./deploymentWindowBoot");
|
|
mountWindowRoot(bootDeploymentWindow(aux.parent));
|
|
return;
|
|
}
|
|
}
|
|
}
|