ParseContext.changes() in @codemirror/language handed the parent context's skipped array to the child whenever there was nothing to remap, so a speculative state.update() (paste reindent, Shift+Enter, Move Line, Complete Statement) let StreamLanguage's skipUntilInView push a range past the live document's end into the live state's array. Applying the real transaction then threw RangeError in ChangeSet.mapPos and broke the editor for .properties and other StreamLanguage files longer than the viewport. The patch gives every child context its own skipped array.
Closes#7989
Co-authored-by: wildcatDownstairs <26499420+wildcatDownstairs@users.noreply.github.com>
The color gutter now shows a swatch for every color on a line, side by side in source order: literals as before, plus each var(--name) whose value resolves to a color through the project's custom properties (web_css_variables, the same data the var( completion uses), following nested references and fallbacks with a depth limit and cycle check. oklch(), oklab(), lch(), lab(), hwb(), color() and color-mix() are detected as colors (swatch only). A color function with var() inside takes the project's values instead of the IDE's own custom properties, and shows no swatch when one doesn't resolve.
Closes#8017
Co-authored-by: Inf1mum <8135225+Inf1mum@users.noreply.github.com>
Adds Editor > General > Appearance > Rainbow indent guides > Fill indent levels (off by default). With it on, each indent level's whitespace is tinted in its rainbow colour at low strength, including code lens rows and blank lines; the caret's and matched-brace levels are highlighted the same way. The setting is declared in the backend settings schema so it can be saved.
Closes#7883
Co-authored-by: Inf1mum <8135225+Inf1mum@users.noreply.github.com>
Compare with Branch… / Compare with Revision… on a folder or multi-selection, two-commit Compare Versions from the Git Log, the branches' Show Branch Diff and Show Diff with Working Tree now open one closable, titled tab per comparison in the Compare tool window instead of a separate comparison window. Only the active comparison loads; closing the last tab, or switching projects, removes the stripe button, which shows the number of open comparisons as its badge. The tabs use the shared Tabs strip (hidden-tabs dropdown, Close Tab / Close All Tabs / Close Other Tabs). Compare with Current keeps the two-pane branch comparison editor and a single file still opens its diff tab.
Closes#7813
Co-authored-by: Inf1mum <8135225+Inf1mum@users.noreply.github.com>
Windows PowerShell's default execution policy is Restricted, so in the integrated terminal npm.ps1, nvm/Volta Node shims and a virtualenv's Activate.ps1 could not run. A plain PowerShell start in the terminal now gets -ExecutionPolicy Bypass (process scope) before -NoExit -Command <init>, and MCP run_command running a line in PowerShell on Windows gets the same. Process scope changes nothing outside that PowerShell process, a Group Policy setting still takes precedence, and a shell with explicitly configured arguments starts as configured.
Fixes#7920
[[contributes.cloneSources]] (API 1.21) adds an entry to the Get from VCS source list whose required web page lists repositories and hands the chosen one to the dialog with {"op": "clone-url", "url": …}. The page is served and messaged like other plugin web UI under the key cloneSources/<id>; the dialog fills its URL and directory and git only runs what the user confirms. The standalone Get from VCS window registers only this contribution point. plugin_web_page and plugin_view_event now also run in projectless windows (outside_restricted); Restricted Mode still runs no plugin UI or code. Docs list the point under API 1.21.
Fixes#5572
Co-authored-by: arookieofc-ai <282213208+arookieofc-ai@users.noreply.github.com>
While a reply streamed, the conversation followed the end only after a React render or when the stream itself resized, so a row that grew later on its own (a highlighted code block, a laid-out diagram or image) left the end of the reply hidden under the composer. The rows' ResizeObserver now brings the view back to the end while it follows the end and nothing else moved the offset: not while the reader scrolls up, drags, uses Find, has fold slack below, or while the tab is hidden.
New and Paste on a compacted folder row (TEST/123) always target the deepest folder, so a folder in the middle of the chain could not be reached from the tree. A Show Individual Folders entry in the context menu of a compacted row now shows each folder of that chain as its own row for the current session, so an intermediate folder can be selected for New, Paste and the other folder actions. The compacted row keeps targeting its deepest folder, and the Compact Middle Packages option is unchanged.
Fixes#8022
Co-authored-by: ambersariya <1080238+ambersariya@users.noreply.github.com>
Running a Maven goal or Gradle task from its tool window went through run.runConfig with a temporary configuration, and adoptTemporary always selected it, so the just-run goal replaced the configuration selected in the Run Configurations dropdown. The tool window now passes select: false and adoptTemporary only selects when asked; editor and gutter runs still select their temporary configuration.
Fixes#8016
Co-authored-by: Inf1mum <8135225+Inf1mum@users.noreply.github.com>
The modal Commit Changes dialog now has a Changelist chooser above the changes. It starts at the active changelist; the tree shows that list's changes plus unversioned files, and only that list's changes are committed, so a file ticked in another changelist can no longer slip into the commit. A legend below the tree counts the included files as added (new + unversioned), modified and deleted. The non-modal commit view is unchanged.
Refs #7433
Co-authored-by: wildcatDownstairs <26499420+wildcatDownstairs@users.noreply.github.com>
Linked worktrees of the repository at the project root that live below the root (any path, e.g. some/folder or .wt/topic) are now detected from <common_dir>/worktrees/*/gitdir and marked excluded, so they stay out of indexing, the file watcher, Find in Files and the Commit module list. Worktrees of other repositories, submodules, a linked worktree opened as the project root, attached workspace members and Cancel Exclusion are unaffected.
Co-authored-by: dengliu <5108773+dengliu@users.noreply.github.com>
API 1.21 added the editor's visible lines as a third element of an event's editor payload, null when the client sent none. The remote focus test still expected the two-element form and failed on every Linux run.
Co-authored-by: arookieofc <186315048+arookieofc@users.noreply.github.com>
The Find shortcut did nothing in Markdown Preview Only. It now opens the console find bar above the preview (Match Case, Words, Regex, match counter, previous/next), searches the rendered text including inline formatting and offscreen matches, follows the configured Find shortcuts, and Escape returns focus to the preview. The source editor keeps its own Find in split and editor views.
Co-authored-by: faysou <893862+faysou@users.noreply.github.com>
The repository scan skips symlinks, so a file opened through a file symlink or a symlinked directory whose target lies outside the registered Git roots had no Git Blame or change markers, even when Git tracked the target. Read-only editor commands (blame, line hunks) now use the target's repository, discovered with the restricted read policy and never registered for status or Commit; excluded mappings and a disabled Git integration are honoured. The editor probes once per open file whether the link has committed history: only then do Annotate and the markers apply, and ordinary files in projects without Git make no further backend calls on edits.
Co-authored-by: igallart <13520529+igallart@users.noreply.github.com>
The Commit tool window meant to draw only the active changelist in bold, but the stylesheet only gave inactive lists font-weight 400, the weight every group label already has, so the active list looked like the others. Lists also appeared in creation order. The active list is now bold and comes first, the other lists follow by name in natural order, and Unversioned Files stays last.
Refs #7433
Co-authored-by: wildcatDownstairs <26499420+wildcatDownstairs@users.noreply.github.com>
Next / Previous Difference scrolled with the browser's smooth scroll, whose duration grows with the distance, and the other pane only followed on scroll events, a frame behind. The jump now animates with an ease-out for at most 100 ms (none for a line or less, full length from eleven lines on), the other pane moves in the same frame, a wheel or pointer still interrupts it, and reduced motion still jumps instantly. The unified diff uses the same animation and stops an unfinished jump before the next one.
Refs #7433
Co-authored-by: wildcatDownstairs <26499420+wildcatDownstairs@users.noreply.github.com>
Notebook Markdown cells always parsed with a single Marked instance with breaks off and didn't read languages.markdown.softLineBreaks, so "Break on single newline" had no effect there. Markdown cells now use the setting and re-render when it changes; hard breaks, code blocks and math are unchanged.
Fixes#7941
Co-authored-by: wildcatDownstairs <26499420+wildcatDownstairs@users.noreply.github.com>
Once a project has more matching files than a plugin navigation graph covers, discovery fills the graph with exactly that many files. Opening, saving or changing any other matching file then failed its whole index batch with "navigation file limit reached", showed a raw error notification, and ran the plugin's indexer before throwing the result away.
A full graph now keeps updating the files it covers and skips the others before calling the plugin. Discovery picks the covered files by path, so the same files keep navigation across index rebuilds.
Fixes#7985
Typing open in Run Anything lists recent projects and filters them as the user keeps typing. Choosing one opens it as Open Recent does: an open project's window comes to the front, otherwise the Open project in setting applies. Opening a project is not added to the Run Anything command history (new optional RunAnythingItem.addToHistory).
Co-authored-by: aLIEz1 <38580409+aLIEz1@users.noreply.github.com>
Adds README.ru.md and links it from the language switcher of every README; the Chinese README also gains its missing link to the Turkish one.
Co-authored-by: yaleksandr89 <44297420+yaleksandr89@users.noreply.github.com>
A plugin dialog is modal: like the IDE's own dialogs, a click outside it does nothing. popup = true on [[contributes.dialogs]] (API 1.21) opens it as a lightweight popup instead, as Search Everywhere is: the title heads the popup rather than a title bar, and a click outside it or switching to another window closes it, with the same closed view event. Without the field nothing changes.
Closes#7974
Find selects the current match, and the selection is repainted inside the match's own mark. The selected text kept the match's foreground, meant for the yellow match fill, so on a dark theme the current match was dark text on the blue selection. Selected text inside a find match now takes the scheme's selection foreground, or the editor's when the scheme sets none.
The All tab of Search Everywhere showed 6 results per group before "more"; it now shows 15, as many as each "more" adds.
Fixes#7972
A plugin dialog focused its Close button while its page loaded, and a plugin web tool window left the focus on its body when activated, so typing went nowhere until the user clicked into the page. WebKit doesn't let a sandboxed frame focus a field before the user acts on it, so the page's autofocus or focus() could not help.
The dialog and the tool window now focus the plugin frame, and the frame bridge sends a key typed while nothing in the page has the focus to the page's autofocus field. Shortcuts, Tab and Escape keep their meaning.
Fixes#7973
Agents create full checkouts of the repository in .worktrees and .claude/worktrees below the project root, so Find in Files returned every file twice and navigation could land in the copy. Both folders are now excluded directly below the project root and each workspace project's root, like a Project Structure excluded folder; jdtls gets them as import exclusions only when they exist, so other Java projects keep their workspace.
New Worktree suggested the repository's parent folder, which is the project itself when the project is a folder holding the repository. The default location now starts next to the project folder and moves up while it is still inside the project, a content root or the repository.
Closes#7957
The clone window booted without the workbench and never provided the embedded terminal service the Sign In to GitHub CLI dialog uses, so Add account… showed "The terminal is not available in this window." The clone window now provides it lazily, as the Settings window does. The Sign In button on the not-logged-in state uses the same dialog.
#7934 added Rearrange code to Settings > Actions on Save, so the table has five rows, but actionsOnSaveLayout.spec.ts still expected four and failed on main. The test now expects the new row, includes it in the alignment checks and asserts its trigger cell stays empty while the action is off.
Co-authored-by: Greenker <76565859+Greenker@users.noreply.github.com>
A cleared font field showed nothing and the font list gave no hint of the default family. Font pickers with a default (UI, editor, terminal, chat and chat code fonts) now show it as the placeholder of an empty field and mark it Default in the list, and opening the list selects and scrolls to the current family.
Fixes#7952
Settled answers to agent questions and ACP elicitation forms were drawn in the single-line, ellipsized permission record, in reverse order (choice before question), and with a minus icon because permissionResult treated answers that matched no permission option as rejected. Answered questions and forms now render through a shared QuestionRecord row: a check or minus icon, the chosen answer wrapped in full, short prompts inline, and long or multi-item question or form context folded behind the existing Fold disclosure. Tool and command approval records stay single-line.
Co-authored-by: dengliu <5108773+dengliu@users.noreply.github.com>
Reformat applied its edits with scrollIntoView: false and CodeMirror kept scrollTop, so when the formatter added or removed lines above the caret, the caret slid up or down on screen. The edit now measures the caret's viewport row before the transaction and compensates scrollTop after it, falling back to the caret's line block when its row is no longer drawn. Explicit Reformat Code, format on save and the external formatters all go through this path.
Co-authored-by: Greenker <76565859+Greenker@users.noreply.github.com>
Go to Implementation(s), Go to Declaration or Usages, Go to Type Declaration and Super Method required an active text editor tab, so they did nothing while a diff had focus. They now run on the focused diff pane when it shows a file's document; revision panes have no document and keep them disabled. Option+Command-click focuses the clicked pane before checking whether the action is enabled.
Closes#7960
Co-authored-by: Pecnikas <87540740+Pecnikas@users.noreply.github.com>
The Close Remote Development Window dialog gets a Don't ask again checkbox that saves Stop Backend or Keep Backend Running to the new client setting general.closeRemoteWindow (ask | keep | stop); later closes apply it without asking. Settings > Tools > Remote Development > When closing a remote window changes it back.
Refs #7929
The mock's default grant list lacked project.write, database.schema, secrets, agents and java.agent, so tests using MockHost::install() got Denied from calls the mock itself checks. It now has every capability that takes no value; an SDK test pins it to the names the mock requires and a host test to the capabilities the manifest parser accepts. Plugin components rebuilt.
Fixes#7946
Trust Folder in a remote window trusted the parent folder on the server, but this machine kept only the one project's decision, so opening another project in that folder asked again. The desktop now records trusted folders per remote target and treats projects under them as trusted (an explicit Don't Trust still wins); Remove Trusted Location in a remote window forgets the folder here too. Existing per-project decisions keep their key.
Refs #7929
On a case-insensitive file system a case-only rename's two roots name one directory entry. The workspace edit snapshotted both, and restore deleted and recreated each in turn, so undo left the new spelling on disk. Now only the spelling on disk keeps a snapshot, and restore clears the roots without one before recreating the others.
Co-authored-by: audichuang <72485427+audichuang@users.noreply.github.com>
text-editor.visible-lines (editor.read) returns the first and last document line shown in the editor when the command or event was invoked, or none when the editor is not on screen. The workbench fills it from the focused editor view with the rest of the plugin editor context; older clients leave it out. SDK: TextEditor::visible_lines and MockHost::set_visible_lines. Plugin components rebuilt.
Refs #7928
The Compare with Branch window gets a Get action (toolbar and dialog button) that replaces the selected local files with their content in the compared revision: missing files are created, files the revision lacks are deleted, and a renamed file is restored under its old path. The window can be maximized where the app draws its own title bar.
A file of the revision that is back in the working tree as an untracked file is now one change (modified, or omitted when identical) instead of a deletion plus an untracked file.
Closes#7917
Installing a marketplace plugin disabled every other Install and Update button until it finished. Each marketplace plugin now tracks its own download: others can be installed meanwhile, and the install pages of finished downloads follow one another. A second click on a plugin already on its way does nothing.
Refs #7911
The Tomcat run tab showed its Rerun / Stop / Debug / Update / Open in Browser toolbar on a row of its own above the Server, Deployment and log tabs. The toolbar now follows those tabs in their row, with Edit Configurations at the end, so the output gets that row back.
Closes#7912
Hovering any part of a Commit window file row that the panel cuts off shows the file's path relative to its root; a row that fits keeps its parts' own tooltips. The tooltip host takes this as data-tooltip-clipped, shown while the element's content runs past a clipping ancestor or is ellipsised.
Closes#7926
caretKeysEverywhere bound "Control+H", which is not a key stroke, so Move Caret Left was never bound; it passed on macOS only because Ctrl+H deletes backward there. compactMode expects the 30px status bar, toolbarCustomization measures the first visible item after the Center group, the commit check spec accepts a sub-pixel clip, and codeLensLayout waits for the editor to measure.
Right after the `(` of a call followed by blanks or a line break, jdtls answers signature help for the enclosing call, so `outer(inner(⏎ args))` showed outer's signatures. The request now asks past those blanks.
Parameter info rows show the parameter list alone, without the method name and return type, and `<no parameters>` for an overload without any.
Fixes#7927
When a commit leaves a file with no local changes, its HEAD/index vs working copy diff tab closes. Pinned tabs, files with changes left after a partial commit, and other diffs (Log, Compare with Branch) stay open.
Closes#7914
An icon theme that replaces rerun-filled / stop-filled with coloured icons (Atom Material Icons) left a green icon on the green Rerun button and a red one on the red Stop button. A theme's icon for these on-fill names now keeps its shape but takes the button's foreground, and the filled buttons give monochrome icons that foreground.
Fixes#7923
Search Everywhere listed classes from dependency jars and the JDK with the language server's raw jdt:// URI as their location. Library rows now show the archive or JDK module, and the status line the archive and package.
Refs #7919
The Git log tints commits on the current branch (View Options > Highlight > Current Branch) with --bg-log-current-branch, an accent mix themes could not override. It is now a themeable token in the vcs group (Harbor Night template and theme docs updated; palette themes keep their base's mix), and IntelliJ theme import reads it from VersionControl.Log.Commit.currentBranchBackground.
Refs #7918