Copy Absolute Path returned the UI's /-separated form, so C:/work/a.md went to the
clipboard and cmd, robocopy and the Explorer address bar rejected it. pathToCopy now
writes absolute drive and UNC paths with backslashes (new nativePath, the inverse of
ipcPath); paths relative to a content or source root keep /. The editor's Absolute
Path action and Search Everywhere's Copy Path go through the same conversion.
Fixes#5805
Keep the default arrow cursor on non-link controls and disclosure summaries across src/features/agents/, reserving pointer cursors for links.
Refine conversation folding so edits, commands, and interim messages remain visible by default:
- Default agents.foldTurns (fold_turns) to false across Rust and frontend settings
- Restrict grouped ProcessRun folding to consecutive reasoning and read-only exploration tool calls (read, search, fetch, think without diffs)
- When foldTurns is enabled, fold only earlier turns (leaving the latest turn open) and flatten grouped runs inside a folded turn to avoid nested folds
- Keep turn-folding test coverage active in unit, E2E, and Rust settings tests
Go files now open with one-statement error guards (if err != nil / xxxErr != nil with the body on the next line) and one-statement case/default clauses folded onto their header line, showing the statement with its syntax colours, when the joined line fits the right margin. The syntax pass has no type information, so only conventional error names are treated as guards. Editing the hidden statement unfolds it. Code Folding gets a Short Go error guards and case clauses option (on by default) to turn it off.
Co-authored-by: shohruh-genius <[email protected]>
Thread.print lists only platform threads, so Dump Threads never showed virtual threads or deadlocks between them. On Java 21+ it now also takes the JSON thread dump (Thread.dump_to_file -format=json into an owner-only directory under the heap snapshot root, read with a size cap and always removed) and lists the virtual threads in a Virtual threads (n) group by container. On Java 25 the JSON carries lock owners, so monitor deadlocks between virtual threads show in the deadlock banner; on 21-24 the viewer says lock owners need Java 25. The JSON request is skipped while a debugger holds the JVM suspended, since it would hang the attach listener until resume.
Part of #5593.
Co-authored-by: ntbang0901 <[email protected]>
A terminal tab moved into the editor can now return to the Terminal tool window with its running session: Move to Terminal in the editor tab menu and Find Action, or dragging the tab onto the Terminal stripe button, a terminal tab strip (at a position) or a split edge. The tab keeps its PTY, scrollback, custom name and shell; an unstarted restored tab starts a fresh session there. Also passes the action argument correctly to Move to Editor.
Co-authored-by: dengliu <[email protected]>
The before-launch build of a Java Run / Debug launch now streams its output, messages and progress: java_resolve_launch takes a BuildEvent channel, launches joining a shared Maven build receive its events, and the frontend shows a cancellable status bar task, the build's commands in the run console and the full output in the Build tool window.
Closes#5780
Refs #4078
Laying out the Git Log graph built a new tracked segment for every lane in every row it passed, and CommitList lays out the whole loaded list again on each page, so wide histories paid rows x lanes allocations. A lane keeps its slot until it reaches its target, so its straight segment is identical in every row: computeGraph now builds it once per lane and reuses it (the post-passes already copy a segment before changing it). Untracked layouts and single-row lanes are unchanged.
Co-authored-by: audichuang <[email protected]>
On a line cut into windows, every window was handed all the matches left on the line and in_window reserved room for each, so the reservation added up to windows x matches: searching a 5 MB minified line asked the allocator for about 5 GiB. Each window now gets only the ranges that start in it (partition_point on the sorted ranges); in_window and the matches it returns are unchanged.
Co-authored-by: audichuang <[email protected]>
@lezer/go reports method declarations and selector calls as fields and leaves package names, constants and the make/new builtins untagged, so before gopls attaches they all drew in the default colour. Map them to the existing namespace, function declaration, function call, constant and builtin function tags so the colour scheme styles them as it does under semantic highlighting.
Co-authored-by: shohruh-genius <[email protected]>
The changed-files chip under the composer opens the task's changes in an
editor tab of their own: the file tree beside one scrolling diff of every
file, with the scope, accept and rollback controls in the diff's toolbar.
The conversation keeps its layout instead of gaining a side pane.
Added and deleted files show their one side alone, and selecting a file
no longer renders every mounted diff again.
Holding Cmd (Ctrl on Windows/Linux) over terminal output now underlines paths that resolve to an existing file or folder relative to the session's working directory or project root; clicking opens the file (with line:column) or selects the folder in the Project view. Results are cached per buffer write and cleared on output, scroll and buffer switches; window key listeners are removed on dispose.
Co-authored-by: dengliu <[email protected]>
Clears the no-await-in-loop diagnostics in analysis, platform, project-tree, http-client and debugger and turns the rule on there. Independent directory walks (Reformat/cleanup targets, batches of 8; the result is sorted as before), Spring config reads (parsed in candidate order, so the first file with a value still wins) and Python package __init__.py creation now run in parallel; every other loop is intentionally sequential and carries a documented suppression.
Co-authored-by: akbar1214 <[email protected]>
The Database tree gets Diagrams › Show Diagram (ShowUmlDiagram, ⌥⇧⌘U / Ctrl+Alt+Shift+U): selected tables, a schema (its tables) or a tables / views folder open as a read-only ER diagram tab with columns, PK / FK markers and the foreign keys between the shown tables. It is a Mermaid erDiagram built from the table details the tree already loads, rendered with the Markdown preview's renderer (theme colours, zoom, full screen, download). Names are written as entity codes so no character can break the source; at most 50 tables and Mermaid's 50,000-character limit, with a notification when tables are left out. The tree store now keeps the multi-selection.
Closes#5778
Co-authored-by: mansur-akhmadi <[email protected]>
Flutter projects get a Build › Flutter submenu first in the Build menu: Build APK, Build App Bundle, Build iOS, Build Web (flutter build <target> in the selected Flutter configuration's package, output in the Run tool window), and on macOS Open iOS/macOS Module in Xcode (running flutter build ios --config-only first when the module isn't configured) and Open Android Module in Android Studio. The submenu is a dynamic native-menu slot filled only while flutterProject holds; all six are also in Find Action. iOS builds and the Open actions are macOS only.
Part of #4096
Co-authored-by: wildcatDownstairs <[email protected]>
Codex: an image the agent views or generates now carries its pixels into the
tool result, and images in a resumed thread's user messages (data URLs and
local files) show as images instead of a link or path.
ACP: tool results and replayed user messages show images given inline, by
data: or file:// URI, as a resource blob or as a resource_link to an image
file. A read tool that completes naming an image file but sends no image
(Cursor) shows that file.
PRODUCT.md records the users, positioning, constraints and evidence the UI must respect.
DESIGN.md documents the visual system from src/styles/tokens.css and the src/ui primitives:
colour roles, the type scale, density and compact mode, tonal layering with shadows only on
floating surfaces, and component rules. .impeccable/ holds the design tool's config and the
machine-readable form of DESIGN.md.
The UI guidelines now say Islands Light is the default theme and list the built-in themes,
instead of describing the style as dark.
The Flutter device chooser lists emulators that aren't running (Open iOS Simulator, Open Android Emulator: <name>), from the project's flutter daemon (emulator.getEmulators, asked on connect and whenever the chooser opens; one a device already runs on is left out). Choosing one shows Starting <name>… and selects its device once it connects; a failed launch shows what the tool printed. AVDs are started by ide-android in their own process group so they outlive the daemon and the IDE; the iOS Simulator goes through emulator.launch.
Part of #4096
Co-authored-by: wildcatDownstairs <[email protected]>
The Flutter run configuration gets Dart entrypoint, Build mode (Debug / Profile / Release), Build flavor, Additional run args and Additional attach args next to the pinned Device. Mode and flavor become --profile / --release and --flavor=<name> on flutter run, are read back from existing command lines, and reach debug sessions too; hot reload stays debug-only. Run › Flutter Attach attaches with the selected configuration's entry point and attach args. The JetBrains importer keeps attachArgs as a form field instead of reporting it ignored.
Part of #4096
Co-authored-by: wildcatDownstairs <[email protected]>
pubspec.yaml gets a banner with Pub get, Pub upgrade, Pub outdated and, in Flutter packages, Flutter doctor; each runs flutter pub … (Flutter package) or dart pub … in the package folder, with output in the Run tool window. The banner warns when Pub get is due (no package config or lock, or pubspec.yaml / pubspec.lock newer than the package config); workspace members and untrusted projects get no prompt. Also in Find Action (category Flutter). Paths are matched with either separator.
Part of #4096
Co-authored-by: wildcatDownstairs <[email protected]>
Conversation image thumbnails and the image preview get Copy Image (context menu, and a copy button with feedback in the preview); macOS Control-click opens the menu without opening the preview. Full-resolution PNG is copied: PNG bytes are kept, other formats are converted at their natural size. Desktop windows write the native image clipboard (Windows PNG + BITMAPV5, macOS NSPasteboard PNG, Linux GTK), so remote-project windows copy to the local machine; the browser build starts its ClipboardItem write before awaiting the conversion. Invalid or oversized images are rejected before the clipboard is touched.
Co-authored-by: YannABC <[email protected]>
Dart files show closing labels after a widget's or call's closing bracket at the end of the line (`), // Column`), from the Dart server's dart/textDocument/publishClosingLabels, now requested at initialization. They are inlay hints of a new closingLabel kind, kept per document and server instance, dropped on the next edit until the server publishes again; several labels closing on one line share one hint. Editor › Inlay Hints › Closing labels (on by default) turns them off. Right-click Disable now writes the kind's own setting (it wrote inlay.type instead of inlay.types for type hints).
Part of #4096
Co-authored-by: wildcatDownstairs <[email protected]>
Enables or disables every breakpoint on the caret line, or on each line the selections and carets cover (line, method and field breakpoints), without removing them. In Find Action with no default shortcut; maps IDEA's ToggleBreakpointEnabled for imported keymaps and IdeaVim.
Closes#5763
Co-authored-by: mansur-akhmadi <[email protected]>
The Git Log toolbar gets a Cherry-Pick button next to Refresh that runs the existing vcs.log.cherryPick action. The context menu's can-apply rule (no merge commit, nothing from an external log) moves into canApplyCommits and backs both the action's enabled state and the menu. Hidden in external logs and File History.
Closes#5738
Co-authored-by: wildcatDownstairs <[email protected]>
* feat(agents): roll back files with the conversation to an earlier message
Each turn now keeps a record of the checkout as it started (HEAD, the
changed files' stamps, and copies shared between turns by path and
stamp). Rolling back to a message drops it and the later turns and puts
the files changed since back as they were before it was sent; the
message returns to the composer. Edit, Run Again From Here and
Regenerate Response put the files back the same way before running
again.
The plan is read and checked before anything changes, so a file that
can't be restored leaves the conversation and the files untouched. In
the project's own checkout only files a turn of the task changed are
restored. Tasks saved with only the last turn's record can roll back
files to their last or first message.
* fix(agents): harden turn rollback pre-checks, rename handling and confirmation
- Plan and validate all files before truncating the conversation even when rolling back to turn 0 without a turn record
- Record renamed_from paths in checkout snapshots and apply removals before writes so case-only renames restore cleanly on case-insensitive disks
- Guard rollback against concurrent operations, move file I/O and restamping out of the task lock, and emit Truncated/Task after files and turn records settle
- Scope local-mode turn rewind to the rolled-back turns' recorded changes so user edits to other turns' files stay untouched while committed files in rolled-back turns are reverted
- Use a stable blake3 hash for persisted turn copy names
- Confirm before Run Again From Here and Regenerate Response rewind files on later turns
Generated with [Devin](https://devin.ai)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
---------
Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Copies the subject lines of the selected Git Log commits, one per line, newest first. Reached from Find Action or a keymap shortcut (no menu entry, no default shortcut); maps IDEA's Vcs.CopyCommitSubjectAction.
Closes#5760
Co-authored-by: mansur-akhmadi <[email protected]>
The layout check from #5794 destructured a mapped array, which the e2e tsconfig types as possibly undefined, so pnpm typecheck failed on main. The rectangles are now read one by one.
A case-sensitive or binary collation resolves catalog names only in their declared case; the SQL Server introspection queries named INFORMATION_SCHEMA views and columns in lower case, so every database failed with "Invalid object name 'information_schema.schemata'". They are now upper case, and the system-schema filter matches 'INFORMATION_SCHEMA' as stored.
The foreign key queries read MySQL-only referenced_* columns that SQL Server lacks, so no foreign key ever showed; they now read sys.foreign_keys / sys.foreign_key_columns. A live test runs every query against a Latin1_General_CS_AS database.
Fixes#5772
The library roots panel and its notes share a wrapping flex row; the panel grows from a zero basis, so short notes (Chinese, or a wide dialog) sat beside it and squeezed the roots tree to its toolbar's width. The notes now take a line of their own.
Fixes#5771
On Windows, a Run console stayed in UTF-16LE for the rest of the session once a program wrote a buffer whose tail was NUL bytes: the UTF-16 line it looked like never ended, so later UTF-8 output was decoded as UTF-16LE pairs. UTF-16LE text carries a NUL byte in every ASCII character and line end, so a read without NUL bytes that is valid UTF-8 (4 bytes or more) now ends UTF-16 even mid-line; a shorter read stays UTF-16 since one UTF-16 character can be valid UTF-8 on its own.
Closes#5768
Co-authored-by: aconeshana <[email protected]>
With indent detection on, a detected space indent sets the editor's tab size to the indent width, so Convert Indents to Tabs in a 2-space file wrote a tab per 2 columns. The conversion now measures with the Code Style tab size (the editor's when unset), as IDEA's ConvertIndentsToTabs uses TAB_SIZE. Convert Indents also uses its own user event (input.indent.convert), after which the slot detects indents again like after Reformat Code, so the next Enter follows the converted style.
Closes#5735
Co-authored-by: mansur-akhmadi <[email protected]>
Gutter Run / Debug of JUnit 5 tests in Maven modules now starts OpenIDEA's own JUnit Platform runner (java/junit-runner, built from the in-tree source and embedded by ide-sdk) on the language server's test classpath instead of mvn test, as IDEA runs Maven tests unless build/run actions are delegated to Maven. The runner reports TeamCity service messages to the existing test tree; Debug and Rerun Failed Tests reuse it. The launcher jar of the engine's version comes from the classpath, else from the engine's Maven/Gradle repository folder, else is downloaded once from Maven Central.
The runner JVM gets the module's Surefire configuration like IDEA's MavenJUnitPatcher: argLine (with @{...} late replacement), systemPropertyVariables / systemProperties, environmentVariables, workingDirectory, additionalClasspathElements and classpathDependencyExcludes, read from the cached effective POM (else the module POM); the console lists what was applied.
Settings › Build Tools › Maven › Run tests using: OpenIDEA (default) or Maven (the previous mvn test -Dtest=... path). JUnit 4-only, TestNG and Gradle tests keep their current runners.
Closes#5553
Co-authored-by: wildcatDownstairs <[email protected]>
The agents tool window looked like a separate chat app. A running tool call now shows one spinner (no entrance or pulse animation; shimmer only on summary text without a spinner); tool icons are muted, exit codes show only on failure, and terminal blocks lose their coloured edge. Home starts at the top with a 13px heading, the composer uses the text-field radius, conversation text uses line height 1.4 with tighter turn spacing, and message times are always shown. Badges, tags and the subagent chip are flat text; font sizes and heights use the shared tokens (so compact mode applies), list rows and chips use the tree and toolbar hover colours, Markdown headings stay on the UI type scale, and Compact session is a standard Button.
In a project with several Git roots the Git Log's Repository column was fixed at 100 px, so longer repository names were cut off. While Repository is shown, the first column's left divider (in the header and in the row strips) now resizes it through the same pair-resize path as the other columns; the width is stored in columnWidths.repository (default 100) and Reset Width is in the header's context menu. The column still keeps its place.
Closes#5291
Co-authored-by: audichuang <[email protected]>
Terminal tabs can be dragged from the Terminal tool window into any editor tab strip position, onto an editor pane or the empty editor area, or onto a pane edge to open a split, keeping the running session (PTY, processes, scrollback, focus). Splitting a terminal editor tab opens a fresh shell in the same working directory instead of showing one session in two panes (editor kinds can declare singleton + splitInput).
Co-authored-by: dengliu <[email protected]>
Adds Window › Active Tool Window › Hide Side Tool Windows: hides every tool window on the active (else last active) window's side, un-maximizing that side and moving focus to the editor if it was in one of them. Available from Find Action and the native menu, with no default shortcut. IDEA keymap import and IdeaVim :action also map HideSideWindows and the existing Active Tool Window actions (HideActiveWindow, MaximizeToolWindow, JumpToLastWindow, ResizeToolWindow*).
Closes#5743
Co-authored-by: mansur-akhmadi <[email protected]>
When jdtls has not imported a Maven project (e.g. a parent POM that does not resolve), Java debugging still stopped and stepped, but no frame had a file, so the editor never opened the stopped line. java-debug looks a frame's source up through jdtls and then in sourcePaths, which was never set; java-analyzer's debugger likewise falls back to sourcePaths for sibling modules. Java debug sessions (java-debug and java-analyzer, launch and attach) now pass the project's detected source and test roots as sourcePaths unless the configuration sets its own; jdtls still wins when it finds the source.
Co-authored-by: wildcatDownstairs <[email protected]>
hiddenWindow.test.tsx renders a long conversation twice per test and waits up to 10 s for it, but ran under the default 5 s test timeout, so on a loaded CI runner the test failed before its own wait gave up (Frontend failed on #5723 and #5736 this way). The suite now has a 30 s timeout.
With GTK_IM_MODULE=fcitx, Fcitx's GTK module only gets coordinates inside the window on Wayland, so with several monitors its candidate window opens on the wrong one. GNOME Wayland sessions now drop GTK_IM_MODULE when it names fcitx/fcitx5 and take input through the compositor (Mutter's text-input, served by Fcitx's IBus frontend), which places the candidates at the caret. KDE, other compositors, X11 sessions and an explicit GDK_BACKEND=x11 keep the module.
Fixes#5176
Adds Move Caret to Page Top / Bottom and their With Selection variants: every caret moves to the first / last line fully shown in the editor, keeping its visual column (a line cut by the edge is used only when it is the only one there). Bound to Ctrl+PageUp / Ctrl+PageDown (+Shift) in the IntelliJ Windows keymap and Cmd+PageUp / Cmd+PageDown in the IntelliJ macOS keymap; unbound in the Eclipse and VS Code presets. IDEA keymap import and IdeaVim :action map EditorMoveToPageTop / Bottom (WithSelection).
Closes#5722
Co-authored-by: mansur-akhmadi <[email protected]>
Plugin API 1.16 adds vcs.roots and vcs.repository-at. roots lists the mapped Git worktree roots within or enclosing the project; repository-at returns the innermost mapped worktree for an existing project file or directory (a nested worktree directory names that worktree) with the repository-relative path, branch, commit, upstream, ahead count and credential-stripped remotes, or none outside Git. Both require vcs.read; repository-at also requires a trusted project. Existing project-root VCS calls are unchanged.
Co-authored-by: dengliu <[email protected]>
The tab menu's Close Unmodified Tabs, Close All but Pinned, Close Tabs to the Left / Right and Close All Read-Only Tabs become Window actions on the active tab of the active group, so Find Action lists them, they can take a shortcut, and IDEA keymaps / IdeaVim :action ids (CloseAllUnmodifiedEditors, CloseAllUnpinnedEditors, CloseAllToTheLeft, CloseAllToTheRight, CloseAllReadonly) map to them. Each is enabled exactly when the tab menu item would be. No default shortcuts.
Closes#5719
Co-authored-by: mansur-akhmadi <[email protected]>
The project watcher reported every file below .git/worktrees/<id>/ except locks, so scratch files Git and the IDE write during read-only work (fsmonitor cookies, temporary indexes, reflogs, rebase state) each scheduled another VCS refresh. Linked worktree gitdirs now use the same allowlist as the main .git: HEAD, index, config.worktree, gitdir, commondir, locked, refs/** and the worktree entry itself.
The external metadata watcher only recognised our own status write-backs to .git/index, so a linked worktree's index refreshed VCS after every status run. The check now covers any index file.
With Git's built-in fsmonitor enabled, even read-only git status / git diff create cookie files under .git/worktrees/<id>/fsmonitor--daemon/. The watcher treated everything below .git/worktrees as VCS metadata, so each VCS or agent change-list refresh produced cookies that scheduled another refresh, keeping the CPU busy with no edits. The daemon directory and its IPC socket inside a linked worktree's gitdir are now neither watched nor reported; real worktree metadata (HEAD, index, refs) still refreshes VCS. The main gitdir's fsmonitor--daemon was already ignored.
Co-authored-by: dengliu <[email protected]>
PostgreSQL data sources can choose External TCP tunnel in SSH/SSL when a local program provides access to the database. The IDE starts the foreground helper with the configured arguments ({localPort}, {host}, {port}), shares it across the source's connections and stops it on the last disconnect; Test Connection uses a temporary helper. The driver gets a loopback endpoint, so the route stays driver-independent like SSH forwarding.
The executable and arguments run only after a machine-local approval in the desktop dialog, bound to the reviewed settings, the destination and the executable's path and content; a project file alone never starts a program. The helper gets a cleared environment (plus PATH/HOME-style and credential-free proxy variables), its own session or job object, and each forwarded socket is checked for helper ownership. Verify Full is explained as unavailable on this route.
Fixes#5653
Co-authored-by: principalwater <[email protected]>
A plain-ASCII file reads the same in any ASCII-compatible encoding, so it was always labelled UTF-8 and the first non-ASCII character typed into it was saved as UTF-8 even when the project or global encoding said otherwise. The configured project/global encoding now labels ASCII files too (decoding is unchanged), through one rule (ide_vfs::Fallback / resolve) shared by the editor, closed-file reads, bounded snapshots, search and VCS revisions. The .properties encoding keeps only decoding non-UTF-8 bytes, so an ASCII .properties file stays UTF-8 by default. An .editorconfig charset now applies to existing ASCII files (judged by their bytes, never relabelling UTF-16) on open, external reload and resource reload as well as to empty files.
Refs #4557
Co-authored-by: LittleGuava <[email protected]>
A chevron in each cell toolbar folds the cell to one line (its first non-blank line, or a Markdown heading's text) with its output count; clicking the line unfolds it. Code cells with outputs get Hide Output / Show Output, which folds only the outputs, and the notebook toolbar gets Collapse All Cells / Expand All Cells. Fold state is view state on NotebookSession; the .ipynb file is not modified. The singular output counts use their own catalog keys so they don't collide with the run output pane's "{name} output".
Co-authored-by: Delaruno20 <[email protected]>
The JavaScript and TypeScript colour page gets Interface name, Type alias and Type parameter under Classes. tsserver's interface, type and typeParameter semantic tokens carry their own classes, which fall back to the class name colour until set. JS./TS.INTERFACE, TYPE.ALIAS and TYPE_PARAMETER in an imported .icls now land on these entries instead of Class name.
Refs #5619
Scroll Up and Scroll Down move the editor by one line without moving the caret or touching the selection and history. Bound to Ctrl+Up / Ctrl+Down in the IntelliJ and VS Code Windows keymaps (unbound on macOS, where IDEA removes them) and mapped from IDEA's EditorScrollUp / EditorScrollDown ids.
Fixes#5713
Co-authored-by: mansur-akhmadi <[email protected]>
Find Word at Caret and Find Previous Word at Caret jump to the next or previous occurrence of the selection, or of the identifier around the caret, without opening the find bar: case-sensitive, not whole words, anywhere in the file, and the query becomes the last search so Find Next continues with it. Bound to Ctrl+F3 / Ctrl+Shift+F3 in the IntelliJ Windows keymap and mapped from IDEA's FindWordAtCaret / FindPrevWordAtCaret ids.
Fixes#5711
Co-authored-by: mansur-akhmadi <[email protected]>
A PostgreSQL pooler can reject or silently drop the default_transaction_read_only startup option of a read-only source. The native driver now keeps the pooler's SQLSTATE and message with a hint on what to configure (PgBouncer's track_extra_parameters), checks after login that the default is really on before running the startup script, and after a startup script checks the default again and rejects an open writable transaction. Ordinary connections pay no extra round trips.
Fixes#5686
Co-authored-by: principalwater <+[email protected]>
The local trust check called its Tauri commands with the raw invoke, which rejects with the backend's error object, so reopening a recent project whose folder was deleted showed [object Object]. Both local trust commands now go through callDesktop, which raises an IpcError with the backend's message.
Install in the Language Servers popup or an install notification, for a server the IDE can't install itself, opened Settings › Language Servers on the first language, away from the manual install command. It now opens the page on that tool (languages.servers#<tool>).
A very long line is cut into 500-unit windows around its matches, and each window's UTF-16 text offset was counted from the line start: quadratic in the line length (101 s for a 20 MB line with a frequent term). Each window's offset now adds the UTF-16 length since the previous window's start, falling back to the line start if a window starts earlier. Output is unchanged, checked against the previous windowing on 3,000 random lines; adds an observe-only search_long_line bench.
Co-authored-by: audichuang <[email protected]>
The Tomcat multi-deployment test compared the generated docBase with a path built from mixed separators, so it failed on Windows. Build the expected directory one component at a time and match the full escaped docBase attribute; the file-content check uses the same directory.
Fixes#5699
Co-authored-by: principalwater <[email protected]>
XAML writes hex colors alpha first (#AARRGGBB, #ARGB); in .axaml files the color gutter read them as CSS's #RRGGBBAA and showed the wrong swatch. The swatch, the picker's starting value and the written-back color now use the alpha-first order in Avalonia XAML; other languages keep CSS's order.
.axaml files opened as plain XML. They are now the Avalonia XAML language: XML grammar, highlighting, folding and outline as before, XAML's 4-space indent, Surround With tag, and the axsg-lsp language server (installed by hand as a prerelease dotnet tool; the Language Servers page shows the command and takes a custom path), with LemMinX as the XML fallback. .xaml stays XML.
Fixes#5664
The consoleLongLines perf scenario and the sample console stream await one wheel step, scroll position or output batch per frame on purpose; mark those awaits so no-await-in-loop no longer fails lint on main.
Co-authored-by: audichuang <[email protected]>
Shell scripts ran on pipes with no TTY, so `read` prompts, `[ -t 0 ]` checks and `tput` did not behave as in a shell, and remote SSH runs got no PTY or TERM at all. New Shell Script run configurations and shell scripts run from the editor (by extension or by their #! line) now run in a terminal. A run configuration template still decides the default for new configurations.
Fixes#5624
Show Line Numbers, Show Indent Guides, Show Sticky Lines and Show Whitespaces are now View toggle actions (editor.toggleLineNumbers / toggleIndentGuides / toggleStickyLines / toggleWhitespaces): runnable from Find Action with their ON/OFF state and bindable to a key, writing the same global settings as the gutter's Appearance menu and Settings. IDEA's EditorGutterToggleGlobalLineNumbers / IndentLines / StickyLines map to them. The gutter's Appearance menu gains Show Sticky Lines and builds its items from the same table.
Closes#5703
Co-authored-by: mansur-akhmadi <[email protected]>
Adds IDEA's Convert Indents to Spaces and Convert Indents to Tabs (code.convertIndentsToSpaces / code.convertIndentsToTabs, Edit category, no default shortcut). They rewrite only the leading whitespace of the selected lines, or of the whole file without a selection, measured in columns with the editor's tab size; To Tabs keeps the columns short of the next tab stop as spaces. ConvertIndentsToSpaces / ConvertIndentsToTabs from imported IDEA keymaps and IdeaVim :action now resolve.
Closes#5701
Co-authored-by: mansur-akhmadi <[email protected]>
New Java and Kotlin classes got the wrong package line (and New offered Directory instead of Package) in JVM source roots whose marker the build-file pattern didn't recognise: source sets a Gradle sync reports (marker Gradle, e.g. src/gen) and Eclipse .classpath source folders. The pattern in templates/files/create.ts and project-tree/packages.ts now accepts both markers.
Co-authored-by: audichuang <[email protected]>
In the Chinese UI a branch, repository folder or module named dev or test showed as 开发 / 测试, because Select looks option labels up in the text catalog. The remaining pickers with detected names now mark their options verbatim: the Branches popup's multi-repository headers, the Rebase dialog's branches, Stashes and Apply Patch repositories, the new agent task's project and base branch, Find in Files modules, Execute Gradle/Maven Task projects, the Dependency Analyzer module, and run configuration selects that load their options.
Co-authored-by: audichuang <[email protected]>
Copy, Cut, Delete, Move and drag and drop in the Project view went through topLevelPaths, which compared every selected path with every other one: with 10,000 selected files ⌘C and Delete blocked the UI for about 2-3 s. outermostPaths looks each path's parent folders up in a map of the selected paths instead, once per folder, and returns the same paths in the same order (checked against the pairwise filter on random path sets with mixed separators, drive letters and UNC roots). The Delete dialog's file and folder counts use a set. Adds a projectTreeSelection perf scenario.
Co-authored-by: audichuang <[email protected]>
API 1.16 adds ui.pick-file (host::pick_file in the SDK): during an interactive command or view event a component can choose an existing file or a save destination, with a title, a suggested name and extension filters. It returns an absolute path on the project host, or none when dismissed. It uses the same prompt routing and path validation as pick-directory: the native dialog locally and the project host's chooser in remote windows. Choosing a file grants no capability; the component uses the file through the grants it already has.
The suggested name is reduced to a file name, so the dialog never starts in a directory the plugin names, and filters are capped and clipped like other prompt text. Checked-in plugin components are rebuilt for the WIT change.
Co-authored-by: faysou <[email protected]>
A console now borders the SQL an Execute would submit: the caret's statement, or the selected statements, using the same db_statements split the run makes, so what is shown and what is submitted cannot differ. While a run is in progress its submitted range stays bordered as the caret moves. The selection is never changed.
The border is one box around each statement's text, drawn on an editor layer, in the accent colour with a soft fill (light and dark themes). Typing waits for a 150 ms pause before splitting again; caret moves update at once.
Closes#5524
Co-authored-by: Inf1mum <[email protected]>
Edit › Fill Paragraph (code.fillParagraph, IDEA's FillParagraph) re-wraps the comment or plain-text paragraph at the caret to the hard wrap column: a run of line comments with the same marker, the * lines of a block comment up to a blank line or @tag, or non-blank lines of a plain text file. Code, string literals and read-only editors are left alone. No default shortcut, as in IDEA.
Closes#5680
Co-authored-by: mansur-akhmadi <[email protected]>
The path and JVM-frame patterns in findOutputLinks were unanchored, so on a line without a match they rescanned to the end from every start position: quadratic in the line length. Streaming 1,000 lines of 10 KiB into the Run console took 37.6 s with frames up to 1 s; the Build and Debug consoles share the same detection.
Each matcher now anchors on a fixed delimiter or extension suffix and walks the path back from there, so detection is linear, and the overlap check becomes a cursor. The links found are unchanged (compared with the previous findOutputLinks on 400,000 generated lines). Adds a consoleLongLines perf scenario.
Co-authored-by: audichuang <[email protected]>
debug.removeAllBreakpoints and debug.removeAllBreakpointsInFile (added in #5675) were missing from the keymap presets, so the vim :action ids test failed on main. Both have no default shortcut in IDEA; they are listed with [] in intellij-macos, intellij-windows and vscode-macos.
Co-authored-by: mansur-akhmadi <[email protected]>
When Buildship can't sync a Gradle build (a broken build script, a missing
toolchain, an init script error), jdtls only logs "Synchronize project X failed
due to an error connecting to the Gradle build." below error level. The import
failed silently: every Java file showed unresolved JDK types and nothing in the
UI said why.
That log now raises a "Gradle project sync failed" notification, once per
project and cause, with the deepest "Caused by" of the stack trace as the
reason. A sync that failed on an incompatible JDK is left to jdtls' following
"Can't use Java ... to import Gradle project ..." message, which already has its
own notification with Choose Gradle JVM / Download JDK, so the notification
waits briefly for it instead of showing both.
Refs #5669
Tested: ide-lsp unit tests for the log parsing (real Buildship logs) and a mock-server test for the once-only notification and the incompatible-JDK hand-off; ide-lsp clippy; locale catalog tests.
A .vue file now shows a "Show component usages" Code Vision entry at the top, and
Find Usages on a file in the project tree lists where it is used, not just
nothing.
The file's imports come from tsserver's fileReferences request (sent through
vtsls' typescript.tsserverRequest by the new lsp_file_references command). For a
.vue component, the default import binding at each import is then searched with
textDocument/references, so template tags like <Hello> and calls like
app.component('Hello', Hello) are listed too; the binding's own import line is
not repeated. Safe Delete on a file reuses the same search.
Vue files need vue-language-server installed for tsserver to resolve them.
Fixes#5603
The Deployment tab's "Deploy at the server startup" list now holds any
number of WAR artifacts, WAR files and exploded directories. + adds to
the list instead of replacing the deployment, − removes the selected
one, and the arrows reorder. Application context and context descriptor
edit the selected deployment, and a context path that two deployments
share is flagged.
The first deployment stays in the configuration's own fields, so
existing configurations work unchanged. The others are stored as a list
in `extraDeployments`. On launch, each deployment is exploded into its
own state directory (`deployments/<n>` below the runtime base) and gets
its own `conf/Catalina/localhost/<context>.xml`. A context used twice is
refused. Before launch builds every out-of-date WAR. Update actions
(resources, classes, redeploy) and the post-build class sync cover all
deployments.
Fixes#5607
Code Style › SQL gets a Case tab with Keywords and Identifiers, each To
upper / To lower / Do not change. Reformat Code applies them to every SQL
file and query console, bound to a data source or not. Keywords default to
upper case and identifiers stay as written.
Keywords are the dialect's reserved words, clause, join and predicate words
plus common DDL words, except where they are part of a qualified name
(`t.key`). Identifiers are unquoted names only. Quoted names, bind parameters
(`:name`, `@name`) and ClickHouse names, which are case-sensitive, keep
their case.
Fixes#5605
Projects can show a custom icon instead of the coloured initials: an SVG or
PNG in `.openidea/icon.*` (or IntelliJ's `.idea/icon.*`, with `icon_dark.*`
used in dark themes). Change Project Icon… copies the chosen image there and
Reset Project Icon removes it.
The project context menu in the title bar project widget and on the Welcome
screen now offers Change Project Color…, Change Project Icon… and Reset
Project Icon for open projects as well as recent ones; the colour picker is
a workbench overlay so it opens from any of these places.
Fixes#5613
In a narrow docked session the strip under the composer truncated nearly every item. It now gives way in steps: below 560px the provider shows its icon and the change/commit chips their count; below 420px a local task's branch and the task state (except a usage limit) are left out, keeping the changes and meters. Tooltips and accessible names keep the full text.
Fixes#5614
tsserver's method/member tokens were mapped to the plain function class. Methods now also get an instance- or static-method class, with Identifiers › Instance method and Static method on the JavaScript and TypeScript colour scheme page; unset, they keep the function declaration/call styles so existing themes look the same. JetBrains scheme import maps INSTANCE_MEMBER_FUNCTION and STATIC_MEMBER_FUNCTION to them.
Fixes#5623
Customize Main Toolbar now has Left, Center and Right groups (appearance.mainToolbar.center, empty by default). The Center group is centred on the whole title bar when the other groups leave room, otherwise pushed against the group it would overlap, as IDEA's main toolbar lays it out.
Fixes#5612
A Git Branch widget can now be switched on from the status bar's context menu (off by default). It shows the same branch label and incoming/outgoing markers as the toolbar widget, and a click opens Git Branches anchored above it. The popup state records which widget opened it, so each widget shows its own expanded state.
Fixes#5610
The row-number column scrolled away with the data when a wide result was scrolled sideways. It is now sticky at the left edge (header included) and drawn above the cells passing under it.
Row numbers also select like a row header: ⌘/Ctrl-click adds or removes a row, Shift-click extends the lead range, dragging down the numbers selects whole rows. Copy, Copy Rows, the row context menu and the Aggregates panel use every selected row.
Fixes#5527
The thread-dump tests' helpers in ide-jvm-attach and ide-host use Unix-only APIs, so the Windows test build failed to compile on main. Gate the helpers and the tests that use them to Unix.
Closes#5671
Co-authored-by: principalwater <[email protected]>
Inside the Gradle classpath init script's closures a bare `apply plugin: 'eclipse'` resolves to the init script's own apply. On Gradle 7 the Eclipse plugin then can't get its project services (no IdeArtifactRegistry), applying java fails, and jdtls's Gradle import fails for every Gradle 7 project, leaving all Java files red. The script now calls project.apply; a test keeps bare apply calls out of it.
Fixes#5669
Remove All Breakpoints In The Current File (Debugger.RemoveAllBreakpointsInFile) removes the line breakpoints of the file in the active editor, plus the method breakpoints and field watchpoints whose gutter icon is in that file; other files, name-only method breakpoints and exception breakpoints stay. It is in Find Action with no default shortcut. Imported IDEA keymaps and IdeaVim :action now map Debugger.RemoveAllBreakpoints and Debugger.RemoveAllBreakpointsInFile.
Closes#5674
Co-authored-by: mansur-akhmadi <[email protected]>
The sticky-scroll top scroll margin reserved the caret's enclosing header rows at all times. CodeMirror also treats that margin as covered when placing tooltips, so with the caret inside a method every hover on the first lines of a file (quick documentation, plugin decoration cards) was parked off screen though no sticky rows were showing. The caret's rows are now reserved only while the caret sits above where they would stick, which is when revealing it scrolls them in; otherwise the margin is the rows showing now.
decorations.set-markdown (API 1.16) draws the same line-end labels as decorations.set and shows each item's markdown_hover as a hover card on the label or the decorated text. The card renders through the shared Markdown path (marked + DOMPurify, media and resource attributes stripped), uses the editor's hover styling, can be resized from its edges, and closes on Escape, an outside click, window blur or leaving the window. Set ids, the 10,000-item and 4 MiB limits and clear are shared with set. SDK: host::set_markdown_decorations and MarkdownDecoration, with a decorations fixture plugin.
Co-authored-by: charli117 <[email protected]>
Enables oxlint's no-await-in-loop for src/features/run and src/features/database. Every await that stays sequential there carries the reason: launch tasks and derived tests run in order, debugger roots detach in order before the last one stops the shared process, retry loops classify each failure before the next attempt, credential and trust prompts must not stack, and schema introspection checks cancellation per schema. Tests that press keys and assert in sequence are annotated the same way. No behaviour changes.
Co-authored-by: akbar1214 <[email protected]>
A web custom editor declared with `binary = true` (API 1.16, web page with `layout = "tab"`) opens a file without creating a text document. Its page reads the file's size with `document.size()` and byte ranges of at most 1 MiB with `document.readRange(offset, length)`, so large binary formats such as Parquet can be read piece by piece. The path is always the editor's own file, never one the page supplies, and messages from the page to the plugin's code carry that file as the editor context.
The manifest field is rejected below API 1.16 and only allowed on tab-layout web editors; the docs and the API 1.16 notes list the new bridge methods.
Co-authored-by: faysou <[email protected]>
Independent awaits in the editor now run together, and the awaits that must stay sequential carry an explained no-await-in-loop suppression.
- Implementation and override gutter markers: base resolution, subclass outlines, super-method lookups and per-owner hierarchy walks run in parallel; results are merged in the original order, and outline/hierarchy requests stay deduplicated per pass.
- Inheritance graph and super-method walks resolve all bases of one level together; levels stay sequential.
- Introduce Variable verifies up to 30 occurrences in parallel; format requests for several ranges run together and edits are applied in range order.
- Python abstract members, Python hierarchy outlines, completion sources and embedded-document shutdown run in parallel, keeping declaration/source order.
- Budgeted walks, cancellation checks, ordered marker batches and Safe Delete's per-symbol search stay sequential.
Co-authored-by: akbar1214 <[email protected]>
Clears the no-await-in-loop diagnostics under src/features/vcs. Pending-patch reads of the selected repositories now run in parallel (order kept); Git command sequences, confirmation and retry loops, cancellation checks and ordered UI or store updates stay sequential with narrow documented suppressions. The rule is enabled as an error for the VCS scope, next to evals, perf and smoke.
Co-authored-by: akbar1214 <[email protected]>
Every no-await-in-loop diagnostic in evals/, perf/ and smoke/ is an intentionally sequential loop (measured inputs and frame pacing, shared editor and browser state, chained DAP requests, session and process lifecycle), so each gets a narrow documented suppression, and the rule is enabled as an error for those three directories so new ones are caught.
Co-authored-by: akbar1214 <[email protected]>
Settings › Editor › General › Sticky Lines gains "Show sticky lines for:", a checkbox per language under the maximum line count. The editor stores the unchecked language ids with the line count; an editor of an unchecked language drops the sticky lines extension and its scroll margin, so Find and Go to Line use the full height. Applying the setting reconfigures open editors.
Co-authored-by: faysou <[email protected]>
DEVSENSE PHP Tools (devsense-php-ls) is one more selectable PHP language server in Settings › Languages & Frameworks › Language Servers, after Phoxite; Intelephense stays the default. Its engine is native (only the npm launcher needs Node), and while it serves it replaces laravel-lsp, as it answers the Laravel strings itself. Docs note which features need a DEVSENSE licence. A managed install can follow.
Fixes#5496
Co-authored-by: Inf1mum <[email protected]>
Code › Cycle Identifier Case (Shift+Alt+U in the IntelliJ keymaps; Find Action under camel, snake, kebab, Pascal) converts the identifier at each caret, which stays selected, or each selection to the next style: snake_case → SCREAMING_SNAKE_CASE → kebab-case → camelCase → PascalCase. The current style is read from the text; words split at separators, case changes and the end of an acronym; a single word goes name → Name → NAME, and a style that would write the text the same way is skipped.
Fixes#5615
Co-authored-by: Inf1mum <[email protected]>
In the recent project lists (title bar project popup, Welcome screen, File › Open Recent), Shift+click or Ctrl+click (also ⌘+click on macOS) opens the project in a new window and Alt+click in this one, whatever "Open project in" says; Enter takes the same modifier keys. Local and SSH/WSL projects alike. A plain click or Enter is unchanged, and rows under Open Projects still switch to their window.
Fixes#5598
Co-authored-by: Inf1mum <[email protected]>
Code › Duplicate Entire Lines (EditorDuplicateLines, no default shortcut, as in IDEA) copies every line a caret or selection touches below itself, even when only part of a line is selected, and moves the selection onto the copy. On a folded region's line it copies the folded block, as Duplicate Line or Selection does; that path now maps selections as well as carets onto the copy. Imported IDEA keymaps and IdeaVim :action map EditorDuplicateLines to it.
Fixes#5660
Co-authored-by: mansur-akhmadi <[email protected]>
Copying a .java file kept the type under its old name, so the copy failed to compile, and the default name "Foo copy.java" could never be a type name. A Java source now gets a default copy name its type can take (FooCopy.java, FooCopy2.java), and a copy under a new name renames the top-level type in it: its declaration, constructors and the copy's own references, not strings, comments or same-named members. Applies to Copy (F5) and to copy and paste in the Project view.
Fixes#5647
Build and run using Gradle started the main class on Gradle's own JVM: the openideaRun JavaExec task never set javaLauncher, and before Gradle 9 JavaExec does not default to the project's toolchain. With a toolchain newer than Gradle's JVM the class failed with UnsupportedClassVersionError. On Gradle 6.7+ the task now launches on the project's Java toolchain, as the application plugin's run does; a project without a toolchain still runs on Gradle's JVM.
Fixes#5594
Co-authored-by: Inf1mum <[email protected]>
The shared Git submenu (#5611) dropped Show History for Selection from the editor's context menu. It is back for a right-click in the editor and stays out of the tab and Project view menus. The browser tests now use the shared menu's labels and groups, including keyboard navigation to Get from Version Control….
Co-authored-by: faysou <[email protected]>
Fast scrolling could leave either pane of a Markdown split blank, and large previews were rebuilt on every tab switch.
- The source draws newly visible lines before painting a large scroll jump; the preview follows wrapped lines and table rows, handles trackpad gestures from their first wheel event, and updates its position while the scrollbar thumb is dragged (the Git log's scrollbar, resized as content grows).
- Recent Markdown tabs stay mounted while hidden (text editor wrappers can now opt into keepAlive); the hidden source view is detached as before and the preview is moved off screen on its own layer.
- Edits reuse unchanged equation and Mermaid SVGs, including diagrams with math labels; changing a TeX macro refreshes the equations that use it.
- Long embedded image payloads are folded in the source, and the Markdown parser skips the payload bytes of standalone images.
On a 5.85 MB document in WebKit, first open went from 22.9 s to 3.25 s and returning to the tab from 14.4 s to 0.24 s.
Co-authored-by: faysou <[email protected]>
The sticky-lines top margin used when scrolling the caret into view counted the headers enclosing the caret's source line, including headers a fold had hidden. Inside a folded block in a narrow split the extra rows made CodeMirror treat the visible fold placeholder as clipped and push the folded-code tooltip out of the viewport. The margin now starts from the caret's displayed line block, so outer scopes still count and unfolding restores the full margin.
Co-authored-by: faysou <[email protected]>
An unterminated Java string or char literal (`String s = "abc;`, `char c = 'a;`) is string-coloured up to the closing quote or the end of the line, as the IntelliJ lexer ends such a literal. @lezer/java has no token for it: error recovery leaves the quote as a one-character error node and parses the rest of the line as code. The new scan finds those error nodes, skips escaped quotes, and composes with the contextual-keyword and escape ranges in Java's syntaxRanges; nested spans inside the literal take the string colour. Unterminated text blocks already run to the end of the file and are unchanged.
Co-authored-by: wildcatDownstairs <[email protected]>
Run › Dump Threads (Run tool window toolbar, for running Java applications, JAR applications, Gradle bootRun and Maven run goals) and Debug › Dump Threads (debugger toolbar menu) take a `Thread.print -l` of the JVM and open it in a thread viewer tab of the Run tool window: threads grouped by state with a filter and a toggle to hide JVM-internal threads, the selected thread's stack with navigable frames, deadlocks shown as a banner with the threads marked, and Refresh to take the next dump into the same tab.
- The run's JVM is the deepest HotSpot JVM of the run's process tree; Gradle runs, whose JVM forks under the daemon, are found by a stable -Dopenidea.run.token property instead, skipping Gradle's own JVMs.
- The attach listener is started only for a confirmed HotSpot JVM: the trigger file is private and created exclusively, a foreign socket is refused, and OpenJ9 is never sent SIGQUIT.
- A JVM a debugger holds suspended is dumped only when its listener is already open and the JDK is 17 or later; a debugged run's dump goes through its debug session, and Attach to Process links the session to the run.
- Remote runs, exited programs and JVMs with the attach mechanism disabled report why no dump was taken.
- The Run tool window comes forward when a dump opens, including one taken from the debugger.
Co-authored-by: ntbang0901 <[email protected]>
Russian joins the UI languages in Settings › Appearance & Behavior › System Settings › Language and Region and in the first-launch OS language detection, with the UI keys (Russian plural forms one / few / many / other) and the source-text catalog. Text not yet translated shows in English.
Co-authored-by: flobo3 <[email protected]>
The Debugger settings page names its HotSwap section "HotSwap" in Chinese, as the existing HotSwap notification title is; the catalog test now lists it among the names kept in English, so it passes again on main.
Expanding a run such as "Ran 8 commands" showed its steps in a box capped at 16 rows with its own scrollbar. The run now lays out every step and scrolls with the conversation; a single tool call's output keeps its own 240px scroll area. The run's own follow-the-latest-call scrolling goes with its scroll area; the conversation's follow-to-end covers live runs.
Settings › Build, Execution, Deployment › Debugger › HotSwap › Reload classes after compilation (Ask by default, Always, Never) decides what happens after a successful Build Project, Build Module or Recompile of a Java project while a debug session supports hot code replace: Ask offers "Reload '<file>.java' into the running debug session?", Always reloads at once, Never stays silent. The same setting applies to the language server's build-complete event, and overlapping prompts within two seconds are merged. After a single-file Recompile, classes that compiled cleanly are reloaded even if another file of the module still has errors.
Build completion is published as onBuildCompleted in contributions, and a running Tomcat with an exploded artifact deployment syncs its outputs after such a build (silently while it is debugged).
Co-authored-by: RuyimgByCN <[email protected]>
Build › Recompile '<file>.java' (Shift+Cmd+F9 / Ctrl+Shift+F9, moved from Build Module, which keeps no default shortcut) compiles only the active Java file with javac and streams its output and diagnostics to the Build tool window. The menu, editor, tab and Project view entries name the file and are enabled only for local .java files.
- Maven modules resolve the classpath of the file's scope (compile for main sources, test for test sources) through dependency:build-classpath; the probe is now cancellable.
- Gradle projects get the source set's output, compile classpath, source folders and release from an init script.
- Projects without a build tool compile against their Project Structure roots, outputs and libraries.
- In a workspace the file's member project is used.
- javac gets -g, omits an empty -cp, and uses -source/-target on JDK 8; localized javac error and warning prefixes are parsed.
Co-authored-by: RuyimgByCN <[email protected]>
Search Everywhere drew a result name containing line breaks over the rows below it, since names used white-space: pre in a fixed-height list. Names now stay on one line (line breaks collapse to spaces); code snippets keep white-space: pre for their indentation and tab stops.
The TODO index scans the whole project when it opens and rescans changed files, through the
Find in Files engine. That engine read a file line by line with no limit on a line's length, so a
database dump or bundle without line breaks was read whole into memory (a 2 GB single-line .sql
took the backend to 2.6 GB on every change) and searched in quadratic time, and every other large
file (logs, dumps) was read in full on each scan.
- Background scans (the TODO index, the files a usage search checks, the word candidates of a
reference search) now leave out files over 2,500 KB, the code insight limit that IDEA's TODO and
word indexes use (`idea.max.intellisense.filesize`).
- Every search caps its line buffer at 20 MB, IDEA's content-load limit: a longer line (or file,
in a multi-line search) is not searched further instead of being read whole.
Fixes#5390
The slow-start boot test waited for the workbench's first render with Playwright's 10-second default, while OpenIDEA allows startup 60 seconds, so it failed on CI when Chromium was still loading the workbench. The test now runs with a 60-second timeout and uses it for that wait; it still advances the clock past the startup deadline and checks that the failure screen never appears.
Co-authored-by: faysou <[email protected]>
The Commit tool window, the Commit dialog and the Local Changes tab resolved every file's icon from its name, so Java files showed the generic coffee cup instead of the class, interface, enum, test or Spring icons the Project tree and editor tabs show. Working-tree rows (and non-deleted amend preview rows) now take their icon from the shared file presentation cache; deleted files, added-then-deleted entries and ignored directories keep their file-type or folder icons.
Co-authored-by: RuyimgByCN <[email protected]>
On Linux, middle-clicking a tab could paste the primary selection into the editor that took focus: the shared tab strip closed the tab on mouse-down, so WebKitGTK delivered the release to the newly focused editor, which pasted. Tabs now close on the matching middle-button release, after cancelling its default action, and only when the button is released over the tab it was pressed on. This covers editor, tool window, database result and plugin tabs, which all use the shared strip.
Co-authored-by: ilijapopivanov <[email protected]>
Remote Host could only receive files through deployment mappings. Files and folders can now be dragged into it from the Project view or the desktop file manager, with the destination folder highlighted, and its context menu offers Upload Files… and Upload Folder…. Uploads go into the chosen folder without mappings or exclusion rules, keep each source's name, and ask before replacing files or merging folders.
Replacing a file uploads to a temporary name first and keeps the old file until the new one has its final name. Symbolic links and special files are skipped, transfers can be cancelled, and the affected listings are refreshed afterwards. Desktop drops are refused in Remote Development windows.
Co-authored-by: YannABC <[email protected]>
Generate (Cmd+N / Alt+Insert) in a Python class now also offers Constructor (__init__)… and Property…. The constructor takes the class fields chosen in a member chooser (fields with a value last, keeping it as the default) and is inserted before the first method; classes that get __init__ elsewhere (dataclasses, attrs, enums, named tuples, typed dicts, pydantic models) and classes that already define one get a hint instead. Property… offers class fields and attributes assigned on self, and writes a getter and setter over the private attribute, renaming a public class field to its private name so its value is kept.
Field values are read outside strings and comments, values spanning lines are skipped, and a one-line class body is split before inserting.
Closes#5329
Co-authored-by: wildcatDownstairs <[email protected]>
Python classes had Implement Methods but no Override Methods or Generate. Override Methods (Ctrl+O) now opens a member chooser ("Select Methods to Override", grouped by declaring class) when the language server offers no code action, and Generate (Cmd+N / Alt+Insert) lists Override Methods and Implement Methods in Python editors.
The overridable methods follow the class's C3 linearization: for each name only the first definition in MRO order is offered, so the copied signature matches what super() calls; a @final, overload-only or name-mangled first definition hides the name. Class headers spanning several lines are read up to their closing colon, and inserting into a one-line class body (class C(Base): pass) splits it first. Overrides of one-line, static and non-ASCII methods are generated correctly, and missing imports for annotations are added.
Closes#5328
Co-authored-by: wildcatDownstairs <[email protected]>
PyCharm reports instance methods that never use self (PyMethodMayBeStatic); neither basedpyright nor Ruff's default rules do. The Python parser now reports a method's unused receiver (undecorated, not a dunder, a body that does more than pass, ..., a docstring or one raise, never naming the receiver, super or __class__), and a weak-warning inspection in the Python inheritance checks reports it, except for overrides, methods a subclass overrides, classes with an incompletely indexed hierarchy, and test code.
Alt+Enter offers Make method static. It searches the method's usages with the language server's references and applies only when every call goes through an instance (self.m(...), super().m(...)); otherwise it changes nothing, says how many usages may call it through a class and lists them in Find Usages. Suppressible with # noinspection PyMethodMayBeStatic.
Closes#5333
Co-authored-by: wildcatDownstairs <[email protected]>
ide-host carried eight private copies of the same blocking helper (spawn on the blocking pool, map a JoinError to IdeError::internal, flatten the closure's IdeResult), five private join_err mappers and about 50 inline spawn_blocking(..).await.map_err(join_err) sites. They now share ops::blocking and ops::blocking_value (for work that cannot fail) next to Host::blocking, which keeps spawning on the host's runtime. Error kind, message and runtime handle stay the same at every site; tests pin the value, error pass-through, panic mapping and runtime for each helper.
Co-authored-by: Mr0Bread <[email protected]>
The Tools › Download sources GitHub mirror prefix carried language server, debugger and formatter archives but not plugin packages, which come from the same GitHub release host. Install, Update and Update All now try the mirror first and fall back to the official host; a mirror's failure, including bytes that fail the index digest or publisher signature, is that source's failure. The marketplace index itself is not mirrored, since it carries no signature of its own.
Packages are unpacked into a per-attempt staging folder and every exit except a verified one removes it, so nothing a mirror served stays where the install page reads. The app log records which source was tried, why a mirror failed and which one won. The failed-read test no longer depends on the OS's English wording.
Refs #3295
Co-authored-by: xiaohuiduan <[email protected]>
The Python Packages tool window found a PyPI project only by its exact name, because PyPI has no search API. The first search now downloads PyPI's Simple index (PEP 691 JSON), keeps only the project names in the IDE cache directory, and refreshes them in the background once a day; a failed refresh keeps the old copy.
pypi_search matches names as PyPI normalises them: the exact name first, then names continuing with a separator, then other prefixes, then substrings. 50 results are listed with a note when there are more. The cache is written atomically, the scan honours cancellation, concurrent searches share one download, and an abandoned download stops after 10 seconds without a waiter. With another index configured, search results still wait for "Search PyPI for …".
Closes#5452
Co-authored-by: wildcatDownstairs <[email protected]>
A plugin web view, custom editor or editor panel can list origins in a new frames field (API 1.16). Each origin must be https (or http to a loopback host), name one exact host with no path, and be covered by a net: capability of the manifest, so the install page shows it. Pages under that declaration's directory are served with a frame-src of the declared origins the user granted, and are revalidated instead of cached immutable, so declining or revoking a host takes effect on the next load. Without frames the CSP is unchanged, the plugin page cannot widen it, and the embedded page keeps the frame's sandbox without window.openidea.
Closes#5523
Co-authored-by: Rhombicdodecahedron <[email protected]>
A plugin's completion was asked once when the popup opened; the editor then only filtered that list, so completions built from what is typed could not be offered. A new optional export, completion-list-provider, returns the items with an incomplete flag and is called instead of providers.completion for that plugin. While the user types on in the same word, only the plugins that marked their list incomplete are asked again; the language server's list and the other plugins' items from the first request are kept. A new word, a trigger character or an incomplete server list asks everyone, as before.
API 1.15 shipped with v0.1.51, so this starts API 1.16: wit/ and the SDK copy move to @1.16.0 with ENGINE_VERSION and API_VERSION, and the checked-in components are rebuilt.
Closes#4970
Co-authored-by: Rhombicdodecahedron <[email protected]>
FreeMarker templates (.ftl, .ftlh, .ftlx) opened as plain text. A stream mode, built like the ERB one, keeps HTML highlighting outside the template syntax and colours directives, user directives, comments and interpolations, with strings, numbers, operators, defaults and built-ins inside them. The square-bracket syntax is supported too, and the first directive picks the syntax as FreeMarker does. Toggle Block Comment uses <#-- -->, and the files get their own icon.
Closes#5558
Co-authored-by: wildcatDownstairs <[email protected]>
Two connects to one remote location shared its progress key. When the backend superseded the older one, its cleanup cleared that key, so the newer connect, which the backend did publish, took itself for a cancelled one and never attached: the window showed nothing while the server stayed connected. Each connect now carries its own attempt number and only the latest one updates progress, attaches and cleans up.
Refs #5246
Plain Ctrl+V sent ^V to the shell on every platform, so Windows users had to use Ctrl+Shift+V or the context menu to paste. On Windows it now pastes in terminal tabs and in the embedded Run/Debug consoles, where xterm would otherwise turn the stroke into ^V itself. Linux and macOS keep ^V for the shell.
Fixes#5290
An imported Claude Code or Codex session starts as a task with the session id and no entries. Its first turn loaded the session, but every update replayed during session/load was dropped as history the task already had, and the timeline ignores user_message_chunk, so only messages sent after the import appeared. A task restored without entries now adopts the next load's replay as its history (user messages included), placed before any message that started the turn; later loads drop the replay as before. Importing also loads the session in the background, released when idle, so the history shows right away.
Opening or closing a terminal tab stalled the workbench beside a large rendered document: xterm adds renderer styles per terminal, and mounting or removing them made WebKit restyle the whole document. Each session now renders into its own shadow root with its stylesheet; key routing reads the composed path so shortcuts still reach the terminal input. The first fit runs on the first available frame even when attach and resize notifications arrive together, and opening, splitting, restoring or closing a tab publishes the layout and session state in one change.
Co-authored-by: faysou <[email protected]>
Grabbing a divider beside a large Markdown document changed the cursor on every element (an inherited cursor on the document, or the split group's own cursor rule), restyling the whole preview. A transparent fixed surface now holds the resize cursor during the drag, shared by split panes, docked tool windows and scrollbar drags. Visible and nearby Markdown blocks rewrap live; distant blocks keep their last width (clipped so the preview gains no horizontal overflow) until the drag ends, then reflow with the reading position preserved.
Co-authored-by: faysou <[email protected]>
The all-in-one diff mounted an editor pair for every file, so large changes created hundreds of editors and long frames. Only blocks near the viewport are mounted now (overscan 4; the focused block and, with autosave off, blocks with unsaved staged edits stay mounted), each block keeps its last height, and a remounted block gets back its selections and expanded unchanged lines. Most of a block's mount cost was three themes created per editor (seamlessSelection, movedCodeHighlights, fontExtension), each adding rules and restyling the page; they are now created once per value. Also fixes a stale-response race in gitDiffEntries.
Co-authored-by: audichuang <[email protected]>
Every page re-ran the query and read and dropped all rows before it, and nothing capped a cell, so a page of wide values moved hundreds of MB to the UI. Paging forward now continues the statement's stream on its connection (SQLite, PostgreSQL, MySQL/MariaDB), bounded to one cursor per source and closed when its result tab closes, the source disconnects or a data-changing statement runs (also while a page is being read). Read-only queries cut cells to 8,192 UTF-16 units, marked truncated, and read the whole value when it is expanded, copied, edited or exported; a re-read is accepted only when the row count, uncut cells and each cut cell's length, prefix and hash still match.
Co-authored-by: Mr0Bread <[email protected]>
A running tool's output was resent whole on every flush, so long outputs sent megabytes to the UI. The backend now sends a toolOutput event with only the appended text when the new output starts with everything already sent (checked by the sent length and a hash of the sent text); any replacement or other change goes out as a whole Entry. Agent and thought messages use the same check. PROTOCOL_VERSION is bumped to 4 so an older app refuses a newer server instead of showing stale output.
Co-authored-by: Mr0Bread <[email protected]>
Saving a task serialised the whole transcript while holding its state lock, so readers waited behind every save, and each turn rewrote the file for every status step. A save now copies the task under the lock and serialises and writes it outside it; high-frequency updates go through a coalesced save (one write of the latest state within 250 ms), while every stop the user or the next session depends on (including an answered permission request, before the agent is told) still writes before it returns.
Co-authored-by: Mr0Bread <[email protected]>
Moving the caret onto a line covered by the sticky header rows (vim N/n, search, go to line) scrolled it only to the viewport's top edge. The sticky scroll extension now contributes a top scroll margin equal to the header rows that would stick above the caret's line, capped by the sticky line limit.
A range past the end of the document in ModifiedRanges made ChangeSet.mapPos throw inside onLocal, after the edit reached the backend but before the document was marked dirty, so autosave never wrote a reopened external file. Such ranges are now dropped with a warning. Fixes#5528.
jdtls ran with -Djava.io.tmpdir=<workspace>/.tmp under macOS's Application Support; Buildship writes its Gradle init script there and splits stored arguments at spaces, so every Gradle import failed. When the workspace path has whitespace, jdtls now gets its own folder in the system temporary folder (stable hash of the workspace), still emptied before each start. Fixes#5557.
In Markdown's Editor and Preview layout every wrapped source line reserved room for the inspection toolbar, leaving a wide blank column down the pane. Wrapped lines in the split source now reserve only the scrollbar lane (--cm-overview-width).
Co-authored-by: faysou <[email protected]>
Add to VCS staged every selected repository's files in one call, so a locked index in one repository left the others unstaged. It now stages each repository separately, names the repository in the notification when several are involved, and refreshes once at the end.
Co-authored-by: faysou <[email protected]>
When m2e or Buildship can't configure a module (e.g. a build plugin that doesn't resolve from the mirror), jdtls keeps it out of the Java model and puts the reason on the module's build file. Run and Debug waited 90 s and then said the module was not imported, or reported compile errors with none listed. The launch now reports the errors jdtls put on the build files of the module and its enclosing builds (pom.xml, build.gradle(.kts), settings.gradle(.kts)) without waiting, as ErrorData::JavaBuildProblems. Fixes#5525.
Co-authored-by: wildcatDownstairs <[email protected]>
Running a JUnit test or class from the gutter only compiled when the build skipped tests through skipTests/maven.test.skip in POM properties or .mvn/maven.config: Maven printed 'Tests are skipped' and the Run window showed No tests. Every Maven test selection (gutter, JUnit configurations, package runs, Rerun Failed Tests) goes through withMavenTests, which now also passes -DskipTests=false -Dmaven.test.skip=false; when nothing ran, the console says why it may have been skipped. Fixes#5518.
Co-authored-by: wildcatDownstairs <[email protected]>
The ide-http resolver looked up @name file variables before the environment, so selecting an environment had no effect on a name the .http file also defines. As in the JetBrains HTTP Client (environment variables rank above in-place variables), the order with an environment selected is now private env, public env, $shared, then file variables; without one, file variables still come before $shared. Go to Declaration on {{name}} lists targets in the same order; the guide (en, zh) documents it. Fixes#5530.
Co-authored-by: wildcatDownstairs <[email protected]>
The side-by-side diff showed estimated gutter positions while CodeMirror measured the panes and the divider caught up. Collapsed unchanged rows get their final height immediately, and the panes and divider appear together after the first layout measurement.
Changelist header rows in the Commit tool window were drop targets but not drag sources. A changelist group row is now a drag source carrying all its files, so dropping one list on another moves every file, as in IntelliJ (the drag bean takes every change under the selected node). The drop path is unchanged.
Co-authored-by: muutot <[email protected]>
With Open diff as editor tab off, selecting a file in a commit's changed files opened an editor preview tab and the following double-click opened a second diff window. The selection preview called openDiff() directly; it now follows the same setting as openVcsDiff().
Co-authored-by: Greenker <[email protected]>
The standalone diff window dropped the Commit panel's ordered file list, so Next/Previous Difference and Next/Previous File stopped at the first file. The window keeps the chain (2-way, 3-way and staged diffs), a reopen of an existing diff window applies the requested file, and a request arriving during a close prompt resumes if the close is cancelled. Fixes#5585.
Co-authored-by: jiejie1133 <[email protected]>
The editor, editor tab and project view Git submenus were hand-written copies that had drifted: the tab menu's Commit File… opened an unscoped commit, lacked Add to .gitignore and the GitHub group, and used different wording. One gitMenuItems() generator in workbench/contributions now builds all three, with per-menu context flags; unregistered actions drop out at build time.
Co-authored-by: muutot <[email protected]>
On a busy runner CodeMirror could exhaust its foreground parse budget before reaching the test string, so the line-literal test failed before measuring. The test now prepares the tree through the target line first.
Co-authored-by: faysou <[email protected]>
The split-diff navigation test read the other pane's scroll offset once, while a smooth scroll could still be moving it after the caret was centred. It now polls the offsets with the existing sub-2px tolerance.
Co-authored-by: faysou <[email protected]>
@lezer/java has no escape nodes and jdtls sends no string tokens, so escapes in Java strings, chars and text blocks were plain string colour. java/escapes.ts scans literals like IntelliJ's JavaStringLiteralLexer: valid escapes (including octal, multi-u unicode and the text-block line continuation) use Valid escape sequence, invalid ones the same colour with an error wave. Composed with the contextual keyword ranges in one syntaxRanges hook.
Co-authored-by: wildcatDownstairs <[email protected]>
IntelliJ underlines reassigned locals and parameters; jdtls's token legend has no modifier for it. java/reassigned.ts finds them in the parse tree following ControlFlowUtil.isReassigned (parameters once assigned; locals assigned again, outside exclusive branches, in a loop they're declared outside of, or in switch case groups that fall through) and adds cm-sem-mutable to jdtls's variable/parameter tokens. SemanticToken gains from/doc/tree for hooks that look at the tree.
Co-authored-by: wildcatDownstairs <[email protected]>
jdtls marks nested classes, enums, records and interfaces static, and the generic mapping turned that into cm-sem-static for every token type, so their declarations and references were italic. IntelliJ italicises only static members; Java's tokenClasses now drops cm-sem-static for type tokens.
Co-authored-by: wildcatDownstairs <[email protected]>
Until jdtls returned semantic tokens (startup, slow Maven/Gradle import, jdtls missing), Java field, enum constant and method/constructor declaration names were default text and changed colour later. java/declarations.ts colours them from the Lezer tree as fallbackRanges with the classes jdtls's tokens produce (static from modifiers; interface fields and enum constants static), so jdtls tokens replace them without a colour change. Composed with the contextual keyword syntax ranges from #5544.
Co-authored-by: wildcatDownstairs <[email protected]>
record, sealed, permits, non-sealed, yield and when were plain text and var lost its keyword colour once jdtls answered: jdtls sends the first four as modifier tokens (dropped) and var as a type token. Java semantics now add syntax ranges for the contextual keywords from the Lezer tree (yield/when from the surrounding text) and map modifier/keyword tokens to the keyword class.
Co-authored-by: wildcatDownstairs <[email protected]>
@lezer/java tags PrimitiveType as standard(typeName), so int/long/boolean/... used the built-in colour instead of the keyword colour IntelliJ uses (void already had it). JAVA_TAGS now tags PrimitiveType as keyword; this covers Java files, JSP scriptlets and java code blocks in Markdown.
Co-authored-by: wildcatDownstairs <[email protected]>
openidea-plugin keygen, pack --out and index --out failed with 'No such file or directory' when the output file's folder didn't exist yet. They now create the parent directories first, like new and build already do, and the pack error names the path.
Co-authored-by: Rhombicdodecahedron <[email protected]>
Both .icls readers (the theme converter and Settings > Color Scheme > Import) accepted only bare hex, so schemes like One Dark that write #rrggbb lost most colours. One iclsColor helper now follows IntelliJ's rules (bare, # or 0x prefixes); the settings import still leaves out RRGGBBAA values.
Co-authored-by: Rhombicdodecahedron <[email protected]>
JavaScript files were parsed without the JSX dialect, so JSX tags and attributes in .js/.mjs/.cjs files got parse errors and wrong colours. The JavaScript parser now enables JSX; TypeScript parsing is unchanged.
Co-authored-by: ffgenius <[email protected]>
The bracket matcher only recomputed on document or selection changes, so a closing brace beyond the parsed prefix stayed marked unmatched after background parsing found its opening brace. A patch to @codemirror/language also refreshes the decorations when the syntax tree changes.
Co-authored-by: faysou <[email protected]>
Gutter markers compared only the entry name (block:<fence line>), so after editing a block CodeMirror kept the old run button and its click ran the old commands until the file was reopened. ScriptMarker.eq now compares the whole entry, covering the npm script and launch profile gutters that share it. Part of #5624.
While SELFHOSTED_RUNNERS is true, trusted Linux jobs in ci.yml and language-smoke.yml run on the openidea-selfhosted runners and fall back to ubuntu-latest otherwise. The runner image moves to Ubuntu 24.04, E2E installs Chromium on the runner, and the smoke tests resolve fixtures from the runtime CARGO_MANIFEST_DIR.
Add a docker_volume_sizes command (docker system df -v, Engine API fallback) and show each volume's disk usage in the Volume, Compose project and Container dashboards, refreshed every 30 seconds while the Services tool window is visible.
A prompt that opened with a pasted fenced block was titled from the first line inside the block until the generated title arrived. A line outside the fences now wins; a prompt that is one fenced block is still titled from inside it.
The inheritance inspections matched the open document's classes to the inheritance graph by exact position, and the graph is re-indexed only on save, so a line typed above a class hid the warnings of every class below until the file was saved. The document's classes now pair with the graph's in order while they read the same names, and by position otherwise; same-document methods and members come from the live document.
Reuse the ref-decoration snapshot for log refs and cache branch lists, invalidated by ref storage, HEAD, repository config, shallow state and trust-mode changes.
* feat(agents): reorder the task menu and polish selection and images
- Task menu: Pin, Rename, Mark as Unread/Read; Fork, Group; Archive (⇧⌘E
in the task list), Archive All Below, Delete. Terminal and Open in New
Window leave the menu. Hovering a task row shows Pin and Archive beside
its age.
- Reply text: no stripe under the unselected start of a line when a
selection runs on past it; inline code keeps its side insets inside the
selection. A double or triple click no longer selects into the next
message.
- Images: tool-read images show as same-height thumbnails; the remove
button on attached images stays opaque on hover.
* fix(agents): keep Jump to Latest opaque on hover
* fix(agents): keep task row hover buttons from selecting or opening the task
A path deeper than four folders collapses its middle into an ellipsis whose tooltip is the whole relative path, the same as the last folder's, so React warned about two children with the same key. Segments are now keyed by their position as well.
With preview tabs enabled, selecting a file in the Project view also opens it, so the External Tools test disables preview tabs to keep the Project selection and the active editor on different files. The task-input shortcut test focuses a directory so the task editor stays visible.
Opening Add Python Interpreter in a plain browser started a Hatch discovery request whose cancellation called the desktop command without a bridge, an unhandled rejection. Browser mode now returns an empty result with a no-op cancel.
Windows CI on main failed four tests the earlier clippy error had hidden:
- pipenv naming hashed a Unix path, which Windows joins with a backslash;
the Windows expectation now uses a Windows path.
- the VIRTUAL_ENV assertion joined "member/.override" as one component.
- the diagnostics coalescing tests slept 30 ms for a 16 ms flush, too short
for Windows timers; they wait for the flush with a deadline.
- the patch preview test read automatic mappings while new folders could
still be re-indexing (automatic mappings pause then); it waits for indexing.
- Java parses the string values of Spring Data JPA @Query (JPQL, or SQL with
nativeQuery = true), @Value / @ConditionalOnExpression (SpEL #{...} and
property placeholders ${...}), and the SpEL attributes of @PreAuthorize,
@PostAuthorize, @PreFilter, @PostFilter, @Cacheable, @CachePut, @CacheEvict
- annotations are matched by their imported or qualified class, so other
annotations named Query stay plain strings
- escape sequences stay outside the embedded text and keep the string colours
Co-authored-by: LU XIANGRUI <[email protected]>
Each language job compiled the language_smoke / project_smoke tests and
openidea-server itself, about 4-5 minutes of the same work nine times. A
build job now compiles them once and hands them on as an artifact; the
language jobs only install their tools and run the binaries.
The project file watcher only reports Git metadata in the .git folders it
sees: the project root's and nested repositories'. When the project is a
subfolder of its repository, a linked worktree, a mapped repository
elsewhere, or a submodule (.git/modules/<name>), a commit, checkout or
reset in a terminal wrote nothing the watcher reported, so file statuses
stayed stale until something else triggered a refresh.
Watch HEAD, index, packed-refs and refs/** of those git directories, follow
repository changes, and emit VcsChanged for them (ignoring the IDE's own
index writes).
The user's message was only added to the conversation after the pre-turn checkout was recorded, which can take seconds in a large repository, so pressing Enter appeared to do nothing and the view did not scroll to the new message.
The home composer's taller minimum height overrode the composer rule by selector, so stylesheet load order could reset it to the single-line height once CodeMirror re-rendered. The home view now sets a --composer-min-height variable that the composer rule reads.
Bookmarks and TODO are listed under the stripe's "…" until first opened. The Database
window is on the stripe by default only while the project has data sources. Of the
Flutter DevTools windows only Flutter Inspector has a stripe button; Deep Links,
DevTools and DevTools Extensions wait under "…". A user's own stripe choice still wins.
Closing a remote window (SSH, WSL, Dev Containers) used to end openidea-server --stdio and tear down terminals, runs (running their stop commands), indexing and agent turns. openidea-server --attach now connects through a detached per-project daemon (private 0700 run dir, owner check, flock) that keeps them alive across disconnects; reopening reattaches terminals with bounded scrollback and OSC state, runs and agent turns, and restores remote editor tabs, tool windows and plugin views. The close dialog offers Keep Backend Running / Stop Backend; Stop Remote Backend shuts the daemon down on demand. A disconnected backend with no live work exits after an idle timeout (3 hours by default; presets, custom or Never in Settings › Tools › Remote Development, host override wins). The socket is keyed by project, so a new build replaces an idle backend of another build and reports a busy one; a window taken over by another shows that instead of a dropped connection. Clean documents are released on disconnect while dirty buffers keep the backend alive.
Also: a plugin-owned PTY keeps its exit hook across reattach (reattach only rebinds the forwarding sink), and a recent project clicked again while it is still opening joins that attempt instead of connecting twice (a double click made the second attach take over and fail the first).
Co-authored-by: dengliu <[email protected]>
Detected npm scripts are already in the run configuration list and runnable from the
package.json gutter. Remove the separate npm tool window, its package scan and e2e spec.
The editor context menu Run / Debug on a package.json script line stays.
Helm chart manifests and .tpl helpers keep YAML highlighting with Go template actions and are served by helm-ls (installable from Settings › Language Servers, pinned 0.5.4). Standalone .gotmpl / .tmpl / .go.tmpl files are a Go Template language: template actions highlighted, the Go icon, and gopls. Adds a small chart fixture.
Disconnecting a Docker connection in Services was remembered only in memory, so after a restart opening Services dialled every saved connection again (including SSH ones the user had disconnected). The Disconnect intent is now saved per connection; panel startup and the 10 s poll skip it until Connect clears the flag. Older settings keep connecting automatically.
Smart Type completion is in the VS Code preset and Rearrange Code is listed (no default shortcut) in the IntelliJ and VS Code presets, fixing the keymap and Vim :action tests on main.
dogfood:local builds and installs the local dogfood app (--build-only skips installation); dogfood:all <remote_name> runs it alongside dogfood:remote in parallel with [local]/[remote] prefixed output, validates the SSH configuration before the local build starts, stops the sibling process tree on failure, and runs the remote restart prompt once after both finish. AGENTS.md, mise tasks and the setup docs use the new names.
Co-authored-by: dengliu <[email protected]>
Tailwind color classes (`bg-red-500`, `text-brand-700`, `@apply bg-brand-500` in CSS) and the colors a CSS server knows beyond the built-in literal detector (`hwb()`…) now show swatches in the editor gutter. This was the remaining acceptance criterion of #5154. The editor never asked language servers for `textDocument/documentColor`; it only drew swatches for literals it found itself and for colors that plugins reported.
- Backend (`ide-lsp`): the client advertises `colorProvider`. `document_colors` asks every server that has it and tags each color with its server, then drops the answer if the document version changed in the meantime. `color_presentations` asks that server for `textDocument/colorPresentation`. A presentation without its own `textEdit` replaces the color's range with its label. New commands `lsp_document_colors` / `lsp_color_presentations`; bindings regenerated.
- Frontend (`color-preview`): `lspColors.ts` sits next to the plugin source and shares its swatch and picker flow, now in `providerSwatch.ts`. A server color gets no swatch when the built-in detector already shows a literal at the same range, and two servers reporting the same range (CSS + Tailwind) get one swatch. The gutter follows Settings › Editor › General › Gutter Icons › Color preview, and while that is off the editor sends no requests. Picking a color applies the server's single presentation, or offers a menu when there are several.
- Tailwind only presents arbitrary values (`border-[#16a34a]` → `border-[#2563eb]` / `[rgb(…)]` / `[hsl(…)]`). For palette classes like `bg-red-500` it returns none, as in VS Code. In that case a hint says the color can't be changed with the picker (new string, en + zh).
Co-authored-by: wildcatDownstairs <[email protected]>
The IDE's own Python inspections (Circular inheritance, Inconsistent '@override', Abstract method not implemented, Redundant override) could only be turned off for the whole profile. They now honour PyCharm's `# noinspection <Id>` comment (several ids comma-separated, or `ALL`): directly above a statement it covers that statement, above a `def` / `class` (or its decorators) the whole definition, and among the file's leading comments followed by a blank line the whole file. The parser reports these regions with the Python facts the inspections already read. Alt+Enter on such a problem offers Suppress for statement / function / class, which writes the comment at the definition's indentation or adds the id to a `# noinspection` comment already there.
While testing, the ⌥↵ options row for these problems read "Python builtin:python-abstract-method", and Disable inspection wrote an override for an id that doesn't exist: the checks publish under one producer with their inspection id as the code, and that id was not looked up. It now is.
Ruff and basedpyright problems need nothing new: both servers already offer their own suppress fixes (`# noqa: CODE`, `# pyright: ignore[rule]`), shown in the same menu.
Co-authored-by: wildcatDownstairs <[email protected]>
Ctrl+Shift+Space now runs **Smart Type** completion in Python files (Code › Code Completion › Smart Type, `code.smartTypeCompletion`): the lookup keeps the items whose type fits the caret's expected type, with that type in the right-hand column. basedpyright's completion items carry no type, so the candidates are resolved and their type is read from the documentation's code block.
The expected type comes from the active parameter's annotation (signature help), an annotated assignment `x: T = |`, or the enclosing function's `-> T` for `return |` (also in `async def`). A member access being typed (`x: T = task.|`, `return self.|`) is skipped over to find it. Keywords and comparisons are not taken for an assignment (`else: x = |`, `ok: bool = a <= |`).
An item fits when each member of its type's union fits the expected union:
- types are compared in a canonical form: module prefixes dropped, `typing` aliases lowered, `Optional` / `Union` and spacing read alike (`List[Optional[int]]` is `list[int | None]`);
- numbers are promoted as PEP 484 says: `float` accepts `int`, `complex` accepts both, and `bool` counts as an `int`;
- a class fits as any of its bases, from the project's classes (`Dog` for `Animal`);
Co-authored-by: wildcatDownstairs <[email protected]>
A Python module's type stub (`.pyi`) was invisible from the implementation, and jumping between a declaration and its stub meant finding the other file by hand. Functions, classes and methods that both files declare now get a gutter icon: in the `.py` it opens the stub declaration, in the `.pyi` the implementation. A new `nav_python_stubs` command finds the counterpart and matches declarations by qualified name on the tree-sitter outline of both texts, unsaved edits included. The counterpart is looked for:
- beside the file (`m.py` ↔ `m.pyi`);
- in a PEP 561 stub package beside the package (`pkg/m.py` ↔ `pkg-stubs/m.pyi`), or for a single module (`six.py` ↔ `six-stubs/__init__.pyi`);
- in the stub folder basedpyright reads (`stubPath` from `pyrightconfig.json` or `[tool.basedpyright]` / `[tool.pyright]` in `pyproject.toml`, else `typings/`), by module name. Modules are searched in the project's Python roots and its virtualenv's `site-packages`, so a `typings/requests/api.pyi` pairs with the installed `requests/api.py` both ways.
Navigate › **Stub / Implementation** (Find Action) does the same from the caret, and Related Symbol (⌃⌘↑) lists the counterpart. Markers refresh when a file where the counterpart may be changes, and a counterpart over the large-file limit still opens but gets no markers.
Co-authored-by: wildcatDownstairs <[email protected]>
On an unresolved name in Python, Alt+Enter only offered basedpyright's "Add `# pyright: ignore[...]`" (and an import when one matches). It now also offers PyCharm's **Create function 'foo'** and **Create class 'Foo'** on an undefined name, and **Create method 'bar' in 'Greeter'** on a missing method called on `self`/`cls`. Parameters come from the call site: a keyword keeps its keyword, a plain-name argument keeps its name, others become `param1`, `param2`…, with `*args` / `**kwargs` for starred arguments; positional and starred names are renamed so they never repeat the receiver or a keyword. The function or class goes above the top-level statement that uses it; the method goes at the end of the enclosing class, a `@classmethod` when the calling method is one (none is offered from a `@staticmethod`). The caret lands on the `pass` body.
The server says what is unresolved (`reportUndefinedVariable` / `reportAttributeAccessIssue`, and the equivalent codes of Ruff, ty and pyrefly); the parse tree says where and how it is used. The fixes are local quick fixes, so they also show in the problem hover's quick-fix list.
Co-authored-by: wildcatDownstairs <[email protected]>
Typing `"""` and Enter under a Python `def` always inserted reStructuredText `:param` / `:return:` fields: **Settings › Python › Docstrings** only changed highlighting. The stub now follows that setting (reStructuredText, Epytext, Google, NumPy, or Plain for a summary line only), lists the exceptions the function body raises (`raise X` / `raise X(...)`, nested functions skipped), and also closes a docstring under a `class`. The setting's hint and the Python docs page say so.
Co-authored-by: wildcatDownstairs <[email protected]>
Clears the React-specific violations reported by oxlint's `perf` category: 123 array-index keys, 28 constructed context values and 6 object/array default props. Keys now use a stable data id where one exists, and the index with a short documented suppression where position is the real identity (editable rows, streams, repeated data). Context values are memoized or hoisted, and default literals are module-level constants. Enabling the `perf` category itself is handled separately; this PR only fixes the violations.
Co-authored-by: akbar1214 <[email protected]>
A kept-alive session tab (up to 5, `KEPT_TABS`) painted its whole conversation and never gave any of it back: `Stream` opens at the last `ENTRY_BATCH` (40) entries, then the "following the end" effect (`Stream.tsx`, the `useEffect` on `[start]`) keeps adding batches until the full history is DOM, hidden or not. Five long tabs therefore held every turn as DOM nodes (WebKit keeps layout/style/render-tree memory for all of it).
Now a tab that was left at the end of its conversation and stays hidden for 30 s drops back to its recent tail, and a hidden tab no longer paints more batches. When it is shown again it is at the end as before and re-paints the earlier entries in the background exactly as when it first opened.
Independent of #5462 (hidden tabs stop rendering), #5467 (per-chunk re-render) and the Rust PRs.
Co-authored-by: Mr0Bread <[email protected]>
Switching between Console / Worktrees and Log in the Git tool window stuttered on every click of Log: the log view was unmounted whenever another tab was shown and rebuilt on return. The log now stays mounted (inert and unfocusable) while hidden; switching back takes ~33 ms instead of 70–100 ms.
Dragging a scrollbar thumb across a split divider could show the resize cursor while the page was still scrolling. In a side-by-side Markdown editor, pressing the outside edge of the source thumb could start resizing the pane.
Keep the arrow until the scrollbar drag ends and keep the source thumb clear of the Markdown divider. A transparent surface catches the pointer during the drag, so grabbing the thumb does not change inherited styles across the document.
Co-authored-by: faysou <[email protected]>
In the notebook editor, "Insert Code Cell Below" and "Delete Cell" (and the "Add Code Cell" /
"Add Markdown Cell" buttons) show the generic file icon instead of a plus and a trash can. They
ask for the icons `add` and `delete`, which are not in `src/ui/icons.tsx`; `IconButton` accepts
any string, so the unknown names fall back to `ICONS.file`. They now use `plus` and `trash`.
Co-authored-by: Delaruno20 <[email protected]>
`ide-docker`, `ide-github` and `ide-android` each carried a private copy of the same CLI runner (bounded `run`, cancellable line `stream`, SIGTERM-then-kill, output decoding): 570 lines, ~90% identical. The copies now live once in `ide_core::cli_process`; each crate keeps a ~35-line `process.rs` that binds its tool name and decoding and keeps its old call signatures, so no caller changes. `ide-core` already depended on by all three; no `Cargo.toml` / lockfile change. No behaviour change.
The three genuine differences are explicit parameters (3 knobs): `Decoding` (`ToolOutput` / `Utf8Lossy`), `Input` (`Inline` / `Threaded` stdin) and `CarriageReturn` (`EndsLine` / `Dropped`). The tool name only feeds the error texts. Android's batching loop stays in `ide-android`; it drives the shared `Lines` reader.
### Difference table (old code, before the change)
| Aspect | docker | github | android | Class | Now |
|---|---|---|---|---|---|
| spawn setup (`stdin` null, `stdout`/`stderr` piped, `own_group`, `ide_core::process::prepare`) | same | same | same | identical | shared `configure` |
Co-authored-by: Mr0Bread <[email protected]>
`HostConfig` (9 fields) was written out as a full struct literal in about 100 tests of `ide-host`, almost all of them the same boilerplate, so a new field meant editing ~100 places. This adds one base constructor for tests and migrates every literal that is a plain variant of it. Tests that differ keep struct-update overrides (`HostConfig { sink_for: .., ..HostConfig::for_test(&base) }`). No builder.
- Unit tests (`src/`): `#[cfg(test)] pub(crate) fn HostConfig::for_test(base: &Path)` in `lib.rs`.
- Integration tests (`tests/`): `tests/common/mod.rs` with `host_config(base: &Path)`, pulled in with `mod common;`. It builds the same value as `for_test`.
Both build: `config`, `data`, and `data` again as the machine-local dir (the layout most tests used), `LanguageRegistry::load(None)`, empty syntax, a sink that drops events, identity owner, `Handle::current()`, `project_environment: false`.
Why not one constructor for both: integration tests compile against the crate without `cfg(test)`, so a shared one needs a new `testing` cargo feature plus a dev-dependency on the crate itself (nothing in `ide-host` does that today). Two small definitions need no feature, no `Cargo.toml` change and no public item.
Co-authored-by: Mr0Bread <[email protected]>
`Utf8Decoder` (incremental UTF-8 decoding for byte streams that split code points across reads) existed twice: in `ide-run` ("kept local so the crates stay independent") and in `ide-terminal`. The code was identical. It now lives once in `ide_core::utf8`; both crates already depended on `ide-core`, so there is no new dependency edge and no `Cargo.toml` change. `OutputDecoder`, `MixedDecoder` and `NativeDecoder` (encoding_rs based, ide-run only) stay in `ide-run` and import the shared type.
No behaviour change. The decoder was moved, not rewritten; ide-terminal's file was `git mv`'d to `ide-core/src/utf8.rs`.
Co-authored-by: Mr0Bread <[email protected]>
`ide-agent` carried a private JSONC stripper (`strip_jsonc` + `remove_trailing_commas` in `mcp.rs`) next to `ide_core::jsonc::strip`, which five other crates already use. Both callers in `ide-agent` (`parse_jsonc_value` in `mcp.rs`, the Copilot `config.json` read in `skills.rs`) now call `ide_core::jsonc::strip`, and the private copy is deleted (-94 lines).
To make the swap lossless I changed two small things in `ide_core::jsonc::strip` (these are the only behaviour changes, listed so they are not missed):
1. **Block comments keep their line breaks** (the private copy did; core dropped them). Without this, a JSON parse error in a pasted MCP config would report the wrong line after a multi-line `/* … */`, and `1/*\n*/2` was wrongly accepted as `12`. A comment is now whitespace, as in real JSONC.
2. **A trailing comma is dropped only when separated from `}`/`]` by ASCII whitespace** (core used Unicode `is_whitespace`). The private copy used ASCII whitespace. Inputs with e.g. NBSP before `]` were invalid either way; only the error text differed.
One more effect, only in `skills.rs`: core strips a leading UTF-8 BOM, the private copy did not. `~/.copilot/config.json` with a BOM previously failed to parse and its plugins were silently skipped; now it parses. (`mcp.rs` already stripped the BOM before calling.)
Co-authored-by: Mr0Bread <[email protected]>
Several items only forwarded to another function or re-exported it, so each had an extra name to maintain and hid where the real code lives. This removes them and points every caller at the real definition. No behaviour change.
Removed (each was a pure forward, same arguments, no extra logic):
- `ide_run::which` (a bare `pub use ide_core::process::{executable_names, find_executable, find_executable_in}`): module deleted, 22 callers (ide-run, ide-profiler, ide-sdk, ide-run tests) now call `ide_core::process::…`.
- `ide_run::detect::package_manager(root, _pkg)` (the `_pkg` parameter was unused), `detect::subdirs` (→ `project_roots::children`) and `detect::build_dirs` (→ `project_roots::discover`).
- `ide_build::compile::package_manager` (→ `project_roots::package_manager`).
- `ide_lsp::is_virtual_uri` re-export (`uri.rs` and `lib.rs`). No caller used `ide_lsp::is_virtual_uri`; the one internal use now calls `ide_core::is_virtual_uri`, like every other crate.
Co-authored-by: Mr0Bread <[email protected]>
Some `pub` items existed only to serve tests: they widened public APIs, and four were thin wrappers over the production entry point, so tests ran a different path than production. Each item below was re-checked on current `origin/main` with `lsp` references and `rg -w` across crates, `tests/`, benches, `src-tauri` and docs, then handled by the rule in the last column.
| Item | Users found | Decision |
|---|---|---|
| `LspManager::references` | only `ide-lsp/tests/{mock_server,real_servers}.rs` (38 calls); production uses `references_streaming` | wrapper deleted; tests call `references_streaming(.., true, cancel, None)` (the wrapper's exact body); doc merged |
| `McpServer::start` | in-crate test, `ide-mcp/tests/server.rs`, `ide-host/tests/mcp.rs`; production uses `start_with` | wrapper deleted; callers pass `ServerOptions::default()` (the wrapper's exact body) |
| `ide_mcp::endpoint_url` | in-crate test, `ide-mcp/tests/server.rs` | deleted; callers use `endpoint_url_at(Ipv4Addr::LOCALHOST.into(), ..)` |
Co-authored-by: Mr0Bread <[email protected]>
Packages of the project's interpreter could only be managed in the Settings window, by typing an exact requirement. This adds a **Python Packages** tool window: the installed list with upgrade markers, a PyPI project looked up by its exact name, a version picker, and install / upgrade / uninstall through the same pip / uv path as Settings › Python › Dependencies.
The lookup is a new `pypi_package` command (`https://pypi.org/pypi/<name>/json`, HTTPS only, cancellable). The package list hook moved to `src/platform/pythonPackages.ts` so the settings page and the tool window share it.
Co-authored-by: wildcatDownstairs <[email protected]>
Editor › Code Style › Python has indent, tab character and hard wrap, but Ruff and Black ignored them: without a configuration of their own they always formatted with 4 spaces at 88 columns, whatever the editor used. Now, when no Ruff configuration applies to the file (`ruff.toml`, `.ruff.toml` or `pyproject.toml` with `[tool.ruff]` in its folder or above, the user's Ruff configuration, or the configured Ruff configuration directory), Ruff gets the indentation and line length the editor uses, as `--config line-length / indent-width / format.indent-style`: the file's `.editorconfig` (`indent_size`, `indent_style`, `max_line_length`), then the values set on the page. Black, without `[tool.black]` in its project (found as Black finds it) and without a user configuration where Black would read one, gets the line length as `--line-length` (it has no indentation settings). Values set in neither place are not passed: the global hard wrap (120) is not Ruff's or Black's default (88), so existing projects keep formatting as before. The page says when these values apply.
Also adds Black as a selectable Python formatter (#5340's commits, which this branch was stacked on).
Co-authored-by: wildcatDownstairs <[email protected]>
Opening a project as a new tab (or a new window) kept the full-screen boot
splash over the entire window until the project finished opening, so the title
bar and the window-group tab strip were hidden behind a bare logo + progress
screen. The splash was held for the whole `launch` promise, the opening view
rendered a `bare` title bar without tabs, and a loading tab fell back to the
window title ("OpenIDEA").
Co-authored-by: happut <[email protected]>
Optimize Imports in Python came only from the Ruff language server, which starts only below a Ruff configuration, so in other projects it said "Optimize imports is not available" and the Optimize imports options on save, before commit and in Code Cleanup did nothing. When no server offers `source.organizeImports` for a Python file, the IDE now runs `ruff check --extend-select I --fixable I,F401 --fix --exit-zero` on the unsaved text and offers the result as the organize-imports action, for the editor and for the MCP tools' organize-imports step alike. Imports are sorted; unused ones are removed where the project's Ruff rules check F401 (Ruff's defaults do; an `ignore` or `select` without it keeps them). It reads the project's Ruff settings or the configured Ruff configuration directory. Ruff comes from the file's project environment first (`.venv/bin/ruff`), as the Ruff language server does, then the IDE's copy and `PATH`. Without Ruff the action is disabled with "Install Ruff to optimize imports in Python files". Projects with a Ruff configuration keep using the Ruff server, which only sorts.
The first commit (Ruff from the project environment for Reformat Code too) answers a review comment on #5372, which was merged before it landed there.
Co-authored-by: wildcatDownstairs <[email protected]>
The .NET entry of File › New Project had no way to create a solution or pick the SDK. It now has:
- **Create solution** (on by default) and **Solution name** (defaults to the project name). As in Visual Studio, the folder gets `<Solution>.sln`/`.slnx` at the top and the project in its own subfolder (`dotnet new sln`, then `dotnet sln add`). Unchecked, the layout is the same as before: the project at the top, no solution.
- **SDK version** lists the SDKs from `dotnet --list-sdks`, 8.0 and later, newest first. Older ones are left out because Blazor Web App and the templates' current options need SDK 8. The chosen one is pinned with `dotnet new globaljson --sdk-version … --roll-forward latestFeature`, which runs before `dotnet new <template>`. Without a roll-forward policy, `global.json` defaults to `latestPatch`: the project would then fail to build on a machine with only another feature band of the same .NET version, such as a teammate's or this one after an SDK update. `dotnet new` resolves the SDK through `global.json`, so the template also targets the pinned SDK's framework (10.0.401 gives `net10.0` on a machine whose default SDK is 11). **Automatic** writes no `global.json`.
How it is built: a new `dotnet` SDK kind in `ide-sdk` (detection runs in `sdk_detect`'s `spawn_blocking`), SDK field options that submit the version instead of the home (`version = true`) and leave out SDKs below a `min`, and `if-set` on generator steps (it already existed for arguments), so the pinning step runs only when a version is chosen. The New Project dialog now detects SDKs for any SDK field kind, not only `jdk`.
Edge cases: an empty or invalid solution name marks the field and disables Create. A solution name equal to the project name gives `App/App.slnx` + `App/App/App.csproj`. The generator now requires SDK 8.0 or later through `dotnet --version`, and a version command that exits with an error no longer counts as a version. So a missing `dotnet`, or a runtime-only install (no SDK), shows "dotnet is not installed" with the install hint and disables Create. An SDK 7 default shows that 8.0 or later is needed.
Co-authored-by: wildcatDownstairs <[email protected]>
`HostApi` (`crates/ide-plugin/src/runtime.rs`) had 66 methods with default bodies (`Err(... unavailable on this host)`, `Ok(Vec::new())`, `let _ = (...)`). Its only implementor, `PluginApi`, overrides all of them, so those bodies could never run. They had to be kept in sync with real behaviour and let a forgotten override compile silently. They are now required methods (doc comments kept, signatures unchanged). No behaviour change.
`HostApi::project_of(&self, path)` is the one default that stays: `PluginApi` does not override it and it is live (`wit_host.rs` calls it, and the `project-of` guest fixtures exercise it). `PluginApi`'s own `project_of(window)` belongs to a different trait.
Co-authored-by: Mr0Bread <[email protected]>
`ide_heap::testing` (~430 lines of `.hprof` fixture builders) and `ide_index::bench_support` (`SyntheticIndex`) were `#[doc(hidden)] pub mod`s, so they were compiled into the desktop app and `openidea-server` and were part of the public API of both crates. Only tests and benches use them. They are now behind a `testing` feature (`ide-heap`) and a `bench-support` feature (`ide-index`), plus `cfg(test)` for in-crate tests. This follows what `ide-ssh` already does. `bench-support` is named for what it holds: a bench-only builder, not shared test fixtures.
Co-authored-by: Mr0Bread <[email protected]>
Removes ten `pub` Rust items that nothing references: not in production code, tests, benches, macros, strings, docs or `cfg`-gated code. They only widen public APIs and have to be kept up to date. No user-visible change.
Removed: `ExtensionRegistry::point_ids`, `Project::with_backend`, `diagnostics_store::RecordSinkFactory`, `ide_android::platform_tools_dir`, `ide_db::sql::ORACLE_SYSTEM_SCHEMAS`, `ide_run::go::package_sources`, `ide_build::maven::ALL_PHASES`, and `has_providers` / `has_views` / `has_hover_actions` on the plugin runtime. Two knock-on cleanups: the `PathBuf` import in `go.rs` became unused (removed), and the doc comment of `package_sources` (about Go's own build-file selection and `-find`) moved onto `package_info`, which it also describes.
Co-authored-by: Mr0Bread <[email protected]>
Removes 25 Cargo dependency declarations that no code uses (found by `cargo shear`, each re-checked by hand): 11 unused internal crates in `src-tauri` (all still reach the app through `ide-host`), 12 unused deps in nine `crates/*` manifests, and the `anyhow` and `dashmap` entries in the root `[workspace.dependencies]` that no member uses. This shrinks the manifests and `Cargo.lock` edges. Only `Cargo.toml` files and `Cargo.lock` change; no Rust source is touched.
Removed:
- `ide-analysis`: `tracing`, `tree-sitter`
- `ide-android`: dev-dependency `tempfile` (the empty `[dev-dependencies]` header went with it)
- `ide-coverage`: `tracing`
- `ide-http`: `tracing`
Co-authored-by: Mr0Bread <[email protected]>
"Add Python Interpreter" has a new **Hatch Environment** type. It lists the environments the project defines (`hatch env show --json`, without Hatch's internal `hatch-*` ones), runs `hatch env create <env>` with the chosen base interpreter as `HATCH_PYTHON`, and the result becomes the project interpreter. Hatch keeps an environment that already exists, whatever `HATCH_PYTHON` says. So if it was built on another Python version, nothing is changed and the dialog says so, rather than reporting it as created. The project's Hatch environments are also detected, with their own icon: `default` is listed as `Python 3.13 (Hatch: <project>)` and the others as `Python 3.13 (Hatch: <project>:<env>)`. The `default` one is the project interpreter when none is configured (after a `.venv` or pixi environment in the project, before the mise/asdf pin).
Until now Hatch was only a run wrapper (`hatch run`), and its data directory was not searched, so its environments never appeared. Detection does not start hatch:
- Hatch keeps environments at `<data>/env/virtual/<project name>/<project id>/<env>`, where the id is the first 8 characters of the URL-safe base64 SHA-256 of the project path.
- On Windows and macOS Hatch case-folds the path first (`ß` becomes `ss`); the IDE does the same for the letters a path is likely to hold.
- The project is the nearest folder, the opened one or above, with a `pyproject.toml` or `setup.py`, as for Hatch.
- The data directory is `HATCH_DATA_DIR` or the platform default.
Co-authored-by: wildcatDownstairs <[email protected]>
Settings › Python › Dependencies listed installed packages with their versions only, so finding out what can be upgraded meant running `pip list --outdated` in a terminal. The page now has a **Latest** column: once the installed list is shown, it asks the interpreter's package manager for newer releases in the background (`pip list --outdated --format json`, or `uv pip list --outdated` for uv environments) and marks the packages that can be upgraded.
Asking pip instead of the PyPI JSON API gives the newest release this interpreter can install, from the index pip is configured to use, in one command.
Co-authored-by: wildcatDownstairs <[email protected]>
There was no Rearrange Code for any language. **Rearrange Code** (Code menu, Find Action, IdeaVim's `RearrangeCode`) now orders the methods of every Python class in the file, nested ones included, as one undo step: `__new__` / `__init__` / `__post_init__`, other dunder methods, public, `_protected`, then `__private` methods, each group in its original order. The docstring and class attributes before the first method stay put; a method moves with its decorators and the comment lines directly above it; definitions sharing a name (a property and its setter, `@overload` stubs) move together in their order. Blank lines between methods stay where they were.
A class is left unchanged when moving could change it: other statements among its methods (`alias = method`, a nested class), standalone comments or `# region` / `# fmt: off` markers among them, or a decorator, default value or annotation that names another of its methods (`@_retry`, `@_visit.register`, `cb=_default`). Files with syntax errors are not rearranged.
The order is computed from one tree-sitter parse in `ide-language` (`Syntax::rearranged`); comments come from the syntax tree, so a `#` line inside a string is not taken for one. A language-neutral `doc_rearrange` command returns UTF-16 edits, so other languages can add an arrangement later. Backend errors are reported like formatting errors. There is no settings page yet.
Co-authored-by: wildcatDownstairs <[email protected]>
The Copy button in the top-right corner of a Markdown code block (agent replies) gave no sign that a click did anything: it copied silently and looked the same. After a successful copy it now shows a check in the success colour for two seconds and its label reads "Copied", then goes back to "Copy Code". Reply-level copy already behaves this way (`ReplyActions`).
Co-authored-by: Mr0Bread <[email protected]>
Starting an Agent Task with a pasted Markdown block named the tab "```text". The task title is the first non-empty line of the prompt (`title_of`), which for a pasted block is the opening code fence. The same title also names the worktree branch.
`title_of` now skips lines that open a code fence (``` or ~~~) and uses the first line after them.
Co-authored-by: Mr0Bread <[email protected]>
While an agent streams, the visible session did work proportional to the whole conversation for every chunk: every earlier turn's reply and fold re-rendered, and the Composer re-read every tool output to rebuild the session assets. In a 170-turn conversation (2212 entries) that cost 12 ms per chunk in the stream and 7 ms in the composer; now it is 3 ms and 1 ms. Visible output, folding, turn numbers and reply actions are unchanged.
Root cause: the stream rebuilds its derived data for each chunk, and the props that carry it are new objects each time, so `memo` never held.
- `Entry:agent` (`session/messages.tsx`): `reply` (a fresh `ReplyTurn` from `replyTurns`) and `time` (a fresh `ReplyTimes` from `replyTimes`) for every earlier agent message.
- `TurnFold` (`session/ProcessRows.tsx`, rendered from `session/Stream.tsx`): a fresh `row`, the whole `entries` array, and fresh `children` elements. It was not memoized at all.
- `ProcessRun`: fresh `row` and `thinking` map each chunk.
- `extractSessionAssets` (`sessionAssetsModel.ts`, called from `SessionAssets.tsx`): re-parsed every tool entry's output each time `entries` changed.
Co-authored-by: Mr0Bread <[email protected]>
After start-up, the workbench window loaded the code of every lazy view in the background, one chunk at a time, whether or not the user ever opened it: 122 extra chunks, +2.1 MB of JS and +3.0 MB of JS heap, plus ~300 ms of task time in the main window. `lazyComponent` / `lazyWhen` now take `{ prefetch: true }`, and `prefetchLazyComponents` loads only the components that set it. Everything else loads when it is first rendered, as it always could. Only the main workbench window prefetches (`mountWindowRoot(..., { prefetchLazy: true })`); auxiliary windows never did.
Opted in (what most sessions open early, where a blank first frame would show): Terminal tool window, Agents tool window + task and new-task editors, Commit and Git tool windows, the Settings dialog shell (not its pages), Search Everywhere / Find in Files / Recent files / File structure overlays, the markdown preview editor, the project switcher popup. Left on demand: all database, debugger, plugins, notebook, logcat, remote/deployment, github, python-console, web, build-tools, templates views, all settings pages (they already preload on page reveal via `preloadBuiltinPage`), edit-configurations, merge/compare/local-history editors, Run and Find tool windows (their stripes only appear on use, so the view mounts as it appears).
Co-authored-by: Mr0Bread <[email protected]>
A kept-alive agent session tab (up to 5 per pane) that sits behind another tab kept rendering every streamed chunk like a visible one: the whole conversation re-rendered, the composer re-scanned all tool output (`extractSessionAssets`), and the reply's smooth-text reveal kept running its ~60 Hz `requestAnimationFrame` repaint. Up to 4 hidden tabs paid this on every chunk of a running task.
Now a hidden session stops reading conversation entries from the store (`useAgentsWhileShown` in `SessionEditor.tsx`) and the reveal is not live while hidden (`reveal.ts`). Shown again, it takes the latest entries in one render and paints unseen text whole instead of pacing it in. Visible tabs and docked sessions are unchanged.
```text
chunk -> store.entries
visible tab: TaskSession -> Stream, SessionComposer (as before)
hidden tab: TaskSession keeps the entries it had, nothing re-renders
Co-authored-by: Mr0Bread <[email protected]>
Every cancellable git read (`run_cancellable`, `run_bounded`, saved-credential transport, and GnuPG via `capture_command`) waited for the process to exit by calling `try_wait` and then sleeping a fixed 20 ms. A command that finishes in a few milliseconds therefore cost about 10 ms more on average than the same command through `wait_with_output`, and every git call made while opening or refreshing the Git tool window pays it. The wait now blocks on the output readers' completion (a channel that disconnects when both pipes reach EOF), so it wakes the moment the child closes its pipes, then polls `try_wait` with a 0.1 ms backoff capped at 20 ms for the reaping. Cancellation and output-limit checks still run at least every 20 ms, as before.
Co-authored-by: Mr0Bread <[email protected]>
Settings → Python → All Interpreters gets **Show Paths for Selected Interpreter** (toolbar and context menu). The dialog lists the interpreter's own `sys.path` (queried from the interpreter on a blocking thread, cancellable, with a reload button) and lets you add and remove folders outside the project. Until now there was no way to see `sys.path` or to put such a folder on the import path short of setting `PYTHONPATH` by hand in every run configuration.
Added folders are saved per interpreter in the global settings layer (`languages.python.interpreterPaths`, keyed by the interpreter's executable, like the interpreter list itself), so they apply to every project that uses the interpreter, as in PyCharm. They follow the interpreter that is actually used: basedpyright / Pyright get them as `extraPaths` for the interpreter that server analyses with, and run, debug, tests and the Python Console get them on `PYTHONPATH` for the interpreter the launch names (else the one of the project or workspace member it runs in), so Run and Debug of the same file agree. They are listed under External Libraries unless they are inside or around the project's own folders, which stay editable.
A folder that no longer exists is marked **Missing**, one `PYTHONPATH` cannot hold (not absolute, or with its separator in the name) is marked **Invalid**; neither is passed on. Duplicates and folders already on `sys.path` are not added. Removing an interpreter from the list drops its folders.
Not in this PR: removing the interpreter's own entries (PyCharm's excluded paths); ty, pyrefly, pylsp and notebook kernels don't get the folders. Docker / Compose run targets are not rows of this list, so they have no paths dialog.
Co-authored-by: wildcatDownstairs <[email protected]>
"Add Python Interpreter" has a new **Pipenv Environment** type. It runs `pipenv --python <base>` in the project, which writes a `Pipfile` (importing `requirements.txt` if there is one) when the project has none. With **Install packages from Pipfile** checked, it then runs `pipenv install --dev`. The result becomes the project interpreter. If the project already has a Pipenv environment, it is reused and `--python` is not passed, because pipenv replaces an environment built on another Python without asking. When the versions differ, nothing is changed and the dialog says so. The project's Pipenv environment is also detected: it is listed as `Python 3.13 (Pipenv: <project>)` with the Pipfile icon, and it is the project interpreter when none is configured (after a `.venv` or pixi environment in the project, before the mise/asdf pin).
Until now Pipenv was only a run wrapper (`pipenv run`). Its environments were listed as plain virtualenvs named after their folder (`shop-Kpos5yRM`) and were never tied to their project. Detection does not start pipenv, which takes about a second. It looks for the `Pipfile` the way pipenv does, in the opened folder or one above it, and computes the folder name pipenv gives that project's environment: the folder name, `-`, and 8 characters of the URL-safe base64 SHA-256 of the `Pipfile` path. It looks for that name in `WORKON_HOME`, `~/.virtualenvs` and `$XDG_DATA_HOME/virtualenvs`, after the project's own `.venv`. An environment found elsewhere in the list is labelled as Pipenv's only if its `.project` names a folder with a `Pipfile` and its name matches. `ide-sdk` now depends on `sha2` and `base64`; both were already in `Cargo.lock`.
Co-authored-by: wildcatDownstairs <[email protected]>
After a SNAPSHOT dependency was republished and the project reloaded, navigating into it still showed the old sources: SNAPSHOT file names never change, the cached sources jar was reused as long as it existed, and open library editors kept their text. A sources jar older than its binary jar is now stale and replaced atomically; Maven reload waits for jdtls to finish importing, refreshes stale cached SNAPSHOT sources before reattaching archives, and refreshes open library editors. First-time source downloads still follow the Maven setting.
basedpyright shows inferred types as inlay hints, and each hint carries the `textEdits` that insert it, including the import it needs (`from typing import Any`). The IDE dropped those edits, so an inferred type could not become an annotation. Inlay hints now keep `textEdits` over IPC, and Alt+Enter in Python offers PyCharm's:
- **Add type annotation ': int'** on an unannotated `name = value` assignment in a function or at module level (not in class bodies, where it would turn a dataclass/NamedTuple attribute into a field, nor for `global`/`nonlocal` names);
- **Add return type annotation '-> str'** on a function header;
- **Add type hints for function 'f'** on a function header: the return type plus the types of defaulted parameters (`limit: int = 10`), taken from hover and kept only when they name builtins, which need no import.
Annotations Python evaluates (signatures, module variables) use `X | Y` or `list[X]` only when `requires-python` allows them (3.10 / 3.9) or the file has `from __future__ import annotations`; a local variable's annotation is never evaluated. The intention asks the server for the hints itself, so it works with type hints turned off in Settings; a variable the server shows no hint for falls back to its hover type under the same builtin rule.
Co-authored-by: wildcatDownstairs <[email protected]>
Alt+Enter on a Python `%`-format expression said "No intentions available". It now offers PyCharm's **Convert to f-string literal** and **Replace with str.format() call**; on a `str.format()` call it offers **Convert to f-string literal**. Neither basedpyright nor Ruff offers these (Ruff's UP031/UP032 only report when a project enables pyupgrade rules, and the fix is not a quick fix).
`%` conversions `s r a d i u f e g x o` with flags, widths and precisions map to the equivalent format specs (`%5s` → `{x!s:>5}`, `%-8.3e` → `{x:<8.3e}`); `%d` keeps its truncation as `{int(x)}` unless the value is an int literal or `len()`/`int()`/`ord()` (`%05d` % `len(a)` → `{len(a):05d}`); `%(key)s` works with a dict literal; `%%` and literal braces are escaped, and `\N{NAME}` escapes are kept as they are. `.format()` fields support auto and manual numbering, keywords, `.attr` / `[0]` accessors, `!r` and specs. The conversion is not offered when it could change behaviour or produce invalid code: bytes, `*`/`**` arguments, `%c`, `*` widths, a precision on an integer conversion, nested format specs, a wrong argument count, an argument that would be dropped or evaluated twice, an argument containing the string's quote, a backslash or `#` (f-strings before Python 3.12), or, for `.format()`, a key that is a Python keyword. As in PyCharm, a single `%` operand that is not a tuple literal is taken as one value.
Co-authored-by: wildcatDownstairs <[email protected]>
Follow-up to #4481: hovering a coloured project tab made the custom colour disappear. The hover rule layered the opaque `--bg-hover` surface on top of the tint (`linear-gradient(var(--bg-hover), var(--bg-hover)), var(--tab-tint-mix)`), so while the pointer was over the tab only the plain grey hover surface remained.
The hover rule now mixes the project colour into the hover surface instead, mirroring how the selected rule mixes into `--bg-island`:
```css
.item[data-tinted]:hover {
background: color-mix(in srgb, var(--project-color) 12%, var(--bg-hover));
}
Co-authored-by: happut <[email protected]>
A new project's first terminal can end up with the wrong size. While the shell is starting, the terminal may resize, for example when the font finishes loading. That new size never reaches the shell. Full-screen programs such as vim then draw at the old width and the text looks broken. This fix sends the current size once the shell is ready.
Co-authored-by: zhzhsx <[email protected]>
In an SSH or WSL window, Export Test Results passed a path picked in the desktop's Save dialog to the project host. Project-side pickers (Export Test Results, Save As, patch and Git dialogs, Maven/Gradle linking, scopes, coverage and Java sources, database source files, deployment destinations, tool and plugin paths) now browse the project host, with overwrite confirmation kept; flows whose files belong to the desktop (keymap and color scheme import/export, database and ACP imports, Clone) read and write through the desktop process. Follow-up to #5439.
Interface methods could show no "is implemented" marker: the gutter cached the empty implementation results jdtls gave before the Maven import put the implementations on the classpath, and nothing invalidated them. When jdtls reports the project status after an import (generated sources attached first), the backend now emits an inheritance refresh next to the semantic-token refresh, and the gutter drops its cached markers and asks again. Covers implemented/overridden markers on interfaces, abstract classes and concrete overrides.
Pasting an image into a terminal or a Markdown file, or saving bytes from the UI, sent the data as a JSON array of numbers (3.6x the size), which Tauri and the remote server parse into a serde_json::Value first (~50x the bytes in memory: a 20 MB image took ~2.2 GB peak heap and 640 ms). Binary command arguments (fs_create_file_bytes, term_store_image) now travel as base64 text (IpcBytes): the same 20 MB takes ~112 MB and 32 ms. Native image drops reuse the base64 they already have.
Co-authored-by: Mr0Bread <[email protected]>
A Java launch that delegates to Maven could snapshot a dependency module's target/classes while an external mvn was rewriting it, then reuse that incomplete snapshot on every later launch (NoClassDefFoundError until the cache was cleared). A snapshot is now reused only while the live module outputs still match it (paths, sizes and modification times of the output tree, read from metadata only); output directories that appear after capture also invalidate it.
Co-authored-by: bertyhell <[email protected]>
In a remote (SSH/WSL) window, Generate Request in HTTP Client failed with Permission denied: the scratches folder was resolved on the desktop and its path sent to the remote host. Scratches and generated HTTP requests now live in the data directory of the host that writes them (created on demand, rechecked on later calls), and remote IPC routing is installed before session listeners run.
Co-authored-by: bertyhell <[email protected]>
After one exchange, a new session's empty prompt box showed a horizontal scrollbar and a vertical thumb (visible with always-on scrollbars): the CodeMirror scroller kept a fixed height slightly taller than its content and allowed horizontal overflow. The scroller now sizes to its wrapped text, never scrolls horizontally, and scrolls vertically only past its 280 px limit.
Running or debugging a Java main class of a project attached to the window failed to compile (its Maven dependencies were missing): launch preparation used the primary project's root, build model, settings and cache. Run/Debug/test launches now resolve the owning attached project (innermost root containing the module) and use its build model, Maven reactor, settings, classpath and launch-snapshot cache; older saved configurations resolve the same way.
After expanding Java `fori`, the three occurrences of `i` were all editing selections, so arrow keys moved three carets. The shared snippet engine now selects only the first occurrence of each variable and mirrors edits to the others, for every live template and language and for LSP snippets with repeated placeholders; the Java-specific handling is gone.
Co-authored-by: jiejie1133 <[email protected]>
Clicking a link to a heading in another file (e.g. [§5.2](b.md#52-状态机)) in the Markdown preview opened the file at the top. The destination now opens at the heading, in Preview Only and split mode, also when the file wasn't open yet (the preview scrolls once it has rendered). Markdown file-type aliases are honoured and a later link click wins over a slower earlier one.
Co-authored-by: fun90 <[email protected]>
Lombok-generated members (@SuperBuilder, @Data) put one override/implemented marker per generated method on the annotation line, filling the gutter. Markers of the same kind on a line now collapse into one icon with a combined tooltip; clicking it opens the target chooser (a single target still opens directly). Applies to all four inheritance marker kinds.
Select Opened File could not reveal a class opened from a dependency JAR that used a Maven classifier and was absent from External Libraries. The document knew its exact archive, but the Project view only searches registered archive roots.
External Libraries now adds the exact archive referenced by the active library document, labels it with its Maven coordinate when available, and removes the temporary entry once the build model lists the same archive.
Co-authored-by: kradme <[email protected]>
Copy Path/Reference… built a different submenu per entry point: the project view and the editor caret chooser list the contributed copy items (features/vcs: Path From Repository Root, GitHub Link), while the editor tab menu and the External Libraries menu hand-wrote theirs and silently dropped every contribution. Both hand-written submenus now append the same `copyPath` menu group, so all four entry points agree — and future contributions appear everywhere at once.
Co-authored-by: muutot <[email protected]>
With **Settings › Editor › General › Editor Tabs › Enable preview tab** on, a single click on a file in the Project view now opens it in the preview tab, and the next single click reuses that tab. Before, the click did nothing. The cause was two switches that weren't connected. The Project view checked its own "Enable Preview Tab" view option, which was off by default and only reachable from the view's ⋮ menu. The Settings checkbox was a separate setting, `editor.tabs.previewTab`, which was only read when a preview tab was created.
IntelliJ IDEA documents these as two ways into one setting, so this PR makes them one. The Project view reads `editor.tabs.previewTab` for single click and for Autoscroll to Source. Its ⋮ › Behavior › Enable Preview Tab item and the `project.option.previewTab` action (the id is unchanged) now write that setting. The old view option is removed from the saved Project view options when they load.
What existing users will see:
- Defaults (Settings on, view option off): single click now opens a preview tab. This is the fix. The editor setting already defaulted to on, so users who never changed anything get single-click preview after this change.
- Both on: no change.
- Both off: no change.
Co-authored-by: bertyhell <[email protected]>
In the Project view, copy a keyword, press ⌘F, then ⌘V: the app reported "No files on the clipboard" and the search box stayed empty, instead of pasting the keyword the user had copied to search with.
A tree's speed search is not a text field — its query is built from printable keydowns. So `⌘V` never reached the query: the keymap dispatcher ran `project.paste` on the selected folder, and the paste event that followed bubbled to the Project view's clipboard fallback, which runs the same action again.
The shared `Tree` now claims `⌘V` while a search is active (as it already claims `⌫` since #3226) and takes the clipboard text into its query: pasted text is flattened onto one line and the search jumps to the nearest match. With the search closed, or with a clipboard that holds no text, the view's Paste runs exactly as before.
Every tree with a speed search gets this — the Project view, the Database view, the Services tree and the GitHub changes tree all render `src/ui/Tree.tsx`.
Co-authored-by: aconeshana <[email protected]>
Drag-selecting in a long Find in Files query (or any text field) and moving the pointer past the field's left or right edge didn't scroll the text, so you couldn't select past what's visible. IntelliJ IDEA does scroll. WebKitGTK extends the selection in this case but never scrolls the field to follow it. Arrow keys do scroll. Now, while a drag that started in the field is past one of its edges, the field moves the selection end and the scroll position itself, faster the further out the pointer is. Once the pointer is back inside, WebKit's own selection takes over again. Both `Input` and `SearchField` get this.
Co-authored-by: bertyhell <[email protected]>
The Code Vision row above a declaration (usage count, author) cut off the top or bottom of its text, most visibly for Chinese labels like "10 个用法" / "无用法". The row was a fixed `height: 16px` with `overflow: hidden`, while its text is the editor font size minus 1px. At larger editor fonts, or with CJK fallback fonts that ink below the Latin metrics (Microsoft YaHei, Noto Sans CJK), the glyphs didn't fit.
The row now has `min-height: 16px`, and its items use `line-height: normal`, so the row grows to the ascent and descent of the fonts actually used. At the default font a Latin-only row is still exactly 16px. The line-end hint (Code Vision kinds set to "right") has the same 1em box with `overflow: hidden`. It keeps its size and position but now clips only horizontally.
Co-authored-by: bertyhell <[email protected]>
A Git Log page costs a fixed ~15 ms in a repository with 248 refs (the 100k-commit fixture), even for a one-row page. Every page listed and peeled all refs twice (once for the decorations, once more for the view cache key via `log_refs`), at ~25 µs per ref. The decorations are now cached until `HEAD`, `packed-refs` or a directory under `refs/` changes, and the cache key uses a change counter instead of the full ref map. A warm page no longer reads any ref.
The cost scales with the number of refs, not commits: the audit's 10k/100k fixtures have 50/248 refs, which is why it looked proportional to the commit count. A repository with thousands of remote branches pays correspondingly more.
Co-authored-by: Mr0Bread <[email protected]>
With a User filter on a merge-heavy history, the first page of the Git Log fanned the top merge out into dozens of dashed lanes, and the graph column pushed the commit subjects to the right. It went back to one line only after every match was loaded. The cause: `pruneFilteredEdges` (the #2670 fix) only judges a filtered connection when its target is on the loaded page. With the first 300 rows of the issue's repository, the merge kept 43 connections, 42 of them to rows that weren't loaded yet.
Now, while another kept connection of the commit already leads below the page, a filtered connection to an unloaded target waits until that target loads, and is then judged exactly like before. If no kept connection leads below the page, one filtered connection stays, so a row never looks like the end of its history. This is a heuristic: a connection that turns out to be needed (two unrelated side branches, both below the page) appears once its target loads. The sibling-branch test pins that behaviour. An exact answer on the first page would need the backend projection (`Visibility::parents`) to drop ancestors that another projected parent already reaches. This PR doesn't touch Rust; that could be a follow-up.
Go to Parent now pages until every unpruned connection of the commit is loaded, as it did before, so a merge still offers all its parents.
Co-authored-by: bertyhell <[email protected]>
Closes#4112 (its remaining half: #4347 stopped the terminal sliding sideways while composing, the
candidate window still opened at the far right of pi's input box).
xterm anchors the IME candidate window on its hidden helper textarea, and keeps that textarea on the
terminal cursor — on every render, on `compositionstart` and again on each `compositionupdate`. A
program that paints its own caret leaves the terminal cursor elsewhere: pi asks for a column past the
right edge of its input box (`ESC[21;411H` in a 206-column terminal, which xterm clamps) while it
Co-authored-by: H-TWINKLE <[email protected]>
Claude Code can return an image from a tool call without including a Markdown image in its final reply. OpenIDEA discarded that image while normalizing and saving the tool result, so the conversation showed no preview.
Preserve inline tool images separately from truncated text and show them below the folded work summary. The existing image viewer opens the full preview; expanding the work does not duplicate it, and old conversations without an image field still load.
Co-authored-by: YannABC <[email protected]>
After a compaction the context meter kept the pre-compaction usage until the next request. compact_boundary now sets the usage to post_tokens; without it the driver asks Claude Code (get_context_usage).
Co-authored-by: bertyhell <[email protected]>
The **File mask** menu in Find in Files now lists every language file type present in the project, most common first, after the recently used masks. Before, `refreshProjectMasks` kept only the 5 most common types, so in a project with six (rs, md, json, toml, yml, properties) the least common one, `*.properties`, could not be picked. The menu already scrolls and stays inside the window, so a long list stays usable.
Co-authored-by: bertyhell <[email protected]>
Backspacing through a closing tag such as `</div>` also emptied the opening tag, leaving `<>`. The first Backspace removes `>`. The parser still reads `</div` as the element's close tag, so every later Backspace in the name counted as a rename and was mirrored. Linked tag editing now only pairs two tags that both still end in `>`. A tag missing its `>` is being deleted, so nothing is mirrored into it or out of it. The same applies to an opening tag deleted before its children, in all the HTML-based modes and in JSX/TSX. XML does not use linked tags (`LINKED_TAG_LANGUAGES` in `prefs.ts`).
Co-authored-by: bertyhell <[email protected]>
The New menu had no built-in template for `.svelte` files. Add **Svelte Component** for Vite and Node.js projects, including SvelteKit workspace members. The template accepts SvelteKit filenames such as `+page.svelte`.
Co-authored-by: shohruh-genius <[email protected]>
The Git Log graph-equivalence test compares layouts for eight option combinations, each with five fragment configurations. Running all 40 comparisons in one Vitest case exceeded the five-second timeout on shared Linux runners. Give each option combination its own test for histories with and without refs. Each case still compares the complete layout with the dense reference implementation for all five fragment configurations and the same 2,400 commits.
Co-authored-by: faysou <[email protected]>
The action-search test could time out before reaching its first search assertion when the runner delayed the second Shift press. Open Search Everywhere through the title-bar button for this test, then enter a query and run the matching action. The adjacent shortcut test exercises double Shift directly.
Co-authored-by: faysou <[email protected]>
The Project tree test moves the pointer diagonally toward the New submenu in ten steps. On a busy runner, the time spent delivering input and checking assertions can exceed the menu’s hover delay and close it mid-gesture. Use Playwright’s browser clock to advance 75 ms at each step and check that the submenu stays open through the final 350 ms pause.
Co-authored-by: faysou <[email protected]>
With auxiliary windows open (comparison, diff, etc. that share the project's documents), every backend event was serialised once per window, because `emit_to` serialises its payload on each call. For a large diagnostics event that is 2.3 MB (10k items) or 11.6 MB (50k items) of JSON built again for each window, on the thread that emits the event. `TauriSink` now serialises the event once and sends the same JSON string to each window with `emit_str_to`. The payload is the same `serde_json::to_string(&event)` that `emit_to` produced, so the frontend (`getCurrentWebviewWindow().listen` in `src/platform/ipc.ts`) receives exactly what it did before. Which windows get which events is unchanged.
Co-authored-by: Mr0Bread <[email protected]>
In Restricted Mode, the refresh after a watcher batch (`status_paths`) ignored its paths and answered with the full gitoxide status, which walks the whole tree to report one saved file. In a 100k-file repository that took about 87 ms against about 15 ms for a trusted project. It now runs `git status` with the pathspec, as a trusted project does.
The audit (row S4) blamed the extra `git config --null --list` process. That process is not the cause: the full `status()` never runs it (it runs `gitoxide`), and the old restricted `status_paths` did not run it either. The cause is the early return to the full status in `Repo::status_paths`, left from #3267, when the scoped read was in-process and `git` was not allowed. #3280 moved the scoped read to `git`, with the filter overrides the restricted fallback already used, but the restricted bypass stayed.
Co-authored-by: Mr0Bread <[email protected]>
The Windows Clippy job fails because the test reader `Counted` is compiled on Windows, where its only caller is excluded. The flooding-process test uses `awk` and already requires Unix. Apply the same condition to the reader and its `Read` implementation. The cross-platform queue shutdown test keeps its own reader.
Co-authored-by: faysou <[email protected]>
The per-directory watcher skips the contents of excluded directories. A watch on the parent can still report the directory itself, which macOS did for `node_modules`. The regression test now accepts that event while continuing to reject events for descendants.
Co-authored-by: faysou <[email protected]>
Update the transitive `cookie` dependency from 0.18.2 to 0.18.3. Cargo Deny reports the older release for possible nonce reuse when encrypting private cookies across a fork. The patched crate obtains those nonces from the operating system. [RustSec advisory](https://rustsec.org/advisories/RUSTSEC-2026-0594.html)
Co-authored-by: faysou <[email protected]>
A commit preview or a commit of selected changes can omit a same-size edit made on the same filesystem clock tick as the Git index. Git uses the index timestamp to decide when it must inspect the file contents. The temporary copy now preserves that timestamp so Git detects the edit.
Co-authored-by: faysou <[email protected]>
Show History (and Add to VCS / the ignore actions) took the editor's file when the shortcut ran right after clicking a Project view row: the row publishes its selection on mousedown, but tree focus is a separate DOM event, so projectViewFocus was still false. File actions now use the Project view selection while the tree owns the context (its lead is set and the editor has no focus), the same rule External Tools use (shared projectViewContextLead helper).
Co-authored-by: akshathayadav378-boop <[email protected]>
External Tools expanded $FilePath$ and the other file macros from the editor's file even while the Project view was the user's context. They now take the Project view's selected file while it is the context (no editor focus, not a virtual document); caret macros apply only when the editor shows that same file.
Co-authored-by: bertyhell <[email protected]>
Go to Hash/Branch/Tag reads refs from the repositories it searches (shown log tab, else the filtered ones, else every root) instead of an empty Repository filter, which offered only HEAD.
Move Statement on a case label in Go, JavaScript and Java moves the whole branch (stacked labels through its last line) past the neighbouring branch instead of only the label line.
In the Git Log Branches pane with several repositories, a branch every
repository has is listed once with no repository name. Hovering it now
lists each repository with the branch it tracks there.
The wheel now scrolls only the innermost scrollable container under the
pointer: a run of tool calls from its headers, a tool output from its text,
the conversation elsewhere. A nested container at its edge no longer hands
the rest of the gesture to the conversation, and a gesture stays with the
container it started in.
Opening or closing a section keeps its header where it was. Closing one near
the end leaves temporary room below the conversation that scrolling up or new
content takes back.
The Whole Task / Last Turn switch in the agent Changes pane was a full-width
segmented pill. It now uses the compact Tabs strip that tool window sub-views
use elsewhere.
Unified Diff shows original line numbers in the first column and modified line numbers in the second. Matching rows show both. Removed and inserted rows show the number for their own revision.
Line numbers stay beside the start of their rows when code wraps, and follow scrolling inside a large removed block. Matching rows keep their original numbers when empty lines are ignored. The column order also applies when the editable side is the Git index.
- Align the repository, checkout, branch, name, location and setup fields in one label-and-control grid. Use the standard dialog type size for labels and keep the worktree path preview beneath the Location field.
- Let the `.worktreeinclude` edit action wrap below its checkbox in narrow windows. With setup expanded, the standard dialog is about 118 logical pixels shorter, and the setup field fits without scrolling in a 440 × 520 window.
Limit the inline Find and Replace fields to three visible lines each. Longer text scrolls inside the fields, leaving more of the matched code on screen.
The Compose project dashboard listed only container chips, so resource usage meant opening each container, and the project's named volumes were only findable in the global Volumes group among anonymous hashes. It now shows a per-service table (status, CPU, memory, network and block I/O, PIDs) sampled with bounded concurrency and refreshed every 3 s without overlapping requests while the dashboard is visible (paused when the tool window or app is hidden; the container dashboard's stats use the same live sampling instead of a manual Refresh), plus a Volumes section with the project's named volumes that links to each Volume Overview and back.
Co-authored-by: dengliu <[email protected]>
Docker Compose containers carry their Compose files and service name but had no way back to the source. Jump to Source (F4 / Cmd+Down, context menu, docker.jumpToSource) on a Compose container opens the Compose file at its service declaration and on a Compose project at the services section; the container dashboard's Command row has a button that lands on the service's command value (else entrypoint, across inline values, block scalars and sequences, later override files taking precedence), and the Compose project dashboard lists its Compose files as links. Missing or unreadable files show a notification.
Co-authored-by: dengliu <[email protected]>
Property rows in the Docker dashboards aligned items on their baseline; an inline-block value's baseline is its last line, so a wrapped multi-line command painted its earlier lines upward over the rows above it. Rows now align at start with a minmax(0, 1fr) value column, and container/image commands render as a single-line preview (newline markers, copy button, no auto-ellipsis tooltip via data-no-tooltip) that expands into a bounded scrollable block with Entrypoint and Command arguments shown separately.
Co-authored-by: dengliu <[email protected]>
Find in Files and Replace in Files show up to three lines in each query field. Longer text scrolls within its field. Closer spacing between the search and replacement fields gives matches and the source preview more room in short windows.
Git > Commit… from the Project view ignored the selection. It now passes the selected paths, and the commit interface (modal or not) opens with only the changes at or below them checked: tracked and unversioned files included, conflicts left out, the rest of the working tree still listed.
Co-authored-by: kradme <[email protected]>
When the editor font's glyph box is taller than the line height (e.g. 18px font at 18px line height), Find matches, occurrence highlights, in-place rename spans, matched brackets, search results and plugin range marks painted the full inline box into the rows above and below. They now share a 1lh-capped background (and a 1px-framed variant), as selection marks already were, keeping background-color / outline fallbacks for Safari before 16.4.
Co-authored-by: dengliu <[email protected]>
Every streamed file triggered a Find tool window update that rebuilt the whole result tree and its lookup tables, so a search matching thousands of files grew quadratically and froze the IDE. The session now publishes streamed results at most every 50 ms (the first file still at once), and the tool window builds its tree incrementally: only new files get nodes, merged into the sorted result; a list that is not an extension of the previous one is rebuilt.
Co-authored-by: Mr0Bread <[email protected]>
The Memory Instances tree gives field values room beside long names. The panel title uses the workbench font. Field names and value previews that run out of space use ellipses and show the full text on hover, and the row's Show Referrers button stays in reach.
WebKit skips clearing the selection highlight inside a subtree whose rendering is skipped, so a kept-alive tab (an Agent conversation) hidden with content-visibility kept a stale highlight after switching back. Hiding a kept tab now clears a selection inside it while keeping it rendered (invisibly) for one frame via a shared useSelectionVisibility hook, and the agent stream keeps data-selection independent of visibility so off-screen rows clear too.
Co-authored-by: dengliu <[email protected]>
Typing and Enter in a large TypeScript file got slower with its size. @lezer/common 1.5.6 gives each repeat group the look-ahead in effect where it ends, so groups above an edit stay reusable and an edit no longer re-parses the file up to the caret; decoratorRanges scans only subtrees not already known to hold no decorator; and Enter's one-line string check parses and highlights only the caret's line instead of the whole document.
Co-authored-by: Mr0Bread <[email protected]>
jdtls returns no semantic tokens for files outside any Java project (a failed Maven import) and sends no workspace/semanticTokens/refresh once a later import takes them in, so open editors stayed uncoloured until edited or reopened. On ProjectStatus the IDE now asks open editors to fetch semantic tokens again, after generated Maven sources are attached. Refs #5301.
Co-authored-by: wildcatDownstairs <[email protected]>
With a TypeScript 7 workspace the native server replaced vtsls before the Vue branch could inject @vue/typescript-plugin, so .vue files lost TypeScript support (Go to Declaration on the 'vue' import failed). The native swap now skips vtsls in a Vue project whose Vue language server is installed; typescript-language-server still takes the native route. Closes#4876.
Co-authored-by: qtvbwfn <[email protected]>
The formatter lookup checked the project's node_modules and PATH but never a tool's managed virtualenv, so a Ruff installed from the tools list was reported as not installed by Reformat with Ruff. It now looks there before PATH, which also covers Black and Ruff-based Optimize Imports. Closes#5371.
Co-authored-by: wildcatDownstairs <[email protected]>
Make the Coverage table's Line and Branch columns adjustable. The divider next to Element gives space to the file tree, and the divider between the metrics redistributes space between them. Each column shows the full covered/total count when it has room. Compact columns keep the percentage visible and show the full count on hover.
Drag a divider or focus it and use the arrow keys. Double-click a divider to restore the default widths. The table remembers widths across reloads and fits them to smaller docks.
Project search read a non-UTF-8 file whole and decoded it as one String, and in the comments/strings modes read every file whole to find its comments, even ones far above what the parser takes. Non-UTF-8 files now stream through an incremental decoder (ide_vfs::decode_stream: a detection pass with the same result as decode_text, then 64 KiB chunks), and files too large for the parser are not read for comments at all. Results, binary detection, the match limit and cancellation are unchanged.
Co-authored-by: Mr0Bread <[email protected]>
computeGraph kept its lanes in a dense array indexed by layout number, which grows with the log, and scanned every slot for each row, making each further page of Git Log quadratic in the loaded commits. Lanes are now kept sparsely so a row costs its live lanes, with identical output (checked against a reference implementation), and the graph is laid out again only when an option that shapes it changes.
Co-authored-by: Mr0Bread <[email protected]>
The run and build runners passed every pipe chunk or line to their consumer through an unbounded channel, so a process printing faster than the console drained piled its whole output up in memory (hundreds of MB for a few million lines). Both queues are now bounded (128 x 16 KiB chunks for runs, 64 lines for builds): the reader waits, the pipe fills and the child blocks on its write, as on a terminal. Nothing is dropped, and a reader blocked on a full queue ends once the consumer is gone.
Co-authored-by: Mr0Bread <[email protected]>
planRefresh and dropListings compared every loaded folder with every removed path or ignore-rule root. They now look up each folder and its ancestors in a set (insideAnyOf), with the same semantics as isSameOrInside.
Co-authored-by: Mr0Bread <[email protected]>
Each diagnostics event copied the whole problems map, so a storm of per-file events cost files^2 copies. The store now updates its data in place and publishes a new facade per change, so subscribers still see a new identity exactly when the content changed; the MCP problems report keeps its own copy to diff against, and profiledProblems builds its map without per-file copies.
Co-authored-by: Mr0Bread <[email protected]>
spring_route_sources (walks the project tree), agent_providers (reads the registry and custom agent files), agent_entries (serialises the whole conversation), plugin_secrets and plugin_set_secret (OS keychain) were sync commands that Tauri runs on the main thread. They are now async, all but agent_entries on the blocking pool, and blocking_commands.rs keeps them there.
Co-authored-by: Mr0Bread <[email protected]>
Each folder reloaded for an fs event copied the listings map and notified the store, so the mounted view rebuilt the whole tree model once per folder, and the reads were unbounded. One event now reads its folders at most eight at a time and applies all listings in one store update; a folder dropped while the batch was reading stays dropped.
Co-authored-by: Mr0Bread <[email protected]>
The usages code lens re-asked the language server for every visible declaration on every fsChanged event, even ones carrying only images or logs. It now recounts only when a changed path can be a file a language server analyses (by the language registry and Settings > File Types), and still recounts when in doubt: unloaded languages or paths without an extension.
Co-authored-by: Mr0Bread <[email protected]>
LocalHistory::note_removed compared every snapshot entry with every removed path, stalling the watcher thread (and saves waiting on the history lock) for seconds on large deletions. Entries are now matched by looking up their path and its ancestors in a set of the removed paths.
Co-authored-by: Mr0Bread <[email protected]>
A removed folder arrives with every path below it in one watcher batch; each child that was already gone was looked up as a folder and triggered another full scan of the indexed paths under the write lock, so the cost was removed paths x indexed files. Removed paths that are not indexed files are now collected and everything below them is removed in a single scan.
Co-authored-by: Mr0Bread <[email protected]>
Send to Agent appended an @ mention for every target even when the message already held the same file and lines, leaving duplicate chips and file entries. Mentions already in the message are skipped (a different line range is still its own reference), the draft keeps one file entry per path, and the composer is still shown when nothing new was added. Part of #5296.
Co-authored-by: wildcatDownstairs <[email protected]>
The 500 ms notification timer did not cover a change-list read already running, so slow reads overlapped and an older snapshot could land last. Refreshes for one task now share one active read and one trailing read; results from an old project, a removed task or an evicted cache are dropped, and other tasks refresh independently. Refs #5335.
Co-authored-by: dengliu <[email protected]>
A turn could take the next queued message before its row disappeared, so Send now / Edit / Remove on it failed with "already sent" once per click. The dequeue is now published as soon as the turn takes the message; a stale queue action returns OutOfSync after re-publishing the current queue, which the row ignores, and only the pending row is disabled. A missing task or other failure still shows an error.
Co-authored-by: dengliu <[email protected]>
A flat change-list request with known attribution now diffs only the nested checkouts that own the task's paths (deleted files included), resolves the nested layout once, keeps the final attribution filter, and falls back to the full scan when attribution is unknown. A task with no touched paths reads nothing. Refs #5335.
Co-authored-by: dengliu <[email protected]>
Flat, grouped and last-turn change-list reads now share four slots per agent manager, acquired before taking a blocking worker and held until the Git work ends even if the caller goes away. Mutations and other VCS work are not limited. Refs #5335.
Co-authored-by: dengliu <[email protected]>
project_workspace_members and project_workspace_member_set ran synchronously on the main thread; each attached root's for_project() re-parses both settings layers and validates the merge against Settings, which overflowed the main thread's stack from a WebView2 callback in a debug build on Windows (STATUS_STACK_OVERFLOW on project open). Both now use desktop_body = spawn with thin desktop bodies, and blocking_commands.rs keeps them off the main thread.
Co-authored-by: muutot <[email protected]>
resume, step and step_in_target emitted a synthetic Continued after the DAP reply even when the adapter's next stopped event had already landed (php-debug/Xdebug on fast steps), leaving the Debug window showing running while paused. The reply now ends prior stops and emits Continued under the suspension lock only when a prior stop was ended and no newer stop superseded it; stopped and continued adapter events emit under the same lock so a synthetic Continued can never follow a newer Stopped.
Co-authored-by: wildcatDownstairs <[email protected]>
- Open the resizable text editor from its Git Log filter. It follows the visible Paths or More Filters control as the window narrows.
- Give paths a code-font editing area with soft wrapping. Keep the one-path-per-line hint and apply controls beneath it.
- Enter inserts a newline. The platform's primary modifier with Enter applies the filter, and Escape or clicking outside discards the draft.
Debug tabs were ordered by the backend's increasing session id, so Rerun or a replaced finished tab jumped to the end. Each tab now has a stable local slot that a rerun, a prepared start, a pinned tab's rerun and a browser page inherit; a new session reuses a stopped tab by configuration id, then name, then the selected one. Child sessions are ordered by their root's slot so they stay next to their parent.
Co-authored-by: kradme <[email protected]>
The import_roots helper in maven_external polled the background jdtls Maven re-import for 5s, which a loaded CI runner can exceed. Raise the deadline to 15s.
Co-authored-by: charli117 <[email protected]>
java_sharing_cancels_a_retiring_initialize_before_starting_its_replacement checked old.is_closed() once right after reconfigure() returned, racing the asynchronous close on a loaded runner. Wait for the close before releasing the initialize response; the ordering guarantee still holds because the gate stays shut until then.
Co-authored-by: charli117 <[email protected]>
log_lines_arrive_in_order_as_few_batches slept 80ms and assumed the 30ms flusher had emitted the 1000-line burst by then; on a loaded runner the flusher is starved and the trailing line folds into the burst. Wait until every line of the burst has been flushed before sending the trailing one.
Co-authored-by: charli117 <[email protected]>
- Keep the shape and paging controls above the table and put the full-width slice expression below it, above Close. The grid scrolls between the controls.
- Open at 700 × 500 when there is room. Give short tables the available width, use workbench typography and center the row and column headers.
- Update the title when a slice is submitted and show expression errors below the field.
- Start with equal space for the results tree and source preview. Each orientation restores its saved split and starts at 50/50 when it has no saved split.
- Follow the editor's line height and size the preview gutter for the document's longest line number. Keep the selected line visible when the panel height or line metrics change.
- Align the tab placement and close button selectors in the Appearance form.
- Put the row and overflow choices on separate lines with the overflow options nested under the single-row choice. The two groups retain their own selections and support independent arrow-key navigation.
- Stack each set of closing policy choices below its heading, so the order stays consistent as the window narrows.
- Put the language picker in the Search template header and keep each label next to its template.
- Give both templates 150 px of editing space in a standard window. Tighten the editors on shorter screens and keep the dialog footer accessible.
- Use the configured editor font, size, and line height in both templates.
* ci: add Docker Compose setup for persistent self-hosted Actions runners
* ci: wire Linux Rust CI to hardened self-hosted runners under scripts/
* ci: gate self-hosted runners behind a variable and use the jammy image
- Pin the Ubuntu 22.04 runner image; the untagged-distro image is 20.04 and
cannot install libwebkit2gtk-4.1-dev.
- Route the Linux Rust job to self-hosted runners only while the
SELFHOSTED_RUNNERS repository variable is 'true', so CI keeps working when
no runner is online.
- On self-hosted runners, enable incremental compilation and clear the
persistent target dir once it exceeds 40 GB.
- README: document the variable, passwordless sudo inside the container and
the target dir shared between main and same-repo branches.
---------
Co-authored-by: l0ng-ai <[email protected]>
Edit Macros starts with equal widths for the macro list and recorded steps. The keyboard-resizable divider remembers its position. Rename and Delete sit in the toolbar above the macro list, and the dialog opens with focus on the list. Recorded steps use the UI font and wrap within their pane.
The shared analysis scope picker aligns directory and custom scope controls with their radio choices. At narrow widths each control sits directly below its choice. Controls stay visible when inactive, and switching the radio selection keeps both values.
The Git Log settings layout test read two checkbox positions one after the other while the Settings dialog was still opening, so it failed depending on timing. It now polls both positions together until they match.
The Debug Memory toolbar uses the available space for class search and places the Changed only filter in View Options at the right edge. The button shows when the filter is active. The search field shows a clear button when a query is present.
Maven plugin rows use the plugin prefix as the primary label and show the coordinates in muted text. The coordinates truncate independently in narrow docks and can be read in full from their tooltip.
Settings → Version Control → Log now groups the display and column checkboxes under titled separators. Both groups use the same checkbox alignment, row spacing, and UI font size, so the controls are easier to scan at narrow window widths.
Gradle task rows give the available space beside the icon to the task name. The full description appears in the row tooltip, where assistive technology can also read it.
- Give the line separator picker a standard menu heading. List Windows, Unix and macOS, and classic Mac OS from top to bottom.
- Use the localized platform names and escaped newline sequences in the menu. The status bar still shows the abbreviation and the menu checks the current format.
- Put read and write filters alongside the other actions in Show Usages and in the Find Usages tool window. Both results areas use the space previously occupied by a separate filter row.
- Keep the two buttons together as the popup narrows. The side toolbar can scroll when the tool window is short.
- Put the pin in a pinned editor tab's action slot so the filename has more room. The pin follows the left or right placement and can unpin the tab directly.
- Use the same Unpin action in Hidden Editor Tabs. A modified pinned tab shows its unsaved marker beside the pin.
Multiline run configuration fields now keep the Expand button inside the field. The larger editor opens next to the field so the configuration stays in view. It can be resized, scrolls long arguments horizontally, and applies edits through OK or Ctrl/⌘+Enter.
- Give Search Everywhere's Text results a separate column for the line number. Long filenames truncate within the existing metadata width, leaving the same amount of space for the highlighted code snippet.
- Use tabular digits at the trailing edge and show the full relative path on hover.
- Move the top-level disclosure arrows away from the sidebar edge and reduce each nested level from 20 px to 16 px.
- Keep leaf and expandable labels aligned at the same depth. The third-level result has 4 px more room in the 160 px sidebar shown below.
Git annotation details size themselves to the commit text, so short messages cover less of the editor. Long author details and messages wrap within the available width. The revision and its metadata share the tooltip's UI font, and the full revision remains clickable.
The completion footer keeps its shortcut hint and sorting control on one line. In narrow editor splits the hint shortens first, and hovering reveals its full text. The compact footer takes up less vertical space in the editor.
Add New Configuration keeps the title and search field above a scrollable list. The picker keeps its width while filtering with the standard 16 px icons and shows more types when the window has room. After filtering, Enter opens the configuration type highlighted in the list, including types under a group heading.
The source preview in Find in Files and Replace in Files keeps the filename prominent and leaves the end of its containing path visible. The middle of a long directory shortens to fit, and hovering over the caption reveals the full project-relative path.
The Build tree shortens long directory hints first so there is room for the filename and diagnostic counts. The build duration uses smaller, tabular text at the trailing edge. Hovering over a file row reveals its full path.
Notification balloons reserve space for Dismiss in the title row. The body and action rows extend underneath it, giving paths and action labels more room to wrap in narrow windows. The cards use the standard UI text size and spacing.
The three-way staging diff displays the filename in the index heading. When a version has a different path, its heading shows that filename too. The headings use the standard workbench text size, and hovering over a filename heading reveals its full path.
The Commit staging tree gives group headings more weight so the staged, unstaged, and unversioned sections are easy to scan. The inline Stage or Unstage action appears on the current selected row and on hover, so a multi-selection shows which row the inline action applies to.
Git Log commit details now show branches and tags in separate groups. Reference names use the same size as the surrounding metadata, and each group wraps within the details pane.
Size the floating terminal find bar to its controls. Keep the match count beside the previous and next buttons, and move the controls below the query in narrow docks so the full first row is available for typing.
Use the standard bold UI font for compact debugger value hints. Put the variable icon and expand control beside the summary so wrapped values align with their first line. Size the hint to the available editor width, including when a dock reduces the space or the window is resized.
Show before-launch tasks as compact tags numbered in execution order. Tags wrap within the configuration form, and each task has a remove button and a menu for moving it up or down. Shell commands stay editable in place.
Place commit message history just above the editor and use the same font settings as the draft. Show the beginning of the body in each row so messages with the same subject are distinguishable. Keep seven rows visible when space allows and scroll through the rest.
Give commit check results their own scroll area. The status icon and retry action stay in place, and the results fit the space above the commit buttons. Use the standard 13 px UI type and a 4 px gap between results.
The Amend chooser sizes to its contents within the window, up to about 520 px. Long subjects get more room and the full text on hover. The latest commit row gives its action label more weight and leaves the subject in secondary text. The list still shows five rows before scrolling.
Commit Options gives the author and date fields a shared label column when there is room. A narrow options pane puts the labels above the controls and moves the clear button below the date when needed. In the 650 px desktop window, the author input grew from 104 px to 157 px, and the date input grew from 133 px to 157 px. The native date control can still clip part of the time display at that width.
The Git Log commit chooser now gives its results the full dialog width and sizes the list to the number of candidates. Previously the list could be clipped inside a fixed-height area. Each row separates the subject from the hash, author and timestamp. The search field keeps keyboard focus while the arrow keys move the selection.
Project tree Rename places the name prompt directly above the input and keeps the two search options together below it. The options share one row when they fit and wrap at the dialog width. This gives the name and any validation message a clear place in the form.
Run and Debug menus keep the end of a long configuration name visible beside the shortcut. When the label runs out of room, the menu truncates the middle so names with the same prefix remain distinguishable. Hovering still shows the full name.
The editor Find bar and the Find and Replace in Files dialog now share one history menu. The menu can grow up to 200 px wider than its field, within the window, and the text uses the space previously reserved for icons. The heading stays visible as the list scrolls. Multi-line entries show a line-break marker and restore the original text when selected.
Replace All puts the affected count above separate, scrollable values for the search text and replacement. Both values stay available in full, and an empty replacement is labeled explicitly. The Replace in Files popup and the Find tool window use the same confirmation.
The Scopes dialog in Find in Files keeps its list scrollable beside the Name and Pattern fields. At narrow widths the editor moves below the list, giving the pattern more room. Long names show an ellipsis and a tooltip, and the selected scope stays visible when a row is added.
The image viewer groups the image and zoom controls at the start of a compact toolbar. Its dimensions, file size, and zoom appear at the other end in the standard UI text size. In narrow splits the details wrap onto another row, leaving the SVG Open as Text action readable on one line.
The editor color picker uses a shorter color field and a tighter control row. Numeric inputs use the UI text size, recent colors wrap with consistent spacing, and the action buttons stay visible when the popup has to scroll.
The local changes review shows the filename first and uses smaller, muted text for its parent folder. This keeps filenames visible when directories are long. The warning and change preservation hint sit together above the file list. Force Checkout sits on the left, with Smart Checkout and cancellation on the right.
Right-click **More Tool Windows** (`…`) and choose **Move to Right** or **Move to Left**. The workbench previously placed this button on the left unconditionally. It now starts on the left, remembers your choice across restarts, and opens the list toward the editor from either edge.
The test results export dialog puts HTML and XML on separate rows and gives the file name and folder separate fields. The file name is selected on open, so it can be replaced without retyping the directory. Pasting a full path and choosing a destination with Browse still work.
The gutter breakpoint popup puts the file and line in a fixed header and keeps the action buttons visible while the fields scroll. The popup gives the condition and hit-count fields more room. Long filenames shorten in the header while the line number stays visible. The same popup layout covers method breakpoints and field watchpoints.
The shortcut recorder puts the action name and its category in the dialog body and uses a full-width first field. The optional second stroke stays beside its checkbox. Conflicting actions use two-line rows that keep the action name, category and binding readable in a narrow window.
external_maven_link_persists_reloads_and_unlink_keeps_files failed on the macOS runner: setting languages.java.maven.linkedProjects refreshes the language server's import roots on a blocking task, and the test read them right after build_model returned. It now waits up to 5 s for them to change.
The two Language smoke workflow tests compute the repo-wide import closure and crate tree. On a CI runner running the whole suite they took longer than vitest's default 5 s and failed the Frontend job on main.
Co-authored-by: charli117 <[email protected]>
url 2.5.8 overflows the stack in Url::origin() on nested blob: URLs (RUSTSEC-2026-0592), which failed Cargo deny on main. 2.5.9 fixes it; form_urlencoded moves to 1.2.3 with it. The rest of the lockfile stays as on main.
Co-authored-by: charli117 <[email protected]>
The Git Log path chooser now uses a compact, resizable dialog with a framed file tree. Files and folders have icons and use the standard workbench text size. Long names shorten inside their rows and show the full name on hover. The tree and the checked paths list scroll independently, keeping both reachable in a short window.
The Variables pane now keeps Add to Watches and the history arrow at the trailing edge of the evaluation field. The field uses the configured editor font family at up to the workbench text size, and its short placeholder fits narrow docks. The history menu matches the field width and uses the existing Evaluate history for single-line expressions.
src/editor/api.ts re-exported disambiguateTitles, which brought src/editor/core/model/tabTitles.ts into what the frontend language smoke loads without it being in that workflow's paths, so scripts/smoke-paths.test.ts failed on main. The Show Usages popup now imports it from its module, as EditorArea does.
Improve OpenIDEA's Git workflows across commit and staging, branch and remote operations, merge and rebase, Git Log and signing, worktrees, stash and shelf, patch application, and clone settings. Adds a one-click stash for tracked changes across Git roots and lets users open a worktree branch's associated GitHub review from its context menu. Cloning now includes submodules by default (Settings › Version Control › Git, can be turned off).
Repository entry points added here run in each repository's execution scope, so they use the project's own git executable.
Editor line numbers use a font 1 px smaller than the code and a more compact column. The gutter grows with the editor font and with longer line numbers. Sticky Lines uses the same number metrics, and a breakpoint sits at the trailing edge of the number column at the full editor font size.
Selecting new text in an agent conversation left the previous selection highlighted on messages that had been scrolled out of view, so it looked like several selections at once while copying only the new one. Rows that were laid out once skip rendering off screen (`content-visibility: auto`), and WebKit doesn't clear the selection highlight of skipped rows. While the conversation holds a selection, every row now renders (`data-selection` on the stream), until the frame after the selection is cleared, when WebKit applies the change; then off-screen rows skip rendering again.
Find Usages now uses the result tree's font for both line numbers and snippets. Line numbers start at the same indent and take only the width of their digits, with a 4 px gap before the snippet. This brings short line numbers closer to their code and gives the snippet more room on narrow panes.
Rename… (db.rename, Shift+F6) did nothing on a database or schema node: canRename accepted only tables, columns, views and PostgreSQL indexes, and database nodes map to no schema object.
Databases of a server that creates them (PostgreSQL, SQL Server) now rename with ALTER DATABASE after the IDE closes its sessions on them; the connected database and read-only sources keep Rename disabled, as Drop does. Schemas rename with ALTER SCHEMA on PostgreSQL and Snowflake. Both use the rename dialog with its SQL preview and refresh the tree.
Fixes#5205
A new npm tool window on the right lists the scripts of every package.json in the project (root, workspace members, detected module roots and any other package.json the index knows outside node_modules), grouped by package. Double-click runs a script; the context menu offers Run / Debug through the same path as the package.json gutter, reusing a matching run configuration or creating a temporary one. The window appears only while the project has scripts and refreshes when a package.json changes or indexing finishes. The editor context menu on a package.json script line also offers Run / Debug for that script.
Co-authored-by: lifeir <[email protected]>
Search Everywhere reserves room for action names alongside shortcuts and categories. Shortcut text is smaller and semibold. Very long key sequences and categories can shorten with an ellipsis, and hovering shows their full text.
Settings › Version Control › Git › Path to Git executable can be set per project, but the value lived in one process-wide variable that each trusted window overwrote before running git. Two windows running git at once could start a command of one project with the other's executable, and a relative value then resolved inside the wrong repository.
Each project's repositories now carry its executable on the same per-thread scope that already carries their trust. Work that opens repositories of its own (agent worktrees and snapshots, gh pull requests, plugin repository access, Create Git Repository…) runs with the project's value. The process-wide value is only the global settings' one, used for git without a project (clone, init without a project).
Co-authored-by: ntbang0901 <[email protected]>
Long Git Log filter values now end in an ellipsis, with the full value available on hover. A tighter width in compact commit panes keeps the active filter and its clear button visible at more window sizes.
CSS, SCSS and Less files get Stylelint diagnostics from the Stylelint language server, installed on demand like the other tools. A project's Stylelint config is picked up as is, a Fix Stylelint Problems action applies the server's fixes, and the built-in CSS diagnostics step aside for rules Stylelint covers.
Closes#5156
Co-authored-by: wildcatDownstairs <[email protected]>
Alt+Enter on a throw statement or a catch parameter offers to create, enable or disable a Java exception breakpoint for that exception type. The type is resolved by the new openidea.java.exceptionType command in the java-usages bundle (1.17.0), and intention providers can now be asynchronous.
Co-authored-by: ntbang0901 <[email protected]>
Keep a debugger variable's icon, name and equals sign anchored when Set Value opens. The input fits the tree row, and an error uses a limited share of the value area so the field remains usable in a narrow pane.
Keep the shortcut hint beside Open in Find Window and keep Replace All beside the current selection action when the popup wraps. A separator and a smaller keyboard hint give the footer its own visual hierarchy. The popup handles its advertised shortcut when either search field has focus.
Expanded output has a collapse control beside its row in the Run console gutter. It stays at the left edge while long output scrolls horizontally. A fold at the start of the buffer keeps its control after expansion, and activating a focused fold control leaves process input alone.
Give Git Log commit subjects room beside long reference labels. Compact References View keeps labels within about a third of the available text column, with the full reference on hover. References in the log use the small UI font and the layout works on either side of the subject.
Same-name editor tabs show the distinguishing directory before the filename. In a narrow split, the directory gives up space first and the filename stays intact when it fits. The Hidden Tabs picker uses the same path label.
Keep elapsed time beside the test counts in the Run window at the same text size. The summary keeps its Running label when the first test has started and no results have arrived yet. A thin line below the summary shows the current state alongside the icon and counts.
Keep debugger values readable beside long runtime types. The row reserves space for a value preview based on its length, so short values leave more room for names. A truncated type can still be read on hover, and the full type appears when the pane has room.
Separate the filename from its directory in workspace refactoring previews. This gives same-named files distinct locations and frees space for rename targets and occurrence counts. Hovering a file or a rename target shows its full path.
Add a muted directory caption beside each filename that appears in more than one file in Show Usages. Identical filenames, line numbers and snippets can otherwise make two results indistinguishable until selected. The popup uses the same directory labels as editor tabs, including a longer suffix when directory names repeat at different depths.
Give the selected commit's subject a stronger weight and separate it from the body in the Push dialog. The preview uses the editor's font settings for the message and compact text for the revision, author and date, matching the message hierarchy in Git Log.
Keep the configuration name and project-file checkbox visible above the scrolling options in Run/Debug Configurations. Long forms previously scrolled these controls out of view, so editing the name or changing where a configuration is saved meant returning to the top.
Recent Locations now shows the filename once, with a symbol breadcrumb or its parent directory beside it. Directory captions distinguish entries with the same filename, and hovering over a caption reveals the full project-relative path.
Separate quick fixes from other actions in the Intentions popup with a divider. The divider is skipped during keyboard navigation and disappears when filtering leaves a single group. The popup keeps the chosen action selected when more results arrive from the language server.
Keep filenames visible in side-by-side revision headings. Long directories elide before the filename, and the title tooltip shows the complete path and revision. Revision paths use the standard 13 px UI text size.
Keep Rerun and Stop together and give narrow Run docks more room for output. When the toolbar gets narrow, Scroll to End and Soft-Wrap move into More Actions and keep their checked states. The same menu opens the current run configuration, and a wider panel shows the console toggles on the toolbar.
Give line numbers their own space at the right edge of Find in Files and Replace in Files results. Long file labels can still fit with an ellipsis, and hovering reveals the full relative path. Consecutive hits in the same file use quieter filename text so the line numbers are easier to scan.
Group a line breakpoint's logging controls under Actions in the Breakpoints dialog and gutter popup. The dialog includes Remove once hit in the same group. The gutter popup uses the standard 13 px text size for the condition and hit count labels.
Add to .gitignore, Add to .git/info/exclude and Show History for File took the active editor's file even when the shortcut was pressed in the Project view. Like Add to VCS they now take the Project view's selection while it has focus and the open file otherwise.
Pressing Add to VCS (Option+Cmd+A) with a folder selected in the Project view reported "Nothing to add" instead of staging the unversioned files in it: the action resolved its targets from the active editor's file only. While the Project view has focus it now takes the Project view's selection; from the editor it still adds the open file.
Co-authored-by: aevioni <[email protected]>
Gradle's Eclipse model, which jdtls imports a Gradle build through, leaves out project dependencies a source set only compiles against (compileOnly / testCompileOnly(project(":a"))), so their classes showed as unresolved although Gradle compiled them. jdtls's Gradle import now runs an init script that adds every project on the main and test compile classpaths, keeping test-only ones marked as test code.
On macOS, Buildship stores a build's arguments joined by spaces and splits them again, and jdtls passes its own init scripts from its configuration area under Application Support, so every import that set a Gradle JDK, user home or argument failed ("The specified initialization script '.../Application' does not exist"). A jdtls install under a path with spaces now gets a configuration area in the user's cache directory, and our init script goes to the first directory without spaces.
Fixes#5090
The custom swatch of Settings > Appearance > Accent color now opens the editor's colour picker (opaque: RGB and HEX fields, recent colours, eyedropper where available) instead of a native colour input and hex field. The new value is staged and saved with Settings Apply.
The picker moves from the color-preview feature to src/ui so both features use the same component.
Co-authored-by: laot7490 <[email protected]>
Settings > Editor > Color Scheme > Diff & Merge now previews the colours in a three-pane merge view (left / result / right) painted with the same CodeMirror diff decorations as a real merge, including a folded unchanged fragment with the wave separator. Clicking a coloured line selects its attribute.
The preview is a mergeSchemePreview editor kind registered from the VCS settings pages, so it also works in the standalone Settings window, which never activates the workbench diff viewer, and the settings feature does not import the VCS feature.
Co-authored-by: muutot <[email protected]>
Adds Biome as a language server (lint diagnostics and code actions) and as a formatter for CSS, GraphQL, JavaScript, TypeScript (and JSX), JSON and JSONC, with a Languages & Frameworks > Biome settings page (path, provider, run on save, enabled languages).
Biome formats instead of Prettier and oxfmt below a biome.json / biome.jsonc or a Biome installation, unless the nearest configuration sets formatter.enabled to false, in which case Prettier keeps formatting. Resolved conflicts with the Tailwind CSS language server: both servers are listed in the language definitions, registry tests and docs.
Co-authored-by: wildcatDownstairs <[email protected]>
Typeset equations with MathJax before painting the Markdown preview.
Load MathJax on demand, preserve accessible MathML, and fall back
to KaTeX for unsupported equations.
Runs @tailwindcss/language-server next to the language's own servers for HTML, CSS, JS/JSX, TS/TSX, Vue, Svelte and Astro, only below a tailwind.config.* (v3) or a package.json listing tailwindcss in dependencies or devDependencies (v4), with one-click install like the ESLint and Angular servers. JSON root markers (package.json#…) now match a key with any non-null value, not only objects. Adds fixtures/tailwind-app and an ignored real-server test.
Co-authored-by: wildcatDownstairs <[email protected]>
A window whose project moves to another backend process (a remote reconnect, or a new openidea-server in the smoke tests) sees session ids numbered from 1 again. ownSession checked the ids of forgotten sessions before looking for a known parent, so a new child's started event reusing such an id was dropped, along with every later event of that child: the Debug tool window never showed the pause. started is a session's first event and can't be a late event of a forgotten session, so it no longer stops there; a child is still adopted only under a session of this window, and other late events of forgotten ids stay ignored.
Co-authored-by: wildcatDownstairs <[email protected]>
#5173 gave every JS file in test/ gutter targets and #5169 made all kind-node test configurations bases for gutter runs, so Jest/Vitest projects gained run icons in test/ helpers and imported npx jest configurations started running gutter targets. test/ now counts only in projects with a Mocha or node --test configuration, and only Playwright's node configurations are gutter bases.
Co-authored-by: wildcatDownstairs <[email protected]>
Add to Git stages a new file as it was created, usually empty; edits afterwards leave it partially staged, and Commit included partially staged files with only their staged part, so the first commit held the empty file and the content needed a second commit. A partially staged file whose staged side is an addition is now included whole by default (also when committing selected files) and loses the partial badge; other partially staged files keep committing their staged part.
Fixes#5189
Compact mode now also steps the combo box label padding (9/6 → 6/6, ComboBox.padding.compact) and radius (4px → 2px, ComboBox.arc.compact), and the editor tab pill's inline padding (8px → 6px, EditorTabs.tabInsets.compact), through new --combo-pad-start/end, --radius-combo and --tab-pad-x tokens. Toolbar and tool window stripe button radii stay at 6px → 4px (MainToolbar.Button.arc and Button.ToolWindow.arc 12 → 8).
Co-authored-by: muutot <[email protected]>
Launch snapshots are reused while a module's sources keep their fingerprint. Build › Rebuild Project cleaned and recompiled target/classes but left the launch records untouched, so the next run kept loading a snapshot that could hold classes the clean removed (a class compiled under its old package), and Spring found two beans with the same name.
A Rebuild now clears the fingerprint of every launch record in the project, so the next launch copies the rebuilt outputs; the records stay, so those modules keep delegating to Maven.
Fixes#5179
Adds `pnpm dogfood:remote <remote_name> [--restart | --no-restart] [--clean] [--install-rust]` (also `mise run dogfood:remote`) for dogfooding backend changes in Remote Development without cross-compiling locally. It reads the host from Settings › Tools › SSH Configurations, checks SSH reachability and the minimum Rust version, syncs the backend workspace to `~/.cache/openidea-dogfood/workspace`, builds `openidea-server` there, installs it at the `~/.openidea/server/<version>/<build_id>` path `ensure_server` expects (so connecting doesn't upload another binary), stages the matching binary locally (`--clean` restores the release one), and asks before restarting a running server. The `build_id` hash uses `blake3` from the new `@noble/hashes` devDependency. Rust is installed on the host only with `--install-rust`.
Closes#5135
Co-authored-by: dengliu <[email protected]>
Skills now parse `context: fork` and `paths` / `globs` frontmatter (inline, bracketed or YAML list). Settings › Agents › Skills shows `context: fork` and `paths (n)` badges, with the patterns in the inspector, and the session Skills picker shows fork / paths pills. `SKILL.md` is still staged untouched, so CLIs that support these fields natively apply them. Frontmatter key lookup is case-insensitive.
Part of #5113
Co-authored-by: dengliu <[email protected]>
Mocha runs showed no test tree, and single tests ran with Jest's `-t`. A `package.json` script that runs `mocha` is now a test configuration with `testRunner: "mocha"`. Test runs import the IDE's hook (`mochaHook.js`, a `data:` URL in `NODE_OPTIONS`), which prints a record per finished test (file, suite chain, status, duration, declaration line, error) next to the run's own reporter; the records become the tree and are hidden from the console. Gutter icons, Rerun Failed Tests and running selected tests use Mocha's own `--grep`. New fixture `fixtures/mocha-app`, run by `smoke/run.test.ts` in the TypeScript job.
Closes#5153
Co-authored-by: wildcatDownstairs <[email protected]>
`node --test` runs showed no test tree, and single tests ran with Jest's `-t`.
- Detection: a `package.json` script whose Node options include `--test` (also `tsx --test`) is a test configuration with `testRunner: "node-test"`; a script that picks its own `--test-reporter` runs as written.
- Test tree: test runs add the IDE's reporter (`nodeTestReporter.js`, passed as a `data:` URL) next to `spec` through `NODE_OPTIONS`, which works through `npm run`, Node's per-file child processes and remote run targets. It prints a record per test (file, describe chain, status, duration, declaration line, error); the records become the tree and are hidden from the console, which keeps `spec`'s output.
- Gutter, Rerun Failed Tests, run selected tests: select by full name with `--test-name-pattern` in `NODE_OPTIONS`, plus the files.
New fixture `fixtures/node-test-app`, run by `smoke/run.test.ts` in the TypeScript job.
Closes#5152
Co-authored-by: wildcatDownstairs <[email protected]>
In the Chinese UI, Rename on a folder named `tasks` read 将目录“任务”及其用法重命名为:. The `tx` template tag translated every interpolated string that had a catalog entry of its own, so a file, branch, script or container name that matched a UI word (`tasks`, `Retry`) was shown translated. Values are now inserted as written. Call sites that interpolate the app's own UI words (kind labels, option titles, "Source"/"Target") mark them with the new `txPart(...)`, which is also translated again after a language change; the text catalog guard checks `txPart` literals too. `txTemplate` still translates captured parts.
Co-authored-by: wildcatDownstairs <[email protected]>
Three frontend tests failed on main after #5157 and #5164: SkillsPage.module.css read an undeclared --r-sm (now --radius-small); the SKILL.md catalog entry is a file name kept as written in Chinese, so it joins the same-as-English list; and the VS Code presets lacked python.console.executeSelection, which stays unbound there because Shift+Enter would shadow typing in Python files.
Settings › Agents › Skills gets Install Skill…: enter a GitHub source in the forms `npx skills add` accepts (`owner/repo`, `owner/repo@skill`, `owner/repo#ref`, `owner/repo/path[@ref]`, GitHub tree URLs, pasted skills.sh links), pick one of the skills found, preview its `SKILL.md` and file list, and install it into `~/.agents/skills` (default) or the workspace `.agents/skills` (trusted projects only). Sources resolve through GitHub's Git Trees and Blobs APIs over the existing `ide-tools` HTTP client, with no curated repository list and no Node or git dependency, retrying unauthenticated when an ambient GitHub token gets HTTP 401 on a public repository. Only the selected skill's subtree is downloaded (capped at 2 MiB / 256 files) and installed atomically through a staging folder. A static scan flags hidden or bidirectional Unicode, out-of-root symlinks (omitted on disk), executable scripts and `allowed-tools` shell grants; the user must confirm the warnings, and the backend checks that confirmation again before writing.
Part of #5115
Co-authored-by: dengliu <[email protected]>
Plugins can now bundle `SKILL.md` folders with a manifest-only `[[contributes.skills]]` extension point (API 1.15, no WIT change). They appear under Plugins in Settings › Agents › Skills and the Composer Skills picker while the plugin is enabled, and are staged into each CLI's per-session skill folder from the plugin's package directory; disabling or uninstalling the plugin removes them right away. Load-time validation keeps `path` inside the package (no `..` or escaping symlinks), requires `<dir>/SKILL.md` with the usual folder-name and frontmatter rules, and caps a skill folder at 2 MiB / 256 files; an invalid entry becomes a plugin load warning without failing the rest of the plugin. Every file of a valid skill folder is part of the package files, so versioned installs and remote sync copy supporting scripts and references. Workspace and user skills win on a name clash. Includes a declarative fixture plugin and docs.
Closes#5114
Co-authored-by: dengliu <[email protected]>
Skill roots are joined as `.agents/skills`, so a SKILL.md path that could not be canonicalized kept a forward slash on Windows and failed hub_staging_hands_each_cli_its_own_tree. Rebuild the path from its components before handing it to Codex.
`requirements*.txt` and `pyproject.toml` (`[project]` dependencies, optional dependencies, `[dependency-groups]`) now mark each requirement the project's interpreter doesn't have installed, or whose installed version misses the specifier. A banner offers Install requirements, and the quick fixes are Install requirement and Install all missing requirements; installs use the same pip/uv path as the interpreter settings page, run as a background task, report failures in one notification and re-check the file. The interpreter judges the requirements itself (with `packaging` or pip's vendored copy), so PEP 440 specifiers, PEP 503 names and markers behave as pip does; Rust only parses the files for spans, skipping `-r`, `-e`, options, URLs and paths. Nothing is checked without a local interpreter, for a container interpreter, or in Restricted Mode. It is a new inspection, "Unsatisfied package requirements", and the Cargo version check now shares the same editor plugin (`manifestCheck.ts`).
Closes#5147
Co-authored-by: wildcatDownstairs <[email protected]>
Adds a Python Console tool window: an interactive interpreter of the project's Python (the one Settings and the status bar show; in a workspace, the member the active file is in), started in the project root with the source roots on `PYTHONPATH`. It uses IPython when the interpreter has it and plain Python otherwise, in its own `__main__`. Enter runs the input, Shift+Enter adds a line, Up/Down recall earlier inputs, and while code runs a typed line answers its `input()`. A Variables pane lists the console's globals after each run. Execute Selection in Python Console (`python.console.executeSelection`, Alt+Shift+E, also in the editor context menu of Python files) sends the selection or the current line, starting the console if needed; a selection inside an indented block is dedented. The console is a small driver script run on the existing Run process host, so there are no backend changes.
Closes#5148
Co-authored-by: wildcatDownstairs <[email protected]>
In a Python debug session, a DataFrame, Series or ndarray variable or watch only showed a one-line repr. It now has View as Table in its context menu: a resizable window with column headers (with dtypes for a DataFrame), the index, the shape, and pagers for rows (100 per page) and columns (30 per page). Each page is one `evaluate` in the paused frame: a small helper slices the object in the debuggee and returns only that page as JSON, so the whole object never goes over DAP. The expression can be edited (e.g. `a[0]` for a 3-D array), and the window stays open across steps, refreshing after each step or frame change.
Closes#5165
Co-authored-by: wildcatDownstairs <[email protected]>
A Playwright project had no test tree and no Rerun Failed Tests: its output went through the Jest / Vitest parser, single tests ran with Jest's `-t`, and projects without a `test` script weren't detected at all.
- Detection: a `package.json` script that runs `playwright test` is a test configuration and records `testRunner: "playwright"` (new optional `RunExtras.test_runner`, `test-runner` in `run.toml`); a package with a `playwright.config.*` that no script runs gets `npx playwright test`.
- Test tree: test runs add `--reporter=list` unless a reporter is named, parsed into file › [project] › describe chain › test with status, duration, location and failure details.
- Gutter: `test.describe` blocks and `fixme` / `fail` / `serial` tests get run / debug icons and run by declaration line (`file:line`); in a project with Playwright and another runner, specs run on Playwright's configuration and other tests on the other runner's.
- Rerun Failed Tests / run selected tests: the files plus `--grep` on the describe chain and title, with `--project` when the run named projects.
New fixture `fixtures/playwright-app`; `smoke/run.test.ts` runs it after `ts-app`.
Co-authored-by: wildcatDownstairs <[email protected]>
Renaming or moving a Python module or package left every import of it broken: basedpyright has no `workspace/willRenameFiles`, so no reference updates reached the move preview. `refactor_file_move_edits` now maps the moved paths to dotted module names from the project's Python roots (`src/` layout or the project root, `tests/`), and `Syntax::python_import_edits` rewrites the import statements of each project `.py`/`.pyi` file from its tree-sitter tree. It covers `import a.b` (with qualified uses `a.b.X`), `import a.b as c`, `from a.b import X`, `from a import b`, relative imports (kept relative, also in the moved files themselves) and package moves; when a rename changes the name an import binds, the import keeps it with an alias. The edits join the existing move preview and undo. A Python server that answers `willRenameFiles` still wins. The Python language smoke now checks file moves.
Closes#5146
Co-authored-by: wildcatDownstairs <[email protected]>
In JavaScript and TypeScript files, embedded code in template literals showed as one string. The body of a tagged template literal is now parsed in the language its tag names: CSS for styled-components / emotion / Lit (`styled.div`, `styled(Comp)`, `.attrs(…)`, `css`, `createGlobalStyle`, `keyframes`, `injectGlobal`, parsed as declarations plus nested rules), GraphQL for `gql` / `graphql` (also the `graphql(`…`)` call form), SQL for `sql` and HTML for `html`; a `/* GraphQL */`-style comment before a plain literal works too. Substitutions stay JavaScript. CSS, SQL and HTML use the same modes as files in those languages; GraphQL gets a small stream mode used only inside literals (`.graphql` files keep tree-sitter highlighting). The embedded mode loads lazily, comment toggling and bracket matching follow it, and Angular TypeScript files and Markdown `ts` fences get the same injection.
Closes#5150
Co-authored-by: wildcatDownstairs <[email protected]>
The Ports tool window existed only for SSH hosts and dev containers; a WSL project refused to forward. A WSL distribution shares this machine's loopback (as `forward_web_url` already assumes), so a port it listens on is reachable here on the same port without a tunnel. The route decision is now a pure `forward_route(target, host)` (SSH channel tunnel, container exec tunnel, or WSL's shared loopback; another host stays reachable from a dev container only), and `Forward::Wsl` reports the port unchanged and owns no resource. The Ports tool window registers for WSL sessions, remembered ports are scoped per distribution and folder (`wsl:<distro>:<root>`), the refusal and its string are gone, and the remote docs describe it.
Co-authored-by: akbar1214 <[email protected]>
On Python files, Extract Method, Inline, Introduce Parameter and module-level Introduce Constant come from pylsp-rope, a companion server the missing-server prompt skipped, so without it these refactorings only said "Cannot perform refactoring". Now, when one of them finds nothing and pylsp-rope isn't installed, the usual missing-tool notification offers to install it (Install restarts the server, so the refactoring works right away). `promptInstall` takes a purpose (code insight, formatter or a refactoring) instead of a formatter flag; a refactoring purpose lets a companion server through, even when another server already serves the files. Opening a project stays quiet.
Closes#5149
Co-authored-by: wildcatDownstairs <[email protected]>
Plugins running compilers, linters or large diffs lost output: `start` kept only a 1 MiB tail and `run`/`run-command` truncated stderr. API 1.15 adds `process-options` (`max-output-bytes` up to 128 MiB, `buffer-bytes` up to 4 MiB), `run-captured`, which fails explicitly when either stream overflows, and `start-stream`, which streams losslessly with pipe backpressure: readers pause at the buffer limit, resume as `poll`/`chunk` consume, and `wait` drains up to the total limit so fast producers don't deadlock. Overflow stops the process tree and records its exit status before reaping it. `run`, `run-command` and `start` behave as before, and 1.14 components still load.
Closes#4763
Co-authored-by: Akin01 <[email protected]>
A request generated from a Spring mapping got an `https://` host when `server.ssl.enabled=false` and a key store was also configured (typically a base file with the key store and a profile that turns TLS off for local runs). `hostFromConfig` picked https when TLS was enabled or a key store was set, so the key store won over an explicit `false`. In Spring Boot the property defaults to true and SSL is configured only when it is, so an explicit `false` now wins; the other cases are unchanged.
Co-authored-by: HEOJUNFO <[email protected]>
A run or test lasting between 1 m 59.5 s and 2 m showed as `1 m 60 s` (and likewise at every minute) in the test tree, the exported test report and the run tab's "Finished in …" tooltip. `formatDuration` split off whole minutes first and rounded the remainder afterwards; it now rounds to whole seconds first and splits after.
Co-authored-by: HEOJUNFO <[email protected]>
Open the predefined session chooser directly on the installed shells and SSH. The plus button opens the default shell. Split commands live in the terminal tool window's Options menu, with Settings at the bottom of the session chooser. On the Windows fixture the chooser went from nine actions to six and from 267 px to 153 px in height.
Keep suggestion names readable when long signatures compete for space. The name keeps its natural width when it fits, the return type gets space next, and parameters use the rest. Exceptionally long names can still truncate within the editor.
⌘⇧↵ after `foreach ($xs as $x)` in PHP produced `foreach ($xs as $x);` with the caret on the next line: a semicolon that terminates an empty loop. `foreach` was missing from the block-head keywords, so the line was treated as a plain statement.
`foreach` (PHP, C#) and PHP's `elseif` are now block heads: the line gets `{` / caret / `}`, and a bare `foreach` gets `(|)` like `for`.
⌘⇧↵ after `struct S` (C) or `class A` (C++) produced `struct S {` / `|` / `}`: a type definition without its terminating `;`, which does not compile.
`completeStatementSpec` now closes the body with `};` in C, C++, Objective-C and Objective-C++ when the header is a type definition: `struct` / `class` / `union` / `enum` / `enum class`, optionally with `typedef`, `template <…>`, `final` and base classes. `typedef struct Node`, `union U` and `template <typename T> class Box` are now recognised as block heads too. Namespaces and control flow keep a plain `}`.
Typing `public:` on a member line of a C++ class left it at member indentation (` public:`) instead of lining it up with the class, as CLion's default code style does. The Lezer C++ indentation has no rule for access specifiers, and its `indentOnInput` only reindents `case`, `default:` and braces.
For C++ (`EXTRA_SUPPORT` in `languages.ts`), an indent service puts a `public:` / `protected:` / `private:` line at the indentation of the line opening its class body (`FieldDeclarationList`), and an `indentOnInput` pattern reindents the line when the colon is typed. Members after it keep the member indentation; `std::` is unaffected.
Enter after an 8-space `case 1:` (or `default:`) in C, C++ or PHP put the caret at 8 spaces, aligned with the label, instead of 12 for the branch body: the Lezer C++ and PHP grammars indent a `case` body from the switch body, not from the label.
`caseBodyIndent`, an indent service added for C, C++ and PHP in `EXTRA_SUPPORT`, puts the new line one level deeper than a `case …:` / `default:` line when nothing follows the caret. Other lines, including a C++ `std::`, are unchanged.
Use compact rows and content-based widths in navigation bar child lists. The default row height is 18 px and the text stays at 13 px. The wide desktop fixture shows 20 complete rows, up from 14. The two-folder list in the narrow fixture uses 95 px of width, down from 199 px.
src/editor/api.ts re-exports navigationProviders and relatedProviders, which the frontend smoke loads. Add both files to the Language smoke workflow paths and to the Changes step's smoke pattern, so scripts/smoke-paths.test.ts passes again and a change to either file runs every language.
Closes#5073
Show the affected-changes toggle on the changed-files toolbar when Git Log has a path filter. This makes it possible to narrow the selected commit's file list in one click. Group the Diff preview toggle and its location under Layout in View Options. Let the toolbar wrap when the pane is narrow.
Two problems with the `/**` + Enter stub:
- **PHP**: `/**` + Enter right after `<?php` gave `/**` / caret, with no `*/`, so the function below ended up inside an open comment. With an unclosed `/**` directly after `<?php`, Lezer PHP parses the text as the surrounding HTML: `languageDataAt("commentTokens")` there returns only `<!-- -->` (checked with the real PHP language), and `enterInDocComment` stood back. In PHP documents it no longer requires `/* */` tokens at the caret, so the stub is closed and lists `@param` / `@return` as elsewhere in PHP.
- **C / C++**: the stub had no tags. New `cDocTags` lists `@param` per named parameter (defaults and array suffixes dropped, `void` / `...` skipped) and `@return` unless the function returns `void` or is a constructor or destructor. It handles specifiers, pointers and references, `template <…>`, qualified names (`Box<T>::take`), trailing `const` / `noexcept` / `override` and initializer lists; types, calls and statements get no tags.
With bracket pairing on, `<` after `#include ` (C, C++) and after `std::vector` (C++) stayed single: `smartAngleBrackets` had no rule for C or C++.
- C and Objective-C: `#include <` (and `#include_next`, `#import`) pairs.
- C++ and Objective-C++: the same, plus `template <`, a standard template or cast written against its `<` (`std::vector<`, `std::make_unique<`, `static_cast<`…) and a capitalized name (`Box<`).
- Lowercase values (`a <`, `i<`), `std::cout <`, all-caps macros (`MAX<`) and `operator<` stay single.
`inLiteral` treated any node whose name contains "template" as a template literal, which made Lezer C++'s `TemplateFunction` (`std::make_unique`) look like a string; C++ template nodes are now excluded.
Project's Options menu groups its settings under Behavior, Appearance, and Sort By. Sort By includes the folder ordering toggle alongside the sort choices. The first level now has seven items, so the window controls stay visible in a short window.
⌥⌘V on `value * value` in C or C++ said "Selected block should represent an expression", while ⌥↵ on the same selection offered **Extract subexpression to variable** and it worked. clangd gives every tweak the kind `refactor`, and `refactor` is not contained in `refactor.extract`, so the shortcut's request returned nothing. Checked with a small LSP script against the installed clangd: `only: ["refactor"]` → `Extract subexpression to variable` (`refactor`); `only: ["refactor.extract"]` → none.
`requestKind` now asks for `refactor` in C, C++, Objective-C and Objective-C++ too (as it already does for typescript-language-server); `classifyAction` already maps a generic `refactor` action by its title.
Keep the Close button next to More in the editor's Find and Replace toolbar. The two fields share a column that scales with the editor pane. In narrow panes, the controls wrap below the query and the fields use the space freed by moving Close.
Add `pnpm dogfood:build` / `pnpm dogfood:install` (and matching mise tasks) to build a fast local release app named openidea_dogfood with a grey icon. It keeps the release identifier, so it shares settings and data with the installed app.
The dogfood config clears the updater endpoints so a release never replaces the dogfood bundle, the bundle is read from Cargo's target directory, and the install output and setup docs note that the two apps share one instance and settings and that the dogfood app never updates itself.
Copy Path/Reference… gets "Absolute Path with line number" right below "Absolute Path": the absolute file path with the caret line, or the selected line range (`/abs/path/File.java:12`, `/abs/path/File.java:12-18`), like the existing relative "Path with line number". It is also an action (`editor.copyAbsolutePathWithLineNumber`) reachable from Find Action. Like the relative variant, the chooser copies the value it previewed, even if the caret moved after it opened.
Co-authored-by: clevertension <[email protected]>
Two pairing gaps in Kotlin:
- **`"${`** stayed `"${|"`: `closeBrackets()` pairs `{` only before whitespace or a closer, and here the auto-inserted closing quote follows. `templateBrace` pairs a `{` typed right after `$` inside an open string into `${|}`, in Kotlin, Groovy, Dart, Scala, JavaScript and TypeScript (template literals). Outside a string nothing changes.
- **`mutableListOf<`** got no `>`: the Kotlin rule only treats capitalized names as types. A generic factory call written directly against its `<` — `…Of` (`listOf`, `mutableMapOf`, `setOf`…), `empty…`, `arrayOfNulls`, `enumValues`, `enumValueOf`, `typeOf` — now pairs. Other lowercase names, and any name followed by a space, stay comparisons.
The desktop window keeps native drag and drop on for files dropped onto it, so HTML5 drop events never reach the page and CodeMirror's built-in text drag never landed: dragged text stayed where it was.
Text drag now runs on mouse events. Dragging the selection shows a drop caret, scrolls the editor near its edges, and drops the text at the caret on release, into the same or another editor. Option (macOS) or Ctrl held at release copies instead of moving; Escape cancels; a click on the selection without dragging places the caret. "Enable drag-and-drop functionality in editor" still turns it off.
Closes#5117
The Search Everywhere query field now sits directly on the popup surface. A single inset divider shows focus for the query and its history button. The shorter query row gives results more room in short windows.
Fixes the remaining Phase 1 gaps of the Agent Skills hub:
- `/` completion drops skills that are off or `user-invocable: false`, de-duplicates Codex's prefixed names, keeps `argument-hint`, defaults `disable-model-invocation: true` skills to slash-only, and refreshes when session or draft overrides change.
- Discovery scans workspace member folders, monorepo packages up to two levels down, `<category>/<skill>/SKILL.md` folders and Copilot CLI's two-level `installed-plugins` layout (skipping disabled plugins). Codex disable rules point at `<skill>/SKILL.md`, and roots each CLI already scans are treated as native so skills aren't staged twice.
- A skill that is off globally or for the workspace can be turned on for one session; untrusted workspace skills stay locked. Settings › Agents › Skills shows the other folders a symlinked skill is linked from.
Closes#3897
Co-authored-by: dengliu <[email protected]>
Move Statement (⌘⇧↓/↑) on a branch header:
- **Go** `case 1:`: `structural_ranges` climbed past the branch to the whole `switch` (a `case` keyword's ancestors are not direct children of a block until the switch). With no sibling, the line-based fallback ran and moved `println("one")` above every label, breaking the switch.
- **Kotlin** `1 -> …` in a `when`: the statement was the whole `when`, so nothing moved.
`LangKinds` gains `clauses` (Go `expression_case`, `default_case`, `type_case`, `communication_case`; Kotlin `when_entry`). In `structural_ranges`, a branch reached from its header is the statement, and its neighbours are only other branches (never the switch subject `x`). Statements inside a branch are unchanged. On the frontend, `planMoveStatement` trims the line breaks a node may end with: Go branch ranges run to the next line's start, which made `ownsLines` reject them and fall back again.
Installing a .NET tool (csharp-ls, FsAutoComplete) on a machine whose newest SDK is older than the one the tool targets failed with dotnet's generic "NuGet feed cannot be accessed" hint.
Before installing, the IDE reads the newest SDK from `dotnet --list-sdks` and the target framework of the package's releases from the nuget.org catalog. If the latest release needs a newer SDK, it installs the newest stable release that runs on the installed one and logs why; if none of the 20 newest does, it fails naming the SDK version required. When nuget.org can't be reached it installs as before, and a failed install now quotes dotnet's `error NUxxxx` lines.
Co-authored-by: EjaYF <[email protected]>
The Run Anything command field now sits directly on the popup surface. A single inset divider shows keyboard focus. The command row is 14 px shorter, giving the scrollable results the extra space in short windows.
⌥⌘V on `1 + 2` in `println(1 + 2)` (Go) answered "Selected block should represent an expression". gopls 0.24 offers only **Extract constant** (`refactor.extract.constant`) for a constant expression — checked with a small LSP script against the installed gopls: both `only: ["refactor"]` and `["refactor.extract"]` return just that action. No action mapped to Introduce Variable, and the syntax-based fallback deliberately stands back when a running server answers nothing (`reason: "empty"`).
When the server's answer contains another introduce-kind extraction for the selection, the server evidently takes it for an expression, so `runRefactoring` now calls the fallback with a new reason `otherKind`, which builds the variable from the syntax tree (`value := 1 + 2`, as GoLand does). An empty answer otherwise still means no fallback.
In Kotlin, Enter after `1 ->` in a `when` (with the body still to come) or after `val answer =` kept the line's indentation (8 and 4 spaces) instead of continuing one level deeper (12 and 8), as IDEA does. Kotlin uses CodeMirror's legacy C-like mode, whose indentation does not know either construct.
An indent service for the Kotlin mode (`EXTRA_SUPPORT` in `languages.ts`) adds one level after a line ending in `->` or in an assignment `=` (not `==`, `!=`, `<=`, `>=`), with nothing after the caret and no bracket left open.
Enter after `/// Summary` above a Rust function gave a blank line: `enterInLineComment` only splits a comment when text follows the caret, so at the end of the line nothing continued the documentation. RustRover (and Rider for C#) continue documentation line comments.
`enterAfterDocLineComment` handles Enter at the end of a `///` line (Rust, C#, Dart, Swift, F#) or a Rust `//!` line: the next line gets the same indentation and prefix, caret after `/// `. Plain `//` comments and `////` banners are unchanged, as is Enter in the middle of a comment (still split by `enterInLineComment`).
Two caret problems with the comment commands, seen in Go, Rust and Kotlin:
- **⌘/, Undo, Redo**: the comment came back but the caret went to the line above (L2 instead of L3). As with Delete Line and Move Statement, CodeMirror's history maps the pre-command caret through the change on Redo unless a selection was recorded after it; `commentLine` now records its resulting caret (and keeps its repeated-⌘/ detection on the state after that).
- **⌥⌘/ on a blank line without a selection** inserted `/* */` with the caret before it. It now inserts the language's empty block comment with the caret between the delimiters (`/* | */`); lines with code keep the existing behaviour.
With quote pairing on, typing `'a` between `<>` in `fn borrow<>() {}` gave `fn borrow<'a'>() {}`, and `&'a` got a stray quote too: `closeBrackets()` pairs `'` wherever no word character precedes it, and Rust's apostrophe also starts lifetimes.
`rustLifetimeQuote` (an input handler for Rust, under the Insert pair quote option) inserts a single `'` where a lifetime goes: after `<`, `&` or `+`, and after `,` or `:` inside angle brackets (`<'a, 'b>`, `<T: 'static>`). Lifetimes earlier on the line are ignored when counting brackets. A char literal (`let c = '`, `f('a', '`) still pairs.
Complete Current Statement (⌘⇧↵) after `func f` (Go), `fn f` (Rust) or `fun f` (Kotlin) produced `func f {` / `|` / `}`: a body without a parameter list, which does not compile. A header that names a function (after any modifiers such as `pub async`, `private suspend`, and optional type parameters) but has no `(` yet now gets `()` before the body; the caret goes into the body as before. `pub async fn …` is now recognised as a block head too.
Git Log now uses the editor's configured font, size, and weights for commit subjects and descriptions. Authors, dates, branches, and signatures use smaller UI text and tighter spacing. Long metadata can wrap inside the details pane.
Plugin API 1.15 adds a caret-moved event through the existing events.other channel (no WIT interface or signature change): {path, line, col, settled} with 0-based UTF-16 positions for the focused editor. The frontend batches caret moves after 120 ms (only the latest position per file) and sends one settled event 600 ms after the caret rests; queued and delayed events are dropped when the editor, document, path or project changes. editor-focused now carries the focused editor (path, language, selections) through an optional argument on plugin_set_active_file, which the remote adapter forwards. Requires the events capability; components and fixtures are rebuilt for 1.15.
Co-authored-by: charli117 <[email protected]>
The Debug tool window puts the call stack above Variables when docked on either side, giving both panes the full dock width; in the bottom dock the panes sit side by side. Each orientation remembers its divider position.
In a side dock, Problems puts the severity and navigation toolbar above the list and the source preview below it, both at the full dock width; in the bottom dock the list and preview sit side by side. Each orientation remembers its divider position.
The docked Structure tree starts directly below the tool window header, gaining 32 px of vertical space. The header's View Options menu groups sorting and member filters, and the existing Options menu holds Expand All, Collapse All and the two source-following commands.
Run session tabs fit the available space in the tool window header. Long names shorten to keep the close or pin button visible, and hovering shows the full name and, for completed runs, the duration and exit code.
Search Everywhere shortens long directory paths before the last folder in Files and Classes, so same-named results stay distinguishable; hovering shows the full directory. File names keep their extensions visible when the name fits on the row.
Compact Mode reduced tree row height and the island gap, but the tree's horizontal inset stayed at 6px, leaving compact trees 2px wider on each side than JetBrains' compact Tree.border (2,8,2,8). The --tree-inset token now steps 6px → 4px in Compact Mode, so island gap plus inset is 12px normally and 8px compact.
Co-authored-by: muutot <[email protected]>
The single-file diff toolbar keeps the comparison status beside Settings and the other viewer tools, in a group that can wrap to a second row so longer comparison messages stay readable. At toolbar widths of 520 px and below, the viewer layout, collapse and synchronized scrolling commands are available from Settings.
The debugger variable menu groups Set Value with Copy Value and Copy Name, and watch creation and field watchpoints get their own group when available. The watch menu puts Remove Watch and Remove All Watches first, above value and source commands.
The Commit changes menu leads with Commit, Rollback and Move to Another Changelist in the change-list workflow, and with Stage and Unstage in staging mode. Diff, source and path-copy commands are grouped together, and the two patch commands sit next to each other.
The terminal output menu puts Find and session commands first, then groups Copy, Paste and Select All above Clear Buffer and the split commands. Find opens the search bar with the selected text as the query.
The console search field no longer shares a row with its matching options in a narrow dock: below 224 px the clear and matching controls move below the query. The match count uses the small UI font with tabular digits and sits beside the previous and next buttons.
The main toolbar shares the available text width between labels, so long project and run configuration names give up space before short branch names. At the minimum window width, dropdowns with leading icons show just those icons with their tooltips, while Run, Debug and the window buttons keep their hit targets.
The Git Log commit menu puts revision copying and patch creation at the top, then separates comparison from operations that change the repository. Cherry-pick sits with the other commit operations, parent and child navigation sit together, and both bookmark actions share a group.
The Project view puts Rename beside Refactor and Delete, with a separate group for Reformat Code and Optimize Imports. Jump to Source follows the clipboard actions; Local History, Git and Reload from Disk share a group, and comparison is separated from directory roles and file colors.
The editor tab context menu puts Close All Tabs beside Close Other Tabs, followed by the more specific close commands. Copy Path/Reference gets its own group above the splits, each split sits beside its split-and-move action, and pinning, opening a new window and configuring tabs share a group.
WebKitGTK pastes the primary selection on a middle-button release into the focused editable, wherever the release lands, so closing a tab with a middle click pasted into the active editor (and a middle click on a tree, tool window or the terminal did the same). Middle-button releases outside editable content now cancel that paste; a middle click in the editor or a text field still pastes.
Fixes#5079
The editor context menu keeps Cut, Copy, Paste and Copy / Paste Special together, with clipboard shortcut labels that follow the host platform. With a selection, Find in Files sits with the other search and navigation actions, and Split Right sits next to Open In, above Local History and Git.
When the global settings.toml is missing, OpenIDEA now saves the OS's preferred UI language (NSLocale on macOS, GetUserPreferredUILanguages on Windows, LC_ALL/LC_MESSAGES/LANG elsewhere) as appearance.locale, mapped to one of the shipped UI languages with English as the fallback, and loads that catalog before the workbench renders. An existing settings file keeps its saved language. The mapping lives in ide-workspace next to the settings store, and a test keeps its locale list in step with the frontend's.
Co-authored-by: laot7490 <[email protected]>
The Expressions chooser uses one compact column for both the refactoring action and the syntax fallback. Multiline candidates show their first source line followed by an ellipsis, while selecting a row still highlights and uses the full expression; the highlight clears when filtering leaves no active row.
With no desktop session (WSLg, a bare compositor) GTK reports its built-in decoration layout, close only, so the frameless title bar had no way to minimize or maximize the window. The desktop's gtk-decoration-layout is now used only when a desktop session is running (XDG_CURRENT_DESKTOP, XDG_SESSION_DESKTOP or DESKTOP_SESSION); otherwise the title bar shows minimize, maximize and close.
Fixes#4421
The Unwrap/Remove chooser uses a compact list of action names. The selected action previews the kept and removed code in the editor; switching rows leaves the caret and scroll position in place, and Escape dismisses the chooser and clears the preview.
Inline refactoring name suggestions align with the identifier being edited. Rows follow the editor font and zoom, with a separate footer for the shortcut; the list fits inside the editor and scrolls to keep the active suggestion visible.
Generate now uses the compact, caret-anchored action chooser. Constructors, accessors, overrides and tests get distinct icons at the standard action-list size, and the chooser keeps its width while typing to filter.
When the caret reaches a closing delimiter whose opener is above the viewport, the opening line of that scope (with the declaration above a brace on its own line) is shown at the top of the editor after a short pause, in the editor's font, line numbers and colours. Caret and scroll stay put; it follows the brace highlighting setting, closes on Escape, and stays hidden when Sticky Lines already shows the opener.
A scroll range of one pixel or less is WebKit rounding after a resize (a splitter drag leaves scrollHeight 319 over clientHeight 318), not content: the overlay scrollbar and the editor scrollbar thumb no longer show for it.
Inline hints use a size one pixel under the editor font, sit on the text baseline with even padding, and stay a single label when lines wrap, so they no longer shift or split around the source text.
Collapsed unchanged lines in the diff viewer are now a full-width button: a chevron, the line count in UI type and a hatched rule in the separator colour, with hover and focus states. Clicking it or pressing Enter expands the range in both panes and returns focus to the editor.
Redo of Move Statement Up / Down left the caret where the move started: CodeMirror's history maps the selection from before the edit through it unless the command records the selection after. Both the structural and the line-based move now record the caret they set, so Undo / Redo put it back.
Optimize Imports in JavaScript / TypeScript now removes unused imports first: typescript-language-server's organize imports only sorts and merges them, and removing the unused ones is its own source.removeUnusedImports action. Optimize-imports-on-save does the same.
typescript-language-server answers code actions with refactorings only when `only` contains a kind that contains `refactor`; asked for `refactor.extract` it returned nothing, so Introduce Variable and Extract Method refused the selection. JavaScript / TypeScript now ask for `refactor`; the actions are still mapped by their own kind, and other servers keep the narrow kind.
TypeScript Introduce Variable, Extract Constant and Extract Method did nothing with vtsls: its refactoring actions carry resolve data and a follow-up command but no edit, and an action was only resolved when it had no command either. The resolved edit then failed on a create of the edited file marked ignoreIfExists, which the conversion dropped.
- Resolve an action without an edit whenever it carries resolve data (interactive path and lsp_apply_code_action).
- Leave out create / rename operations their ignoreIfExists makes no-ops, and deletes their ignoreIfNotExists does.
Hovering a folded region's placeholder shows the folded lines in a tooltip: highlighted as in the editor, with line numbers when the gutter shows them, up to 80 lines, aligned to the pane edge. It closes on Escape, scroll or a fold change. The sticky-lines renderer shares the line rendering.
Wheel or keyboard zoom now shows the current font size at the bottom of the editor pane that changed, with Reset Font Size and a link to Editor > General. It stays while hovered or focused and dismisses after five seconds; LightEdit gets the same reset.
A task's agent only learned its own directory, so in a workspace with attached projects it missed the other projects and left their part of a change undone.
- Sessions pass the workspace's other roots (the project and the trusted attached projects, minus the task's own directory and project) as ACP additionalDirectories to agents that advertise the capability.
- The Codex shim turns them into runtimeWorkspaceRoots on thread start, resume and fork, so workspace-write covers them and the model is told about them; the Claude Code shim passes each as --add-dir.
- New read-only MCP tool get_workspace_roots lists the roots, and the server instructions point to it for workspace questions and changes that span projects.
Fixes#5058
Insert documentation comment stub filled tags in for PHP only.
- **JavaScript / TypeScript**: `/**` + Enter above a function declaration, method, constructor or arrow function assigned to a `const` now lists `@param name` for each parameter (parameter properties, rest and defaulted parameters included) and `@returns` when a non-void result type is declared. Calls and statements get no tags.
- **Python**: Enter between the quotes of a `"""` (or `'''`) opened on the first line under a `def` expands it into a docstring, as PyCharm does with its default reStructuredText format: the summary line, `:param name:` per parameter (`self` / `cls` skipped, `*args` / `**kw` by name) and `:return:` (not for `__init__` or `-> None`), then the closing quotes.
Both follow the existing Smart Keys › Insert documentation comment stub option.
Complete Current Statement (⌘⇧↵) in TypeScript and Python (both use the text rules in `completeStatementSpec`):
- `const f = (x: number) =>` became `=>;`. An arrow function now gets a block body, followed by the brackets still open and a `;` where the statement needs one: `=> {` / `|` / `};`, `items.map((x) => {` / `|` / `});`.
- `const obj = { name: "Ada"` became `{ name: "Ada";`. Brackets the line opened and left open are now closed before the `;` (`{ name: "Ada" };`, `foo(a, bar(2));`); a line ending in `,` or `{` is left to continue.
- Python `async def …`, `with …`, `except …`, `case …`, `match …`, `async for …` got no `:`. Every compound statement header now gets one; `match = 5` and `case.x` stay statements.
`closeBrackets()` steps over a closer only when it inserted that closer itself during the session. So with `value = (1 + 2|)` in a reopened file (or code pasted / written earlier), typing `)` gave `(1 + 2)|)`; same for `]` and `}`. IDEA types over a closing bracket that already closes a pair.
`skipClosingBracket` (an input handler next to `skipClosingQuote`, under the Insert pair bracket option) steps over the bracket at the caret when the syntax tree matches it to an opener and the line has no more openers than closers of that kind outside strings; otherwise the bracket is inserted (`f(g(x|)` still gets its missing `)`). Multi-line pairs (`foo(` … `)` on a later line) are stepped over too.
Tool window titles and tabs give up width before the header actions, so Options and Hide stay at the right edge of a narrow pane. A shortened title keeps its full text on hover. When the contributed controls need more room, their strip scrolls independently while Options and Hide stay in place.
Two Python indentation gaps against PyCharm:
- Enter after `return 1`, `pass`, `raise …`, `break` or `continue` kept the block's indentation. The dedent rule existed only in `fallbackIndent`, which steps aside when a language mode is loaded (Python has `@codemirror/lang-python`). An indent service for Python now applies it: one level out, unless a bracket is still open (`return foo(`) or text follows the caret.
- Typing a bare `except:` inside a `try` body left it indented: the stock `indentOnInput` pattern and `Body` rule only know `except ` with a space. `except:` now triggers reindentation and aligns with its `try:` (or a previous `except`).
Both are added through `EXTRA_SUPPORT` for the Python mode (`src/editor/core/cm/languages.ts`).
`prefsExtension` gives `closeBrackets()` its own pairing list (to honour the Insert pair bracket / quote options), and that list replaced the language's: only `( [ { ' "`. So:
- TypeScript / JavaScript: typing `\`` left the template literal open;
- Python: `f"`, `r'`, `b"`… left the string open (the language's `stringPrefixes` were dropped), and `"""` did not close.
The list now adds the backtick for JavaScript, TypeScript, Vue, Svelte, Astro and Go, and Python's `'''` / `"""` with its string prefixes; the two options still switch brackets and quotes off.
Editor notification bars group their action links and let the message wrap at the width of the editor pane. Links stay on the same row when there is room and wrap below the message in narrower splits. The banner uses the UI text size and has smaller vertical insets in Compact Mode.
Docker logs reached the webview one IPC message per line; WebView2 delivers each message on its own, so a 1000-line tail took 10-40 s on Windows. ide_docker::logs now collects lines for 30 ms and sends them together from a second thread, so a quiet log still flushes, and docker_logs streams Vec<DockerLogLine>. The log pane (container and plugin service logs) renders ANSI colours instead of stripping them, takes the Console log level colours like the Run console, and has Scroll to End.
Fixes#5049
Delete Line (⌘⌫), Undo, Redo: the line was deleted again, but the caret ended at the end of the line above instead of where the deletion had put it (the next line, same column). CodeMirror's history restores, on Redo, the first selection recorded after the change, and otherwise maps the pre-change caret through it; Delete Line set its caret in the same transaction, so nothing was recorded and the old caret (inside the deleted line) mapped to the previous line end. `deleteLine` now dispatches its resulting selection once more, which the history records as the selection after the edit.
Copy Path/Reference opens at 500 px when space permits. Each row places the action and shortcut before the right-aligned path preview. Long paths keep the filename in view, and dragging the popup edge gives them more room.
Enter inside a Java string (`String t = "hello|world";`) inserted a raw line break into the literal, leaving code that does not compile. A new Enter handler (`enterInStringLiteral`) splits a one-line string literal into two joined with `+`, the second on a continuation-indented line with the caret after its opening quote:
```java
String t = "hello" +
"|world";
```
It applies in Java, C#, Kotlin, Groovy, JavaScript and TypeScript (the literal's own quote in JS/TS), with IDEA's default continuation indent (two levels for the JVM languages and C#, one for JS/TS). Text blocks, template literals, a caret inside an escape (`\\|n`), char literals, multi-line literals and other languages keep the plain newline.
After Introduce Variable (⌥⌘V) and Enter on a suggested name, one Undo only put the server's placeholder name back (`value` → `extracted`); the reformatting and the extraction each needed another Undo. The refactoring is made of several transactions (the server's workspace edit, `reformatGenerated`, the in-place rename) and each was its own history event.
A small history group (`src/editor/lsp/historyGroup.ts`) keeps the transactions in between out of the undo history and, when it closes, records the net change once. `applyIntroduceAction` opens it before applying the server action and closes it when the in-place rename ends (new `onEnd` on the session), or right away if no rename starts. One Undo now restores the original expression, and Redo brings the whole refactoring back.
Escape during the rename keeps the introduced variable with its current name, as the hint says and as IDEA does; that part of the report is not changed.
Closing the focused editor tab with ⌘W (or its close button) showed the next tab, but `document.activeElement` became `<body>`: arrow keys and typing did nothing until the editor was clicked. `closeTab` removed the tab without giving the focus to the editor that took its place. It now does so when the closed editor had the focus (a tab closed while focus is elsewhere leaves focus alone).
Complete Current Statement (⌘⇧↵) in Java added a `;` where a block was meant, because tree-sitter's error recovery reports a missing `;` after an unfinished head and the structural pass inserted it:
- `if (true)` → `if (true);` (the next statement then runs unconditionally)
- `public class App` / `public void run()` → `…;`
- `String m = "hello` → `"hello;` (the `;` inside the open string)
- `for` → `for { }` (the text rules only knew keyword-led heads)
Now a finished block head (balanced brackets, not followed by an Allman `{` line) and an open string skip the parser's `;` and go to the text rules, which:
- recognise type declarations behind modifiers/annotations and Java / C# method and constructor headers (`abstract` / `native` methods keep the `;`; `return` / `throw` / `new` lines and plain calls are statements);
- give a bare `if` / `for` / `while` / `switch` / `catch` its parentheses with the caret inside (`for (|) {` / `}`) in languages with parenthesised conditions;
- close an open string or char literal before the `;` (Rust's `'a` is a lifetime, not a quote).
The status bar uses one 30 px row in the standard density and a 24 px row in Compact Mode. Adjacent widgets use their existing insets for spacing, which gives the editor and its status controls a little more room.
Three CSS rules in the agents feature can never apply, so they only add to the files:
- `ReferenceChip.module.css` `.selected`: no `styles.selected` (or `chipStyles.selected`) anywhere in `src/`.
- `SkillsPage.module.css` `.link` and `.link:hover`: `SkillsPage.tsx` never reads `styles.link`.
- `Session.module.css`: the first `.questionChoices` block (`display`, `flex-direction`, `gap`) is overridden property-for-property by the second `.questionChoices` block later in the file (same selector, same specificity, no media query), so the computed style is unchanged.
22 lines removed, no behaviour change.
Co-authored-by: Mr0Bread <[email protected]>
Project names now have a line of their own in the title bar project switcher, so a long Git branch can no longer crowd out the name. The path and branch use the smaller metadata type size. Remote projects show their host and folder on separate lines, with keyboard search highlighting each match in its corresponding line.
Complete Current Statement (⌘⇧↵) on `String a = "123"` added the `;` but put the caret on a new line one continuation indent deeper (12 spaces instead of 8). `completeStatementSpec` asked for the new line's indentation before inserting the `;`, when the parser still saw an unfinished statement. The indentation is now computed on the line with the `;` in place.
The test results toolbar groups its filters together and moves Previous and Next Failed Test into More Actions, where the shortcuts are shown next to their labels. Test Runner Options can hide row durations to give long test names more room. The choice is remembered across sessions and the test summary and selected output remain visible.
During Introduce Variable, the name suggestions listed under the new variable reacted only to a single press: a double click put the name in but left the refactoring open, so it looked like double click did nothing. A double click now puts the name in and finishes, as Enter does (a single click still only puts it in). The list and its hint used the hand cursor; they now show the arrow, as other editor popups do.
With the Run notification group set to not show balloons (Settings › Notifications, or Don't Show Again on a Run notification), clicking Profile '…' / Allocations / Live Objects or Run with Coverage looked like it did nothing: the reason the run could not start (async-profiler or the coverage tool is not installed, the configuration is not supported, preparing it failed) went only to the Notifications list. These notifications answer a command the user just ran, so they are now `userInitiated` and always show as a balloon, like a manual update check.
New Project accepted the name of a folder that already exists and has files, and only reported "already exists and is not empty" in the progress view after Create. It now checks as the name or location changes: the name field and its hint turn red and Create is disabled. Until the user types a name, it follows the first free `untitled`, `untitled1`, … in the location.
The location always started at the home folder (unless Default Project Directory was set). It now starts where the last project was created; the Default Project Directory setting still comes first.
The check is the one `scaffold_create` already did, moved into `ide_scaffold::target_taken` and exposed with `free_name` as `scaffold_target_taken` / `scaffold_free_name`.
Markdown can display the editor above its live preview so both use the full width of a narrow editor group. Choose Side by side or Stacked under Preview layout in Markdown settings. Each layout remembers its own divider position, and existing side-by-side sizes are restored when switching back.
Remote Development was hidden in the welcome page's More Actions menu, with the same folder icon as Open; New File used the same plus as New Project. Remote Development is now a header button next to Clone Repository with a new server icon, and New File has a new page-with-plus icon (both icons apply wherever these actions appear). Header buttons no longer cap their width, which cut "Remote Development" to "Remote Develo…"; they collapse to icons below 740px.
The Remote Development dialog's rows ended at different edges because Configure… is wider than Browse. The form is now a two-column grid: fields share the first column and side buttons the second, and its horizontal padding matches the dialog footer, so fields, side buttons and Cancel / Open line up.
A long file name in a single-row editor split could push the selected tab's close button outside the visible strip. Single-row tabs now constrain the label to the available width and keep the close button beside the shortened name. The hidden tabs picker still opens tabs outside the visible strip.
Right-clicking the annotation gutter showed Show Commit in Git Log first and Close Annotations last, below Options. The menu now starts with Close Annotations, then Show Diff and Copy Revision Number; after a separator come the revision actions (Annotate at Revision…, Annotate Previous Revision, Show Commit in Git Log, Ignore This Commit), and Options is last. On an uncommitted line the menu is Close Annotations, Options.
A long terminal session name could take more space than its tab strip and push the close button out of view. Each tab now fits the available width, with an ellipsis for long labels and the full name on hover. New Tab and the terminal options sit next to the strip, and the tab picker handles sessions that overflow.
File refactoring previews give each file a distinct header with its directory and occurrence count. Each code excerpt starts near the changed text and can wrap in a narrow window. The reference count and confirmation buttons stay visible as the list scrolls, and excluded files have a struck-through file name.
The plugin details page groups version, downloads, author, categories and the ID / homepage / mail / signer fields so they are easier to scan, with translated labels. The Welcome sidebar uses a larger logo and full-width navigation rows; danger menu items tint their icons.
Co-authored-by: laot7490 <[email protected]>
The count on a Database tree row opens a searchable chooser for what that row shows, without opening Data Source Properties: PostgreSQL source rows choose databases and database rows choose schemas (each database inherits the source rules until overridden, stored as schemasByDatabase); ClickHouse keeps a flat database list. A visibility-only save updates the rules against the latest saved file and keeps the connection and loaded metadata, while wildcard rules and names the server did not return are preserved.
Closes#4781
Co-authored-by: principalwater <[email protected]>
The General tab of a named database preset lists its built-in driver and the local JDBC profiles associated with that preset, so a local driver no longer requires switching the type to Custom JDBC; the type and tree icon stay. Manage Drivers and Go to Driver open the profile manager scoped to that type. A connection refuses a profile associated with another preset, and a JDBC password is kept apart from a Snowflake key-pair passphrase when switching transports.
Closes#4564
Co-authored-by: principalwater <[email protected]>
Adds a Diff & Merge page to Color Scheme with the four change types (Changed, Conflict, Deleted, Inserted: line background and error stripe mark) and the folded unchanged fragments wave. Each attribute edits the --diff-* tokens the diff viewer paints, with a live preview, and IntelliJ scheme import maps DIFF_* keys and DIFF_SEPARATOR_WAVE onto them. The theme template and token reference list the new wave token.
Co-authored-by: muutot <[email protected]>
The MCP and Skills pickers in the composer share one SessionPicker for the trigger, popup header, filter, footer and row parts, and one CSS module; each picker supplies only its data and labels. The trigger's product name is passed as `brand` and shown as written, as before.
Co-authored-by: Mr0Bread <[email protected]>
The rules the MCP Servers and Skills settings pages had in common move into SettingsPage.module.css; each page keeps only its own rules. No visual change.
Co-authored-by: Mr0Bread <[email protected]>
GitHub and GitLab item URLs are matched through one route table, and tool output (JSON metadata and links) is ingested by one helper for both the gh-create and plain tool paths. Classification results are unchanged.
Co-authored-by: Mr0Bread <[email protected]>
Features import navigation/related provider registration and the offset/position helpers from `@/editor/api` instead of reaching into editor internals. No behaviour change.
Co-authored-by: Mr0Bread <[email protected]>
The left and right paths of Compare Directories are editable fields with a folder chooser beside each, as in IDEA. Enter, leaving the field or picking a folder compares the new pair, opened as its own tab in place of the current one; a path that isn't a folder, or the same folder on both sides, is refused with a message. The layout e2e test follows the editable fields and per-row synchronisation.
Closes#3925
Co-authored-by: wildcatDownstairs <[email protected]>
Each Compare Directories row carries IDEA's synchronisation operation in the marker column: copy to the right, copy to the left, delete (one-sided entries) or do nothing; Space or a click cycles it. Synchronize Selected and Synchronize All run the operations as one batch after a single confirmation counting deletions and overwrites. The new fs_synchronize_directories command validates every path, runs the operations on the blocking pool through the existing copy/merge and delete paths (Local History, VCS delete hooks), continues past failures and returns them; cancelling stops before the next entry. The per-row operations replace the single-entry Copy to Left / Copy to Right / Delete buttons.
Refs #3925
Co-authored-by: wildcatDownstairs <[email protected]>
A folder inside an attached project now has Mark Directory as › Excluded (and Cancel Exclusion), written to that project's own .openidea settings so it also applies when the project is opened alone. New commands project_workspace_members and project_workspace_member_set (projectStructure.* keys of attached projects only); the existing markFolder logic computes the change. Other roles stay out of the menu for attached projects until their source and test roots are applied.
Closes#4712
Co-authored-by: wildcatDownstairs <[email protected]>
Compare Directories gets IDEA's Compare by selector: Binary content (default), Text, Size, and Size and timestamp. Text decodes both files with the editor's encoding detection and ignores line separators (files over 5 MiB or binary ones fall back to bytes); Size and timestamp allows 2 s of skew. The choice is remembered.
Refs #3925
Co-authored-by: wildcatDownstairs <[email protected]>
With Delegate IDE build/run actions to Maven, starting several Java configurations together (a Compound, or several Services rows) ran one mvn -pl <module> -am compile plus one classpath probe per configuration, one after another, rebuilding shared upstream modules each time. A launch's Maven run now also builds the modules of the launches still waiting for theirs (same reactor, scope, incremental policy and delegation) as one -pl a,b,c -am run with one classpath probe; the waiting launches reuse the recorded snapshots and classpaths. A member with JDT errors makes it a clean compile; if the shared build fails, none start and each console shows the failure. A lone launch builds as before.
Refs #3971
Co-authored-by: wildcatDownstairs <[email protected]>
In a workspace with attached projects, the primary project's excluded folders were applied relative to every root (excluding gen in the primary also hid gen in each attached project), while an attached project's own exclusions were ignored. Each workspace project now keeps its own excluded folders, read from its Project Structure settings and build files, and one per-root lookup (exclude_globs_in / search_excludes_in / root_of) gives the index, file watchers, Find in Files, the Project view, the Cucumber/Spring scans and the MCP file tools that root's set. A workspace folder (container) still applies its excluded folders in every member.
Co-authored-by: wildcatDownstairs <[email protected]>
The Kotlin page gets Identifiers › Extension function call, Package-level function call and Classes › Enum entry, as IntelliJ's Kotlin page has. Calls on an explicit receiver to top-level functions are extension calls, without one package-level calls; enum entries no longer take Constant. Each falls back to its parent until set; .icls KOTLIN_* keys fill them.
Closes#4059
Co-authored-by: wildcatDownstairs <[email protected]>
Language Defaults and each language page get Identifiers › Predefined type and Predefined function next to Predefined symbol, and Literal keyword next to Keyword. The new entries show their parent until set, so existing overrides keep applying. true / false / null in the clike modes (Kotlin, Scala, Dart, Groovy, C#) are bool / null tokens taking Literal keyword instead of Constant.
Co-authored-by: wildcatDownstairs <[email protected]>
Settings › Editor › Color Scheme gets a JavaScript and TypeScript page as in WebStorm, with Decorator and Identifiers › Global variable / Global function. A decorator's whole name takes the Decorator colour (tsserver reports it as a class), from the syntax tree before the server answers; non-local variables and functions take the global entries, library symbols stay Predefined symbol. .icls TS.* / JS.* keys land on the new page.
Co-authored-by: wildcatDownstairs <[email protected]>
The open AskUserQuestion card was pinned above the composer: with several options it covered the conversation (max 50vh, its own scroll), and in a short conversation it floated away from its messages. The card now renders in the conversation at the asking entry and scrolls with it; picking an option on a single-select question moves on to the next one. Permission forms and questions that outlive their turn still wait above the composer at the composer's width.
Closes#5033
Co-authored-by: panda-student <[email protected]>
Markdown Preview Only still showed the code breadcrumbs (the heading at the caret) under the rendered preview. A text editor wrapper can now report that it hides the source editor (useSourceHidden); the editor pane then drops that tab's code breadcrumbs. Markdown does so in Preview Only and keeps its heading breadcrumbs while the source is shown.
Co-authored-by: faysou <[email protected]>
Each preview scroll frame read offsetTop of every block to find the line at the top. The preview now indexes its blocks when the HTML changes and binary-searches them, reading offsets lazily from the live layout so reflows (zoom, images, diagrams) still count.
Co-authored-by: faysou <[email protected]>
The Markdown preview showed footnote references as raw text. A marked extension renders references as bracketed superscript links and collects (multi-line) definitions after the document body in citation order, each with return links to its citations; unresolved references and code spans stay literal.
Co-authored-by: faysou <[email protected]>
Typing ; while only closing parentheses follow the caret puts it after the last ), as IntelliJ IDEA's editor.move.semicolon.after.paren does (on by default). It applies in languages that end statements with ;, and not in strings, comments, control statement heads (for, if, try-with-resources, …), declarations, annotations, or when the statement continues on the next line. Settings › Editor › General › Smart Keys has an option to turn it off.
Closes#4936
Co-authored-by: wildcatDownstairs <[email protected]>
Linked worktrees share one repository's branches, but the branch popup and the Git Log Branches pane listed each checkout as its own repository. vcs_roots now reports each root's branch_root (the main worktree of its common Git directory), and both views group checkouts by it while the Paths filter still scopes the log to the selected checkout. The branch menus also offer New Worktree from '<branch>'…, which preselects the branch, requires a new branch when it is already checked out, and opens the worktree in a new window.
Co-authored-by: faysou <[email protected]>
The JavaScript page still said there was no ESLint integration, no browser debugging and no Bun debugging, and the GitHub page said files couldn't be opened on GitHub or linked. Document the ESLint server, the JavaScript Debug configuration, bun-dap, Open In / Copy Path/Reference… for GitHub, GitLab and Bitbucket remotes, and the TypeScript inlay hints, in English and Chinese.
vscode-json-language-server validates nothing unless json.validate.enable is set, so even a file's own $schema was ignored. JSON and JSONC now enable validation and map package.json, tsconfig/jsconfig, ESLint, Prettier, Babel, Lerna, Turborepo, SWC and Composer configs to their published schemas.
Both servers produce no inlay hints unless their inlayHints settings ask for them, and no language config set any. TS, TSX, JS, JSX and Vue's vtsls now enable parameter names at literal arguments, inferred variable types and enum member values; Editor › Inlay Hints still decides which kinds are shown.
Add mise.toml pinning Rust (with rustfmt and clippy), Node.js and pnpm, plus six tasks (setup, dev, dev:app, build, test, check) that call the existing pnpm scripts and Cargo commands, so the worktree-aware launcher is unchanged and contributors can still work without mise. Document the optional workflow in both setup guides and AGENTS.md, and raise the documented Node minimum to 22.22.2, which the locked jsdom requires on the 22.x line.
Closes#4941
Co-authored-by: dengliu <[email protected]>
Language smoke's path filters missed inputs the smoke actually loads (src/workbench, src/ui, src/bindings.ts, editor LSP modules, vite/tsconfig, pnpm-workspace, patches, build-tools) and the crates ide-host pulls in directly (ide-search, ide-streams), so changes there skipped the smoke. Add them to the workflow paths and the Changes step patterns, and add scripts/smoke-paths.ts with a test that derives the smoke's inputs from the frontend import closure and cargo metadata and fails when the workflow misses one. CI's frontend filter now also runs on crate manifest changes, which the test reads.
Co-authored-by: Mr0Bread <[email protected]>
The workbench CSP had no base-uri or form-action, so injected markup could add a <base> element to retarget relative URLs or post a form to any origin. Add base-uri 'self' and form-action 'none'; the workbench never uses <base> and every form handles submit in script. The plugin view CSP already sets form-action 'none'.
Co-authored-by: ntbang0901 <[email protected]>
In a narrow composer the toolbar's first item was capped at 110px, meant for the New Task agent picker. A chat's composer has no agent picker, so the cap fell on the model control and squeezed the model name to "G…" next to its settings chip while the row had room to spare. The agent picker already shows only its icon and doesn't grow, so the cap is removed.
The composer's model controls had three ways into the same settings: a "High" detail next to the model chip with a half divider and no chevron, a "Low ›" entry on model list rows leading to a settings page with a back arrow, and inside it a dropdown for Codex's six effort levels — two steps to change effort. While a model's settings loaded, a "Loading model settings…" text broke the row's alignment.
Now the model chip only picks (and pins) models, and the chip next to it opens every option of the current model — effort, context size, fast mode — in one popup, each a click away: on/off as a switch, up to five values as a segmented control, more listed. A model with a single option closes the popup on a choice. The chip has a chevron like the other composer chips, and a spinner takes its place while settings load. Configuring a model other than the current one from its list row is gone.
The Test and Test Subject choosers give file names their own space and align directories to the right, keeping the end of long directories visible. When there are several tests, the first match is selected and Create New Test appears below the results, with a divider before it.
Navigation target rows show the container next to the symbol at the same text size. File locations align to the right and keep the file name and line visible when a long path has to be shortened. The list scrolls inside the popup when space is limited.
The indentation popup uses a Code Style heading for the active file's language. The current indentation stays checked even when the file uses a custom number of spaces. The heading and choices use the standard menu text size.
RUSTSEC-2026-0587: on Windows a drive-prefixed path component let a WASI guest escape its preopened directory. 49.0.7 carries the fix; the rest of the wasmtime crates move with it. Lockfile-only.
Go to Declaration on a declaration's own name shows its usages only when the language server answers the declaration itself. kotlin-language-server answers nothing there, so ⌘B / ⌘-click on `fun lend` reported "Cannot find declaration to go to" while Find Usages listed four. When the server has no definition and the syntax tree puts the caret on a declaration's name, the usages show now, for every language.
Go to Declaration into a library could open its source editable: only files under the External Libraries roots were read-only, and many language servers answer with sources they keep elsewhere (java-analyzer's source cache, the TypeScript lib files of the server's own typescript, Intelephense's stubs, the temporary copies kotlin-language-server writes). A file outside the project that code navigation opens (declarations, implementations, usages, hierarchy, documentation and inlay links) now opens read-only with the Library source notice. Files opened outside the project in other ways stay editable.
Without jdtls, a Java run or debug used the JDK the Java language server reports (java-analyzer's own runtime) before matching the module's Java version, so a module compiled for release 21 started on JDK 17 and failed with UnsupportedClassVersionError. The server's JDK is now used only when it can run the module's release; otherwise the installed JDK matching it is picked.
A key the keymap leaves alone reached WebView2's browser accelerators: Ctrl+F in a view without its own find opened the page's Find bar over the whole window, and F3, F12 or Alt+Left ran browser features. Turn the accelerators off for every webview; the page still gets every key.
The combined changes view gives each file its own inset section, with a bold file name and a muted path. File actions sit before the name so they stay visible when a narrow editor pane truncates the text. Compact Mode reduces the space around file sections and headers.
A middle click on a link (an agent reply, any rendered content) navigated the IDE window to it: link handlers listen to click, and the middle button fires auxclick, whose default action the webview carried out. A window-wide auxclick handler now cancels it for every link and opens a web link in the default browser, as a left click does; a link into the app itself does nothing.
Fixes#4992
The keyboard New popup aligns the search icon and text with the options below it. The search divider has side margins, and the search field keeps its height in short windows while the list scrolls. The wider list and smaller shortcut text let the full Scratch File label fit alongside its Windows shortcut.
A folder the enclosing repository still tracks can become a repository of its own; both then reported its files, so the same path appeared twice in the Commit tool window's change tree and its rows went stale when a repository group was collapsed. Each file now belongs to its innermost repository: the enclosing repository's entries inside a nested one are dropped, in the full status and the scoped refresh.
Fixes#4990
The empty editor presents its actions and shortcuts in a left-aligned block centered across the editor. The text uses a 16 px default size with more space between rows, and shortcuts use the foreground color. The Project action appears when the Project tool window is hidden. LightEdit uses the same layout for its file actions.
After uninstalling a plugin, the marketplace kept showing it as installed until it was refreshed, so it couldn't be installed again right away. Uninstall now refreshes the marketplace (from its cached index), as install already does.
Co-authored-by: laot7490 <[email protected]>
The editor inspection widget uses smaller tabular counts and groups the two diagnostic navigation buttons. A narrow pane shows the total beside the Problems icon, leaving more of the code visible. The summary tooltip and accessible label provide the count for each severity.
Sticky Lines now shares the editor's typography, tab width, and line-number mode. Pinned text and line numbers align with their columns in the document. The panel follows the editor viewport and paints behind the overview lane, with header text clipped at the lane's edge.
The Background Tasks popup has a fixed title bar and a scrollable task list. Long titles and progress details wrap, and the progress bars, percentages, and cancel buttons line up across rows. The popup remembers its size after it is resized.
Notifications now has a Timeline heading and a Clear All button that stays visible while the history scrolls. Entries use the workbench UI text size and align their titles, timestamps, and actions. In a narrow pane the timestamp and dismiss button move below the title so longer titles can wrap at normal word boundaries. Multiline messages scroll with the history.
The Bookmarks popup opens in the center and remembers its window size and the split between the bookmark list and source preview. The panes sit side by side in a wide window and stack in a narrow one so the preview has room for source lines. Bookmark rows use the workbench list density and align their line numbers on the right.
Parameter Info uses the workbench font and UI size for its signatures. A single signature emphasizes the current argument in bold. Overload lists use inset separators and a rounded highlight for the active signature, while keeping the current argument visible as the list wraps.
The narrow debug dock test timed out after the thread selector started including each thread's state in its option name (Order worker Running). It now finds the option by its visible thread label within the Thread listbox.
Co-authored-by: faysou <[email protected]>
Quick Documentation now keeps Edit Source and More Actions in its lower-right corner. More Actions groups the commands for opening the Documentation tool window and moving back or forward through the current document history. The corner stays visible while the documentation scrolls.
Evaluate uses the configured editor font, size and line height for the expression field. Its history dropdown lines up with the full field and uses the same code typography. The Result label also names the results area for assistive technology.
typescript-language-server passes tsserver's own token type for methods, member (vtsls renames it method). The semantic token mapping only knew method and dropped member tokens, so with typescript-language-server method declarations took the field colour and calls none. member now maps like method.
Co-authored-by: wildcatDownstairs <[email protected]>
Under an imported or explicitly chosen non-default scheme, tokens that tokens.css derives with var() kept the parent scheme's colour: resolvedSchemeTokens resolved the parent's var() chains to hex first and applied the overrides afterwards. Overrides now take part in resolving, so a derived token follows its source unless it is overridden itself, in the editor stylesheet, the Settings preview and resolvedAttribute. The theme's own scheme is unchanged.
Co-authored-by: wildcatDownstairs <[email protected]>
File Structure puts the member filters in a compact toolbar above the search field and symbol tree. The toolbar wraps complete labels on narrow windows, while the tree scrolls independently. Sorting and narrowing on typing are available from the View Options menu on the right.
Search Everywhere now aligns the checkbox, type icon and label in each filter row. All, None and Invert sit below the scrolling list so they stay visible when the list is long or the window is short.
A Python override of Function call coloured plain calls but not method calls: tokens.css declares --syn-python-method-call: var(--syn-function-call) on :root, so the fallback was resolved there and never saw the Python block's override. The Python block now re-declares the Python tokens whose default is a var() of a token it overrides (unless they have their own override), so Method call follows Function call and Nested function definition follows Function definition, as in PyCharm. The Settings page shows the same inherited colour.
Co-authored-by: wildcatDownstairs <[email protected]>
The SQL console got one response at the end of a batch, so progress, timings and results only appeared once every statement had finished. A new db_execute_stream command reports each statement's start and completion over a channel; the console shows the spinner and timer on the running statement and publishes each result grid as it completes. The batch still runs once, stops at the first error or on cancel, and an older remote server falls back to db_execute after rejecting the new command before execution.
Closes#4782
Co-authored-by: principalwater <[email protected]>
- Place the Project tree's speed search above the file rows so the first item stays readable while typing.
- Use the standard field height, a 16 px search icon, and a visible caret. Long queries truncate within the sidebar. Keyboard focus stays in the tree.
- Show the expanded replacement beneath the current match in file-level regex Replace when the result differs from the template. The preview uses the same replacement calculation as Replace Next.
- Use a compact monospace balloon that preserves line breaks and stays within the editor width. It follows the selected match and leaves focus in the toolbar.
- List only the editor tabs clipped by the strip. A separator marks the split between tabs clipped before and after the visible stretch.
- Use compact rows with file icons, the tab label, and its close control. Keep the popup open while closing hidden tabs and bring the chosen tab into view when it is opened.
WebView2 paints an opaque backdrop behind an iframe whose color-scheme differs from the embedding page's. Plugin web view pages (web = "...") got data-theme from the frame bridge but no color-scheme (only html views get BASE_STYLE), so under a dark theme they turned white on Windows. The bridge now sets the frame root's color-scheme along with data-theme, as html views already have.
Co-authored-by: wildcatDownstairs <[email protected]>
Importing a PyCharm color scheme skipped eight PyCharm Python keys (PY.FUNCTION_CALL, PY.CLASS_DEFINITION, PY.PARAMETER, PY.LOCAL_VARIABLE, PY.TYPE_PARAMETER, PY.INVALID_STRING_ESCAPE, PY.FSTRING_FRAGMENT_BRACES, PY.FSTRING_FORMAT_SPEC_NUMBER), so Python calls took the shared call colour. They now map to the existing Python attributes and export under PyCharm's keys; files exported earlier under OPENIDEA_ names still import.
Co-authored-by: wildcatDownstairs <[email protected]>
- Give the thread selector the width of the call stack header, with the standard workbench font and a fixed chevron at the trailing edge.
- Show a leading icon for running, suspended, and breakpoint threads in both the header and the menu. Keep the status text in the menu and make the selected thread's full name and status available in the header tooltip and accessible description.
- Open the Smart Step Into target list by the paused source line. Center it when the paused source is outside the visible editor.
- Keep the list compact for short target lists. Scroll longer lists and show clipped method names in a tooltip.
Size the debugger's full-value popup to the workbench and let the text fill the available space as the popup grows. Render the value with the configured editor font, line height and tab width. Keep the resized popup visible if the workbench shrinks.
Show Diff called openDiff directly and always opened an editor tab, ignoring Settings > Version Control > Confirmation > Open diff as editor tab. It now goes through openVcsDiff like the other change entry points, so with the option off the diff opens in the separate Diff window.
Co-authored-by: Greenker <[email protected]>
Go to Declaration in a library file could wait 10-20 s behind usage lenses, server code lenses and inheritor markers, which asked references / implementation for every visible library declaration and made the server analyse the whole project.
Usage lenses and server code lenses now skip library sources (library roots, node_modules, excluded folders, virtual documents, files outside the project). Gutter markers stay: in library files ↓ is asked for classes and interfaces only, and in-flight marker requests are cancelled while a navigation gesture runs and asked again afterwards.
Enter after a Java annotation added an indentation level, so stacked annotations above a class drifted right: the stock Java grammar parses an annotation (or an unfinished annotation type) as a Statement, which continues one level deeper. A Java-only indent service keeps the annotation line's indentation when the break follows the whole annotation; an open @Ann( and code blocks still indent.
Co-authored-by: Greenker <[email protected]>
Put Version first in Download JDK, followed by Vendor and Location. Use one aligned control column in the desktop dialog and put labels above their controls in narrow windows. The location field uses the regular UI font, and long help, progress, and error text can wrap within the dialog.
The Breakpoints dialog gains Java Exception Breakpoints on a chosen class (subclasses included): Caught and/or Uncaught, optionally limited by class filters on the throwing code. java-debug's Caught/Uncaught filters stay as the Any exception row. java-debug has no per-class exception requests, so the jvm-inspect bundle (1.2.0) makes the JDI exception requests itself; ide-dap arms them before configurationDone (a throw on main's first line stops) and again after each setExceptionBreakpoints, which drops them. Condition and catch-class filters show disabled with the reason. The bundle jar was rebuilt from source and matches the checked-in one byte for byte.
Co-authored-by: ntbang0901 <[email protected]>
Put the folder tree and marked roots in a resizable split in Project Structure › Modules › Sources. The panels stack when the available width is too small for a side-by-side layout. The summary shows populated root groups and uses the 13 px workbench font for folder paths.
Run configuration nodes in Services gain Jump to Source (F4, ⌘↓, context menu): JVM applications and Spring Boot open their main class at the declaration (the configuration's module first), npm/Bun the script in package.json, Python/Ruby/shell/pytest their file, Gradle/Maven the build file, Go the target or main.go, .NET the project file. Kinds without a file show it disabled. F4 on a run configuration no longer starts it; providers without Jump to Source keep activating.
Project Libraries now shows class and source attachments in one expandable tree with a shared add and remove toolbar. Attachment rows use the 13 px workbench font. In narrow windows, the library list and details adapt to the available width, and long paths scroll inside the tree.
Adds 繁體中文 to the UI languages. The catalogs are converted from the Simplified ones with OpenCC (s2twp) plus a Taiwan IT terminology pass keyed on the English source (column → 欄, undo → 復原). zh-TW, zh-HK, zh-MO and zh-Hant* resolve to it; other zh tags stay Simplified. The update source picks CNB for every zh* locale, matching the backend.
Co-authored-by: g4cj8498741 <[email protected]>
Give the stack trace editor a 600 × 400 preferred area and use the configured editor typography, including tab width. Resizing the dialog grows the editor. At short window heights, the editor shrinks so the trace scrolls within the field and the footer stays visible.
OpenSSH authentication asked the agent client for SSH_AUTH_SOCK from the process environment only. On macOS an app started from the Dock has launchd's socket there, so an agent exported in ~/.zshrc (Bitwarden's, in #4934) was never used. The default agent is now SSH_AUTH_SOCK as the login shell sets it (the app already reads that environment at startup), and IdentityAgent in ~/.ssh/config is honoured per host, jump hosts included (none, SSH_AUTH_SOCK, $VAR or a path with ~ and % tokens). On Windows a SSH_AUTH_SOCK that is not a pipe falls back to the OpenSSH pipe.
Co-authored-by: GGVidal <[email protected]>
Put existing and new target changelists in one editable **Name** field. Open the list to pick an existing target or enter a name to make a new one. The comment and active status sit in the same place for both choices. Undo Commit offers the commit subject as a suggested name.
Show the commit hash and author above the message editor when editing a commit. Use the same layout for the message of a squashed commit. The dialog resizes in both directions, and the text area follows the configured editor font, weight and line height.
git diff against the working tree rewrites .git/index when it meets files with stale stat data, even with --no-optional-locks. The watcher reported that as a repository change, so the agent changes view, which re-reads on every repository change, re-ran its diffs and triggered itself again; on Windows, where git and gix disagree on stat data, it never settled and kept several git processes a second running (#4792). Every git diff that reads the working tree now records an index it rewrote as our own write, like status's write-back; this covers agent changes, compare with the working tree and the other worktree diffs.
The commit settings default shape gained includeChangesByDefault (#4864), and New Task options now come from the project's saved catalog (#4901), so the approvals test seeds projectCatalogs instead of the removed provider-wide config. Fixes Rust checks on main for every platform.
Move **Show Diff** from the desktop revision comparison footer to a compact toolbar above the changed files. The action is available when a file is selected. **Close** sits by itself at the bottom right.
- Group the repository, command and target branch in one row. The row wraps when space is limited.
- Put the branch being rebased in the title. With `--onto` enabled, place the new base beside the command and label the old base on its own row.
- Move flags to **Modify options** and show active flags below the fields. Clear branch selections when switching repositories and wait for the new repository's branches.
- Align the repository, current branch, stash list, and branch input in two columns using the workbench form font. Put Show Changes and Drop Stash beside the list and group the restore options beneath it.
- Add a repository picker for multi-repository projects. Each repository loads its own stash list before the actions become available. After a drop, the list stays visible while the actions wait for the refreshed selection. The fields stack on narrow windows.
Raw notify events were queued one by one until the debounce window closed, so an event storm grew the queue without bound. Events are now classified in the notify callback and coalesced per path, keeping each path's distinct transitions in order, so the batch sees the same result while memory is bounded by paths touched (100,000 writes over 1,000 paths: 100,000 entries before, 1,000 after). Coalesced VCS changes replay as creates so directory changes under .git are not dropped as lock-file touches.
Co-authored-by: akbar1214 <[email protected]>
- Place the actions on the left of the Worktrees tree in both the dialog and the Git tool window.
- Show the checkout name above its branch and path, with the same UI font size for the checkout name and branch. Current, locked, and prunable worktrees have status icons. The tree supports searching by either checkout name or branch.
In native full screen on macOS, the window buttons lived in the title bar strip AppKit slides down with the menu bar, which showed up as a dark band over the IDE's own title bar. Full screen now hosts system window buttons made by standardWindowButton:forStyleMask: in the slot the page keeps for them, and hides that strip. The strip is re-hidden from its own window notifications (no polling), matched by its exact class, and only for the window in full screen.
Fixes#4746
Co-authored-by: GGVidal <[email protected]>
- Align the Reset HEAD fields in two columns and use the workbench form font throughout. Show the current branch and the selected reset mode's effect, and stack the fields on narrow windows.
- Let the user choose the repository in a multi-repository project. A repository change resets the typed revision to HEAD.
- In Reset to Here, put the repository, branch, and fixed commit above the mode choices.
- Put the repository and searchable branch picker on the same line as the Git command. The row wraps on narrow windows.
- Move the merge flags into the Modify options menu and show the selected flags below the command row. Choosing a custom commit message opens a multiline field.
The settings pages that used RadioRow now lay out their radio groups themselves, so it had no callers left and knip failed on main. Removes it with its RadioChoice type.
The Services tree persists the order of its run type groups per project, but only configurations inside a group could be moved. Groups now reorder among each other by drag or with Move Up / Move Down, using the project's type list as their order, so the new position survives reopening.
Co-authored-by: weigram <[email protected]>
New Branch used a stacked prompt with a small label above the name field and the creation options at the left edge. The dialog now puts the label beside the field, uses the workbench UI font for both, and aligns validation and options with the field. On narrow windows the label stacks above the field and the checkboxes can wrap.
Settings now records the page it shows (when it opens and on each navigation) and reopens there, in the separate Settings window and across restarts. The page is UI state and stays in localStorage; Settings for New Projects keeps its own pages out of it, and an id that no longer exists falls back to the first page.
Co-authored-by: weigram <[email protected]>
- Align the Tag dialog's labels and controls in two columns, use the workbench font throughout, and stack the fields on narrow windows.
- Show the selected repository and its current branch above the tag fields. Keep the duplicate-name message and Force checkbox under the tag name.
The changelist form stacked small labels above each field and left room for only three lines of comments. The Name and Comment labels now sit beside a shared field column at the workbench UI size. The comment field starts at four lines, and the fields stack on narrow windows. The same form is available when creating, editing or moving changes to a new list.
Git for Windows reports a parent directory modification when Git creates or removes a lock. The watcher treated these notifications as repository changes and refreshed Git status even when the index was identical. Refresh Git status on metadata file changes and directory creation or removal. Skip directory modifications caused by the changed entries.
Git annotations displayed only the first part of each author's name, and variable-width dates pushed the author column out of alignment. The gutter now uses the workbench UI font and sizes the columns from the file's annotations. Authors are shown by full name, with a width cap for long labels. When enabled, the revision column leads the row.
File History inherited the repository log's sidebars, which left little room for the revision list or commit message. It now uses a full-width toolbar and revision list, with author and date before the subject by default. A resizable pane below puts the selected commit message beside the changed files and remembers its size independently. The repository log and directory history keep their current layout.
A plugin's fs.read-*, editor.open and views.open-location rejected absolute paths under its own install (package) directory, so a linked plugin could not open files bundled next to its component. The install directory is now readable like fs.plugin-dir() (writes still need an fs.write grant). Custom editors with priority "default" now open in the IDE ahead of the Files opened in associated applications list, so a PDF editor plugin is not bypassed by the built-in *.pdf association. The SDK carries the updated WIT docs and the plugin components are rebuilt.
Fixes#4167
Co-authored-by: GGVidal <[email protected]>
Refactor This uses a compact action list with an Extract/Introduce section and dividers for the related action groups. Filtering keeps captions only for groups with matching actions. The number beside each action still selects that action directly.
The run configuration chooser adapts its width to configuration names and leaves room for the row actions. At large zoom or in a short viewport, the configuration list scrolls while the search field and keyboard shortcuts stay visible.
Quick Definition opens with a toolbar above a resizable code preview. The header shows the symbol and its source location, with previous and next controls when several results are available. The preview uses the source editor's font size, line height, and zoom.
Window → Tool Window Layouts groups commands under each saved layout and marks the active layout. The default layout is at the top, with commands for the current arrangement below the saved layouts. Rename opens the name field for the selected layout directly.
Move the add, remove, reorder, transfer, and restore controls into a compact toolbar above the lists. Keep the left and right groups side by side when there is room, and stack them in narrow windows so the labels have more space. The add picker opens directly below its command.
Quick Switch Scheme now opens in the center of the window and stays there when the window is resized. A title identifies the popup, and a numeric column shows shortcuts 1–4 for opening its categories. Theme previews and editor focus still restore when the popup closes.
Place the date pattern help beside the input when there is room and let it wrap under the input in narrow windows. Put the live examples just below the time format control in smaller, secondary text. Pretty formatting remains a separate setting and still updates both examples.
Pair Name and Group when the form has room and put Description on its own row. Tool Settings contains the command fields, while the execution checkboxes sit in a collapsible Advanced options section that opens for matching settings searches. The fields and macro buttons adapt to the available width.
Put exit confirmation before Project, then place file saving and synchronization in a Files section before Caches. In narrow windows, the project-opening choices use less vertical space, the directory field keeps its browse button beside it, and the idle timeout keeps its unit. The existing Autosave search term still finds the page.
Put Check Now and Last checked on the same row, below automatic checks and the update source. The last-checked timestamp uses secondary text and follows the button as the window narrows. The release notes preference sits below the manual check.
Put the snapshot option and a compact thread count at the top. Group Maven home, user settings, the local repository, and toolchains under Environment. Put source downloads under Importing, with build delegation, JRE, and profiles together under Runner.
Environment and Runner put labels above their fields in narrow windows. Browse buttons stay beside their paths, and Maven Daemon controls are available below Runner.
Place Gradle user home at the top of the page, with separate sections for Build and Run and the Gradle runtime. Keep the local installation path and Browse button beside Distribution when there is room. In narrow windows the path field moves below the selector and stays next to Browse. The Gradle JVM picker sits below the distribution controls.
Place custom dictionary files above the accepted words. Give both lists the available pane width, with monospaced paths and standard UI text for words. A tab selects the project or application dictionary within the accepted words section. Settings for New Projects shows the application dictionary directly.
Group inline values and value tooltips under Editor. Keep the hover delay beside its checkbox in wide windows and below it in narrow windows. Turning off hover dims the delay field and keeps its value for when hover is enabled again. Sort order and live watches sit at the top of the page.
Group the primary font, fallback font, and sizing controls above Application Settings. Let the start directory and default tab name use the available width. Keep the shell path, installed-shell menu, and Browse button together. Narrow windows place text fields below their labels and show the application checkboxes in one column.
The file creation and deletion policies use aligned selectors in Version Control settings. They fit on separate rows at narrow widths. The patch creation and history controls follow the Changes group as separate settings.
Confirm Exit and the Terminate / Unsaved Changes prompts of a quit are drawn inside the window, but a quit can start outside it (the Dock, a logout, another window). A minimized or covered window asked with nothing on screen and the app looked hung. The window is now unminimized, shown and focused right before a quit prompt; a window with nothing to ask is left where it is.
Fixes#4912
Co-authored-by: weigram <[email protected]>
Co-authored-by: weigram <[email protected]>
#4810 replaced the notification group table with a listbox, and the compact settings test still waited for a table cell, so it timed out before measuring anything. It now measures the group labels inside the listbox.
Fixes#4891
Co-authored-by: principalwater <[email protected]>
Co-authored-by: principalwater <[email protected]>
A local task in a project with nested git repositories recorded no turns, so the Changes pane's last-turn scope stayed empty there and the whole-task list no longer kept to the files the task touched. A turn now records each repository's HEAD as it starts; the files a turn changed, their text when it began and its rollback come from the repository holding each file, including commits made in a nested one.
A local agent task in a project that holds nested git repositories (an own .git below the project root, not a submodule) only saw the changes of the repository at its root. Its changes are now read from every repository under the root, each against its own HEAD; the Changes pane groups them under a row per repository when there are several, and a rollback reads each file from its own repository.
Co-authored-by: PawelSzymanski89 <[email protected]>
Co-authored-by: PawelSzymanski89 <[email protected]>
Directory Mappings now supports multi-row selection with Cmd/Ctrl and Shift. Minus moves the selected Git roots to an Unregistered roots section instead of only removing manually added ones, and plus registers the selected unregistered roots again in one step. Applying a removal refreshes Git status and branches: removing the selected repository switches to the remaining one, and removing the last repository clears the previous Git state and decorations.
Co-authored-by: faysou <[email protected]>
Co-authored-by: faysou <[email protected]>
The Paths filter of the Git Log now holds the repository checkboxes, path entry, the file and folder tree and recent paths. Selecting paths replaces the repository selection, so a path in another repository no longer leaves the log empty, and the commit log and the Branches panel are scoped to the repositories the paths belong to.
Co-authored-by: faysou <[email protected]>
Co-authored-by: faysou <[email protected]>
JSX/TSX editing like the HTML modes: editing an opening or closing tag's name renames its partner (Simultaneous <tag></tag> editing), Enter between a tag pair puts the caret on an indented line with the closing tag below, and JSX tag pairs are matched. Typing = after a value-less prop inserts "" for string-typed props and {} otherwise (type from the server's hover, {} after 500 ms), following Pair quotes / Pair brackets. Emmet expands with Tab among an element's children and after return / => (className, self-closing void elements). Under TypeScript 7 the native server is asked for jsxAttributeCompletionStyle auto, so prop completion inserts the value delimiters as vtsls does.
Co-authored-by: ChildishForces <[email protected]>
Co-authored-by: ChildishForces <[email protected]>
An existing agent chat listed models from the agent's catalog but refused to switch to them unless the catalog was under 15 minutes old and matched the launch fingerprint. A model the picker lists is now always selectable. The chat's picker offers the agent's current catalog plus the model the chat runs, and falls back to the session's own list when there is no catalog. The per-task copy of models and effort levels is removed, so the project catalog is the only source of available models and efforts.
Co-authored-by: Mr0Bread <[email protected]>
Co-authored-by: Mr0Bread <[email protected]>
The tool-window shortcut hides a window only once it is active, and activation focuses it on the next frame; under load the test pressed Cmd+4 or Shift+Escape before that, so the window stayed open. The test now waits for focus inside the Run window first.
A focus request made before xterm opened was applied whenever it opened, so a terminal still loading took the caret back from a view the user had clicked meanwhile. The deferred focus now applies only while focus is where it was when requested, on the page, or inside the terminal's own tool window.
Protected inline math ($`...`$) now matches the opening backtick run to the first closing run of the same length, as Markdown code spans do: ($``x` + y``$) renders as math, while ($`x` `y`$) keeps two code spans and literal dollars.
Co-authored-by: faysou <[email protected]>
Co-authored-by: faysou <[email protected]>
Activating a tool window focuses its first field or tree on the next frame unless its content marks a data-autofocus target. The Commit window's message wasn't marked, so after Cmd+K focused the message, activation could move focus to the Changes tree depending on timing. The message is now the window's preferred focus, also when the window is activated from its stripe button.
Settings > Version Control > Commit gets Include changes in the commit by default. It is on by default, which keeps the current behaviour (the active changelist's changes start checked). Turned off, the Commit view starts with every file unchecked, partially staged files included. Explicit selections still apply, and staging-area mode still follows the Git index.
Co-authored-by: faysou <[email protected]>
Co-authored-by: faysou <[email protected]>
Refs #3447
kotlin-lsp inserts a picked item itself, parentheses included, and the caret was moved after the whole edit (read()| for read(name: String)), so typed arguments went after the call. When the item's signature lists parameters and the server's edit ends with (), the caret now goes between the parentheses, as it does for items inserted on the client.
Refs #3447
A failed save only showed its message in the Could not save notification, and a failed autosave of a closed tab went to the console. Both are now written to the log file with their stack, so a report's log shows where the save failed.
Turkish joins the UI languages (Settings > Appearance > Language), with the key catalog and the source-text catalog; tr / tr-TR system locales resolve to it.
Co-authored-by: laot7490 <[email protected]>
Co-authored-by: laot7490 <[email protected]>
Fixes#3897 (phase 1)
Settings > Agents > Skills lists every skill found in the workspace (.agents/skills, .openidea/skills and each CLI's folder) and the user's folders (~/.agents/skills, ~/.claude/skills, ~/.copilot, ~/.codex, ~/.cursor), with symlinked copies collapsed and SKILL.md validated. Each skill can be auto, slash only or off, globally or per workspace ([agents.skills.<name>] in settings.toml). SKILL.md files are never edited. An untrusted workspace can only turn skills off. The composer gets a per-session Skills picker and /skills, and / completion offers active skills for every agent.
Sessions get their skills through a per-task folder that is rebuilt on each start: Claude Code via --add-dir and --settings skillOverrides, Copilot via skillDirectories/disabledSkills, Codex via skills/extraRoots/set and skills.config. Other ACP agents only get their / menu filtered.
Co-authored-by: Inf1mum <[email protected]>
Co-authored-by: Inf1mum <[email protected]>
Refs #4792
The dirty-scope status refresh (and the full one when gitoxide can't read the tree) ran git status, which writes refreshed stat data back to .git/index. The watcher can't tell that write from an external one, so it scheduled another refresh that could run git again. git status now runs with GIT_OPTIONAL_LOCKS=0 and leaves the index alone; our own gitoxide write-back is unchanged.
Images in the Markdown preview get the pan/zoom Mermaid diagrams already have: Cmd/Ctrl+wheel zooms the image at the cursor, drag pans once zoomed, double-click resets; the image keeps its place and size in the page and font zoom still scales it.
Co-authored-by: EjaYF <[email protected]>
Co-authored-by: EjaYF <[email protected]>
In a narrow Settings window, System Settings clipped the Open project in radio labels because they could not wrap; the labels now wrap within the group.
Co-authored-by: principalwater <[email protected]>
Co-authored-by: principalwater <[email protected]>
With Words on, Find and Replace in Files missed matches whose text starts or ends with punctuation (doWork( in doWork(arg), [] in string[]) because ripgrep's word rule wants non-word characters on both sides. The whole-word check now follows the editor's rule: an identifier-character edge must not touch another identifier character (escapes like \n excepted), any other edge only needs a different neighbour, and a rejected match is retried from its next character; it sits in the shared match iteration so search, Replace, match_ranges and replace_in_text agree. $ counts as an identifier character.
Co-authored-by: ntbang0901 <[email protected]>
Co-authored-by: ntbang0901 <[email protected]>
Replace All after the search hit its match limit ignored the Search Context (e.g. In Comments also rewrote code and string literals): past the limit the scope is searched again to find files, and the replace step had no comment/string filter. The filter now lives in SearchContext::keeps, used by both the search engine and replace_files_in_context, with comments and string literals from the same literals_of in ide-host.
Co-authored-by: ntbang0901 <[email protected]>
Co-authored-by: ntbang0901 <[email protected]>
Find in Files dropped every match outside the window kept around the first match of a line longer than 500 UTF-16 units, so long lines showed one match and Replace All replaced only that one. Such a line now yields one LineMatch per window, so each match is listed, counted, navigable and replaceable with its own context; result rows are keyed by line and column, and the MCP text search matches each long line once.
Co-authored-by: ntbang0901 <[email protected]>
Co-authored-by: ntbang0901 <[email protected]>
Renaming or moving a class through a refactoring closed the editor of the old file and never opened the new one: workspace edits applied through Documents::apply_workspace_edit_as reported only the affected paths, so the editor saw just the watcher's removal. WorkspaceEditApplied now carries the edit's file moves, and WorkspaceHistory makes open editors follow them on apply, Undo and Redo using the Project view's helper (moved to src/editor/fileMoves.ts), which now waits for the old tab to close before reopening and settles the record before reopening on Undo/Redo.
Co-authored-by: ntbang0901 <[email protected]>
Co-authored-by: ntbang0901 <[email protected]>
Dependency Analyzer keeps module selection, search, scope or configuration, and conflict filtering in the main toolbar; the pane headers align the resolved dependency list with the selected dependency's usages, with list and tree controls beside the list, and narrow editors stack both panes.
TypeScript type aliases showed as variables in the Structure view and breadcrumbs, and Rust type aliases / associated types had no usages lens, because LSP has no kind for type aliases and servers report Variable or TypeParameter. doc_outline now takes the syntax tree's type kind (merge_kinds) where the server reported one of those placeholder kinds for a declaration the syntax outline types at the same name and position.
Co-authored-by: ntbang0901 <[email protected]>
Co-authored-by: ntbang0901 <[email protected]>
Navigation choosers and gutter marker names took a target's container from the nearest type declaration above it without checking that its body was still open, so targets after a closed type got that type's name. enclosingType now uses a declaration only when its body holds the target: brace bodies count braces up to the target column (ignoring string literals), others use indentation; Go methods still use their receiver.
Co-authored-by: ntbang0901 <[email protected]>
Co-authored-by: ntbang0901 <[email protected]>
Clicking a binary artifact (Word, Excel...) in an agent session's Artifacts popup always opened it as text: SessionAssets called the opener plugin's openPath, which the app capability does not grant. It now goes through fs_open_with_system, the checked command Open in Associated Application uses (local window, trusted project, existing file inside the project or its content roots), and still falls back to the editor when the backend refuses.
Co-authored-by: ntbang0901 <[email protected]>
Co-authored-by: ntbang0901 <[email protected]>
After a run of a multi-project Gradle build's plain test task, Rerun Failed Tests and running a selection from the test tree put every --tests filter on that plain task, so the first subproject without a match failed the build. Each failed class is now resolved to its module (the source lookup Application configurations use, now classModules) and its filter goes on that subproject's own test task (:alpha:test --tests A :beta:test --tests B --continue); the command line is unchanged when a class is not found in exactly one module, all tests are the root project's, or the run already names a task.
Co-authored-by: ntbang0901 <[email protected]>
Co-authored-by: ntbang0901 <[email protected]>
description:Run the code-intelligence evals (`pnpm eval`), pick the worst failing scenario, diagnose it from the attached timeline, fix it, prove the fix with before / after numbers measured on this machine without regressing other scenarios, and open one PR. Use for "跑 eval", "优化 Java 代码智能", "eval 失败了", an issue labelled `eval`, or any change to Java navigation / usages / gutter markers that needs numbers.
---
# Eval loop: measure → fix → prove
`pnpm eval` drives the production workbench in Chromium against a release `openidea-server`
with real language servers (Java / jdtls for now) and judges every scenario on what the user
sees: time to feedback, to the first result, to the final one, and the results themselves vs
`evals/<language>/golden/`. One machine, before and after: numbers from different machines or
from the nightly host don't judge a fix.
## 0. Preconditions
-`jdtls` on PATH and `JAVA_HOME` pointing at a JDK of the pinned `JAVA` version (projects
compile against it, and the JDK scenarios' results are in its sources; jdtls itself runs on
a newer installed JDK when it needs one). Pinned versions: `.github/tool-versions.env`. A
mismatch prints a warning and the report records both: say so in the PR when it applies.
- First run builds `cargo build --release -p ide-host --bin openidea-server` and the perf
bundle; later iterations of a frontend-only change can use `--no-build` after a
`pnpm exec vite build --mode perf --outDir target/eval/dist`, a backend-only one after the
cargo build alone.
- Run evals one at a time on this machine, with nothing heavy (builds, other evals) beside them.
## 1. Baseline on the base commit
```sh
git switch --detach origin/main # or the fix branch's merge base
pnpm eval --save-baseline # target/eval/baseline.json, this machine only
```
Read `target/eval/report.json`. Each verdict has `status`, `failures` (`kind`: `error`,
`timeout`, `degraded`, `correctness`, `budget`, `golden`), `regressions`, `repro` (the command
that reruns it) and, for failures, `diagnostics`: every command sent to the server in the
description:Triage and fix a GitHub issue (or a user-reported bug) end to end — reproduce, find the root cause, generalise it to every sibling case, fix the class rather than the instance, verify, and open one PR. Use when given an issue URL/number or asked to fix a reported bug and open a PR ("看看这个 issue", "修一下这个 bug", "提 pr").
---
# Fix an issue: from one case to the whole class
The reported case is one sample of a defect class. A fix that only makes the
screenshot go away is not done: the next question is always "does this break for other
languages / platforms / entry points too?". Answer that before anyone asks.
"reason":"agent: .shimmer is an animated in-progress sweep on running-step labels (commit 18b286e7e, comment documents intent), not decorative gradient text"
"overview":"The interface is a workbench, not a showroom. Code, trees, logs and diffs are the work. The chrome around them stays quiet, so the eye goes to the content and a long session stays calm.\n\nThe visual language is the JetBrains new UI in its **Islands** form, and this document records it rather than inventing one. The tokens in `src/styles/tokens.css` take their values from the Islands Light and Islands Dark theme JSON and editor schemes, at 100% zoom. Component metrics follow the matching IntelliJ theme keys (a Swing `arc` is a diameter, so the CSS radius is half of it), and component CSS names the key it follows. Behaviour follows IDEA as well, from focus and selection to dialogs and drag and drop. Users bring their JetBrains muscle memory, so a layout, metric or state that looks or behaves differently from IDEA counts as a bug, not a style choice.\n\nEvery panel sits on a grey frame as a rounded island (10px corners, 6px gaps). Depth comes from that tonal step, not from decoration. The density is that of a professional desktop tool: 13px UI text, 24px rows, 28px controls, with a compact mode that tightens all of them.\n\nThe tokens are a theming contract, not one palette. The built-in themes are Islands Light (the default), Islands Dark, High Contrast, Solarized Light and Solarized Dark. Users can also change the accent colour, give tool windows a different background from the editor, set a background image, use contrast scrollbars, or adjust colours for red-green vision deficiency. Imported IntelliJ themes and plugin themes set the same tokens at runtime. A component that looks right only in Islands Light is broken.\n\nExpression is kept to precise details: one blue accent, controls with no frame until they're hovered, hairline frames on fields and secondary buttons, and fast state transitions. Three things are rejected outright. It must not look like a web app: no big rounded cards, airy marketing whitespace, decorative gradients or illustrations. It has no second accent colour. And it has no eye-catching animation.",
"keyCharacteristics":[
"JetBrains new UI (Islands): metrics and behaviour follow IntelliJ's theme keys.",
"A single accent (Workbench Blue) for primary actions, focus, selection and the active tool window.",
"High density on a 4px grid. Compact mode is a first-class variant.",
"Controls are quiet at rest: toolbar buttons and chips have no frame until hover.",
"Semantic colour (status, VCS, diff, syntax) carries meaning and is never decoration.",
"Every colour and metric is a token in `src/styles/tokens.css`. Tokens are the public theme API for plugins."
],
"rules":[
{
"name":"The IDEA Reference Rule",
"body":"When tokens and this document don't answer a question, the answer is what IntelliJ IDEA does in the Islands theme, with the same metric and the same state behaviour. Take the value from the theme key, add it as a token, and name the key in a CSS comment.",
"section":"overview"
},
{
"name":"The One Accent Rule",
"body":"Workbench Blue is the only accent. Every other hue in the UI belongs to a functional vocabulary (status, VCS, diff, syntax, charts) and means something specific. If a new colour has no meaning to carry, it doesn't ship.",
"section":"colors"
},
{
"name":"The Token Only Rule",
"body":"Components never contain hex, `rgb()` or named colour literals. A new colour is a new token with a value in every theme variant, named for its purpose. Run `pnpm gen:theme-docs` afterwards.",
"section":"colors"
},
{
"name":"The Flat Scale Rule",
"body":"The UI uses 11, 12, 13 and 15px, and nothing in between. Emphasis is weight 600 or a stronger ink colour, not a bigger size.",
"section":"typography"
},
{
"name":"The User Owns Size Rule",
"body":"Sizes are tokens because users change them (UI font size, editor font, compact mode's -1px chrome offset). Never hard-code a font size.",
"section":"typography"
},
{
"name":"The Flat at Rest Rule",
"body":"No docked panel, island, row or control gets a shadow. A shadow means \"this floats over the workbench and will go away\". Depth inside the layout is only ever a tonal step.",
"section":"elevation"
}
],
"dos":[
"**Do** match IntelliJ IDEA's Islands theme for any metric or state that isn't tokenized yet. Take the value from the theme key and name the key in a CSS comment (for example `Button.arc 8 (radius 4)`).",
"**Do** take every colour and metric from `src/styles/tokens.css`, and add a token for every theme variant when you need a new one.",
"**Do** separate regions with a tonal step (frame against island) or a 1px hairline, never with a shadow.",
"**Do** keep toolbar buttons and chips without a frame at rest, with the toolbar hover wash over the full hit target.",
"**Do** draw frames and focus rings as inset box-shadows (1px at rest, doubled on focus), and keep the 2px Workbench Blue focus outline visible.",
"**Do** check every surface in Islands Light and Islands Dark at least, as the contribution guidelines require. Check High Contrast and compact density whenever a change touches colour or metrics.",
"**Do** keep transitions to state changes: 80ms (`--dur-fast`), 140ms (`--dur`) or at most 220ms (`--dur-slow`) with `--ease`, and none under reduced motion.",
"**Do** use icons from the `src/ui/icons.tsx` registry, drawn in `currentColor`."
],
"donts":[
"**Don't** make it look like a web app: no large rounded cards, airy marketing whitespace, decorative gradients, hero illustrations or corners above 10px. The project wash is the one gradient in the chrome. Progress shimmer counts as activity, not decoration.",
"**Don't** invent a look or behaviour where IDEA already has one. A custom variant of an IDEA pattern breaks muscle memory.",
"**Don't** add a second accent. Any hue other than Workbench Blue must carry status, VCS, diff, syntax or chart meaning.",
"**Don't** add attention-seeking animation: no bounces, no staggered entrances, and no state transition over 220ms. Looping animation is only for activity that is really happening (spinners, progress, loading shimmer, a running pulse, the caret), never decoration.",
"**Don't** put shadows on docked panels, islands, rows or controls.",
"**Don't** use sizes off the 11/12/13/15px scale, or hard-code a font size users can change.",
"**Don't** use hex, `rgb()` or named colours in component CSS or inline styles.",
"**Don't** use emoji as icons or decoration, or inline ad-hoc SVG in a feature."
The interface is a workbench, not a showroom. Code, trees, logs and diffs are the work. The chrome around them stays quiet, so the eye goes to the content and a long session stays calm.
The visual language is the JetBrains new UI in its **Islands** form, and this document records it rather than inventing one. The tokens in `src/styles/tokens.css` take their values from the Islands Light and Islands Dark theme JSON and editor schemes, at 100% zoom. Component metrics follow the matching IntelliJ theme keys (a Swing `arc` is a diameter, so the CSS radius is half of it), and component CSS names the key it follows. Behaviour follows IDEA as well, from focus and selection to dialogs and drag and drop. Users bring their JetBrains muscle memory, so a layout, metric or state that looks or behaves differently from IDEA counts as a bug, not a style choice.
Every panel sits on a grey frame as a rounded island (10px corners, 6px gaps). Depth comes from that tonal step, not from decoration. The density is that of a professional desktop tool: 13px UI text, 24px rows, 28px controls, with a compact mode that tightens all of them.
The tokens are a theming contract, not one palette. The built-in themes are Islands Light (the default), Islands Dark, High Contrast, Solarized Light and Solarized Dark. Users can also change the accent colour, give tool windows a different background from the editor, set a background image, use contrast scrollbars, or adjust colours for red-green vision deficiency. Imported IntelliJ themes and plugin themes set the same tokens at runtime. A component that looks right only in Islands Light is broken.
Expression is kept to precise details: one blue accent, controls with no frame until they're hovered, hairline frames on fields and secondary buttons, and fast state transitions. Three things are rejected outright. It must not look like a web app: no big rounded cards, airy marketing whitespace, decorative gradients or illustrations. It has no second accent colour. And it has no eye-catching animation.
### Named Rules
**The IDEA Reference Rule.** When tokens and this document don't answer a question, the answer is what IntelliJ IDEA does in the Islands theme, with the same metric and the same state behaviour. Take the value from the theme key, add it as a token, and name the key in a CSS comment.
**Key Characteristics:**
- JetBrains new UI (Islands): metrics and behaviour follow IntelliJ's theme keys.
- A single accent (Workbench Blue) for primary actions, focus, selection and the active tool window.
- High density on a 4px grid. Compact mode is a first-class variant.
- Controls are quiet at rest: toolbar buttons and chips have no frame until hover.
- Semantic colour (status, VCS, diff, syntax) carries meaning and is never decoration.
- Every colour and metric is a token in `src/styles/tokens.css`. Tokens are the public theme API for plugins.
## Colors
A near-neutral grey ramp with one cool blue accent. Status, VCS and syntax colours are functional vocabularies with fixed meanings. Values in the frontmatter are Islands Light (the default), and `-dark` keys are the Islands Dark counterparts. High Contrast, the Solarized themes, imported IntelliJ themes and plugin themes override the same tokens, so the names describe roles, not hexes.
### Project colour
- **Project wash** (`--project-color`): a radial tint of the project's colour (22% strength, 600 × 300px) that fades in from the frame's top-left corner, as the IDEA project gradient does. It identifies the project window. It is the one gradient in the chrome.
### Primary
- **Workbench Blue** (`--accent`): primary buttons, the focus ring, the selected-and-active stripe button, and search-match emphasis. The appearance setting can override it, so components reference `--accent`, never the hex.
- **Link Blue** (`--link`): inline links. In Dark it lightens to stay readable on the dark islands.
### Neutral
- **Frame Grey** (`--bg-frame`): the window frame behind the islands, and the stripes (the tool window button bars).
- **Island White** (`--bg-island`, `--bg-app`): editor and tool window surfaces. This is where the work lives.
- **Raised Paper** (`--bg-elev`, `--bg-dialog`): dialog bodies and inline popups, one tonal step off the island.
- **Hairline** (`--border`): dividers between regions inside an island. **Control Edge** (`--border-button`, `--border-strong`): the 1px inset frame of fields and secondary buttons.
- **Selection Wash** (`--bg-tree-selected`, `--bg-selected`, `--bg-toolbar-selected`): the selected row in focused trees and lists, and pressed-on toolbar toggles. When the tree loses focus, the selection drops to the neutral `--bg-tree-selected-inactive`.
### Functional vocabularies
- **Status:** `--danger`, `--warning`, `--success` and `--info`, each with `--bg-feedback-*` and `--border-feedback-*` pairs for banners.
- **VCS and diff:** `--vcs-*` for file status in trees and tabs, `--gutter-*` for gutter marks, and `--diff-*` for diff fills and their error-stripe marks.
- **Syntax:** `--syn-*`, from the editor colour scheme. Users and plugins replace these per scheme.
### Named Rules
**The One Accent Rule.** Workbench Blue is the only accent. Every other hue in the UI belongs to a functional vocabulary (status, VCS, diff, syntax, charts) and means something specific. If a new colour has no meaning to carry, it doesn't ship.
**The Token Only Rule.** Components never contain hex, `rgb()` or named colour literals. A new colour is a new token with a value in every theme variant, named for its purpose. Run `pnpm gen:theme-docs` afterwards.
## Typography
**UI Font:** Inter Variable (with system-ui and -apple-system fallbacks)
**Code Font:** JetBrains Mono (with ui-monospace and Menlo fallbacks)
**Key Glyph Font:** the system UI font (`--font-keys`), so shortcut glyphs such as ⌘⇧⌥⌃↵ render as they do in native menus
**Character:** a neutral sans for chrome and a coding mono for content. Neither performs. Hierarchy comes from weight and colour, not size.
### Hierarchy
- **Title** (600, 13px, 1.4): tool window titles, section headers, dialog titles and emphasised names. Weight 600 is the system's main emphasis.
- **Body** (400, 13px, 1.4): default UI text, menus, tree and list rows, and buttons.
- **Label** (400, 12px): the most common size. It covers secondary metadata, chips, status bar items, table cells and hints.
- **Label Tiny** (400, 11px): stripe labels, counters and badges.
- **Input Large** (400, 15px): Search Everywhere and similar large query fields.
- **Code** (400, 13px, 22px line height): the editor, console, terminal and every monospace preview. Ligatures are off by default and follow the `editor.ligatures` setting. Users set the weights (`--fw-code`, `--fw-code-bold`) and the size.
### Named Rules
**The Flat Scale Rule.** The UI uses 11, 12, 13 and 15px, and nothing in between. Emphasis is weight 600 or a stronger ink colour, not a bigger size.
**The User Owns Size Rule.** Sizes are tokens because users change them (UI font size, editor font, compact mode's -1px chrome offset). Never hard-code a font size.
## Layout
The window is a grey frame holding docked islands: the editor in the centre, tool windows around it, stripes of tool window buttons on the edges (58px wide), a titlebar with the main toolbar (40px), and a status bar (30px). The status bar sits directly on the frame with no divider. Islands sit 6px apart and have 10px corners. Trees are inset 6px inside their island.
Spacing follows a 4px grid (`--space-0-5` to `--space-4`, 2–16px). It is used for gaps, with component heights doing most of the rhythm work: rows 24px, fields and buttons 28px, small controls 24px or 20px, tabs 28px in a 38px tab bar, and tool window headers 40px.
**Compact mode** (`data-compact`) is a full variant, not an afterthought. Rows drop to 22px, fields and buttons to 24px, the titlebar and headers to 32px, the status bar to 24px, the island gap to 4px and island corners to 8px, and chrome text gets 1px smaller. Every layout must hold in both modes.
The app is a desktop window. It is never a scrolling page: the document never scrolls, and every scroll region is its own scroller inside an island. Dialogs open about 10vh from the top and below the titlebar. Wide reading surfaces, such as an agent conversation, cap their width (900px) inside the island.
## Elevation & Depth
Static layout is flat and layered by tone. The grey frame sits under white islands (in Dark, a lighter frame under darker islands). Shadows exist only on surfaces that float above the layout: popups, menus, dialogs, tooltips, balloons, undocked tool windows and drag ghosts. Dialogs use a window-style shadow, because they are separate windows in spirit.
### Shadow Vocabulary
- **Popup** (`--shadow-popup`; Light `0 6px 20px rgba(0,0,0,0.12)`): popups, menus, completion and the floating editor toolbar.
- **Dialog** (`--shadow-dialog`): a hairline ring plus two soft drops, like a native window shadow.
- **Tooltip** (`--shadow-tooltip`) and **Balloon** (`--shadow-balloon`): small and medium drops for hover help and notifications.
### Named Rules
**The Flat at Rest Rule.** No docked panel, island, row or control gets a shadow. A shadow means "this floats over the workbench and will go away". Depth inside the layout is only ever a tonal step.
## Shapes
Corners scale with the size of the surface. Small controls get 4px (buttons, fields, combos, rows, small icon buttons). Toolbar buttons, chips, tabs and tooltips get 6px, and selection highlights get 5px. Popups get 8–10px, and islands and dialogs get 10px. Compact mode tightens island corners to 8px and combo corners to 2px. Frames are drawn as 1px inset box-shadows rather than borders, so they never shift layout and can double on focus. There are no pills, circles (apart from macOS window buttons and status dots), or rounding beyond 10px.
## Components
Quiet and dependable. Components don't call attention to themselves, they behave the same everywhere, and they come from `src/ui/` primitives before anything custom.
### Buttons
- **Shape:** gently rounded (4px). Minimum width 72px, 28px tall, 16px horizontal padding. The small variant is 24px tall with 10px padding.
- **Primary:** Workbench Blue fill with white text. Hover mixes it toward the strong ink colour (`--accent-hover`). Use it for one default action per dialog.
- **Secondary:** island-coloured with a 1px Control Edge inset frame. Hover darkens the fill by about 6%.
- **Ghost:** no fill or frame, secondary ink colour, 8px padding. Hover shows the toolbar hover wash and strong ink. Pressed is a stronger wash.
- **Focus:** a 2px Workbench Blue outline, 1px outside the button. **Disabled:** transparent fill, faint text and a hairline frame.
- **Motion:** background, colour and frame change over 80ms (`--dur-fast`) with `--ease`. There are no transitions under `prefers-reduced-motion`, and forced-colours mode gets a real border.
### Icon Buttons (toolbar actions)
- 20, 24 or 28px square, with 6px corners (4px at 20px). The icon is muted at rest.
- Hover shows the toolbar hover wash (`--bg-toolbar-hover`, a translucent ink) across the full hit target, and the icon turns strong ink. Pressed shows `--bg-toolbar-pressed`.
- A toggled-on button (`aria-pressed`) shows Selection Wash. The focus ring is drawn 2px inside the button.
- Tone variants (`danger`, `accent`) recolour only the icon.
### Chips
- **Style:** flat, like the main toolbar's project and branch widgets. They are 22px tall with 6px corners, have no fill or frame at rest, and use 12px secondary ink with a muted icon.
- **State:** a chip that opens a picker gets the toolbar hover wash. A read-only chip never changes on hover.
### Inputs / Fields
- **Style:** 28px tall with 8px horizontal padding and 4px corners. Island fill with a 1px Control Edge inset frame. Placeholders use the faint ink.
- **Focus:** the frame turns Workbench Blue and doubles with a 1px outer ring, drawn entirely with box-shadow.
- **Error:** the same doubled ring in `--danger`. **Disabled:** transparent fill, faint text and a hairline frame.
- Search fields have a muted leading icon. Monospace fields use the code font.
### Lists and Trees
- Rows are 24px (22px compact). The selection is a 4–5px rounded wash inset from the island edge, not a full-bleed bar.
- A focused selection uses Selection Wash, and an unfocused one drops to a neutral grey. Hover is a faint translucent wash. Search matches use `--bg-search-match`.
### Popups, Menus and Dialogs
- **Popups and menus:** `--bg-popup` with a 1px popup frame, 10px corners (`--radius-popup-large`) and the popup shadow.
- **Dialogs:** Raised Paper body with 10px corners and the dialog shadow. They behave like IDEA's dialogs, which are separate windows: the modal layer blocks the workbench but never dims it. The footer actions are right-aligned buttons. Focus returns to wherever it came from when the dialog closes.
### Tabs
- 28px tabs (24px compact) in a 38px bar, with 6px corners and 8px horizontal padding.
- As in IDEA, only the part holding focus accents its selected tab (`--bg-tab-selected` with `--border-tab-selected`). Elsewhere the selected tab drops to the neutral inactive pair.
- **Tooltips:** 6px corners with 6px × 10px padding, using `--bg-tooltip` (white in Light, dark grey in Dark) and the tooltip shadow.
### Tool Window Stripes (signature)
The edge bars of tool window buttons are 58px wide on Frame Grey, with icons over 11px labels. Hover and selected states are translucent ink washes. The selected button of the active tool window fills with Workbench Blue and white content. This is the one place the accent fills a large shape in the chrome, and it marks the active tool window.
## Do's and Don'ts
### Do:
- **Do** match IntelliJ IDEA's Islands theme for any metric or state that isn't tokenized yet. Take the value from the theme key and name the key in a CSS comment (for example `Button.arc 8 (radius 4)`).
- **Do** take every colour and metric from `src/styles/tokens.css`, and add a token for every theme variant when you need a new one.
- **Do** separate regions with a tonal step (frame against island) or a 1px hairline, never with a shadow.
- **Do** keep toolbar buttons and chips without a frame at rest, with the toolbar hover wash over the full hit target.
- **Do** draw frames and focus rings as inset box-shadows (1px at rest, doubled on focus), and keep the 2px Workbench Blue focus outline visible.
- **Do** check every surface in Islands Light and Islands Dark at least, as the contribution guidelines require. Check High Contrast and compact density whenever a change touches colour or metrics.
- **Do** keep transitions to state changes: 80ms (`--dur-fast`), 140ms (`--dur`) or at most 220ms (`--dur-slow`) with `--ease`, and none under reduced motion.
- **Do** use icons from the `src/ui/icons.tsx` registry, drawn in `currentColor`.
### Don't:
- **Don't** make it look like a web app: no large rounded cards, airy marketing whitespace, decorative gradients, hero illustrations or corners above 10px. The project wash is the one gradient in the chrome. Progress shimmer counts as activity, not decoration.
- **Don't** invent a look or behaviour where IDEA already has one. A custom variant of an IDEA pattern breaks muscle memory.
- **Don't** add a second accent. Any hue other than Workbench Blue must carry status, VCS, diff, syntax or chart meaning.
- **Don't** add attention-seeking animation: no bounces, no staggered entrances, and no state transition over 220ms. Looping animation is only for activity that is really happening (spinners, progress, loading shimmer, a running pulse, the caret), never decoration.
- **Don't** put shadows on docked panels, islands, rows or controls.
- **Don't** use sizes off the 11/12/13/15px scale, or hard-code a font size users can change.
- **Don't** use hex, `rgb()` or named colours in component CSS or inline styles.
- **Don't** use emoji as icons or decoration, or inline ad-hoc SVG in a feature.
The IDE is a Tauri desktop app for macOS, Windows and Linux. Its UI is a web frontend (React, CSS Modules) inside the system webview, with its own design language rather than each operating system's native one. Scope: this record covers the IDE application only. The openidea.sh docs site and home page (`docs/`) are out of scope.
## Users
- **Primary: JetBrains users who want something lighter.** They already know the IntelliJ IDEA keymap, tool windows and search-everything habits, and find IDEA heavy and slow. They do everyday multi-language development on the desktop: editing, navigating, refactoring, running and debugging, Git, terminal, database and HTTP clients.
- **Primary: developers working with AI coding agents.** They run CLI agents (Claude Code, Codex, Gemini CLI, Copilot, Cursor and others over ACP) inside the IDE as tasks, often several at once, each in its own Git worktree or in the checkout. They review the agents' diffs, answer their permission requests, and give agents the IDE's own tools through the built-in MCP server.
- **Secondary: people moving from VS Code or Eclipse.** Their keymaps are built in.
## Product Purpose
OpenIDEA brings the IntelliJ IDEA way of working to a native app with a Rust core: editor, code insight, debugger, Git, terminal, database and HTTP clients for 60+ languages. Success means people who know the IDEA way of working can switch without relearning anything, and it opens, responds and quits much faster while using a fraction of the memory.
## Positioning
"The IDE you know, rebuilt in Rust." The habits are familiar (keymap, tool windows, Search Everywhere, Alt+Enter), the app is open source (Apache 2.0), and performance is measured: on the published benchmark, the window opens in 0.9 s against 3.1 s and the app uses 169 MB against 2011 MB. Coding agents are part of the IDE (tasks, worktrees, diffs and the IDE's tools over MCP) rather than a separate chat app.
## Operating Context
- Long sessions in one desktop window: the editor in the middle, tool windows docked around it, and keyboard-first navigation (Search Everywhere, Find Action, Go to Class/File/Symbol).
- Local projects, and remote development over SSH or in dev containers through the `openidea-server` backend.
- Agent tasks running alongside the developer's own work, with diff review and permission prompts.
- Built-in themes: Islands Light (the default), Islands Dark, High Contrast, Solarized Light and Solarized Dark, with an option to follow the OS's light or dark mode. Users can import IntelliJ themes and `.icls` colour schemes, and plugins add more themes.
## Capabilities and Constraints
Hard constraints future work must preserve:
1. The default keymap and interaction habits stay the same as IDEA's.
2. All user-visible text is written in English and must also have a Chinese translation, through the text catalog (`T`, translated `aria-label`).
3. WebKit floor is Safari 15.4 (macOS 12). No regex lookbehind or `v` flag, no import attributes, and no newer runtime APIs in startup code. `scripts/check-webkit.ts` enforces this.
4. Design tokens in `src/styles/tokens.css` are the public theme API for plugins. Components use tokens only and never colour literals. A new token needs a value for every theme variant, and the docs must be regenerated with `pnpm gen:theme-docs`.
5. Every user operation is an action with a stable id, reachable from the keyboard and Find Action, not only by mouse.
6. No emoji as icons or decoration, in the UI or in user-visible text. Icons come from the `src/ui/icons.tsx` registry.
7. Performance (startup, memory, idle CPU) is the core selling point. UI work must not slow it down.
Other facts:
- Plugins are sandboxed WebAssembly components that add actions, completion, quick fixes, tool windows, custom editors, themes, file icons and languages. The plugin API is still a preview.
- UI is built from the primitives in `src/ui/` (Button, Dialog, Popup, Menu, List, Tree, Tabs and others). Workbench pieces come from contributions, not custom layout.
## Brand Commitments
- Name: OpenIDEA. Wordmarks are in `src-tauri/icons/source/` (`openidea-wordmark.svg` and `openidea-wordmark-dark.svg`).
- Not affiliated with JetBrains. IntelliJ IDEA is a trademark of JetBrains s.r.o.
- Voice is plain, short and factual. It states measurements with their conditions rather than superlatives.
## Evidence on Hand
- Benchmark table and method: `README.md`, `perf/compare`. The conditions are stated with it: freqtrade, warm caches, median of 5 runs, Windows 11, 32-core AMD.
- Demo video linked from `README.md`.
- No testimonials, customer logos or user counts exist. Do not fabricate them.
## Product Principles
1.**Familiar first.** Existing IDEA habits must keep working. New behaviour must not break that muscle memory.
2.**Speed is a feature.** Every surface is judged by how much it costs in startup time, memory and responsiveness.
3.**Keyboard reachable.** If something can be done, it is an action that can be found and bound.
4.**Agents work inside the IDE.** Agent work is reviewed and controlled with the IDE's own tools: diffs, worktrees and permissions.
5.**Themeable by contract.** Visual decisions go through tokens that themes and plugins can rely on.
## Accessibility & Inclusion
- Use real `<button>` and `<input>` elements or the primitives that render them. Every icon-only button has a translated `aria-label`.
- Keep focus visible and predictable. Dialogs and popups return focus to where it came from.
- A dark high-contrast theme (`dark-hc`) ships and must be kept working.
Loaded 100 of 2632 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.