Google Antigravity's CLI ships a native ACP server (`agy acp`, since v1.5.0), so it joins the built-in agents with `agy acp --login` as its sign-in command. A registry install of antigravity-acp runs a separate ACP server binary, so it keeps the generic sign-in hint instead of inheriting the CLI's login subcommand. Adds the Chinese text for the sign-in hint and the agent to the docs tables.
Co-authored-by: xirf <[email protected]>
Since only added or edited configurations block saving, errors a plugin form reported with runConfig.setErrors on an unedited configuration left OK and Apply enabled, although the plugin API documents that they block them. The configuration on screen now blocks while its form reports errors; after selecting another one, an unedited configuration no longer blocks.
Co-authored-by: wildcatDownstairs <[email protected]>
Since #7708 only configurations changed in Run/Debug Configurations block saving, so the plugin run configuration form test now patches the configuration before reporting errors.
Tool installs and the plugin host are shared by every project window, but each window kept its own copy of installed versions and updates, so after an update in one window another still offered it. After an install, uninstall, update or rollback, a window now writes a localStorage marker; the others read the tools or plugins (and the marketplace's installed versions) again on its storage event and take in the stored tool updates. The plugin update notice now has a key and is hidden once every update it offered is installed.
Fixes#7742
Library sources opened from a language server or from the External Libraries showed a "Library source (read-only)" banner above the editor. They now open read-only without a notice, as the status bar's lock already shows the state; the banner stays for decompiled classes, Git revisions, generated C# sources and whenever there is something to act on (sources to download or choose).
Fixes#7735
Go to DDL queried the server on every click, so the editor opened a few hundred milliseconds late. A table's DDL is now prefetched when its data view opens and cached with the other metadata; Go to DDL serves the cache and fetches once on a miss. The cache is dropped on refresh, disconnect and after a console statement that changes the schema, and the generated file's Reload refreshes it.
Closes#7777
Co-authored-by: junchangpeng <[email protected]>
Returning to a notebook tab restored the saved pixel offset against fresh 220 px cell estimates, because the virtualizer's measured heights were lost on unmount, so the viewport jumped away from the selected cell. The notebook session now keeps the virtualizer's measurement snapshot and restores it together with the scroll position.
Closes#7754
Co-authored-by: NickYadance <[email protected]>
Move Statement Up did nothing when the line above ended a function, method or class: the lookup of the statement ending on that line stopped at the closing brace, and the guard against moving code into a function refused the move. Where a function or class body ends, the lookup now takes the whole declaration; if, for and try blocks are unchanged, so Up still moves a statement into them.
Closes#7765
Co-authored-by: og-orca <[email protected]>
An explicit Package manager in Settings > Languages & Frameworks > Node.js changed the spawned command, but the dependency-install notification and its run config, the package.json gutter fallback and detected npm run configuration names still showed the lockfile-detected manager. The configured manager now comes first in the gutter fallback, the install prompt rechecks when the setting changes (keeping an Ignore for the same dependency state), and detected config names have their leading package manager rewritten (bun run dev -> npm run dev, also after a workspace prefix).
Co-authored-by: xirf <[email protected]>
Closing a file history tab with the keyboard while its commit list had focus left vcsLogCommitsFocus on, because React reports no blur for a focused element it removes; Left and Right in the editor then moved to the child or parent commit instead of the caret. The commit list now clears that context when it is removed, as it already did for vcsLogRevisionFocus.
Co-authored-by: ntbang0901 <[email protected]>
openidea.kotlin.replace was sent as soon as jdtls answered initialize, but jdtls holds commands while it imports the project, so an import longer than about two minutes hit the fixed 120 s timeout and the request was never resent; Java kept the old Kotlin API until a file changed. Each snapshot now waits for jdtls' ServiceReady first (shown in the status bar and cancellable there) and the 120 s count starts from there. A snapshot that times out, is refused or loses its server is retried after 5, 15 and 45 s before it is reported; a jdtls the user stopped is not started by a retry.
Closes#7726
Co-authored-by: ntbang0901 <[email protected]>
Copy or Save As of an open file onto a taken name in a folder the tree had not loaded replaced that file without asking, because the Copy dialog only knew loaded folders and copy_as overwrote its target. The dialog now reads the folder, and copy_as refuses any existing target. Pasting a file from the OS clipboard into its own folder (or dropping it there through another path) and choosing Overwrite trashed the source itself; such a file now gets a copy next to it, checked with a new fs_same_file command, and an overwrite whose import fails or is cancelled restores the old file.
Co-authored-by: ntbang0901 <[email protected]>
With Regex on, Replace in Files read $1_new as a group named 1_new, which does not exist, so matches were replaced with nothing in every file. $1 now takes further digits only while the pattern has that group, and a template naming a group the pattern lacks is reported at the replacement field and changes no file. The editor's Replace now expands the same template, so $0, ${1}, $name and \$1 work there too and an optional group that did not match no longer writes undefined.
Co-authored-by: ntbang0901 <[email protected]>
During a merge, an incoming file left unchecked went into the merge commit as HEAD had it, so the merge counted as done without that change and merging the branch again reported Already up to date; with nothing checked the whole merge could be dropped. With nothing checked, the commit now takes the merge as the index holds it. When some incoming changes (whole files or blocks) are left out, Commit first asks Changes Excluded from Merge Commit, with Cancel as the default. An unresolved conflict anywhere in a Git repository being committed now refuses the commit up front instead of failing later with a raw Git error.
Co-authored-by: ntbang0901 <[email protected]>
On a case-insensitive disk, after git mv readme.md README.md (or a folder renamed the same way), Rollback deleted the file, a commit leaving the rename out committed its deletion, and Shelve reported no changes, because both names resolved to the one the index has. Unstage, a commit's excluded files, Shelve and Create Patch now act on both names of a staged case-only rename; Rollback and Shelve restore the old name on disk, and Unshelve brings the rename back by removing the old file first and putting the new name in the index.
Co-authored-by: ntbang0901 <[email protected]>
Opening a folder whose .openidea/workspace.json links a folder that contains it failed with "Store the workspace outside its linked project folders", and the folder could not be opened at all. Workspace::load now keeps the stored projects that are valid together, skips the others with a log warning, and leaves the file as it is until the workspace is saved again; writing still validates every manifest. A test checks that every manifest the write paths accept loads back.
Closes#7728
Co-authored-by: koeria <[email protected]>
When an aggregator listed sibling modules (parent/pom.xml with <module>../app</module>), the WAR build found its reactor by directory prefix, missed the aggregator and ran mvn package in the WAR module alone, so sibling dependencies were not rebuilt. The reactor is now resolved through <modules> membership, and -pl selectors are relative paths from the reactor root (../app, ..), with groupId:artifactId as a fallback. The Maven launch, multi-module compile and single-file classpath planners use the same helpers.
Closes#7704
Co-authored-by: RuyimgByCN <[email protected]>
Clicking a task in the Agents tool window replaces the list with the conversation while the list still has focus; React sends no blur for an element it removes, so the agentTaskListFocus context stayed on and Del in the editor asked to delete the open conversation. The same happened after picking a session from the history popup, archiving a row, or removing the last task while its search field had focus. The context is now cleared when the list element goes away and whenever focus lands outside the list.
Closes#7725
Co-authored-by: og-orca <[email protected]>
Roslyn sends records, delegates, extension methods, fields and constants with its own semantic token types (recordClass, recordStruct, delegate, extensionMethod, field, constant), which had no highlight class, so they showed as plain text. Each now maps to the standard type it extends.
Closes#7749
Co-authored-by: ignacyszreter <[email protected]>
In Tx: Auto each console statement ran on whichever pooled connection was free, so BEGIN ... ROLLBACK did not roll back, temporary tables and SET were lost between statements, and a forgotten BEGIN stayed open on a connection other features reused. A console now keeps its own connection from the first statement that leaves state on it (a transaction, a temporary table, a setting) until the console and its results are closed; plain queries and changes still run on the pool with the same result cursors. Applies to the built-in PostgreSQL, MySQL, SQL Server, Oracle and SQLite drivers; ClickHouse and JDBC already had console sessions, Snowflake and read-only PostgreSQL sources are unchanged. A pooled connection left inside a transaction is discarded instead of returned.
Co-authored-by: ntbang0901 <[email protected]>
Go to Implementation on an interface method found nothing when the implementing class inherits the method from a superclass that does not implement the interface itself. The superclass's method is now listed, once however many classes inherit it.
Closes#7760
In an interactive rebase, a reword or squash message was applied by an exec git commit --amend line that always ran, so when the step before it made no commit (Skip, a conflict resolved to nothing, an empty pick) it rewrote the commit below, including a published one. The line now compares HEAD with the HEAD recorded just before the step and does nothing when no commit was made; for a squash it also checks that the commit it goes into was made, since Git melds the squash into the commit below when that one was skipped.
Co-authored-by: ntbang0901 <[email protected]>
Rerun in the Debug tool window launched the configuration snapshot the session started with, so VM options edited since were ignored. It now launches the configuration saved under that id, or the snapshot when it was deleted.
Closes#7750
The git diff calls that write a patch and the git apply calls that read it back took diff.noprefix, diff.mnemonicPrefix, diff.srcPrefix/dstPrefix, diff.context, diff.submodule and apply.whitespace/ignoreWhitespace from the user's config, so a shelf could unshelve into the wrong path, patches failed or landed on the wrong lines, and restored text was rewritten. They now share fixed option lists (patch::DIFF_FORMAT, patch::APPLY); an explicit path prefix, as a multi-repository shelf uses, still wins. Also covers the plugin working-tree patch, the per-file diffs of a pending commit and the partial-staging calls.
Co-authored-by: ntbang0901 <[email protected]>
Every newly mounted Project row rebuilt the effective root list, which stalled scrollbar drags in workspaces with thousands of detected roots. ProjectView already computes that list for the tree; it now passes it to the rows, so their icons use the same roots without rebuilding it while scrolling.
Co-authored-by: igallart <[email protected]>
With Always Select Opened File on, the first click of a double-click opened the preview tab and TreeHandle.reveal centered the row even though it was already visible, so the second click landed on another row. reveal now leaves a row that is in view where it is (1 px tolerance for fractional display scales) and centers only rows out of view. This applies to every tree that calls reveal.
Closes#7712
Co-authored-by: og-orca <[email protected]>
The build model listed a dependency's own dependencies after all of its siblings instead of right after it, so of two artifacts with the same classes (dom4j:dom4j 1.6.1 and org.dom4j:dom4j 2.x) javac could load the one Maven does not. Walk the resolved graph in pre-order and rebuild openidea-java-build.jar.
Closes#7743
Refactor > Move (F6) in a .py file moves top-level functions, classes and variables to another module. The dialog has From file, To file (a .py path in the project, new or existing) and Elements to Move. An embedded ast-based helper, run with the pylsp-rope environment's Python, moves the code with its decorators and attached comments, places it by import-time dependencies, writes the imports both modules need and rewrites module.name uses; from ... import statements across the project go through the existing module-move rewriter. Unsaved buffers are read, a file changed meanwhile is refused, and every changed file is parsed again before the edit is returned. A name already defined at the destination is refused; risky cases are confirmed first. The tests needing pylsp are ignored by default.
Refs #901
Co-authored-by: wildcatDownstairs <[email protected]>
Refactor > Change Signature works on Python functions, methods and classes (their __init__). pylsp-rope has no such command, so the IDE runs an embedded helper with the pylsp-rope environment's Python: rope finds the function, its overrides and calls and renames parameters scope-aware; the parameter list and arguments are rewritten from the ast so annotations, defaults, the * and / markers and keyword arguments survive. Unsaved buffers are read through an overlay, calls rope can't resolve come from the type checker's references, and calls that can't be rewritten or likely mistakes are listed in a confirmation first. The result is a normal workspace edit (Preview, Refactor, one undo). The dialog is the Java one reduced to Name and Default value. The rope tests are ignored by default.
Refs #901
Co-authored-by: wildcatDownstairs <[email protected]>
The Python Rename dialog offers Search in comments and strings (off by default, remembered; in-place rename follows it). Whole-word, case-sensitive matches in comments and string text are merged into the language server's workspace edit, so they preview, apply and undo with it; a rename that gains text matches is always previewed with the matches under Non-code usages, and applying fails if a matched file changed after the preview. Locals and parameters are searched in their function, other symbols in the project's .py / .pyi files including unsaved buffers; symlinks leading out of the project are skipped.
Refs #4968
Co-authored-by: wildcatDownstairs <[email protected]>
.html files under a templates folder open as Jinja2 HTML when the nearest folder above that declares anything declares flask, quart, fastapi, starlette or jinja2 (pyproject.toml, requirements*.txt, Pipfile, setup.cfg, setup.py). A Django project (django declared or manage.py), package.json, angular.json, .git and the home folder end the search; File Types associations and Override File Type win; .htm is untouched; dependency files edited in place are detected again. Template names complete and navigate in extends / include / import / from and in render_template, stream_template, get_template, select_template and TemplateResponse.
Closes#7656
Co-authored-by: wildcatDownstairs <[email protected]>
F# had only the CodeMirror mode, so without FsAutoComplete the Structure view was empty, indented blocks did not fold and F# declarations were missing from the symbol index. tree-sitter-fsharp 0.3.13 (MIT) is bundled: the main grammar for .fs / .fsx and its signature grammar for .fsi, with outline queries, folding, symbols and declaration-name highlighting over the existing mode. .fsi files are the language fsharp.signature, sharing one FsAutoComplete with source files and sent as languageId fsharp.
Closes#7637
Co-authored-by: wildcatDownstairs <[email protected]>
In a project that uses CSharpier (a dotnet tool manifest entry, or a .csharpierrc* / .csharpierignore with CSharpier installed), Reformat Code and format on save of a whole .cs file run CSharpier; selections and other projects keep the language server. CSharpier 0.x uses its pipe protocol. Solutions and projects get Run dotnet format and Verify dotnet format (No Changes) in the Project view and Find Action, with output in the Build window. The real SDK tests are ignored by default.
Closes#7626
Co-authored-by: wildcatDownstairs <[email protected]>
Choosing Roslyn's "Suppress or configure issues" on a C# diagnostic did nothing: Roslyn returns its entries in the client command roslyn.client.nestedCodeAction, which the IDE did not handle. The entries are now listed by group (suppress, severity of the ID, of its category, of all analyzers) and applied like other code actions, so severities are written to .editorconfig. A newly created .editorconfig was ignored until a project reload, so the projects below it are now reported to Roslyn as changed. The real Roslyn test is ignored by default.
Closes#7646
Co-authored-by: wildcatDownstairs <[email protected]>
Run configuration detection and its .sln / .slnx reader only accepted .csproj, so F# and Visual Basic projects got no run configurations. .fsproj and .vbproj now follow the C# rules. Visual Basic keeps launch profiles in My Project/launchSettings.json, where dotnet run looks, so profiles and the gutter run icons in that file read it. The real dotnet CLI test is ignored by default (no SDK in CI).
Closes#7631
Co-authored-by: wildcatDownstairs <[email protected]>
Folders dropped from the OS below the last row of the Project view now ask once to attach them to the current workspace, like File > Attach Project (one folder or a list of several), then attach each with the usual trust check. The primary project and folders already attached are skipped with a notice. While an all-folder drag is over the blank area the whole view is highlighted. Drops of files, or of files mixed with folders, drops on folder rows and drops in remote or LightEdit windows keep their previous behaviour.
Refs #7619
Co-authored-by: wildcatDownstairs <[email protected]>
The test tree toolbar of every test runner (Jest and Vitest keep their watch mode) gets Rerun Automatically, with More Actions > Set AutoTest Delay (1-10 s, 3 by default). A delay after the last editor save of a project file, every tab with the toggle on runs its tests again in place without taking focus. Nothing runs while a saved file has a syntax error; a running test, a before launch build or a debug session of a configuration without parallel runs is not stopped but waited for; an automatic run saves no other file. The toggle lasts as long as the tab.
Part of #4968
Co-authored-by: wildcatDownstairs <[email protected]>
SQL files had no folding. Parenthesised expressions (subqueries, IN (...), EXISTS (...)) fold like a bracket block, and a multi-line statement folds from the end of its own SELECT line to its end, so the SELECT line and an INSERT ... SELECT's INSERT line stay visible. The statement's SELECT is taken from the syntax tree, so a subquery's SELECT folds only its parentheses.
Co-authored-by: LeoChen8118 <[email protected]>
A build file of a loaded project whose change left the imported model stale now shows a banner above the editor: "Build files changed since the last reload" with Load Maven Changes (a pom.xml of the Maven model) or Load Gradle Changes (a build or settings script of a Gradle build, reloading that build). It runs the same reload as the build tool window's banner and hides while a reload runs and before the first import.
Closes#7664
Co-authored-by: muutot <[email protected]>
Under the modal commit interface, Show Diff in New Window opened the diff window but left the front diff dialog open, so the same diff showed twice. showDiffWindow now resolves once the window is on its way and the action closes the open diff dialog; it stays when the window cannot open. On Windows and Linux the diff window's frameless title bar also gets the maximize button beside close.
Refs #7675
Co-authored-by: muutot <[email protected]>
PHP configurations that run in a Docker or Compose run target can be debugged. The debugger listens first on a free port with the container's mounts mapped (run_container_xdebug), then the run starts with XDEBUG_MODE=debug, XDEBUG_SESSION=1 and XDEBUG_CONFIG pointing at host.docker.internal (docker run gets --add-host host-gateway); the debug session is linked to the run and stops with it. Install and Debug after installing php-debug repeats the whole flow. PHP on SSH targets stays refused.
Refs #4582
Co-authored-by: samehelhawary <[email protected]>
When PHP runs in a Docker or Compose run target, PHPStan and PHP-CS-Fixer run with that target's PHP, each in a new removed container (no published ports, entrypoint and service dependencies skipped, XDEBUG_MODE=off). PHPStan's report files are mapped back through the mounts; a cancelled check removes its container. PHP-CS-Fixer fixes a temporary copy mounted for that run only. The Settings › PHP hint now names these tools.
Refs #4582
Co-authored-by: samehelhawary <[email protected]>
When PHP runs in a Docker or Compose run target, Settings › PHP shows the version and Xdebug of the PHP in the container instead of this machine's. The IDE runs the target's PHP once in a removed container (entrypoint and service dependencies skipped, XDEBUG_MODE=off), keeps the answer per project and target configuration, and reads it again on refresh. php_probe_args shares the run/compose run part with the Python probe.
Refs #4582
Co-authored-by: samehelhawary <[email protected]>
During a Quit, a window waiting at the close barrier is frozen with inert on the body, but Dialog listens for keys on the document and accepted an Enter aimed at the body, so a confirmation left open (e.g. Delete from the Project view) ran its default button. A dialog inside an inert subtree now ignores keys.
Co-authored-by: audichuang <[email protected]>
Roslyn's inlay hints are off unless the client turns them on, and csharp.toml passed no csharp|inlay_hints settings, so C# showed no parameter name or type hints. csharp.toml and razor.toml now enable parameter hints for literals, new-expressions and indexers (with Roslyn's suppressions) and var/lambda parameter types. Parameter info matches string parameter labels as whole words from the parameter list on (all servers) and keeps a variadic last parameter (params, ..., *args) bold. The real-server test is ignored by default (needs the .NET SDK).
Closes#7678
Co-authored-by: wildcatDownstairs <[email protected]>
Go to Implementation on a C call to a static inline function found nothing or a prototype: the index stored prototypes and self-referencing macros like implementations. C/C++ index symbols now record whether they carry an implementation (index schema openidea-index-5, rebuilt once). The fallback skips prototypes, prefers functions over macros, prefers the header the file includes over arch copies, and collapses #ifdef duplicates to one target per file.
Co-authored-by: sonnartliao <[email protected]>
A command Codex leaves running when its turn completes was still open at the turn's end, so the conversation settled its card as failed while it kept running. When a turn completes, the adapter now reports its still-open commands as done; the command's own completion reports how it ended. Interrupted and failed turns are unchanged.
A command Codex leaves running after its turn was invisible to the task, so the idle release stopped the app-server and the command kept running in its own process group. The Codex adapter now lists background terminals (thread/backgroundTerminals/list) after each turn until none runs and reports them as background tasks, which the idle release waits for; stop_task maps to terminate; session close and connection close run clean first. Older Codex versions report none.
Fixes#7655
While an agent runs with an empty draft, the composer's submit button turns into Stop but kept the secondary variant, wrapping the outlined stop icon in a bordered box and shrinking it to 14px. The Stop state is now frameless at rest with toolbar hover/pressed backgrounds and the 16px stop icon, like the composer's other toolbar buttons and the IDE's Run/Debug stop buttons.
The PHP grammar names its document node Template, and the check for being inside a comment or string treated any node named like a template string as one, so the whole PHP file counted as a string: code live templates (pubsf, prif, fore, ...) never expanded with Tab or showed in completion, and postfix templates were off too.
The document node no longer counts. The same name check in Emmet's JSX context, Move Caret to Code Block Start/End and Move Element Left/Right gets the same exception.
Fixes#7660