## What and why
Reordering project window tabs in `WindowGroupTabs` previously gave almost no visual feedback: the dragged tab only dimmed in place (`opacity: 0.55`) with no drag ghost, no drop-target indicator, no grabbing cursor or `Escape` cancel, and it waited for the backend IPC round-trip before updating the tab order.
This switches `WindowGroupTabs` onto the shared pointer drag-and-drop pipeline (`startPointerDrag`, `registerDropTarget`, and `dropIndex`) matching tool window stripes and tab strips:
- Shows a translucent ghost following the pointer (dimming when outside the tab bar) while keeping the source tab dimmed in place (`opacity: 0.4`) and hiding hover close/detach buttons during the drag.
- Marks the exact drop target with a 2px `var(--accent)` vertical insertion line (omitted on adjacent no-op slots).
- Optimistically applies the new tab order on drop (rolling back via `refreshWindowGroup()` on failure), swallows the trailing `click`, cancels cleanly on `Escape`, and respects `dragRequiresAlt()`.
## How it was verified
- `pnpm vitest run src/workbench/WindowGroupTabs.test.tsx src/platform/windowGroups.test.ts` — 2 test files, 13 tests passed.
- `OPENIDEA_E2E_PORT=1459 pnpm e2e e2e/windowGroupTabDrag.spec.ts e2e/windowGroupTabColor.spec.ts` — 2 Playwright E2E specs passed (both new drag feedback/reorder/cancel coverage and existing tinted-tab hover regression).
- `pnpm typecheck` — passed across all workspace tsconfigs including `e2e`.
- `pnpm exec oxfmt --check src/workbench/WindowGroupTabs.tsx src/workbench/WindowGroupTabs.module.css src/workbench/WindowGroupTabs.test.tsx e2e/windowGroupTabDrag.spec.ts` — passed.
## Review focus
- `projectTabDropTarget` mapping between `dropIndex` (`0..count`) and `reorderedTabs` target indices in `src/workbench/WindowGroupTabs.tsx`.
- `.dropBefore::before` / `.dropAfter::after` styling in `src/workbench/WindowGroupTabs.module.css` alongside the existing tab separator rule.
Made with [Cursor](https://cursor.com)
On Windows a Java debug session stopped in a Spring request showed no frames: with the
project's sourcePaths set, java-debug looks a CGLIB proxy frame's `<generated>` source up
there, Paths.get throws, and the adapter fails the whole stackTrace request. When that
request fails, the frames are now taken one at a time, leaving out the ones the adapter
can't describe. A stack trace failure that remains is logged and shown in Threads &
Variables with a Retry button instead of an empty list.
Fixes#6157
Co-authored-by: wildcatDownstairs <[email protected]>
clangd marks std and other standard-library namespaces with the defaultLibrary modifier, so the generic builtin (Predefined symbol) class overrode the Namespace colour. A C++ semantic hook drops the builtin class for namespace tokens only; other symbol kinds, modifiers and languages keep their styling.
Fixes#6123
Co-authored-by: txdywmwddhxs <[email protected]>
Since #6067 a column's local filter shows the checked values instead of hiding them, so the precise-filter case of databaseNumericSort.spec.ts failed on main and on every PR's E2E leg. The spec now checks the three values it expects to see.
The panel needed the workbench to run as a child webview, which on macOS declines key equivalents, so Command shortcuts went to the native menu and many were lost (#5954, #5992). Reverts #5788, #5917 and the #5956 key-monitor workaround; the workbench webview is the window's own view again on every platform. The panel can come back once it no longer needs a child webview.
Adds the annotate gutter's Options › Names submenu: Initials, Last Name, First Name and Full Name, with Last Name as the default. Names are shortened as IDEA's ShortNameType does: an <email> part is dropped, a bare email's local part is split on delimiters, initials also split on delimiters, and a name taken from an email is capitalized. The choice is remembered and shared across windows, and every annotated editor, including historical annotations, re-blames when it changes. The commit popup and inline blame keep the full name.
Co-authored-by: mansur-akhmadi <[email protected]>
After shrinking the viewport, mainToolbarLayout.spec.ts polled only the
short branch label and then read the project and run label widths at
once. The label cap is applied from a ResizeObserver in the next
animation frame, so the read could land before the labels shrank. The
test now polls until both long labels are narrower than their preferred
width before asserting.
Co-authored-by: audichuang <[email protected]>
Adds New Terminal Tab in Editor (terminal.newInEditor, unbound by default), which opens a fresh terminal session as an editor tab. Its keyWhen keeps it out of the Terminal tool window and popups, so it can share a key such as Cmd+T with New Terminal Tab, and editor terminal sessions pass its shortcut to the IDE. Keymap conflict detection now combines an action's when and keyWhen, so bindings in disjoint focus contexts are no longer reported as conflicts.
Co-authored-by: dengliu <[email protected]>
The frame's project colour gradient was pinned to the top-left corner, so it stayed there when the Project widget was moved to the Center or Right toolbar group. The title bar now measures the widget's icon whenever the bar or its entries change size and writes its centre to the frame as --project-gradient-x. Without the widget the gradient keeps the corner.
The status bar widget was capped at 240px and, when repositories are on different branches, the non-shrinking repository prefix took up to 120px of it, so branch names were cut to a few characters. The widget now grows to about 100 characters as IDEA's does, and a long repository prefix shrinks before the branch name.
The main toolbar's hammer now builds the selected Run Configuration's target and reads Build '<name>'; with no configuration selected it stays Build Project, and Build > Build Project (Cmd+F9) still builds the whole project. The target is resolved for application, Spring Boot, JUnit, Tomcat, Maven (-pl), Gradle (:subproject:task), .NET, Cargo, Go and CMake configurations.
Also fixes module and project build edge cases: relative file paths resolve against the project root, linked Maven directories are included when scoping a build plan, Go directory targets no longer step to the parent, a root with no build file of its own builds its Gradle and Maven sibling projects, and building an aggregator POM builds its subprojects. The Build tool window's rerun keeps the CMake target.
With smooth caret movement on, every mousemove during a drag selection restarted the caret's CSS transition, so the caret trailed the pointer (and on WKWebView the transition kept running after the button was released). Pointer-driven selection now moves the caret without the transition.
Closes#5928
Co-authored-by: NeverKnowsTomorrow <[email protected]>
The Coverage header kept a 10px scrollbar gutter for the tree's native scrollbar, which #5850 replaced with a DOM scrollbar drawn over the rows, so every header sat 10px left of its cells.
Also updates two agent e2e specs that failed on main: a reasoning step and its command now fold into one run (#5906), and the tool-window focus spec clicks reply text instead of a point that can land on a message's footer button.
Syntax and semantic token backgrounds no longer cover characters on neighboring lines when the font box is taller than the line height. Token fills now go through the same 1lh-capped inline background as Find and occurrence highlights, with the colour in --openidea-token-bg so semantic roles can override nested syntax fills; an unset fill paints nothing. The background size is a separate declaration, so WebKit without lh support still shows the fill.
Co-authored-by: dengliu <[email protected]>
Open Local Browser opens a Browser tool window hosting a Tauri child webview
for a loopback HTTP(S) origin in a trusted local project: back, forward,
reload, same-origin navigation, and Inspect Element, whose reviewed selection
is appended to the Agent draft without being sent. The guest webview has an
empty capability set; workbench capabilities are scoped by webview label, and
application IPC and the plugin protocol reject guests by label. Workbench
windows are tracked as their original WebviewWindow handles, because Tauri's
single-webview lookup stops matching once a child is attached; window
commands (including the parallel close flow) use those handles.
Console URL clicks keep opening the external browser; loopback URLs get
"Open in Browser Tool Window" in the Run and Debug console context menus.
The panel uses a one-row icon toolbar, fills the panel with the page, has its
own tool window icon and focuses the address field for a new session.
Co-authored-by: dengliu <[email protected]>
Co-authored-by: aditya-786 <[email protected]>
During a pane resize only the blocks the viewport observer marked reflowed; when the marks were missing (content replaced without a new render, a restored preview) every block kept its old width and visible text was clipped until the drag ended. A resize now marks the blocks in and near the viewport by position, and replaced content is observed again.
Quit, closing a tab group and Close Other/Left/Right Tabs now close their windows in parallel and hide them together in one frame; a window that needs to ask (unsaved changes, running processes, remote backend) takes the prompt turn and comes forward, so prompts still appear one at a time. Agent, terminal and process teardown moves off the UI thread into the project's background shutdown, idle agent tasks are no longer rewritten on close, and opening a project only waits for closes of overlapping roots.
#5806 replaced the Effort Level and Context Size radio groups with listboxes. agentCycleEffort.spec.ts still looked for radio groups, and five of its tests failed on main; they now use listbox / option.
History loads in front of the first row shown, which carries the agent's author header. Once earlier rows arrive the header moves, but an off-screen row already marked as measured kept the height it had with the header (content-visibility: auto). Jumping through a long chat therefore changed the scroll height by one header. Rows whose data-author changes are now laid out again.
The agent e2e specs now follow #5804's defaults (turns unfolded; only reasoning and read-only calls join a run). agentScroll counts six rows per turn and folds turns only for the folded-turn test. agentMarkdown opens the latest turn's reasoning directly, finds a command as its own row, and builds its run-layout fixture from read-only calls.
Flutter apps started with Run now run through flutter run --machine. Hot Reload and Hot Restart send app.restart requests with the app's id instead of typing r / R into the process. The buttons are enabled once the app reports app.started and supportsRestart.
The JSON protocol on stdout is decoded into plain console lines (app.log, progress, daemon messages, failed restarts). Lines outside the protocol show unchanged, and these runs never go through a terminal emulator.
Run-mode apps are kept in a workbench store, so the Flutter Inspector, DevTools and Extensions windows connect to them through the wsUri of app.debugPort, the same way they connect to Debug sessions. The Inspector lists Debug and Run apps together.
Part of #4096.
Co-authored-by: wildcatDownstairs <[email protected]>
Hiding a tool window reset the tree's measured viewport, so switching panes could briefly blank a populated tree. Large wheel jumps could also paint the new offset before the virtualizer mounted its rows.
Trees now keep their last viewport and offset while hidden. They scroll wheel jumps in the same event that updates the virtual rows, and they use the DOM scrollbar that already serves the commit list. Tool window content is no longer recreated on every frame re-render.
Co-authored-by: faysou <[email protected]>
Restoring many open folders rebuilt the tree model for every directory reply. Replies that arrive in the same frame are now applied in one update, so deep files appear sooner.
The Project view header's Expand All becomes Expand Selected. It opens each selected subtree as its folders load, and stays disabled without a visible selection. Collapse All now also closes the root rows and cancels a queued expansion. Expand All remains available as an action.
Co-authored-by: faysou <[email protected]>
The merge editor's three panes followed each other only vertically: scrolling
one sideways left the other two where they were. Each pane now gives the
others its horizontal offset, telling a scroll's direction by comparing with
its last position, and ignoring the scroll events its own moves cause.
When the last change is resolved, a notice under the toolbar says that all
changes have been processed and offers Save changes and finish merging, which
writes and stages the result.
Fixes#5731
With "Create solution" checked and a solution name that differs from the
project name, the new project's top folder was still named after the project
(MyProject/MySolution.slnx, MyProject/MyProject/MyProject.csproj).
Generators can now give the project folder its own name with a `directory`
template; .NET uses the solution name, so the result is
MySolution/MySolution.slnx and MySolution/MyProject/MyProject.csproj. Without
a solution, or with an empty name, the folder is the project's as before. The
New Project dialog shows that folder in its path hint and checks it for an
existing non-empty folder.
Fixes#5732
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
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 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]>
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]>
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]>
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]>
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.
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
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]>
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]>
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
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]>
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]>
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 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]>
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]>
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]>