дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-09 03:05:40 +02:00
Project & files - Project view modes (Project Files / Open Files / All Changed Files / Scratches); External Libraries for Python, JDK (src.zip), Node, Cargo, Go, Maven/Gradle jars; read-only jar/zip browsing - ⌘N New popup with type search and more file kinds; New Project, Rename Project, Reload All from Disk, Export/Import Settings, Power Save Mode - File type associations, extra content roots and exclude patterns (indexed and watched without reopening the project) Editor & navigation - Find bar: search scope (comments/strings), Preserve Case, Exclude, multiline, history; Find in Files: Module scope, custom pattern scopes, multiline - Search Everywhere filters, Assign Shortcut, settings results; named bookmark lists, file/folder bookmarks; Structure filters and Show Inherited; Recent Locations timestamps and breadcrumbs; Code Vision author - Completion options, editor tab placement/layout, inline completion (LSP 3.18) - Spell checking (Typo inspection, ide-spell) and Inspections settings with custom profiles; Code Style schemes, formatter markers, Do not format Run, VCS, services, database - Typed run configurations (Shell, Program, npm, Gradle, Maven, Docker, Compound), Modify options, Before launch, env dialog, Current File, Emulate terminal (PTY) - Git log graph/view options, Go to Hash/Branch/Tag, date filter keeps the graph; Pull/Merge/Rebase dialogs, Manage Remotes, Worktrees - Generic Services host (Docker connections/registries, run sessions); TODO scope/changes tabs with changelists; Coverage report import - Data sources: wire-compatible vendors, URL import, SSL certs, Options, Schemas and Advanced tabs, color and comment Workbench - Run Anything, Customize Main Toolbar, named tool window layouts, menu completeness, Code Cleanup, macros, "Don't Show Again", editor banners - Chinese translations for the new UI Claude-Session: https://claude.ai/code/session_01SaPPsVPuk6ZTNsoUCNCbMv
33 рядки
1.3 KiB
TypeScript
33 рядки
1.3 KiB
TypeScript
/**
|
|
* The settings search index for Search Everywhere: every page plus the
|
|
* option labels of the built-in pages, with the page's breadcrumb.
|
|
*/
|
|
import { useSettingsPages, type SettingsSearchEntry } from "@/workbench/contributions";
|
|
import { loadBuiltinPages } from "./dialog/LazySettingsDialog";
|
|
import { breadcrumb, buildPageTree, flatten } from "./model/pages";
|
|
|
|
let cached: { pages: unknown; entries: SettingsSearchEntry[] } | null = null;
|
|
|
|
export async function settingsSearchEntries(): Promise<SettingsSearchEntry[]> {
|
|
await loadBuiltinPages();
|
|
const { optionLabels } = await import("./pages/registry");
|
|
const pages = useSettingsPages.getState().pages;
|
|
if (cached?.pages === pages) return cached.entries;
|
|
const tree = buildPageTree(pages.values());
|
|
const entries: SettingsSearchEntry[] = [];
|
|
for (const node of flatten(tree)) {
|
|
const page = node.page;
|
|
if (!page) continue;
|
|
const path = breadcrumb(tree, node.key);
|
|
entries.push({ pageId: page.id, title: page.title, path: path.slice(0, -1), keywords: page.keywords });
|
|
const seen = new Set<string>();
|
|
for (const label of optionLabels(page.id)) {
|
|
if (seen.has(label)) continue;
|
|
seen.add(label);
|
|
entries.push({ pageId: page.id, title: label, path });
|
|
}
|
|
}
|
|
cached = { pages, entries };
|
|
return entries;
|
|
}
|