Графік комітів
2183 Коміти
Автор SHA1 Повідомлення Дата
LU XIANGRUIтаwildcatDownstairs d1c07306e9 feat(profiler): profile Python runs with yappi (threads, asyncio) (#7466)
Profile on a Python run configuration uses yappi when the run's interpreter can import it: Automatic picks yappi, else py-spy where it can sample without root, else cProfile, and Settings › Python › Profiler gains a yappi choice (missing yappi offers `python -m pip install yappi`, or only the homepage under uv/poetry). yappi runs through python_profile.py with the wall clock and builtins, so a coroutine's time includes its awaits and every thread is profiled; the launcher writes the merged profile.pstats plus one pstats per thread and threads.json (busiest 64), converted to cProfile's call-count order and built-in names. Non-daemon threads and pools are waited for before saving, except after Stop. The Profiler view gets a thread selector (All threads merged, then each thread) when a run has two or more threads. The Rust CI job installs yappi 1.7.6 in a venv on GitHub-hosted runners for the real-interpreter tests.

Co-authored-by: wildcatDownstairs <[email protected]>
2026-12-05 10:10:00 +08:00
LU XIANGRUIтаwildcatDownstairs cff33ee70d feat(dotnet): run .NET tests with coverage (#7736)
Run with Coverage now works for `dotnet test` configurations: VSTest projects collect with coverlet.collector, Microsoft.Testing.Platform projects with Microsoft.Testing.Extensions.CodeCoverage (Cobertura output). The runner is chosen from global.json's test.runner and an MSBuild evaluation of the project; a test project without the package gets an Install notification that runs `dotnet add <project> package …`. Each run writes to its own results directory and the reports of every test project are merged (the TRX logger's copies are not counted twice). Cobertura branch flags are read case-insensitively (coverlet writes `True`). The Rust CI job's .NET 10 SDK step now also serves ide-coverage's real-CLI test.

Co-authored-by: wildcatDownstairs <[email protected]>
2026-12-05 09:51:24 +08:00
Alexandro Trevisanтаl0ng-ai 579ce3f731 feat(run): choose the run device from plugin device providers (#7822)
* feat(run): choose the run device from plugin device providers

Plugins can declare device providers (`[[contributes.devices]]`): a program
that lists simulators, emulators or phones as JSON, the run configurations
it applies to, and how a chosen device reaches the run (extra arguments,
environment, an optional prepare step that boots it). The title bar shows a
device chooser for the selected configuration; Run and Debug prepare the
chosen device first. Before-launch and build-on-update runs skip the device.

* feat(plugins): document run devices and require plugin API 1.21

`[[contributes.devices]]` now needs `engines.openidea = "^1.21"` and uses
camelCase fields (`appliesTo`, `runArgs`) like the other run contribution
points. The plugin README, the manifest reference and the API versions page
(en/zh) describe it, and `plugins/official/android-devices` is a small
example that lists the devices adb sees for Gradle install tasks.

* fix(plugins): harden device runner process handling, guard refresh races, verbatim headers, and add en.json entries

* fix(plugins): use portable process:sh capability in android-devices example and README

---------

Co-authored-by: l0ng-ai <[email protected]>
2026-12-05 09:34:41 +08:00
LU XIANGRUIтаwildcatDownstairs 71ded3e4c0 feat(dotnet): show the .NET SDK a project uses and pin it in global.json (#7740)
Adds Settings › Languages & Frameworks › .NET: the SDK `dotnet --version` resolves in the project folder (so global.json and rollForward apply), the installed SDKs, and the global.json being read, also from a parent folder. Choosing a version writes sdk.version to the project folder's global.json, creating it if needed and keeping every other byte (comments, BOM, layout). A pinned version that is not installed and a global.json that does not parse are called out; depending on the SDK, dotnet ignores such a file (10.0.401) or fails to start (10.0.404). Both commands are refused in Restricted Mode. The Rust CI job installs the .NET 10 SDK (actions/setup-dotnet pinned to v5.4.0) for the real-CLI test.

Co-authored-by: wildcatDownstairs <[email protected]>
2026-12-05 09:32:11 +08:00
LU XIANGRUIтаwildcatDownstairs 59397c4842 feat(profiler): profile Python allocations with memray (#7699)
Profile '…' Allocations now works for Python scripts, modules and pytest configurations on macOS and Linux. The run is tracked by memray in the project's interpreter through python_profile.py (trace_python_allocators on), the capture is read with `memray transform csv` with the project folder kept off sys.path, and the snapshot shows what was allocated at peak memory in the existing allocation views. When memray is missing, the Install notification offers pip / uv / poetry / pdm. Live objects stay JVM only; Windows and run targets are refused with a reason. The Rust CI job installs memray 1.21.0 in a venv on GitHub-hosted macOS and Linux runners so the real-memray tests run there.

Co-authored-by: wildcatDownstairs <[email protected]>
2026-12-05 09:18:18 +08:00
76cb012b92 feat(cmake): use a Visual Studio toolchain's environment (vcvarsall) (#7956)
* feat(cmake): use a Visual Studio toolchain's environment

Supersedes #4051.

Co-authored-by: Bert Verhelst <[email protected]>

* fix(cmake): compact long PATH for vcvarsall, run toolchain_check off async thread, regenerate bindings and clean stale zh keys

---------

Co-authored-by: arookieofc <[email protected]>
Co-authored-by: Bert Verhelst <[email protected]>
Co-authored-by: l0ng-ai <[email protected]>
2026-12-05 09:14:16 +08:00
Akbar Husainтаl0ng-ai 853a0304e1 feat(java): use java-analyzer's hierarchy refactor requests (#8120)
* feat(java): use java-analyzer's hierarchy refactor requests

* fix(java): handle null hierarchy refactor answer, prefer first target, and test jdtls fallback

---------

Co-authored-by: l0ng-ai <[email protected]>
2026-12-05 09:12:24 +08:00
5c2b52075d test(smoke): cover restart, external changes and multi-module projects (#7986)
Ports the test and fixture half of #3801 without its CI workflow changes.

Co-authored-by: arookieofc <[email protected]>
Co-authored-by: rohitkumardanda <[email protected]>
2026-12-05 09:11:28 +08:00
2389c0e07e fix(java): wait out multi-module Maven imports (#8008)
Part of #772.

Co-authored-by: arookieofc <[email protected]>
Co-authored-by: hpz <[email protected]>
2026-12-05 09:11:21 +08:00
Akbar Husainтаl0ng-ai 4fe11aacbd feat(java): use java-analyzer's change signature requests (#8102)
* feat(java): use java-analyzer's change signature requests

* fix(java): handle null changeSignature result, default delegateSupported, and add fallback test

---------

Co-authored-by: l0ng-ai <[email protected]>
2026-12-05 09:09:32 +08:00
audichuangтаl0ng-ai 61a4118921 fix(project-tree): select java-analyzer library files under External Libraries (#8119)
* fix(project-tree): select java-analyzer library files under External Libraries

* fix(project-tree): prefer the reported binary jar; ask only running servers

* fix(project-tree): select stubs of class directory libraries

* test: record lsp_library_source_origin in the command snapshot

* test(ide-lsp): build the source origin test's paths per platform

* fix(project-tree): skip virtual URIs in sourceOrigin lookup and normalize class dir slashes

---------

Co-authored-by: l0ng-ai <[email protected]>
2026-12-05 08:55:06 +08:00
Alexandro Trevisanтаl0ng-ai 63ce54dc1e feat(run): offer the debug adapters of language definitions in run configurations (#7823)
* feat(run): offer the debug adapters of language definitions in run configurations

The Debug adapter field of a run configuration listed only the built-in
adapters. A language definition's `[debugger] adapter`, including one a
plugin contributes, showed as "(no launch template)" when typed in by hand.
`LanguageInfo` now carries the adapter, and the form offers it after the
built-in ones.

* fix(run): mark language debug adapter options verbatim and trim adapter ids

---------

Co-authored-by: l0ng-ai <[email protected]>
2026-12-05 08:52:01 +08:00
l0ng-ai 2d3f81cf54 fix(lsp): tell Java servers about generated sources in excluded build output (#8137)
Sources a code generator wrote below an excluded or ignored build folder (target/generated-sources, generated-test-sources, build/generated) were dropped by the file watcher, so a running java-analyzer kept reporting them unresolved until it restarted. The watcher now reports those files apart and they reach the language servers as watched-file changes, while the project tree and index keep excluding the folder. After a Maven reload or build, Java servers that don't import Maven output themselves are also told which generated sources appeared, changed or went (Linux does not watch excluded folders). Rechecking open files after Java sources change on disk now covers java-analyzer as well as jdtls, and pulls their diagnostics again.

Closes #8130
2026-12-05 08:05:13 +08:00
l0ng-ai d1925ada22 feat(endpoints): list Spring routes a controller inherits from its interface (#8129)
A controller implementing an interface that carries the request mappings (an OpenAPI-generated OwnersApi) declares none itself, so Search Everywhere's Endpoints tab found nothing for it. Controller methods without a mapping now take the one of the same-named interface method, under the controller's class-level @RequestMapping (else the interface's), with the interface's parameter annotations and constants resolved in the interface's file. The route scan also reads interface files and the build's generated sources (target/generated-sources, build/generated next to a build file), which the VCS usually ignores.

Fixes #8110
2026-12-05 05:08:12 +08:00
Deng Liuтаdengliu 1eb91d4cef feat(services): add live 2x2 container resource charts to Docker Dashboard (#8123)
The container Dashboard's Resource Usage rows showed only the last 3-second docker stats reading, so spikes, memory growth and I/O bursts were invisible. They are replaced by a live, synchronized 2x2 grid of CPU, memory, disk I/O and network I/O charts fed by a new docker_container_stats_stream command (Engine API stats stream, falling back to streaming docker stats). A toolbar picks the 1/5/15-minute window, rate or total I/O, auto or limit memory scaling, and pauses or clears; hovering or the arrow keys move one crosshair across all four charts, and the last session's history stays visible after the container stops. Adds the --chart-series-secondary token.

Co-authored-by: dengliu <[email protected]>
2026-12-05 04:53:02 +08:00
l0ng-ai 86a39c6573 fix(maven): pick the IDE's plugin goals by the Maven version that runs them (#8126)
Sync, help:evaluate, dependency:build-classpath and source downloads used the newest cached maven-help-plugin / maven-dependency-plugin, or a pinned 3.5.1 / 3.8.1, whatever Maven ran them; those need Maven 3.6.3 (help 3.6.0 needs 3.9.0), so with Maven 3.3.9 every reload failed. The Maven version now comes from the wrapper's distributionUrl or the installation's maven-core jar; cached plugins whose descriptor requires a newer Maven are skipped, and the pinned fallback is the newest release that Maven can load. An unknown Maven version keeps the previous choice.

Fixes #8114
2026-12-05 04:36:16 +08:00
RuyimgByCN 979d19d066 feat(plugins): add database granular context menus and open-console/table APIs (#8121)
Plugin API 1.21 adds Database tool window context menus for data sources, schemas/databases and columns next to database.table.context, each item receiving the selected nodes, and database.open-console / database.open-table-data, which open the IDE's Query Console (SQL filled in, not run) or a table's data grid from a command the user invoked, after checking the source exists and the database capability is granted. The plugin UI reaches the Database feature through a new DatabaseService in the workbench contributions rather than importing it. Includes SDK methods and MockHost helpers, a fixture plugin with a host integration test, UI tests, regenerated bindings, rebuilt plugin components and README notes.

Co-authored-by: RuyimgByCN <[email protected]>
2026-12-05 04:29:49 +08:00
RuyimgByCN ea32779559 feat(plugins): add completion-resolve-provider for lazy completion details (#8122)
Plugin API 1.21 adds the optional completion-resolve-provider export: completion returns items with an opaque data token, and resolve is called when the user focuses one. As with LSP completionItem/resolve, the resolved detail, documentation and additional edits are filled in while the label and what the item inserts stay as listed. Plugins without the export keep the existing completion providers. Includes the SDK trait and registration, a fixture plugin with a host integration test, rebuilt plugin components and README notes.

Co-authored-by: RuyimgByCN <[email protected]>
2026-12-05 04:17:28 +08:00
RuyimgByCN 42ba15665b feat(plugins): add run.output events and console link rules (#8118)
Plugin API 1.21 adds ui.set-console-links: regex rules (validated like console highlight rules) that make matches in Run and Debug console output clickable and run one of the plugin's declared commands with { text, line, argument }; built-in file and URL links win where they overlap. It also adds the run.output capability: plugins subscribed to run-output receive the output of runs and debug sessions started in trusted projects, in chunks of at most 16 KiB, and nothing is wrapped while no plugin subscribes. Includes SDK types and MockHost support, a fixture plugin with a host integration test, regenerated bindings, rebuilt plugin components, the capability's description in the text catalog, and a README section.

Co-authored-by: RuyimgByCN <[email protected]>
2026-12-05 03:54:28 +08:00
RuyimgByCN 65e243f5fc feat(plugins): add code.semantics read-only LSP queries (#8117)
Plugin API 1.21 adds the low-risk code.semantics capability: Project::lsp_definition, lsp_type_definition, lsp_implementations, lsp_references (capped by a limit), lsp_hover_info and lsp_document_symbols query the running language servers, also for read-only jdt:// documents. Queries need a trusted project, documents are opened through the ref-counted document store and released afterwards, and locations outside the project's roots are dropped. Includes the SDK methods and MockHost helpers, a fixture plugin with a host integration test, rebuilt plugin components, the capability's description in the text catalog, and README entries.

Co-authored-by: RuyimgByCN <[email protected]>
2026-12-05 03:30:06 +08:00
RuyimgByCN 3a956c72b8 feat(plugins): add rename-provider for cross-language rename (#8115)
Plugin API 1.21 adds the optional rename-provider export (wit/rename.wit, world plugin-rename). A plugin declaring the rename provider kind answers prepare-rename where the language server has no target, and its rename edits are merged into the server's workspace edit (overlapping edits dropped) or form the whole rename when no server handles the file. Edit paths must resolve inside the project's writable roots; calls use the command budget and honour cancellation. Includes the SDK trait and registration, a fixture plugin with a host integration test, rebuilt plugin components, and a README section describing the host policy.

Co-authored-by: RuyimgByCN <[email protected]>
2026-12-05 03:14:06 +08:00
l0ng-ai d48146f52d fix(agents): keep agent_refresh_models off the main thread and cache newest_install (#8070)
Opening the New Agent Task page froze the UI when a native agent such as Codex had several installs on PATH: agent_refresh_models was a synchronous command, so it resolved provider specs and ran <agent> --version for every candidate on the main thread, while agent_commands, agent_probe and catalog completion repeated the same blocking lookup on Tokio workers. agent_refresh_models now runs on the blocking pool, the remaining provider_specs / resolve_for_launch / catalog requests move to spawn_blocking, and newest_install probes candidates in parallel with a per-binary cache (canonical path, mtime, size, inode; 60 s) and single-flight deduplication.
2026-12-05 01:59:50 +08:00
Christer Söderlundтаchristerso 5cfd5157d0 feat(scaffold): add an Odin project to New Project, with Odin icons (#8096)
New Project gains an Odin entry. Odin has no init command, so the generator writes main.odin, an ols.json and a .gitignore, and checks that odin is installed. .odin files get a file icon (light and dark), and New Project uses the Odin logo from Simple Icons, credited in THIRD_PARTY_LICENSES.md.

Co-authored-by: christerso <[email protected]>
2026-12-05 01:45:16 +08:00
Christer Söderlundтаchristerso 0ba39f732e feat(languages): add Odin with OLS, its tree-sitter grammar and outline (#8095)
.odin files open as Odin: highlighting from tree-sitter-odin, a Structure view from a new outline query (every name of a multi-name field listed), and OLS as the language server, installable from Language Servers settings. OLS release archives name the program after the platform (ols-x86_64-pc-windows-msvc.exe), so the installer also locates ols-*.

Co-authored-by: christerso <[email protected]>
2026-12-05 01:43:26 +08:00
arookieofc-ai[bot]таarookieofc-ai 194b01d74f feat(scaffold): add CakePHP project generator (#8090)
New Project › PHP gains CakePHP, generated with composer create-project cakephp/app (PHP 8.2 or later and Composer required).

Co-authored-by: arookieofc-ai <[email protected]>
2026-12-05 01:28:12 +08:00
arookieofc-ai[bot]таarookieofc-ai 6ea187f0d0 feat(scaffold): add CodeIgniter project generator (#8088)
New Project › PHP gains CodeIgniter, generated with composer create-project codeigniter4/appstarter (PHP 8.2 or later and Composer required).

Co-authored-by: arookieofc-ai <[email protected]>
2026-12-05 01:27:01 +08:00
arookieofc-ai[bot]таarookieofc-ai 0fe7fa9b48 feat(scaffold): add Fastify project generator (#8086)
New Project › JavaScript gains Fastify, generated with the official create-fastify package, with the package manager choice and the optional dependency install the other Node generators have.

Co-authored-by: arookieofc-ai <[email protected]>
2026-12-05 01:26:47 +08:00
l0ng-ai 51227d5898 fix(agents): keep text an agent sends before the prompt out of the reply (#8098)
pi-acp sends its startup info as an agent message right after session/new, before the prompt. The timeline appended the reply to that entry, so Generate Commit Message with Agent put the startup info into the commit message. The timeline is now sealed when session/prompt is sent, so the reply's text (agent or thought) starts an entry of its own.
2026-12-05 01:08:53 +08:00
l0ng-ai 1e6ab2ecff fix(java): repair a jdtls workspace that Eclipse can no longer open (#8091)
jdtls exited with code 13 on every start when its workspace's saved resource tree no longer matched itself (ResourcesPlugin.start → SaveManager.restore → ObjectNotFoundException). Before each start, if the last session in the workspace's .metadata/.log failed inside SaveManager.restore, the saved resource tree (.metadata/.plugins/org.eclipse.core.resources) is removed so jdtls imports the projects again; JDT's index is kept.

Fixes #7908
2026-12-05 00:37:53 +08:00
Akbar Husainтаl0ng-ai 0f0e3e73e7 feat(java): use java-analyzer's extract interface requests (#7987)
* feat(java): use java-analyzer's extract interface requests

* feat(java): match the merged extract interface protocol

* fix(java): handle null extractInterfaceInfo, keep source className, and add protocol tests

---------

Co-authored-by: l0ng-ai <[email protected]>
2026-12-05 00:33:19 +08:00
RuyimgByCN 417ecfed50 perf(plugins): batch navigation indexing, skip empty edges, and isolate bad files (#8013)
Plugin navigation indexing sent 8 files per IPC call, invalidated each batch first and slept 20 ms between batches, and one invalid document failed its whole batch. The frontend now sends 128-file batches (active editors first) without the separate invalidation; the host loads them, calls the plugin in chunks of 16 so interactive requests interleave, skips and evicts invalid or oversized documents one by one, and does not store documents without edges, so they no longer take graph slots. A full graph still skips uncovered files before running the plugin. Discovery stays at one graph's 20,000 files, so the covers-N-of-M notice stays true. Sparse 20k files: 780 ms → 373 ms indexing, same navigation results.

Co-authored-by: RuyimgByCN <[email protected]>
2026-12-05 00:06:00 +08:00
LU XIANGRUIтаwildcatDownstairs 8483c355c8 fix(workspace): remove a workspace member whose folder is gone (#8069)
The Project view's context menu returned early for an unavailable path, before the branch that offers Remove from Workspace / Detach Project for a member root, so a member whose folder had moved or been deleted could not leave the workspace. The member entry now comes from one helper used by both the available and the unavailable branch.

Co-authored-by: wildcatDownstairs <[email protected]>
2026-12-04 23:57:39 +08:00
LU XIANGRUIтаwildcatDownstairs 72db7ecb97 perf(debug): share one lldb-dap server across Xcode debug sessions (#7442)
Every Xcode attach started a fresh lldb-dap, which parses the symbol tables of the ~550 system libraries an iOS app loads before reaching a breakpoint. Xcode attaches on macOS now reuse one lldb-dap server (keyed by working directory, lldb-dap binary and environment, over a private Unix socket) that keeps the parsed modules; it ends after 10 minutes without a session, when the IDE quits, or when another configuration replaces it. Overlapping attaches and custom adapter invocations keep their own process. Measured on an iOS Simulator: attach to stopped-with-frames 1.74 s before, 0.49 s with a warm server, 1.56 s cold.

Co-authored-by: wildcatDownstairs <[email protected]>
2026-12-04 23:55:28 +08:00
RuyimgByCNтаl0ng-ai bc019ace9d feat(plugins): add database schema discovery and query execution APIs (API 1.21) (#7958)
* feat(plugins): add database schema discovery and query execution APIs (API 1.21)

* docs(plugins): list API 1.21 database discovery and query additions in versioning

* fix(plugins): address database discovery/query review findings and rebuild dist

---------

Co-authored-by: l0ng-ai <[email protected]>
2026-12-04 23:38:50 +08:00
LU XIANGRUIтаwildcatDownstairs f3582403f3 fix(svn): show each working copy's svn update output in the console (#8065)
Update Project over several working copies only showed the first one's output: every repository's vcs_remote call shared one Tauri channel, and a channel stops delivering once its command ends. Each command now gets its own channel (also for the multi-repository Git branch update). The Subversion backend streams svn update's own lines (Updating, the U/A/D/C/G file lines, Updated to revision N) instead of a single summary line.

Co-authored-by: wildcatDownstairs <[email protected]>
2026-12-04 23:21:44 +08:00
Michał Dobaczewskiтаl0ng-ai 4aeeb4d883 feat(agents): duplicate a built-in agent to run it with its own configuration (#8048)
* feat(agents): duplicate a built-in agent to run it with its own configuration

* fix(agents): preserve instance launch command, login secrets, provider cache, and reactive icons

---------

Co-authored-by: l0ng-ai <[email protected]>
2026-12-04 23:19:46 +08:00
l0ng-ai 15f3eadcf1 fix(syntax): detect expressions when caret sits after closing delimiter (#8051)
* fix(syntax): detect expressions when caret sits after closing delimiter

* fix(syntax): detect nested postfix and JSX expressions before closing delimiter
2026-12-04 23:19:38 +08:00
l0ng-ai b747e81cb6 fix(lsp): offer the kotlin-lsp update when a running build expires (#8059)
A kotlin-lsp build past its date only crashes when it starts. A running one reports that its license expired, keeps working for a short grace period, then parks and stops answering, so Go to Declaration silently did nothing and no update was offered. A license-expiry notice in window/showMessage or window/logMessage now marks the running instance; its Ready/Busy status says the build expired, and the UI offers the same update as for a crashed expired build, once per instance. The "renew or activate a license" notice is no longer shown as is.

Fixes #8033
2026-12-04 22:47:03 +08:00
LU XIANGRUIтаwildcatDownstairs 535f7584ee fix(maven): show default-active profiles in grey and pass explicit -P choices (#8042)
Profiles active by default (activeByDefault in a POM or settings.xml, or listed in settings.xml activeProfiles) now show a grey check, and a profile the user checks explicitly is always passed in -P: before, checking a default-active profile next to another one left it out of -P, so Maven deactivated it. A click goes from the default to explicitly disabled, then explicitly enabled, then back to the default; an inactive profile goes enabled and back. activeByDefault is read case-insensitively, declarations of one profile in parent, module and settings.xml are merged, and profile ids are shown verbatim instead of through the text catalog.

Closes #8005

Co-authored-by: wildcatDownstairs <[email protected]>
2026-12-04 22:24:17 +08:00
audichuang 40fb4923e6 fix(editor): keep Rearrange Code from moving a generator under a field without a semicolon (#8039)
Rearrange Code could move a method starting with *, in or instanceof to the top of a class right below a field with no semicolon, where it continued the field's initializer (x = 1 then *gen() {} reads as 1 * gen()). The same happened when the only semicolon ending the field sat on a comment line that moved with the method. Such classes are now left alone; a semicolon or static block above, or a first method that stays first, still lets the class rearrange.

Co-authored-by: audichuang <[email protected]>
2026-12-04 22:08:27 +08:00
LU XIANGRUIтаwildcatDownstairs 8fefbc1c82 fix(vcs): allow editing commit message of merge commits (#8037)
Edit Commit Message refused any range with a merge commit because it validated the range like an interactive rebase, and the backend reword kept only one parent. Rewording never changes trees, so it now keeps every parent of the commit and rewrites its ancestry-path descendants with their parents remapped, which preserves the history graph; the index and working tree stay untouched. Works for a merge commit at HEAD (right after a merge) and earlier on the current branch; commits outside the current branch and protected history are still refused.

Closes #7991

Co-authored-by: wildcatDownstairs <[email protected]>
2026-12-04 22:05:40 +08:00
Vadim LazukтаInf1mum a6e9c79c96 feat(editor): fill indent levels under rainbow indent guides (opt-in) (#8018)
Adds Editor > General > Appearance > Rainbow indent guides > Fill indent levels (off by default). With it on, each indent level's whitespace is tinted in its rainbow colour at low strength, including code lens rows and blank lines; the caret's and matched-brace levels are highlighted the same way. The setting is declared in the backend settings schema so it can be saved.

Closes #7883

Co-authored-by: Inf1mum <[email protected]>
2026-12-04 21:25:24 +08:00
l0ng-ai 24e42bb302 fix(terminal): let PowerShell run npm.ps1 and other script shims on Windows (#7939)
Windows PowerShell's default execution policy is Restricted, so in the integrated terminal npm.ps1, nvm/Volta Node shims and a virtualenv's Activate.ps1 could not run. A plain PowerShell start in the terminal now gets -ExecutionPolicy Bypass (process scope) before -NoExit -Command <init>, and MCP run_command running a line in PowerShell on Windows gets the same. Process scope changes nothing outside that PowerShell process, a Group Policy setting still takes precedence, and a shell with explicitly configured arguments starts as configured.

Fixes #7920
2026-12-04 20:52:22 +08:00
arookieofc-ai[bot]таarookieofc-ai 67c00a986a feat(plugins): add clone sources to the Clone Repository dialog (#7948)
[[contributes.cloneSources]] (API 1.21) adds an entry to the Get from VCS source list whose required web page lists repositories and hands the chosen one to the dialog with {"op": "clone-url", "url": …}. The page is served and messaged like other plugin web UI under the key cloneSources/<id>; the dialog fills its URL and directory and git only runs what the user confirms. The standalone Get from VCS window registers only this contribution point. plugin_web_page and plugin_view_event now also run in projectless windows (outside_restricted); Restricted Mode still runs no plugin UI or code. Docs list the point under API 1.21.

Fixes #5572

Co-authored-by: arookieofc-ai <[email protected]>
2026-12-04 20:46:11 +08:00
Deng Liuтаdengliu 978bcd6dd4 feat(roots): auto-exclude nested linked Git worktrees from indexing and search (#7967)
Linked worktrees of the repository at the project root that live below the root (any path, e.g. some/folder or .wt/topic) are now detected from <common_dir>/worktrees/*/gitdir and marked excluded, so they stay out of indexing, the file watcher, Find in Files and the Commit module list. Worktrees of other repositories, submodules, a linked worktree opened as the project root, attached workspace members and Cancel Exclusion are unaffected.

Co-authored-by: dengliu <[email protected]>
2026-12-04 20:01:51 +08:00
l0ng-aiтаarookieofc a1d406beb3 test(plugins): expect the editor's visible lines in remote focus events (#8032)
API 1.21 added the editor's visible lines as a third element of an event's editor payload, null when the client sent none. The remote focus test still expected the two-element form and failed on every Linux run.

Co-authored-by: arookieofc <[email protected]>
2026-12-04 19:47:38 +08:00
Isaac Gallartтаigallart 091dd85ef0 fix(vcs): use symlink target history in the editor (#7891)
The repository scan skips symlinks, so a file opened through a file symlink or a symlinked directory whose target lies outside the registered Git roots had no Git Blame or change markers, even when Git tracked the target. Read-only editor commands (blame, line hunks) now use the target's repository, discovered with the restricted read policy and never registered for status or Commit; excluded mappings and a disabled Git integration are honoured. The editor probes once per open file whether the link has committed history: only then do Annotate and the markers apply, and ordinary files in projects without Git make no further backend calls on edits.

Co-authored-by: igallart <[email protected]>
2026-12-04 18:57:51 +08:00
l0ng-ai fe1838aca6 fix(plugins): skip files a full navigation graph can't take instead of failing (#8011)
Once a project has more matching files than a plugin navigation graph covers, discovery fills the graph with exactly that many files. Opening, saving or changing any other matching file then failed its whole index batch with "navigation file limit reached", showed a raw error notification, and ran the plugin's indexer before throwing the result away.

A full graph now keeps updating the files it covers and skips the others before calling the plugin. Discovery picks the covered files by path, so the same files keep navigation across index rebuilds.

Fixes #7985
2026-12-04 18:07:07 +08:00
l0ng-ai 4335cf46af feat(plugins): popup dialogs that close on a click outside (API 1.21) (#8009)
A plugin dialog is modal: like the IDE's own dialogs, a click outside it does nothing. popup = true on [[contributes.dialogs]] (API 1.21) opens it as a lightweight popup instead, as Search Everywhere is: the title heads the popup rather than a title bar, and a click outside it or switching to another window closes it, with the same closed view event. Without the field nothing changes.

Closes #7974
2026-12-04 17:49:49 +08:00
l0ng-ai 8e36365bc4 fix(vcs): keep agent worktrees and new worktrees out of the project (#7964)
Agents create full checkouts of the repository in .worktrees and .claude/worktrees below the project root, so Find in Files returned every file twice and navigation could land in the copy. Both folders are now excluded directly below the project root and each workspace project's root, like a Project Structure excluded folder; jdtls gets them as import exclusions only when they exist, so other Java projects keep their workspace.

New Worktree suggested the repository's parent folder, which is the project itself when the project is a folder holding the repository. The default location now starts next to the project folder and moves up while it is still inside the project, a content root or the repository.

Closes #7957
2026-12-04 17:19:48 +08:00