mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-24 16:04:21 +00:00
Open in New Window moves an agent conversation to a lightweight editor window while its task and agent process keep running. The agent manager now keeps one event sink per window instead of a single one, lightweight windows keep their launch across webview reloads, and the project window keeps the task list, notifications and a copy of the unsent draft; closing the window brings the conversation and its draft back. Co-authored-by: YannABC <9603157+YannABC@users.noreply.github.com>
27 lines
1.1 KiB
TypeScript
27 lines
1.1 KiB
TypeScript
import type { ComponentType } from "react";
|
|
import { activate as editor } from "./editor/core";
|
|
import { activate as agents } from "./features/agents";
|
|
import { activateEditorWindow, EditorWindow } from "./editor/core/EditorWindow";
|
|
import { installLocaleSync } from "./features/app/locale";
|
|
import { installMenuBridge } from "./features/app/menuBridge";
|
|
import { trackRuntimeSettings } from "./features/settings/runtime";
|
|
import { installKeyboardDispatcher } from "./platform/keymap";
|
|
import { activateList } from "./windowBoot";
|
|
|
|
/**
|
|
* Lightweight editor window of project window `parent`: one file or agent conversation, sharing
|
|
* the parent's documents, language servers and agents, with no workbench chrome.
|
|
*/
|
|
export function bootEditorWindow(parent: string): ComponentType {
|
|
activateList("editor window", [
|
|
["locale", installLocaleSync],
|
|
["settings", trackRuntimeSettings],
|
|
["menu", installMenuBridge],
|
|
["editor", editor],
|
|
["agents", agents],
|
|
["editorWindow", () => activateEditorWindow(parent)],
|
|
]);
|
|
installKeyboardDispatcher();
|
|
return EditorWindow;
|
|
}
|