Графік комітів
5365 Коміти
Автор SHA1 Повідомлення Дата
Danielтаdanipl 4ff4b2d016 fix(deployment): connect to FTP servers that refuse to list the login folder's parent (#8268)
FtpFs::stat found a folder by listing its parent. Servers that lock the user into the login folder but show its real path (bunny.net Storage) refuse LIST /, so Test Connection and Remote Host failed with '450 Requested file action not taken'. stat now checks the login folder with CWD only (a refused listing can break the next data connection over FTPS), falls back to CWD when another folder's parent can't be listed and returns the listing error if that fails too, and folder listings are requested with a trailing '/', which such servers require.

Closes #8240

Co-authored-by: danipl <[email protected]>
2026-12-06 00:35:01 +08:00
trung trucтаtrucuit d85939395b feat(dotnet): debug .NET tests with netcoredbg (#8253)
.NET test configurations (dotnet-test, C# test gutter icons, test tree items, Run widget) can be debugged with netcoredbg while the TRX results and console output stay in the Run tab. VSTest runs set VSTEST_HOST_DEBUG=1 (with DOTNET_CLI_UI_LANGUAGE=en) and netcoredbg attaches to each reported test host pid, covering multi-TFM and solution runs; single-project Microsoft.Testing.Platform runs build and start the test assembly with --debug directly. Project detection inherits TargetFramework, IsTestProject and test framework package references from ancestor Directory.Build.props (following GetPathOfFileAbove). The relisten window after a detach applies to JVM debuggers only, and Stop on a linked .NET test debug run disconnects the debug session once.

Refs #615

Co-authored-by: trucuit <[email protected]>
2026-12-06 00:32:10 +08:00
Bert Verhelstтаbertyhell 95ac0a0c1a feat(run): install dependencies from a package manifest's context menu (#8250)
Right-clicking a package manifest in the Project view offers one install item in a fixed place after the Run/Debug group: package.json → Install Node.js Dependencies (detected npm / pnpm / Yarn / Bun), composer.json → Composer Install, requirements*.txt / pyproject.toml / Pipfile → new Install Python Dependencies (uv sync / poetry install / pdm install from a lockfile or tool table, else pip install -r or -e . into the project interpreter, uv pip when it has no pip; pipenv install for a Pipfile). Restore .NET Project, Download Go Modules and Pod Install move into the same place and leave their own Project view groups. Each item shows its technology's logo, with a dark-theme .NET logo. A nested composer.json now installs in its own folder, and an install that cannot start shows a notification.

Co-authored-by: bertyhell <[email protected]>
2026-12-06 00:27:45 +08:00
l0ng-ai 396a490adf feat(python): navigate and complete template names in Django's render calls (#8266)
Template names now complete and navigate in Django's render(request, ...) (also django.shortcuts.render, template_name= and lists), render_to_string and template_name (class-based views, as_view()), resolved against the project's templates folders like the app directories loader. Method calls named render and single-argument calls are left alone.

Closes #8236
2026-12-06 00:22:33 +08:00
l0ng-ai cc877ed9f7 fix(settings): import Gradle settings from JetBrains settings (#8265)
Import JetBrains Settings now also reads the Gradle settings for new projects (options/gradle.default.xml): a local distribution and its home, Build and run using, and the Gradle JVM when it names an imported JDK that exists here; plus the Gradle user home from options/gradle.settings.xml. Defaults (wrapper, project JDK) are not written.
2026-12-06 00:07:09 +08:00
l0ng-ai 0c495e2eed test: wait for idle parsing and an enabled Refresh in two timing-sensitive tests (#8262)
The late-parse color gutter test waited the default second for a 4000-line parse that runs in idle time; it now waits up to 10 s. The SVN Incoming test clicked Refresh again while the button was still disabled from the previous read, so the second read never started; it now waits for Refresh to be enabled.
2026-12-05 23:59:19 +08:00
l0ng-ai 1cbb572631 fix(settings): import JDKs and Maven settings from JetBrains settings (#8259)
Import JetBrains Settings left out the JDKs and Maven settings. It now adds each Java SDK of options/jdk.table.xml whose home is a JDK on this machine (missing ones are listed as not imported), and takes the Maven home, user settings file and local repository from the default project in options/project.default.xml; a wrapper or bundled Maven home stays empty. $USER_HOME$ in those files is replaced by this machine's home folder.

Fixes #8169
2026-12-05 23:54:10 +08:00
HyperWin 251f3953fa fix(cmake): discover targets when configuration case differs (#8248)
A CMake preset's build type (Debug) was compared case-sensitively with the codemodel's configuration names, so a codemodel reporting `debug` / `release` yielded no targets. The profile now picks the configuration with the exact name, else the only one that matches ignoring ASCII case; several case-insensitive matches stay unmatched rather than guessing.

Co-authored-by: HyperWinX <[email protected]>
2026-12-05 23:46:53 +08:00
l0ng-ai aa124276b2 feat(vcs): nest repositories under their directories in the grouped Branches pane (#8254)
With Group by Repository on, the Log's Branches pane listed each repository by its full project-relative path. Repositories now sit under the directories their paths share; a directory with a single child joins its name to the child's, so projects whose repositories share no directories look the same as before.

Closes #7751
2026-12-05 23:44:53 +08:00
l0ng-ai fb91ace8aa fix(agents): don't let a late model request abort a newer model's discovery (#8249)
load_levels hands the catalog request to a blocking task, which can run after a newer selection's request; the late one then superseded and aborted the newer discovery, failing it with "The agent did not report settings for the selected model" (the intermittent Windows failure of rapid_idle_model_switches_share_discovery_and_never_apply_a_stale_completion). Model requests now take a ticket when made; an older one neither changes the requested model nor supersedes the running flight.
2026-12-05 23:29:10 +08:00
Bert Verhelstтаbertyhell c931cbecc0 fix(run): keep the dependency install prompt inside the IDE (#8242)
Branch switches rewrite lockfiles, so the "Dependencies changed since the last install" prompt came back each time and, with the IDE in the background, was mirrored to an OS notification. Notifications can now pass system: false to stay in the balloon and the Notifications tool window, and the install prompt does (IDEA keeps system notifications for finished builds, tests and long tasks). The package.json check now also counts overrides, resolutions, pnpm overrides/patches/extensions/peer rules, bundled deps, *Meta and workspaces, ignoring key order; baselines move to a v2 store.

Co-authored-by: bertyhell <[email protected]>
2026-12-05 23:17:06 +08:00
l0ng-ai cfaf05c84b fix(process): fit a long PATH into cmd.exe's limit for batch programs on Windows (#8225)
cmd.exe ignores an inherited variable longer than 8191 characters, so a .cmd language server started with a long PATH couldn't find node. For a batch program whose PATH is too long, later duplicates (without case) and missing local directories are now dropped, keeping the order, and if that's not enough the longest directories take their 8.3 short form until it fits. Native programs keep their PATH. Windows CI ran the batch launch test on this change; its only failures were the CRLF tests fixed on main by #8238.

Fixes #8155
2026-12-05 23:15:08 +08:00
Akbar Husain 59f3994b6c feat(java): use java-analyzer's move requests (#8232)
Move (F6) uses java-analyzer's dialog-driven java-analyzer/moveInfo and java-analyzer/move when the server advertises both in capabilities.experimental, and keeps the jdtls refactoring-command flow otherwise. The chooser lists destinations by kind and re-checks the caret before applying; problems carry an optional location shown in the confirmation. Only a fatal problem stops a move; errors and warnings are confirmed, in both flows.

Co-authored-by: akbar1214 <[email protected]>
2026-12-05 23:06:58 +08:00
l0ng-ai 908b753daf chore(bindings): regenerate for the plugin timer event (#8243)
#8239 added the timer event kind without regenerating src/bindings.ts.
2026-12-05 23:02:51 +08:00
LU XIANGRUIтаwildcatDownstairs 3790f578be fix(svn): review fixes and follow-ups for the Subversion tool window (#8226)
Brings the review fixes of #8212 that missed its squash: Format > Change only on a working copy root (irreversible upgrade), Delete and context menus act on the clicked rows (new hidden project.deletePaths action), switched folders keep their own Merge From/Update actions, project-scoped requests with trust checks, quiet background Incoming reads, newest-first log limit, external-aware update parsing, repository-path diffs, mixed-revision BASE for Incoming, project-switch cleanup, Windows-safe paths and the shared List. Plus the six follow-ups of #8220.

Closes #8220

Co-authored-by: wildcatDownstairs <[email protected]>
2026-12-05 22:51:16 +08:00
G. Bodenschatzтаcoding46 68ffce6340 fix(editor): paint diff panes and the colour scheme list with the editor scheme's colours, not the UI theme's (#8227)
With an editor colour scheme of the other brightness than the UI theme, the diff panes kept the theme's --bg-app / --fg while their syntax colours came from the scheme, and the Color Scheme page applied every UI token of the scheme to its attribute list. The diff viewer now uses --bg-editor, --fg-editor and --bg-editor-gutter like the editor, the strip between panes follows the editor surface, and the scheme page gives its list only the scheme's editor tokens.

Closes #8160

Co-authored-by: coding46 <[email protected]>
2026-12-05 22:34:54 +08:00
l0ng-ai 3f74972f11 feat(plugins): one-shot timers a plugin sets for itself (API 1.21) (#8239)
events.schedule(id, after-ms) wakes the plugin once with a timer event in the window of the call that set it; the same id replaces it, so retries and backoff stay the plugin's own, and events.cancel-schedule drops it. 250 ms to 24 h, at most 16 pending, no capability. Timers activate an idle plugin, survive idle reclaim and end with the window, its project or the plugin. SDK: host::schedule, host::cancel_schedule, Event::Timer, MockHost timers. Components rebuilt.

Closes #8195
2026-12-05 22:31:19 +08:00
l0ng-ai eefe6cc9c8 test(lsp): compare created files without their line separator, everywhere (#8238)
Two more tests (ide-lsp gopls_interactive_command…, ide-workspace a_server_edit_versions_files_the_editor_never_opened) read a file a server edit created and expected LF; on Windows a created file takes CRLF. They fold CRLF to LF like #8233.
2026-12-05 22:29:19 +08:00
l0ng-ai e9480d690c fix(editor): show markup style colors once the background parse reaches them (#8237)
In markup a color literal gets a swatch only inside a style, which the syntax tree tells, but the color gutter recomputed only on document changes: a parse that finished after the editor opened left those lines without swatches. The gutter and its width now also update when a markup document's tree advances. Fixes the color preview e2e and the Vue gutter test failing on CI.
2026-12-05 22:26:43 +08:00
科里亚таl0ng-ai 13b8024588 fix(titlebar): do not start a stuck window drag when activating on Windows (#7146)
* fix(titlebar): do not start a stuck window drag when activating on Windows (#7142)

A click on the title bar of a background window raised it and also started
Tauri's caption drag. start_dragging posts WM_NCLBUTTONDOWN/HTCAPTION; if
the button is already up when that message runs, Win32 follows the cursor
until the next click.

On Windows the title bar now uses the same custom drag path as macOS: a
press only arms the drag, and the native drag starts on a move while the
button is still held. window_start_drag also checks GetAsyncKeyState.
Double-click zoom still happens on the second press. Linux is unchanged.

* chore(bindings): regenerate windowStartDrag docs for the Windows drag fix

`cargo test -p openidea --test export_bindings` copies the new
window_start_drag rustdoc into src/bindings.ts. commands.snap is unchanged.

* fix(titlebar): preserve native Windows maximize, swapped mouse buttons, and drag state cleanup

---------

Co-authored-by: l0ng-ai <[email protected]>
2026-12-05 22:16:16 +08:00
l0ng-ai 452d897032 test(lsp): compare created files without their line separator (#8233)
a_server_edit_may_version_files_the_editor_never_opened expected LF in files a server edit created, but created files take the system line separator, so it failed on Windows. The test now folds CRLF to LF before comparing.
2026-12-05 21:33:47 +08:00
l0ng-ai a69ff2499d feat(services): select or clear every configuration in Add Service (#8231)
Add Service of a configuration type now has a tri-state Select All checkbox above its list of configurations, so a long list can be cleared or checked in one click.

Closes #8174
2026-12-05 21:26:45 +08:00
l0ng-ai 0df4bc2289 feat(editor): show Tailwind class colors as swatches before the class (#8230)
Language-server colors on text that isn't a color literal (Tailwind classes) are now small swatches in the text before the class, as WebStorm shows Tailwind colors, instead of gutter icons that couldn't be told apart on a busy line. Server colors on CSS literals stay in the gutter; Gutter Icons > Color preview still turns both off.

Closes #8166
2026-12-05 21:25:02 +08:00
Charlie.Weiтаcharli117 83a3b1208a feat(plugins): hover-card actions and a plugin agent-task API (1.21) (#8221)
Two additive plugin API 1.21 features. decorations.set-actionable puts up to 4 buttons on a plugin decoration's Markdown hover card; each runs one of the plugin's declared commands as if from Find Action (no new capability; undeclared commands fail the call; stale documents don't run). agents.start-task (agents capability, invoking window, trusted project) creates a task that opens in the Agents window with the prompt prefilled and unsent, optionally continuing a recorded session like fork-session. Checked-in components rebuilt; bindings regenerated.

Co-authored-by: charli117 <[email protected]>
2026-12-05 21:17:50 +08:00
l0ng-ai 94cfde8025 ci: reduce PR runner pressure, cache churn, Rust link count, and test runtime (#8218)
* ci: fix rust-cache eviction, group language smoke, and drop unused Rust setup

* test(frontend): use Vitest threads pool and guard DOM setup for node tests

* test(rust): consolidate crate integration tests into single binaries
2026-12-05 20:25:20 +08:00
l0ng-ai b228d31ff9 fix(build): build the run configuration's .NET project, not the folder's first (#8223)
The toolbar hammer and the Build .NET project before-launch task pass the configuration's project file to Build Module, but the .NET build was planned from its folder and took the first solution or project by name. dotnet_steps now builds a given solution or project file in the module folder as is; other files still build the folder's solution or project.

Fixes #8179
2026-12-05 20:24:50 +08:00
l0ng-ai f160d60a7a test: keep .gitignore rules from matching tracked files (#8222)
A tracked file matched by an ignore rule is dropped when the sources are added to a new repository (source archive, fresh git add), as #8211 hit with crates/ide-ssh/src/target (fixed by #8215). scripts/gitignore.test.ts fails when any tracked file is ignored; it also removed fixtures/folding/.openidea/changelists.json, IDE state excluded by the fixture's own .openidea/.gitignore.
2026-12-05 20:22:05 +08:00
G. Bodenschatzтаcoding46 46031d162b fix(github): open a pull request's diff chain in the changes tree's order (#8219)
F7 / Shift+F7 in a pull request's diff walked the files in GitHub's API order (by path, root files first) while the changes tree lists folders before root files, so Show Diff from the tree could start mid-chain. The changes tree now passes its file order to openPullRequestFileDiff, which sorts the chain by it; other callers keep GitHub's order. Commit diffs have no chain and are unaffected.

Co-authored-by: coding46 <[email protected]>
2026-12-05 20:17:20 +08:00
ntbang0901 4c44beba35 fix(vfs): save existing files in place so their links, ACLs, xattrs and read-only bit survive (#8199)
Saving wrote a temp file next to the file and renamed it over the original, so the saved file was a different file: another hard link kept the old text, and extended attributes (Finder tags, the quarantine flag), ACL entries, the group and the creation date were lost; a file made read-only with chmod 444 was overwritten, and a writable file whose ACL denies deleting could not be saved.

An existing user file is now written in place (ide_vfs::save_file): a copy is made next to it first, written back if the write fails and removed after it succeeds; a read-only file is refused with a permission error. In a folder that allows no new file, the editor save writes in place without the copy while the notebook save (save_file_strict) refuses. New files and the IDE's own files are still written to a temp file and renamed. Editor, .properties, plugin and notebook saves use it.

Co-authored-by: ntbang0901 <[email protected]>
2026-12-05 19:30:34 +08:00
LU XIANGRUIтаwildcatDownstairs 65545d3563 feat(svn): rework the Subversion tool window tabs: Incoming, Update Info and Working Copies (#8212)
Reworks the Subversion tabs of the bottom version control tool window:

- Incoming lists the revisions committed after the working copy's BASE (new svn_incoming_revisions command, svn log -v BASE+1:HEAD per working copy) in one tree grouped by date or user, with the selected revisions' files beside it, an icon toolbar (Refresh, Show Details, Update Project, Filter by, Group by, Expand/Collapse All, Copy Revision Number), a context menu and per-file diffs between N-1 and N. It is now the first tab.
- After an SVN update, a "{n} Files Updated" balloon with View opens an "Update Info: {time}" tab: Update Project > Updated from server > Updated / Created / Deleted / Restored, then Skipped, conflicts, Merged, Not in repository, Replaced, parsed from svn update's file lines, with group-by-package and by-changelist, Jump to Source, Delete and before/after-update diffs.
- Subversion Working Copies Information: vertical Refresh toolbar, copies sorted by path, decoded URLs, the format shown as its release with Change running svn upgrade --compatible-version (new svn_upgrade command), Depth Fix running svn update --set-depth infinity, External/Switched/Working copy root markers, Cleanup / Configure Branches / Merge From... links, and a detection-error balloon with Fix it. A new Show Working Copies action selects the tab.
- The console's empty state names Subversion in an SVN-only project, the stripe uses the version control icon for every VCS, and new strings are in en and zh.

Refs #7433

Co-authored-by: wildcatDownstairs <[email protected]>
2026-12-05 19:08:39 +08:00
Md. Ramjan Miah b4148e2f39 fix(gitignore): allow ide-ssh target source files (#8215)
The target/ rule matches directories at any depth, including crates/ide-ssh/src/target/, so git add skipped remote_url.rs when the source archive was imported into a fresh repository (a normal clone is unaffected because the file is tracked). An anchored exception re-includes that source folder; Cargo build output stays ignored.

Co-authored-by: AhmedTrooper <[email protected]>
2026-12-05 18:43:32 +08:00
ntbang0901 6e642b4d4b fix(database): keep routine and trigger bodies, DELIMITER and GO batches whole when splitting scripts (#8214)
The console cut a script at every ; outside literals and comments, so a routine or trigger body ran in pieces: Execute on the DELETE inside a CREATE TRIGGER ... BEGIN ... END ran only that DELETE, a SQLite trigger script stopped with "incomplete input", a DELIMITER // script (mysqldump output) with 42000, a PostgreSQL BEGIN ATOMIC procedure with 42601, an SSMS script with "Incorrect syntax near 'GO'", and a SQL Server CREATE PROCEDURE kept only its first statement.

Statements now end where each dialect's own client ends them: a SQLite CREATE TRIGGER at ; END ;, PostgreSQL routines by counting BEGIN/CASE/END outside parentheses (psql), MySQL by DELIMITER lines and BEGIN ... END bodies of stored programs, with statements made only of executable comments (/*! ... */) kept, and SQL Server by GO lines, with CREATE/ALTER PROCEDURE/FUNCTION/TRIGGER taking the rest of its batch and IF ... BEGIN ... END / TRY-CATCH blocks staying whole.

Co-authored-by: ntbang0901 <[email protected]>
2026-12-05 18:42:22 +08:00
ntbang0901 4bd6f8e720 fix(database): run a SQL script's statements on one connection (#8213)
Run SQL Script, and any other run of several statements without a console (the object dialogs, for example), sent each statement to whichever pooled connection was free. A script's session state was missing for its next statement (a temporary table, BEGIN ... COMMIT, a SET), and a mysqldump file hung once the pool held several connections: LOCK TABLES ran on one connection and the INSERT after it waited for that lock on another.

Such a run now gets a script session (ConsoleId::script) that keeps one connection from its first statement on, as each database's own client runs a script, and runs in the data source's manual transaction if any rather than a console transaction. When the run ends, the session is released: what it left open is rolled back and its connection is closed instead of returning to the pool with the script's session state.

Co-authored-by: ntbang0901 <[email protected]>
2026-12-05 18:40:30 +08:00
ntbang0901 7145b81ac1 fix(workspace): stop rejecting valid workspace edits as out of sync (#8210)
In a Go file, Alt+Enter "Add test for ..." and "Extract declarations to new file" always failed with "edit could not be applied": gopls sends the result through workspace/applyEdit, versioning every file it read from disk 0, and the IDE applied it without first recording what its files held, while a versioned edit of a file that isn't open is only accepted with such a record. Server edits now go through Documents::apply_server_edit, which checks the edit against what its files hold when it arrives; an open document must still be at the version the server names.

With transparent native-to-ascii conversion on, a rename with text occurrences or an agent's edit touching an unmodified .properties file with \uXXXX escapes failed with "changed; request the refactoring again": the unreported-write check compared the decoded buffer with the escaped file text, and now reads the file the way the document was opened.

Co-authored-by: ntbang0901 <[email protected]>
2026-12-05 18:37:45 +08:00
ntbang0901 8f080ee99e fix(database): write binary keys and values as bytes when submitting edits (#8209)
The data grid shows a binary value as 0x... hex, and a submitted edit sent that text back as a quoted string: a row with a binary primary key could not be changed or deleted (SQLite and SQL Server matched no row or refused the varchar-to-varbinary conversion, MySQL silently changed nothing), and an edited binary value was stored as the bytes of its hex text.

Submitting edits now looks up the table's binary columns when an edited key or value is 0x... hex, and writes those values as bytes (X'...' on SQLite and MySQL, 0x... on SQL Server); other text stays quoted, and the console's Output log shows the same literals. An edit that matches no row now fails on MySQL too (sqlx requests CLIENT_FOUND_ROWS, so a matched but unchanged row still counts), and a failed batch rolls its transaction back before the connection returns to the pool, discarding the connection if the rollback fails.

Co-authored-by: ntbang0901 <[email protected]>
2026-12-05 18:34:17 +08:00
ntbang0901 feb5262a16 fix(database): keep GO, DELIMITER and / lines when reformatting SQL (#8208)
Reformat Code in a SQL console or file split statements only at ;, so it joined client-side separators onto neighbouring statements: SQL Server's GO lines, Oracle SQL*Plus's / lines and MySQL's DELIMITER lines, whose delimiter it also spaced out (// became / /) after cutting stored routines at the first ; of their body. The script then no longer ran in sqlcmd, SSMS, SQL*Plus or the mysql client.

A SQL Server line holding only GO (optional count and comments) and an Oracle line holding only / now end the statement before them and are left as written, as ide-db's console splitter already reads /. A MySQL DELIMITER x line at the start of a statement is left as written, and until the next one statements end at x (left as written): a ; inside a routine body no longer ends a statement, and the body's statements start their own lines.

Co-authored-by: ntbang0901 <[email protected]>
2026-12-05 18:31:55 +08:00
ntbang0901 7911a74c05 fix(run): run a Gradle test with the Test task of its source set (#8207)
Run and Debug from the gutter on a test in a JVM test suite (src/integrationTest/java) or in a source set with its own Test task (functionalTest) ran `:app:test --tests ...`, and Gradle answered "No tests found for given includes": the run configurations only knew a test task and every Gradle test run was narrowed to <project>:test.

The Gradle sync now reports, for each source set, the Test tasks whose testClassesDirs hold its classes (GradleProject.testTasks), and a test file, class, method or folder runs with the task of its source set (`:app:integrationTest --tests demo.GreeterIT`); those folders also get the All Tests and package runs src/test/java has, and debugging a configuration that runs such a task gets the JDWP agent. Before a sync reports the tasks, runs keep using test; older Gradle caches are marked stale so the next reload reads them.

Co-authored-by: ntbang0901 <[email protected]>
2026-12-05 18:29:35 +08:00
ntbang0901 bb7cacb357 fix(maven): read the Java level from the compiler plugin before properties (#8206)
A Maven module's Java level was taken from the maven.compiler.release, java.version, maven.compiler.source and maven.compiler.target properties before the compiler plugin's configuration. With spring-boot-starter-parent (java.version 17) and <release>21</release> in the module's maven-compiler-plugin, the model said 17, so Maven and javac got JDK 17 and the build failed with "release version 21 not supported".

The level is now read the way maven-compiler-plugin hands it to javac: release before source and target, and the plugin's configuration (merged element by element through parents, <pluginManagement> and active profiles) before the maven.compiler.* property it defaults to. java.version is read only while the parent that passes it on is not in the local repository yet. ide-sdk's JDK pick follows the same order.

Co-authored-by: ntbang0901 <[email protected]>
2026-12-05 18:24:24 +08:00
ntbang0901 b5f7f0f472 fix(maven): turn on profiles by property, file, JDK and .mvn/maven.config as Maven does (#8205)
Profiles Maven turns on by a <property>, a file that exists or is missing, -P in .mvn/maven.config or <activeProfiles> in settings.xml were left out of the IDE's Maven model: their modules were missing from the Maven tool window, Build Module on them failed with "no linked Maven project found for module", and a root mvn test never brought their test reports to the Run window. The previous <os> matcher also compared Rust's OS names (macos, x86_64) instead of Java's, and ignored an unmet <jdk> next to a matching <os>.

Profiles are now chosen by one evaluator (maven/activation.rs) that follows Maven 3.9 for the model, the reactor scans and POM navigation: every condition of an <activation> must hold, <os> is compared with what Java reports (Mac OS X, aarch64, amd64 on Linux), a -P entry that turns a profile off wins whatever the order, activeByDefault profiles step aside for any other profile of their POM that is on, and a parent's file condition is checked in the folder of the module being built. Such profiles show as on by default and untick with -P !id. The reactor scan for test reports also gets the JDK for <jdk> profiles.

Refs #8171

Co-authored-by: ntbang0901 <[email protected]>
2026-12-05 18:21:56 +08:00
ntbang0901 8a26dff72b fix(http-client): keep query parameters written on separate lines (#8204)
A long request target can be split over indented lines in two layouts: lines starting with /, ? or &, and the "query parameters on separate lines" layout where `GET .../html?` is followed by indented `firstname=John&` lines. The parser joined only the first, so the second sent the request to `.../html?` and silently dropped every parameter, and the editor highlighted those lines as plain text.

An indented line now also continues a target whose last part ends in ? or &, in ide-http's parser and in the editor's highlighting; a protocol version after the last part is dropped as on the request line, and an indented header after a complete target stays a header.

Co-authored-by: ntbang0901 <[email protected]>
2026-12-05 18:16:07 +08:00
ntbang0901 529cd33ddc fix(run): keep failing tests and their failures in the test tree (#8203)
JVM test names were cut at their first parenthesis, so Kotlin tests like `parse (valid input)` and `parse (empty input)`, Spock features and the tests the JUnit runner reports merged into one node `parse` with one gutter icon, and Rerun Failed asked for `ParserTest.parse`, which Gradle and Surefire don't match. Now only a parameter-type list right after the method name (and an invocation's index) is dropped (jvmMethodName / junit::method_name), consistently in the test tree, JUnit XML report names, rerun filters and the gutter's pass/fail icons (JVM files only; pytest and .NET names keep the old rule).

A test that printed more than 400 lines lost its failure, because the tree kept the first 400 lines. Failure details are now kept apart from printed output and never cut; long printed output keeps its first 100 and last 300-600 lines with a line counting those left out. JUnit XML output is no longer cut at 200 lines.

Co-authored-by: ntbang0901 <[email protected]>
2026-12-05 18:14:52 +08:00
ntbang0901 838cf14845 fix(editor): run IDE editor actions in previews and diff panes instead of CodeMirror's own bindings (#8202)
In the TODO and Find in Files previews (also Search Everywhere, Bookmarks and Show Usages) and on a diff's editable side, shortcuts of editor actions fell through to CodeMirror's defaultKeymap: with the macOS IntelliJ keymap, Option+Up (Extend Selection) moved the line and changed the file, Option+Shift+Up copied it, and Cmd+D ran Show Diff in the TODO preview; on Windows/Linux Alt+Up/Down moved lines.

Previews now publish embeddedEditorFocus while focused, so text actions that need only the view run on them as in a diff pane, and Show Diff no longer takes Cmd+D there. Previews and diff panes use the editor's base keymap, and embeddedEditorKeys drops CodeMirror's own edit for any key the IDE keymap gives to an editor action (history keys included), so where that action needs the file editor the key does nothing. The Find preview's ad-hoc key claim is replaced by the same rule.

Co-authored-by: ntbang0901 <[email protected]>
2026-12-05 18:11:45 +08:00
ntbang0901 4baa407e25 fix(lsp): clamp out-of-range positions instead of rejecting the server's answer (#8201)
Reformat Code on a shell script changed nothing and format on save failed silently: bash-language-server answers formatting with an edit ending at Position.create(Number.MAX_VALUE, Number.MAX_VALUE), which arrives as the float 1.7976931348623157e+308, and reading it into lsp-types' u32 positions rejected the whole answer. The same refused a workspace/applyEdit and dropped a diagnostic with such a position.

The line and character of each position in a request's answer, an edit to apply and a diagnostic are now saturated to the u32 range before they are read (opaque data and arguments payloads are left untouched); the editor already clamps a position past the end of the text.

Co-authored-by: ntbang0901 <[email protected]>
2026-12-05 18:04:12 +08:00
ntbang0901 b01ba2da03 fix(agents): replace a tool call's content on update and say when a reply hit the token limit (#8200)
In ACP, content on tool_call_update replaces the call's whole content array, but the timeline replaced a call's output, diffs and images only when the update carried that kind. With Claude Code, an Edit that failed and was retried showed both diffs in "Edited 1 file", and the failed row kept a diff button, because the failed result carries only the error text. An update with content now replaces all three, keeping a command's announced "$ cmd" line.

A turn the agent ended at its output token limit (max_tokens) or its limit of model requests (max_turn_requests) looked finished; it now ends with a line saying so, as a refusal already does.

Co-authored-by: ntbang0901 <[email protected]>
2026-12-05 18:02:18 +08:00
ntbang0901 e4f7709f53 fix(files): copy an open file and revert a deleted one byte for byte (#8198)
Local History > Revert of a file deleted outside the IDE wrote it back like a new file: snapshots hold the document text (LF, no BOM) and the restore opened an empty file, so a CRLF .bat came back with LF, a UTF-8 file without its BOM, a GBK file as UTF-8. Snapshots now also keep the file's bytes (what a save wrote, or the file as read from disk), and Revert writes those bytes back when the file is missing. A save that changes only line endings is now its own revision.

Copy/Paste in the Project view, F5 and Save As of an open file without unsaved changes re-encoded the buffer, so mixed line endings came out all LF and an image opened as text was copied empty. A clean document is now copied as its file's bytes; a buffer with unsaved changes is copied as before.

Co-authored-by: ntbang0901 <[email protected]>
2026-12-05 17:56:50 +08:00
ntbang0901 bcee799269 fix(vcs): write and read commit messages in the commit's encoding (#8197)
With i18n.commitEncoding set to a legacy encoding (ISO-8859-1, Shift_JIS, GBK, windows-1251), Git names that encoding in each commit and expects the message in it. The IDE piped UTF-8 to git commit, so its commits read as mojibake in other tools, and decoded every commit as UTF-8, so correctly encoded commits showed replacement characters in the Git Log, commit details and Annotate, and Amend, Undo Commit and the rebase editor started from that text.

Messages are now written in i18n.commitEncoding (Commit, amending an earlier commit, the edited cherry-pick message, rebase rewords and squashes), and text it cannot represent is refused. Commits are read in the encoding they name (log index, rebase editor, Undo Commit), and git log/blame/show calls whose output the IDE parses pass -c i18n.logOutputEncoding=UTF-8. The log index tables move to new versions so cached summaries are decoded again.

Co-authored-by: ntbang0901 <[email protected]>
2026-12-05 17:53:38 +08:00
ntbang0901 ec4da5efa5 fix(vcs): annotate, show history and gutter of a renamed file against its committed name (#8196)
After a staged rename (git mv, or a moved file added to the index) and an edit, Annotate said the file had no committed history, Show History for File was empty and the gutter marked every line as added: blame, the gutter's base and the file history looked the new name up in HEAD, which only has the old one.

When a path is in the index but not in HEAD, Repo::committed_path finds HEAD's name from the staged rename with the same rename detection status uses, and blame, line hunks and the file history read the file under that name. Inline blame, Show Current Revision and Compare with Revision look it up under the committed name too; the author lens and "reformat only changed text" follow from the same commands.

Co-authored-by: ntbang0901 <[email protected]>
2026-12-05 17:52:07 +08:00
tongkangwangтаchiyanking 94a28cbd1d feat(agents): reference changed files dragged from the Commit tool window (#8193)
Files dragged from the Changes tree (Commit tool window, the Git window's Local Changes tab and the Commit dialog) could only be dropped on a change list. They now also land on an agent composer as @ references, like files dragged from the Project view; a multi-selection drags every selected file. The changes drag type moves to ui/pointerDrag.ts as CHANGES_DRAG so the composer can accept it without importing the VCS feature; dropping onto a change list is unchanged.

Co-authored-by: chiyanking <[email protected]>
2026-12-05 17:48:26 +08:00
ntbang0901 63830dcbaf fix(agents): keep a pending permission request tied to its session until it is answered (#8191)
Open permission requests and forms were tracked per task, not per session. Stop Subagent never answered the subagent's open request (ACP requires a cancelled session's pending requests to be answered with cancelled), the end of the task's turn marked every open card Cancelled without answering it so the agent kept waiting and a still-working subagent lost its card, and a request the agent withdrew with $/cancel_request kept its card open.

Each pending request now records its session and JSON-RPC id. Stop Subagent, or the subagent reporting idle, cancels that session's requests; stopping or ending the task's turn cancels only the task's own; a withdrawn request ($/cancel_request, or $/cancelRequest from the native drivers) is cancelled and its card closes. Dropping the connection for a network retry or recycling an idle session now answers open requests too, and the v2 dialect passes the request id through.

Co-authored-by: ntbang0901 <[email protected]>
2026-12-05 17:45:31 +08:00
ntbang0901 4ab9f02dc2 fix(terminal): track working directories whose names hold #, ? or % (#8190)
The shell integration printed the working directory raw in the OSC 7 file:// URL, and both the backend and the terminal view parsed it as a URL, so a folder named C#, what? or 100% lost everything from the # or ? on, or failed to decode, and the terminal's directory (new tabs, links, Run in terminal) went wrong.

The zsh and bash integrations now percent-encode every byte outside [/._~A-Za-z0-9-] (fish uses string escape --style=url), and both parsers take everything after the host as the path, decode %XX escapes and keep any other %, so shells and tools that print the path raw still work.

Co-authored-by: ntbang0901 <[email protected]>
2026-12-05 17:42:39 +08:00