Core Classes & Architecture
This page gives a high-level overview of the main classes powering FuzzyIDE. All editor code lives in the FuzzyLogicLabs.FuzzyIDE.Editor assembly; the only runtime piece is LiveStateTracker.
| Namespace | Contents |
|---|---|
FuzzyLogicLabs.FuzzyIDE.Editor.UI | IDE window, code viewer, popups, Live Watch window |
FuzzyLogicLabs.FuzzyIDE.Editor.Core | Settings, compilation control, language services, history, search, Unity data |
FuzzyLogicLabs.FuzzyIDE.Editor.Roslyn | Roslyn analysis, compilation cache, analyzers, classification |
FuzzyLogicLabs.FuzzyIDE.Editor.Git | Git service, window, and models |
FuzzyLogicLabs.FuzzyIDE.Editor.Notes.* | Fuzzy Notes (Core, Editor, UI, Integration) |
FuzzyLogicLabs.FuzzyIDE.Editor.Terminal | Native terminal |
FuzzyLogicLabs | Runtime LiveStateTracker |
VirtualIDEWindow
Namespace: FuzzyLogicLabs.FuzzyIDE.Editor.UI
The main EditorWindow and container for the IDE. It is split into partial classes by feature: Explorer, Tabs, QuickPick, FindInFiles, Problems, StatusBar, Compilation, Git, Assistant, WatchList, SearchAndRefactor, and LiveExecution.
- Built entirely with UI Toolkit.
- Hosts one or two editor panes (split view), each with its own tabs.
- Registers itself as Unity’s script opener (
[OnOpenAsset]), so double-clicked scripts and Console errors open at the right line. - Serializes open files, carets, and undo history, so everything survives domain reloads.
using FuzzyLogicLabs.FuzzyIDE.Editor.UI;
// Open the IDE window and jump to a lineVirtualIDEWindow.ShowWindow();VirtualIDEWindow.ActiveInstance?.LoadFileAndJumpToLine("Assets/Scripts/Player.cs", 42);VirtualizedCodeViewer
Namespace: FuzzyLogicLabs.FuzzyIDE.Editor.UI
The text editing control. Standard Unity text fields struggle with thousands of lines of code, so VirtualizedCodeViewer implements UI virtualization: only the lines visible in the viewport exist as elements, and per-line markup is cached.
It is split into partials such as Input, Editing, Caret, MultiCaret, Analysis, Rendering, Search, Hover, ContextMenu, DragDrop, DiffPreview, Git, InlineHints, Snippets, ScrollMarkers, Notes, and Api.
- Maps key presses to
IDEActions throughCodeIDESettings.Current.Keybindings. ExecuteAction(IDEAction)runs any bound action programmatically,SelectRange(line, startCol, endCol)selects text, andGetText()returns the buffer.
Roslyn Layer
Namespace: FuzzyLogicLabs.FuzzyIDE.Editor.Roslyn
ProjectCompilationCache– oneCSharpCompilationper assembly from Unity’sCompilationPipeline, with the syntax tree of the open file replaced on each edit. Rename and Find References use a solution with one project per assembly definition.RoslynAnalyzerService– diagnostics, completion, quick actions, rename, references, and formatting. Requests are versioned and cancellable, so stale results never overwrite newer ones.UnityAnalyzers– the FZU010–FZU015 Unity rules and their fixes.UnityStringContext– tag/layer/scene/animator/input/resource string completion and FZU001.CodeClassifier,InlayHintProvider,OverrideCompletion,CodeCleanup,SymbolIndex,UnitySerialization([FormerlySerializedAs]on rename).
CodeIDESettings
Namespace: FuzzyLogicLabs.FuzzyIDE.Editor.Core
Holds the settings profile (CodeIDESettings.Current), stored as JSON in EditorPrefs and shown in the Preferences window. It contains the Editor, Theme, Behaviors, Keybindings, AI, Git, Compilation, Unity, and SmartCode sections. Subscribe to CodeIDESettings.OnSettingsChanged to react to changes.
IDEAction enumerates every bindable action; new actions are appended so stored bindings stay valid.
CompilationManager
Namespace: FuzzyLogicLabs.FuzzyIDE.Editor.Core
Controls compilation and domain reload. Its state lives in a pure CompilationStateMachine fed only by Unity’s public compilation and reload events.
RequestCompile()andTriggerDomainReload()(compile first, reload only on success).SetPolicy(CompilationPolicy)–UnityDefaultorLockDomainReload.- Events:
OnCompilationStateChanged,OnPolicyChanged,OnReloadProblem.
TextHistoryManager
Namespace: FuzzyLogicLabs.FuzzyIDE.Editor.Core
The undo/redo stack of the editor. Edits are stored as commands; consecutive typing is coalesced into one undo step, and the history is serialized across domain reloads.
LanguageServices
Namespace: FuzzyLogicLabs.FuzzyIDE.Editor.Core
The language abstraction of the viewer. CSharpLanguageService connects it to the Roslyn layer for highlighting, completion, symbol resolution, Semantic Rename, and Find All References.
GitService
Namespace: FuzzyLogicLabs.FuzzyIDE.Editor.Git
Runs the git executable asynchronously (no prompts, with timeouts) and parses its machine-readable output into models such as GitRepositoryStatus, GitFileStatus, GitBranchInfo, GitRemoteInfo, GitCommitInfo, and GitStashInfo. GitWindow is the UI on top of it; GitDiffEngine computes the gutter markers.
NoteStore
Namespace: FuzzyLogicLabs.FuzzyIDE.Editor.Notes.Core
NoteStore.Instance owns all vaults and notes: loading, saving with conflict detection, the trash, link-updating renames, and the incremental NoteIndex (links, tags, tasks, code/asset references). FuzzyNotesWindow is the workspace UI and MarkdownLiveEditor the Live Preview editor.
NativeTerminalWindow
Namespace: FuzzyLogicLabs.FuzzyIDE.Editor.Terminal
The terminal window. Each tab runs a shell through ConPTY; output passes through VtStreamFilter into the terminal emulator and is drawn by TerminalGridView. NativeTerminalWindow.ExecuteCommand(string) sends a command to the active tab.
using FuzzyLogicLabs.FuzzyIDE.Editor.Terminal;
NativeTerminalWindow.ShowWindow();NativeTerminalWindow.ExecuteCommand("git status");