дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-09 03:05:40 +02:00
feat: Third pass aligning core experience with IntelliJ IDEA
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
Цей коміт міститься в:
1 джерело
294198a727
коміт
1e00ea5ee2
426 files changed
+85241
-2886
No files matched your search
@@ -6,6 +6,12 @@
|
||||
import { create } from "zustand";
|
||||
import type { Diagnostic, Severity } from "@/bindings";
|
||||
import { onIdeEvent } from "@/platform/ipc";
|
||||
import {
|
||||
applyProfile,
|
||||
inspectionProfile,
|
||||
subscribeInspectionProfile,
|
||||
type ProfileOverrides,
|
||||
} from "@/platform/inspections";
|
||||
|
||||
export type FileDiagnostics = ReadonlyMap<string, readonly Diagnostic[]>;
|
||||
/** path → source → diagnostics. */
|
||||
@@ -89,23 +95,46 @@ export function worstSeverity(diags: Iterable<Diagnostic>): Severity | null {
|
||||
return best;
|
||||
}
|
||||
|
||||
/** `raw` under the inspection profile: disabled inspections dropped, severities remapped. */
|
||||
export function profiledProblems(raw: ProblemsMap, profile: ProfileOverrides): ProblemsMap {
|
||||
let out: ProblemsMap = new Map();
|
||||
for (const [path, sources] of raw) {
|
||||
for (const [source, items] of sources) {
|
||||
out = mergeDiagnostics(out, path, source, applyProfile(profile, source, items));
|
||||
}
|
||||
}
|
||||
return out;
|
||||
}
|
||||
|
||||
interface ProblemsState {
|
||||
/** As reported, before the inspection profile. */
|
||||
raw: ProblemsMap;
|
||||
/** What the views show. */
|
||||
map: ProblemsMap;
|
||||
}
|
||||
|
||||
export const useProblems = create<ProblemsState>(() => ({ map: new Map() }));
|
||||
export const useProblems = create<ProblemsState>(() => ({ raw: new Map(), map: new Map() }));
|
||||
|
||||
export function applyDiagnosticsEvent(path: string, source: string, items: readonly Diagnostic[]) {
|
||||
useProblems.setState((s) => {
|
||||
const map = mergeDiagnostics(s.map, path, source, items);
|
||||
return map === s.map ? s : { map };
|
||||
const raw = mergeDiagnostics(s.raw, path, source, items);
|
||||
if (raw === s.raw) return s;
|
||||
const map = mergeDiagnostics(s.map, path, source, applyProfile(inspectionProfile(), source, items));
|
||||
return { raw, map };
|
||||
});
|
||||
}
|
||||
|
||||
export function clearProblems() {
|
||||
useProblems.setState({ map: new Map() });
|
||||
useProblems.setState({ raw: new Map(), map: new Map() });
|
||||
}
|
||||
|
||||
export function installProblemsEvents(): () => void {
|
||||
return onIdeEvent("diagnostics", (e) => applyDiagnosticsEvent(e.path, e.source, e.items));
|
||||
const off = onIdeEvent("diagnostics", (e) => applyDiagnosticsEvent(e.path, e.source, e.items));
|
||||
const offProfile = subscribeInspectionProfile(() =>
|
||||
useProblems.setState((s) => ({ map: profiledProblems(s.raw, inspectionProfile()) })),
|
||||
);
|
||||
return () => {
|
||||
off();
|
||||
offProfile();
|
||||
};
|
||||
}
|
||||
Reference in new issue
Заблокувати користувача