A truncated element with a long data-tooltip put that text in the tooltip's shortcut slot (nowrap, keys font), which overflowed the bubble and crushed the main text to one character per line, as on the Remote Host Resources status item. The tooltip now shows such text as a wrapping note separate from the shortcut and honours data-no-tooltip up to the tooltip owner. The remote status items opt out of the redundant ellipsis tooltip and ellipsize their labels, and the breadcrumbs yield space first in the status bar.
Co-authored-by: dengliu <[email protected]>
Find in the Run and Debug consoles only scrolled vertically to the current match's row, so a match near the end of a line wider than the console stayed out of sight. Once the virtualized row renders, the consoles now scroll the current match mark into view with block and inline 'nearest', as the HTTP response view does. The reveal runs when Find moves or the query or options change, not on appended output, and its sideways scroll does not re-enable Scroll to End.
Co-authored-by: audichuang <[email protected]>
Favorite branches were one list per project, so in a multi-repository project starring a branch in one repository starred it in all of them. Each repository now has its own list, and every place that shows or toggles a star (Git Branches popup and submenus, the Git Log Branches pane and branch filter, commit and Tracked Branch submenus) reads and edits the list of the branch's repository. A single-repository project keeps the stars saved before.
Co-authored-by: audichuang <[email protected]>
Jump to Source, Review Mode and the details' checked-out state used the repository selected in the VCS widgets even when the connected pull requests belong to another repository. They now use the review repository: the selected one when it has the connected GitHub repository as a remote, else the connection's root. The branch widget offers the pull request entries only while the selected repository is the review repository.
Co-authored-by: audichuang <[email protected]>
Recent branches were stored once per project, so in a multi-repository project a branch checked out in one repository showed up under another's Recent Branches. They are now stored per repository root: checkout, New Branch, Rename, Checkout and Rebase and the multi-repository operations record each repository they ran in, and the popups read that repository's list. A single-repository project still reads the list saved before.
Co-authored-by: audichuang <[email protected]>
The Force Push confirmation's "Don't warn about this target" list was one app-wide entry of joined remote/branch strings, so silencing a target silenced it in every project and confused origin + team/feature with origin/team + feature. The list is now kept per project, under the key scheme Push tags already uses, as (remote, branch) pairs; the multi-repository Push dialog confirms such targets separately.
Co-authored-by: audichuang <[email protected]>
In the unaligned side-by-side diff with synchronized scrolling, a file ending in a long deletion or addition left one pane at its end while the other still had content below, and a wheel over the finished pane or the divider moved nothing. A synchronized vertical wheel that the pane under the pointer cannot follow now scrolls the other pane; the pointer's pane keeps leading, and wheeling back closes the overshoot over a few notches instead of snapping.
Co-authored-by: audichuang <[email protected]>
The Commit tool window builds a new, equal DiffData on every Git status refresh, and the two-pane diff rebuilt its views whenever the request objects changed identity, losing the caret, selection and current find match. The view-building effect now depends on the sides and annotations by content, so only a request with other sides or notes rebuilds the panes.
Co-authored-by: audichuang <[email protected]>
Open SKILL.md in Settings > Agents > Skills did nothing in the native Settings window, which hosts no editor service. The Settings window now forwards editor opens to its parent window over openidea://settings/open-file; the parent opens the file in its project or LightEdit editor (or through file.openPaths from the Welcome screen), raises itself and reports failures. In the in-page Settings dialog, a clean dialog closes so the opened tab is visible, and trailing slashes on skill paths are normalized.
Co-authored-by: dengliu <[email protected]>
The refactoring preview's count line and per-file counts were built from plain English strings. They now go through tx with singular and plural forms, as do the create/delete operation labels, with Chinese translations added.
Closes#6666.
Co-authored-by: wildcatDownstairs <[email protected]>
In Insert mode the editor's Escape bindings closed an open popup and stopped the key before Vim saw it, so leaving Insert mode took a second press. In Insert mode the bindings still close popups but no longer stop the key; Normal and Visual mode are unchanged.
Co-authored-by: zhzhsx <[email protected]>
xterm.js throws when a line height below 1 is set on a live terminal. With Settings > Tools > Terminal > Line height below 1, the throw inside the settings listener kept later listeners (Appearance and others) from applying until the window was reopened. terminalFont() now hands xterm at least 1, the height a new terminal already renders.
Co-authored-by: dengliu <[email protected]>
The first semantic-tokens request waited for the 600 ms edit debounce, so a newly opened file showed only syntax colours and then changed colour. The view now requests tokens as soon as it opens; edits still refresh through the debounce.
Co-authored-by: zhzhsx <[email protected]>
Syntax highlighting coloured t.namespace with Class name while semantic highlighting used Package reference, so namespace identifiers changed colour once the language server's tokens arrived. t.namespace now uses the namespace scheme attribute and falls back to Class name when a scheme leaves it unset.
Co-authored-by: zhzhsx <[email protected]>
Profiling a Python run with cProfile replaced the program's exit code with the profiler's, and Stop could end the run before the profile was written. A bundled launcher now runs the target under cProfile, keeps its exit code, and saves the profile once when the run ends or when Stop connects to a named pipe (a FIFO on Unix); the watcher blocks in C so it stays out of the profile. The Windows pipe is created in byte mode with PIPE_WAIT alone, since _winapi doesn't export PIPE_TYPE_BYTE.
Co-authored-by: wildcatDownstairs <[email protected]>
Rerun Failed Tests read every JUnit XML written in the two seconds before the run started, so reports Maven left untouched for skipped classes showed up as passes. The host now snapshots recent reports (mtime and blake3 digest) before a local JVM test process starts and, when it exits, reads only reports that are new or whose contents changed. Remote runs and older hosts keep the timestamp window. The Java smoke adds a second passing class to cover the rerun.
Closes#6699.
Co-authored-by: principalwater <[email protected]>
Reloads under a chosen or remembered encoding decode with ide_vfs::load_text_as, which never reports binary content, so a text file replaced by binary bytes was loaded as text and a later save corrupted it. The reload now probes the file head; when the file turned binary the document keeps its text and reports the change on disk, so autosave leaves the file alone and the user picks Load Changes from Disk or an explicit save. UTF-16 text and buffers already opened as text despite NUL bytes reload as before.
Co-authored-by: audichuang <[email protected]>
macOS 27 shows the Writing Tools affordance over any editable WKWebView selection, covering the editor. The main, project and Settings windows now opt their WryWebView out of Writing Tools; the change is gated on macOS and leaves IME and selection untouched.
Co-authored-by: dengliu <[email protected]>
A Maven launch record served both as a reusable snapshot and as the signal to keep delegating to Maven. A failed build left a null record that could not be reused but, because the file existed, kept overriding delegateBuild=false. The need to clean mixed-language output is now persisted on its own (java-launch/delegation): a plain Java build failure or an unpublished snapshot no longer forces later launches through Maven, while a pending cleanup survives failures and restarts and is cleared after a successful Maven clean build. Legacy null and old snapshot records migrate conservatively (no output directory: no cleanup needed). Normal launches and shared Maven builds use the same check, and main launches ignore records kept only for test output.
Closes#5538
Co-authored-by: rolicon <[email protected]>
Follow-up to #6517. The Variables read shortens bytes, bytearray and str subclasses without building the full repr, and is interrupted after 5 seconds instead of dropped, so a run waiting behind it gets a drained kernel; a read interrupted for its time limit keeps the kernel. Interrupt, restart and close reach an in-flight read, and several reads can be in flight while a run waits for them.
Co-authored-by: wildcatDownstairs <[email protected]>
Follow-up to #6520. Find Usages, Go to Declaration and Rename of a pytest fixture now search where pytest would look: the defining test module, the test files below a conftest.py, or the project's test files for a plugin or pytest_plugins module, with test files taken from python_files in the configuration file pytest reads. A fixture imported into a conftest or test module is that module's own. Rename merges the language server's rename of the fixture function, refuses names that clash with a parameter or body name, an override or another fixture in scope, and invalid identifiers, and reads of a parameter skip nested scopes that rebind it.
Co-authored-by: wildcatDownstairs <[email protected]>
Follow-up to #6529. A run that inherits the IDE's environment now keeps an MPLBACKEND set in the login shell or the project's .envrc instead of replacing it with the Plots backend; debug launches get the backend too, unless their own environment names one. Figures dropped from the Plots tool window are deleted from the project's plots folder (plots_delete, limited to finished figures in that folder, compared canonicalized), and the watcher reports a figure once it is renamed into place.
Refs #6514
Co-authored-by: wildcatDownstairs <[email protected]>
Follow-up to #6617. The version control dialog now accepts pip's direct references (name @ git+https://..., with extras) and bzr+lp:project. Installing from a local path that does not exist fails before pip runs, with the path in the message; a trailing [extras] is not part of the path, and a folder whose name has brackets is still a folder. Typing an archive path clears the editable choice, so a directory typed after it starts unticked.
Co-authored-by: wildcatDownstairs <[email protected]>
Run configuration detection treated a .NET project as a test project only when it referenced Microsoft.NET.Test.Sdk, so an xUnit v3 project on Microsoft.Testing.Platform (OutputType Exe, no test SDK) got only a .NET Project configuration and the gutter found nothing to run for its tests. parse_project now uses the evaluated project model's rules: IsTestProject true; a Testing Platform property on (IsTestingPlatformApplication, TestingPlatformDotnetTestSupport, EnableMSTestRunner, UseMicrosoftTestingPlatformRunner) or an xunit.v3.mtp-* package; or, unless IsTestProject is false, MSTest.Sdk or a test framework package (Microsoft.NET.Test.Sdk, MSTest, NUnit, xunit, xunit.v3, TUnit).
Fixes#6602
clipboard_text was the only clipboard command declared trusted, so in Restricted Mode the native read was refused and readClipboardPlainText() fell back to the WebView's own read: WebKit's Paste callout on macOS (and WebView2's prompt on Windows) appeared for the editor's right-click Paste. Reading the clipboard runs nothing from the project, and clipboard_image, clipboard_file_list and clipboard_has_* are already always. clipboard_text is now always too, as is the web shell's stub; a test pins all clipboard reads to always. Plugins still read through plugin_answer_clipboard, which stays trusted.
Co-authored-by: audichuang <[email protected]>
The Pull Requests tool window failed in SSH, WSL and dev-container windows with "no project is open in this window": the gh_* commands were desktop commands in src-tauri and ran on the desktop, while the project lives on the remote host. The 11 gh_* commands move to crates/ide-host/src/ops/github.rs as project_host commands, so remote windows route them to openidea-server, where the repository, gh CLI and project-scoped GH_TOKEN are. gh_account_repos becomes outside_restricted so Clone Repository > GitHub keeps working without an open project, and the streaming gh_pr_* output channels are cleaned up as finite channels when the remote reply completes.
Co-authored-by: dengliu <[email protected]>
Creating a conda environment failed with "conda is not installed" whenever conda was not on PATH (the Windows installers' default), even though the IDE listed that installation's environments. conda is now resolved from the base interpreter's own installation, then PATH, CONDA_EXE, the default install folders (including %ProgramData%) and the installations behind ~/.conda/environments.txt. On Windows it runs with the installation's DLL folders on PATH, as activation would. Discovery and terminal activation use the same lookup.
Closes#6652
Co-authored-by: wildcatDownstairs <[email protected]>
Build Project, Build <target>, Rebuild and the generated CMake Build run configurations ran `cmake --build` without a job count, so the default Makefile generator compiled one file at a time. Every cmake build step now gets `-j <logical CPUs>` before a `--` separator; a count the profile's build arguments already set (-j, -jN, --parallel, --jobs) is left alone. CTest steps are unchanged.
Co-authored-by: HandsomeXi <[email protected]>
Install from Disk resolved only paths starting with '.', and pip runs in a temporary folder, so a bare name like 'mylib' installed the PyPI package of that name. A typed relative path is now sent as './...' (resolved against the project) and '~/' expands to the home folder, so pip always gets an absolute path. Editable installs are offered and accepted only for a local directory: an editable clone of a repository would land in pip's temporary folder. The version control dialog accepts only vcs+scheme:// URLs, and an archive disables editable.
Co-authored-by: wildcatDownstairs <[email protected]>
The POSIX command round-trip test passed the script to the local sh as an argument; on windows-latest that is Git for Windows' sh, whose argument handling dropped the a\b sample. The test now feeds the program to sh -s through stdin on every platform, still checking all samples and the exact stdout bytes, and reports the exit status and stderr when sh fails.
Fixes#6619
Co-authored-by: principalwater <[email protected]>
run_command stopped reading a finished command's output after 100 ms without a line, so on a busy machine the last lines (often the error a failed worktree setup script printed) were lost. It now reads until the pipes close, for at most a second. Sibling output loops already wait for the pipes to close.
src/editor/api.ts imports src/editor/refactorProviders.ts since #6520, so the frontend smoke loads it. Add it to the Language smoke push/pull_request paths and to the Changes step's smoke pattern so a change to it runs every language.
Co-authored-by: principalwater <[email protected]>
Menu rows of one action repeated with object args (Run with Coverage, Profile... via run.withExecutor) shared a React key; repeated keys now get a suffix. The client defines the backend-only runConfigurations and locales plugin points so plugins contributing them no longer log 'has no client projection'. The Python Debug Server host hint now says loopback hosts listen on loopback only, matching how the listener binds.
DuckDB sources get DuckDB's SQL dialect (highlighting, completion, formatting and resolution) and the database tree lists attached catalogs with their schemas, tables and columns. The JDBC bridge gains a catalogs command and catalog-scoped schema and table metadata, matched by exact catalog and schema names; tables in another catalog open and page through the source session. DDL that attaches, detaches or changes a catalog refreshes the tree.
Co-authored-by: principalwater <[email protected]>
SQL consoles and files get a Database Output bottom tool window. It follows the active editor, keeps result tabs and errors scoped to each console, and has a client selector (file name with its data source) for looking at another run, plus a button to open that client in its editor. Run and Explain reveal the current client's results while keeping editor focus; background completions and late Explain responses leave the selected client in view. Switching clients or destinations never re-runs SQL. Settings > Tools > Database can send results to Services instead.
Closes#6176
Co-authored-by: principalwater <[email protected]>
Explain Plan now works for DuckDB data sources connected through JDBC. The statement runs as EXPLAIN (FORMAT JSON) in the console's session (so temporary tables resolve), and the physical plan is shown, falling back to the optimized or logical plan when explain_output asks for those; operator details become node properties. A script with several statements is checked with json_serialize_plan first and refused. Other custom JDBC sources still have no Explain Plan.
Co-authored-by: principalwater <[email protected]>
sshd runs every exec request through the account's login shell. The commands the IDE sends (server probe and install, connection test, run targets, command tunnels) are POSIX shell, so with fish as the login shell they failed with stderr only and opening a remote project never got past the probe.
Exec requests now send sh -c '<script>', a plain command to every shell, quoted so that fish reads the same text as a POSIX shell (quotes and backslashes written outside the single quotes). The login shell still starts first, so its environment is inherited; interactive terminals keep the login shell itself.
Fixes#6200
A + button in the Python Packages tool window offers Install from Version Control… and Install from Disk… (with Browse), both with Install as editable (-e). A plain https://, ssh://, git:// or git@host:path URL gets pip's git+ form; git+… and other vcs+ URLs pass as they are. sdk_python_pip takes an editable flag that adds -e (pip and uv pip); text starting with - is still refused, so no other pip option can be passed.
Closes#6531
Co-authored-by: wildcatDownstairs <[email protected]>
When the pane has a package's PyPI details (a search result, or an installed package after Show PyPI Details), it also shows the project's links (its PyPI page, home_page and project_urls; http(s) only, duplicates dropped) and its long description: rendered Markdown (sanitized, as in hover docs) when description_content_type is Markdown, plain text otherwise. Links open in the browser. Everything comes from the JSON API response the pane already loads.
Closes#6530
Co-authored-by: wildcatDownstairs <[email protected]>
emit_attention_if_input_pending held the permissions guard, a temporary living to the end of the statement, while taking the task state lock. approve_pending takes them the other way round, so a permission request and a bypass-approvals config change on another thread could deadlock. The check now releases the permissions lock before reading the status.
Closing a project or quitting while an agent turn was in flight left the task Failed with "The agent process exited.": shutdown killed the peer, and the still-running turn then woke up, failed the task and overwrote what shutdown had saved. Restart only normalizes Running/NeedsInput/Starting, so the Failed state stuck.
A shutdown epoch on the manager now marks work started before a shutdown (turns, session opens, permission and form requests, notifications, delayed saves); that work exits quietly instead of failing the task or rewriting its file. A peer still mid-handshake is tracked and killed by shutdown, and interrupted tasks settle to Ready. The manager stays usable after a shutdown (trust revoked and granted again).
Co-authored-by: dengliu <[email protected]>
Switching away from a Show Diff tab unmounted the diff viewer, so switching back rebuilt it at the top. The single-file and combined diff kinds are now kept alive like other recently used tabs, so they come back where they were left (scroll, caret, expanded lines) without reloading the revisions.
Fixes#6394
Switching macOS Pinyin to English while composing commits the composition as displayed, with the spaces the IME shows between syllables, so typing nihao left "ni hao" in the editor. When the commit is exactly the ASCII composition text, the editor now rewrites it to the letters typed, at every cursor that took it, in the same undo step. Candidate commits are unchanged. The commit rule moves to platform/ime so the terminal and the editor share it.
Fixes#6393
Window state is kept per label, and project-N labels are reused by other projects. A full-screen flag saved once came back on every later project window, each claiming its own Space, some while still hidden and blank. macOS no longer saves or restores the full-screen flag; a window that was full screen comes back maximized. Windows and Linux are unchanged.
Fixes#6430
Opening a .class under target/classes or build/classes jumped to the project .java it was built from. The resolver now returns the class document itself, so the compiled class opens read-only as decompiled text. Library classes in archives are unchanged.
Fixes#6410
The launch resources step selected changed modules by their Maven basedir relative to the reactor root. On Windows the basedir need not share a spelling with the opened folder, so the absolute path reached -pl and Maven could not find the project in the reactor. It now selects them by groupId:artifactId.
Fixes#6409
Two SQL consoles on one JDBC data source waited on the same connection, so a long query, cancellation or close in one blocked the other. The JDBC bridge now multiplexes one connection per console inside the existing bridge JVM (capped at 32, with bounded reply buffers), and result reads, cancel and close are routed to the originating console's connection. DuckDB console connections share the database and its attachments with separate temporary tables and session settings; anonymous SQLite and H2 databases keep one shared connection so their contents stay visible.
Fixes#6484
Co-authored-by: principalwater <[email protected]>
Two PostgreSQL consoles on the same data source shared one manual transaction, so one console could see and commit the other's pending work. Each console now owns its manual transaction: Commit, Roll Back, Stop, result reads and close act on the originating console, retained results keep their transaction until the last reference closes, and a statement for a lost transaction fails before executing. The pool reserves capacity for ordinary work; up to two manual transactions can hold a connection per target, and a third gets a message on how to free a slot. Auto-commit and the transaction-pooler read-only path are unchanged.
Fixes#6445
Co-authored-by: principalwater <[email protected]>
The first SSH install recompressed the unpacked server with fast gzip before uploading it. The release download now keeps its gzip next to the cached binary, and the SSH install sends that archive when it decodes to exactly the selected binary (size and BLAKE3 hash); custom binaries and missing or mismatched archives fall back to the existing upload. Container and WSL installs are unchanged. For the Linux arm64 payload this sends about 51 MB instead of 66 MB.
Fixes#6283
Co-authored-by: principalwater <[email protected]>