Refreshing Git Log no longer rebuilds the Branches pane when only worktree files changed. Unchanged refs are reused, ref sets of 4,096 or more are built in a Web Worker (keeping the previous tree until it answers), and tags sort with one numeric collator.
The agent chat, subagent, queue and agent settings strings left agent untranslated or used 代理 (proxy), while the rest of the Chinese UI says 智能体. They now read 智能体 / 子智能体 / 父智能体. Tool and command names (cursor-agent, ssh-agent, java.agent) are unchanged.
Plugins received project-tree-expanded only with the 500 ms workbench event batch, so notes they add to a folder's files appeared about half a second after the folder opened. The event, and anything already queued before it, is now posted at once.
Co-authored-by: NikoHXX <[email protected]>
Simplified Chinese strings used the authentication term for AI context-window tokens, the proxy term for coding agents in Skills and MCP, a rebase-plan wording for a plain discard, a different term for a submodule worktree and a misleading label for reasoning effort. They now use token, 智能体, 工作树 and 思考强度 like the rest of the UI.
Co-authored-by: lkidc <[email protected]>
With a CSV file on its Data tab, Cmd/Ctrl+F opened the Find bar of the text editor hidden underneath: it counted matches in the text, but nothing in the table was selected. The Data view now claims find.inFile with registerKeyClaim, as Markdown Preview Only does, and opens and focuses the table's own search instead; Find Next / Previous step through the table's matches while that search is open. Replace, a Find bar left open on the text, the Value panel's JSON editor and other panes keep their own Find.
Co-authored-by: audichuang <[email protected]>
With an editor colour scheme of the other brightness than the UI theme, the read-only previews of Problems, Usages and TODO and the Find in Files replace preview painted the UI theme's background and text under the scheme's syntax colours, so the selected line and its hits were barely readable. They now use the editor's surface, text, gutter and line-number colours; hits keep the accent tint with the scheme's text colour, the empty-state message keeps the UI colours, and changed lines in the replace preview tint the gutter's own background.
Co-authored-by: audichuang <[email protected]>
The incremental Java build treated every generated source as the output of an aggregating processor, so any change recompiled the whole source set, and a deleted source left its generated sources and their classes behind. The build state now records the source javac names as each generated source's origin (JDK 18+): a change compiles that origin, which regenerates its generated sources and replaces their classes, dependents of a generated class compile its origin, and deleting the origin removes them. Files a processor writes without an origin (generated sources, classes, or resources such as META-INF/services that aggregating processors rewrite from the compiled sources alone) still make the next change compile the set from scratch. Covered by real-javac tests with an isolating and an aggregating processor.
Co-authored-by: Lrxc <[email protected]>
Deleting a Java method or field name (void run() {} -> void () {}) threw 'RangeError: Mark decorations may not be empty' from refreshSyntax: Lezer represents the missing name with a zero-width Definition recovery node, and the Java declaration fallback colouring pushed it as a range. The same happened through the TypeScript syntax colours (@x.() -> @.()). The Java fallback now skips empty names, and the semantic plugin drops empty ranges from syntax, fallback and server ranges for every language before building marks.
Co-authored-by: audichuang <[email protected]>
A hanging ide-host integration test could run until the 75-minute Windows job limit and cancel the whole job, and the plugin integration tests failed differently on every local cargo test run. set_editor_providers (also called by RemotePlugins::start) is process-wide, so tests running as threads of one process overwrote each other's plugin host; they now hold a shared guard and run one at a time. The injected-language test closes its .sql document before enabling the fake SQL server and names the step that stalls after 30 s, and nextest ends an ide-host integration test after 5 minutes.
Closes#8370
Co-authored-by: danipl <[email protected]>
lsp_type_hierarchy took no request id and passed no cancellation token, unlike lsp_call_hierarchy, so replacing or refreshing a Subtypes tree, closing the Hierarchy tool window or an edit that made an inheritance gutter pass stale left the server's supertypes/subtypes searches running. The command now takes a RequestId and cancels prepareTypeHierarchy and each level's request, sending $/cancelRequest. The Hierarchy tree and the inheritance gutter cancel the requests they no longer need; a cancelled supertypes level is treated as unknown rather than empty, so the gutter caches no partial super-method markers and asks again, while Super Method still answers from the other levels.
Co-authored-by: audichuang <[email protected]>
Typing * in Go to File or Search Everywhere (User*Service, *Account*) found no files: the file index matches the query as a fuzzy subsequence but matched the * itself as a literal character. When the query as typed finds nothing, the Files search now runs again without its * wildcards (unless nothing but wildcards, a root prefix or a line suffix would be left), and a file's weight uses the same fallback so wildcard matches rank like the bare query. A file whose name really contains * is still found first.
Closes#8316
Co-authored-by: audichuang <[email protected]>
For 75 ms after a lookup opens, CodeMirror's interactionDelay makes acceptCompletion refuse, and template Tab handlers step aside while a lookup is open, so a quick Tab after typing an abbreviation inserted a tab instead of expanding the live, postfix or Emmet template (the intermittent reactComponentTemplates e2e failure). When only that delay refuses a lookup that typing opened, the completion Tab now closes it and passes the key on; a lookup the user requested (Ctrl+Space, Insert Live Template) or navigated keeps Tab, and a Tab after the delay still accepts the selected item.
Co-authored-by: audichuang <[email protected]>
Selecting all text and typing left an extra empty line at the end: always for files without a final newline, and for files with one when the browser took more than 50 ms to apply the edit (the intermittent e2e/cornerInset.spec.ts failure). @codemirror/view 6.44's DOMReader read a line break after the only remaining line because its stale tile still had breakAfter set. The patch applies CodeMirror's upstream fix (view commit 45438ff87c), which only adds the break when content follows, until a release includes it.
Co-authored-by: audichuang <[email protected]>
A Java file opened before jdtls finished importing the project resolved to the fallback standalone project and was never rebound: its didChange notifications were silently dropped, so the server kept the opened text and the file's diagnostics froze. When jdtls reports ServiceReady, each open Java file of that server instance is now reopened (didClose/didOpen with the current text and version) so it resolves against the imported project.
Co-authored-by: arookieofc-ai <[email protected]>
The MDX live preview runs the document's own code in the same frame as the
bridge that forwards shortcuts and link clicks to the IDE. That code can take
the bridge's port (for example by asking the host for the guest document again)
and post IDE shortcuts at any time, or open links while the pointer only hovers
over the frame.
A forwarded shortcut now counts only while the frame has the focus and the user
just pressed a key or clicked in it, the check plugin web views already make;
a link needs the same on top of the pointer being on the frame.
`openidea-server --web` served the workbench and its sign-in page without
framing or content-type headers, so any site could load the IDE in a hidden
frame and trick a click into it. Both pages now send
`Content-Security-Policy: frame-ancestors 'none'; object-src 'none'; base-uri 'self'`,
`X-Frame-Options: DENY`, `X-Content-Type-Options: nosniff` and
`Referrer-Policy: no-referrer`.
Several features wrote into fixed or guessable names directly under the system
temporary folder, which every user shares on Linux: the terminal's shell
integration scripts, Gradle init scripts, Java argument files, binaries and
classes of single-file runs, jdtls' temporary folder, the TypeScript watch
scratch folder, Claude and Copilot session files, the Android emulator and
Xcode build logs, CPU profiles, `devicectl` output and the throwaway Docker
config. Another local user could create those folders first and have the IDE
user run their code, or read and overwrite the files.
They now all live under `<temp>/openidea-<uid>` (`ide_core::private_temp`),
created owner-only; a name that belongs to someone else or is a symbolic link
is never used, and a folder of a random name takes its place for that run.
Co-authored-by: rohitdanda <[email protected]>
`ProxyCommand` and `Match exec` in `~/.ssh/config` run through `sh -c` with
`%h`, `%n` and `%r` substituted as written. A host or user name can come from
a project's files (a data source's SSH tunnel), so one holding `;` or `$(...)`
ran commands on this machine whenever the user's config had such a rule.
Connecting now refuses a host or user that OpenSSH itself refuses on its
command line: a leading `-`, whitespace, control characters or shell
metacharacters (a user may still be `DOMAIN\name`).
Rendered doc comments replace `{@link}`, `{@code}` and the other inline tags
with placeholders, sanitize the Markdown, then put the tags' HTML back by
string replacement. A placeholder inside an attribute value
(`<img alt="{@link Foo}">`) got that HTML too: its quotes ended the attribute,
and the rest of the comment's markup became attributes the sanitizer never saw.
The tags now go back on the sanitized DOM: into text nodes as their HTML, and
into attribute values as their plain text.
A remote server asks the desktop for plugin secrets, secret writes and OAuth
listeners on behalf of the plugins it runs. The desktop answered for any
installed plugin, enabled or not, and returned a declared secret without a
`secrets` grant, even while the remote project was still in Restricted Mode.
- Secret, secret-write and OAuth requests and plugin events from the server
are handled only once this machine trusts the remote project.
- They are answered only for plugins the desktop syncs to servers and that are
enabled; reading a secret also needs the `secrets` grant, as writing one
already did.
- A server's OAuth wait is capped at ten minutes; a disconnect still ends it.
Revert in the unified diff moves from an inline label into the gutter, so dragging across a change selects only code. In a commit diff the block checkbox and Revert share the first displayed row of each change in fixed slots. Both viewers show a file checkbox beside Current version and report how many changes are included when part or all of the file is excluded.
The Copilot home test built an absolute path from /home/test, which has no drive on Windows; it now uses a temp directory. The rearrange test rewrote the file with same-length text inside one mtime tick, which the background scan skips; it now moves the mtime forward.
A plugin's language server commands (.lsp.json, lsp.json, manifest lspServers) are now part of its executable capabilities and capability hash: listed in the install preview and approval dialog, and approved before they can run. Plugins without language servers keep their hash.
The pull request timeline and diff-thread comment fields and the Submit Review field use the editor-based TextField the commit message uses, so Vim attaches when Vim mode is on. Escape first leaves Insert or Visual mode, and in Normal mode or with Vim off cancels the comment as before; the @mention list keeps its keys ahead of Vim. TextField gains readOnly, onSelectionChange and onKeyDownFirst.
The parameter info requested after accepting a call completion with unknown arguments still appeared when Escape was pressed or the editor left before the server answered, and Escape before an auto-popup showed didn't cancel it. That request now counts as automatic, and Escape cancels pending automatic requests even with no popup shown, without consuming the key.
Escape on Parameter Info right after typing an argument closed the popup and the debounced refresh of the last keystroke brought it back about 120 ms later; leaving the editor did the same, and the auto-popup still opened on an editor already left. Escape and blur now cancel the pending refresh and auto-popup timer and drop replies to automatic requests sent before that; explicit Parameter Info and typing ( or , again still open it.
Co-authored-by: audichuang <[email protected]>
Bumps the GitHub Actions used by the workflows (checkout, cache, setup-node/java/go/python/dotnet, upload/download-artifact, github-script, pnpm/action-setup, gradle setup, taiki-e/install-action) to their current releases, pinned by commit.
Java documents show Spring AOP gutter icons: on an advised method, to the advices applied to it; on an advice method, to the methods it advises. One target navigates directly; several open the chooser (Navigate to AOP Advices / Advised Methods), advice rows showing the advice kind and its order when statically known. The backend adds server-independent SpringAopMarker types and lsp_spring_aop_markers, asking only a server attached to the document that declares experimental java-analyzer/springAopMarkers (java-analyzer first; jdtls and older builds are not asked), refreshing on java-analyzer/springAopMarkersChanged. The Spring bean gutter's request/refresh logic moves into a shared lspMarkerGutter driver used by both. fixtures/spring-app gains aspects covering both directions, all advice kinds, named pointcuts, &&/||/! and order.
Co-authored-by: aLIEz1 <[email protected]>
SyntaxCache::memoized stored each result behind an Arc but deep-cloned the Vec out of it on every cache hit, which for the outline (a tree of Strings) cost milliseconds on a 2 MB file. memoized now returns the Arc, and outline() and folding() return Arc<Vec<_>>; the two IPC commands that own and extend their result take it out once with Arc::unwrap_or_clone. Results are unchanged; outline_cached_hit went from 4.68 ms to 80 ns and folding_cached_hit from 21.7 µs to 72 ns in the criterion benches.
Co-authored-by: Ttimmahlax <[email protected]>
The modal commit interface's Commit Changes dialog shows the diff of the file selected in its changes tree below the changes and the message, with the embedded diff viewer used by the Commit tool window's preview. Preview Diff in the tree toolbar hides or shows it (remembered, shown by default); the dialog is larger while it is shown.
A remote open sets the opening state before it asks Trust and Open Project?, and every action except quitting and window switching is disabled while a project opens, so the prompt's answers were refused and the open hung. Actions gain whileProjectOpens; Trust Project, Preview in Restricted Mode and Don't Open set it.
Some focusedCell tests never destroyed their focused cell editor, and two cleaned up inside try rather than finally. Focusing a CodeMirror view schedules a 10 ms timer; when the file ended inside it, the timer called requestAnimationFrame on the torn-down jsdom window, failing the Frontend job with an unhandled error. Every cell editor is now destroyed in afterEach.
Co-authored-by: audichuang <[email protected]>
The WAR build for a Tomcat deployment and the Spring Boot resource update looked the module up from the root in projectsEvaluated and registered a task on it, which Isolated Projects rejects. When the build enables it and Gradle is 8.8 or later, each script registers its task on its one target project of the main build from gradle.lifecycle.afterProject (in an afterEvaluate added there); other builds and older Gradle keep projectsEvaluated. The Isolated Projects check is shared in ide-build/src/gradle.rs.
Co-authored-by: audichuang <[email protected]>
With org.gradle.isolated-projects=true, running, debugging, testing or covering through Gradle failed: the IDE's init scripts read every project from the root (allprojects, projectsEvaluated), which Isolated Projects rejects. When the build enables it and Gradle is 8.8 or later, the scripts (application run, bootRun, test events/debug, VM options, UTF-8 charset, coverage) configure each project on its own through gradle.lifecycle.beforeProject / afterProject, reading the setting from Gradle's public BuildFeatures; other builds and older Gradle run the previous code.
Co-authored-by: audichuang <[email protected]>
ssh_session_in_a_directory_starts_the_login_shell_there read only up to the first newline, which on Linux is the test server's separate pty 80x24 reply, so it failed there every time. It now reads up to the end of the command's line.
Co-authored-by: audichuang <[email protected]>
Sessions from other apps stayed empty when Claude Code's environment set CLAUDE_CONFIG_DIR=~/.claude-work: the value was used literally, so transcripts were looked up (and the agent launched) with a folder named ~. A leading ~ in an agent's environment value (alone or before a path separator) is now the user's home, when the agent is launched or signed in and when Claude Code's or Copilot's configuration directory is read. An empty CLAUDE_CONFIG_DIR or COPILOT_HOME counts as unset.
Co-authored-by: MDobak <[email protected]>
The .NET settings test waited for the SDK combo to read Not pinned, the placeholder shown before sdkDotnetStatus answers, so it read the SDK list whenever the answer happened to have rendered. It now waits for the list and checks the placeholder after.
Co-authored-by: audichuang <[email protected]>
Cut without a selection removes the caret line, but the caret was mapped into the line above, so a second Cut removed that line instead of the one that moved up. As IntelliJ's CutHandler does, the caret now goes to the start of the line that takes the cut line's place; after the last line, to the start of the line before it. Multiple carets follow the same rule.
closeBlamePopup renders null into the popup's React root; called outside act in afterEach, React sometimes ran that work after the test environment was torn down, failing the Frontend job with an unhandled window-is-not-defined error. Both blame test files now close it inside act.
The Update check failed notification showed only reqwest's top-level message (error sending request for url …), hiding what failed, such as a refused connection to a manual HTTP proxy that isn't running. ide_http::client::describe now takes any error and follows its sources, and the update check, the pre-download check and the download request/body reads use it. Endpoints, proxy routing and timeouts are unchanged.
Co-authored-by: Inf1mum <[email protected]>
New Project › Go still reported go is not installed when GOROOT was on Default and go wasn't on the app's PATH (started from the Dock or Finder), although Settings › Languages › Go lists the Go installs it finds. With no GOROOT chosen and no go on PATH, the wizard now uses the first detected Go install for the requirement check and the generator steps; a go on PATH still wins. Detection runs only for generators that run go.
New Project › Go said go is not installed and kept Create disabled whenever go wasn't on the login-shell PATH, even with Settings › Languages › Go › GOROOT pointing at a Go: the wizard searched only the host PATH, while Run and gopls use the GOROOT setting. For generators that require go, the requirement check and the generator steps now put <GOROOT>/bin ahead of PATH and set GOROOT, when that GOROOT holds a runnable go.
Co-authored-by: audichuang <[email protected]>
With a tag and a local branch both named release, picking either in the Git Log Branches pane filtered by release, which git resolves to the tag, and the pane highlighted the branch row for both. The filter now takes git's own unambiguous name for the picked ref among the repository's refs (git rev-parse --abbrev-ref=strict): tags/release and heads/release, the full ref when another ref takes those, the plain name otherwise. The pane maps a filter back to the row of the ref git resolves it to; a plain name that is both selects the branch. Renaming a branch also renames a heads/ or refs/heads/ filter.
Co-authored-by: audichuang <[email protected]>
Show Usages and the Find tool window gain the Show Import Statements toggle next to the read/write access filters: a usage on a line that begins an import statement (import ..., from ... import ...) is hidden when it is off. The option defaults to on and persists with read/write; saved settings without it keep showing imports. The popup's Open in Find Tool Window is an icon button with its shortcut in the tooltip. The icon is vendored from intellij-community (Apache-2.0).
Co-authored-by: chiyanking <[email protected]>