дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-28 05:22:23 +02:00
Native auxiliary windows (settings, comparison, diff, deployment) all booted src/main.tsx, which statically imported the Workbench and every workbench feature (CodeMirror, xterm, editor extensions) even when the Settings window rendered none of them. main.tsx is now a small window-kind router with one boot module per window kind, and the settings pages, core plugin points and plugin theme runtime are registered from editor-free modules, so the Settings window loads no Workbench, @codemirror, @xterm or @/editor modules (about 57% less JS and a third less heap per Settings window). A static test keeps the Settings boot isolated. Part of #3942 Co-authored-by: dengliu <[email protected]>
28 рядки
763 B
TypeScript
28 рядки
763 B
TypeScript
import { lazyComponent } from "@/ui";
|
|
import { registerSettingsPage } from "@/workbench/contributions";
|
|
import { SETTINGS_PAGE_ID } from "./store";
|
|
|
|
/** The Language Servers page (also used by the Settings window). */
|
|
export function activateSettingsPages(): () => void {
|
|
return registerSettingsPage({
|
|
id: SETTINGS_PAGE_ID,
|
|
title: "Language Servers",
|
|
group: "Languages & Frameworks",
|
|
order: 400,
|
|
keywords: [
|
|
"lsp",
|
|
"language server",
|
|
"debugger",
|
|
"adapter",
|
|
"dap",
|
|
"install",
|
|
"initialization options",
|
|
"rust-analyzer",
|
|
"gopls",
|
|
"pyright",
|
|
],
|
|
projectScope: true,
|
|
component: lazyComponent(() => import("./LanguageServersPage").then((m) => m.LanguageServersPage)),
|
|
});
|
|
}
|