Back/Forward now walk through positions in Markdown previews. In Preview Only mode a click records the clicked source line (the preview keeps its scroll) and Back/Forward scroll to the remembered line with a short highlight (none under reduced motion). Same-file #anchor links record their origin and destination in both Preview Only and Split mode; a link to another file records the link line first. In Split mode a plain click in the preview leaves the source editor's caret alone. A clicked position is no longer overwritten by the passive shown-line update, and the Live MDX preview forwards the Back/Forward shortcuts from its iframe.
Co-authored-by: dengliu <[email protected]>
Two e2e specs failed on main. #8097 made the Commit tool window focus the changes tree first, but the spec still expected the message field; the expectation now follows the new behaviour and checks that the Commit action focuses the message. #8037 made Edit Commit Message check ancestry with vcs_merge_base, which the interactive-rebase fixture did not stub, so its older commit was rejected before the protected-history check; the fixture now answers it.
Co-authored-by: arookieofc-ai <[email protected]>
Select Opened File now reveals two more kinds of library tabs in the Project view:
- kotlin-language-server's temporary copies of library sources (an OS temp `kotlinlangserver<digits>` folder): the file's package and top-level types are read and matched against the listed External Libraries roots (JDK `src.zip` modules, `rt.jar`, binary jars before `-sources.jar`, Kotlin `*Kt` facades, class folders), dropping stale lookups.
- C# `csharp:` decompiled and source-generated documents (both the project-path and the legacy `metadata/projects/.../assemblies/...` forms): mapped to the matching .NET project's Dependencies node (package, project reference, framework, analyzer, or Dependencies itself).
Closes#8050
Co-authored-by: wildcatDownstairs <[email protected]>
Adds the `customEditor.toolbar` menu location (plugin API 1.21). A `[[contributes.menus]]` entry with `view` naming one of the plugin's own split or preview custom editors puts its command as an icon button in a thin strip above the text half of that editor; `when` works as for other menus. The host rejects a missing or unknown `view`, a tab-layout editor, unknown commands and submenus at install time. Buttons use the command's icon (else the plugin icon), the command title as tooltip and aria-label, and run with the same editor context as editor.title; the strip is hidden in preview-only mode and when nothing applies.
Closes#7796
Co-authored-by: wildcatDownstairs <[email protected]>
Adds `views.set-badge` (`host::set_view_badge`) to plugin API 1.21: a plugin sets or clears a short badge on the stripe icon of one of its declared `[[contributes.views]]` tool windows, per invoking window, without a capability. Text is at most 4 characters (no control characters), numbers above 99 show as "99+", and `None`, "" or "0" clear it. Badges are dropped when the plugin is disabled, reloaded or uninstalled and when the window closes; a window reads the current set with `plugin_view_badges` and follows `ViewBadgeChanged` events. Plugin views reuse the workbench `StripeBadge` (honouring Show tool window badges); grouped views show each member's badge on its tab and an aggregate on the stripe.
Closes#8006
Co-authored-by: wildcatDownstairs <[email protected]>
A plugin exporting `providers` together with `rename` or `completion_resolve` failed to link: `rename-provider` and `completion-resolve-provider` imported their `document`, `file-edit` and `completion-item` types from `providers`, and wit-component refuses to add `providers` as an export once another export depends on it as an import. Both interfaces now define those records locally, like hover, file-actions and diagnostics already do. The rename and completion-resolve fixtures co-export `providers`, and all components are rebuilt. These interfaces are new in API 1.21, which has not been released.
Co-authored-by: RuyimgByCN <[email protected]>
Language servers always received "locale": "en" in initialize. The UI locale (appearance.locale, mapped to a BCP 47 tag such as zh-CN) is now sent, and running servers restart when it changes, so servers with localized messages follow the UI language.
Adds Settings > Editor > Code Editing > Error Highlighting > "Show diagnostic source and code on hover" (on by default) to hide the source/code line under each problem in editor tooltips; the Problems tool window still shows it.
Closes#8156
Co-authored-by: wildcatDownstairs <[email protected]>
The agent image preview only closed with Esc or its Close button. It now also closes on a click outside the dialog; clicks inside keep it open.
Co-authored-by: chiyanking <[email protected]>
Clicking Previous/Next Occurrence in the editor's Find bar moved keyboard focus onto the button, so Ctrl+V did nothing afterwards. The arrow buttons no longer take focus: focus stays in the search field or the editor, whichever had it. Ctrl/Cmd+Enter in the search field now moves focus to the editor with the current match selected (or closes the bar when the query is empty), so a paste replaces that match and the arrows or F3 continue from there.
Refs #8139
Co-authored-by: waht41 <[email protected]>
Open In and Copy Path/Reference built GitLab-style /-/tree/... pages for gitcode.com remotes because remoteHosting fell back to self-managed GitLab for unknown hosts. GitCode serves GitHub-style routes (/tree, /blob, #L anchors), so it is now recognized as a GitHub-layout hosting and its menu items are labeled "GitCode".
Co-authored-by: muutot <[email protected]>
Plugins can add panes to the Project tool window and commands to the Git branch menus:
- `[[contributes.projectViewPanes]]` with the `project-view-provider` export regroups a directory's native children under virtual folders. Existing nodes keep their icons, Git status and actions. `project-view.refresh` / `select-in` and `projectViewContext` menu items work against these panes. Requires `project.read`.
- `git.branches.popup` and `git.branch.context` menus. `invocation.git-action-context` gives the command the repository roots and the full ref of the clicked branch. Requires `vcs.read`.
- `views.open-revision-comparison` opens the IDE's comparison of two full commit IDs as a Compare tool window tab, the same one Compare Versions opens. The repository must be a mapped Git root of the invoking trusted project. Requires `vcs.read`.
All of this is part of plugin API 1.21. A project-view test fixture and host tests cover the provider, the branch menu context and the comparison call. The plugin components and bindings are rebuilt.
Co-authored-by: kirito1105 <[email protected]>
When an SSH clone of a github.com, gitlab.com, bitbucket.org or codeberg.org
repository fails with a refused key or "Repository not found", the dialog
explains that the key may belong to another account and offers Clone with HTTPS,
which uses the Git credential helper such as GitHub CLI.
Maven projects' project.build.sourceEncoding (inherited from parents, properties resolved) is now the encoding of each module's src folder: Java charset names such as ISO8859_15, Cp1252 or GBK map to the editor's codecs, below explicit encoding mappings and EditorConfig and above the project default; .properties files keep their own rule. Single-file Maven compilation passes it to javac -encoding. The build model is read in the background when a project opens and on every reload or sync; clean open files below a module whose encoding changed are decoded again, files with unsaved changes or a chosen encoding keep theirs.
Co-authored-by: arookieofc-ai <[email protected]>
Co-authored-by: LittleGuava <[email protected]>
In-app updates of the RPM build failed on Fedora 43+ (RPM 6), which refuses packages without an OpenPGP signature; the release RPMs carry none and the plugin's error was swallowed. On Linux RPM installs the IDE now runs `pkexec rpm -U --nosignature` itself: the update has passed the updater's minisign check and rpm still checks the payload digests. The verified bytes are written to a new file in a private (0700) temporary folder for rpm rather than re-read from the download cache, and rpm's message goes into the error and the log, as do other install failures. --nosignature can go once CI signs the RPMs.
Co-authored-by: marioserrano09 <[email protected]>
clippy::type_complexity rejected the inline array type in crates/ide-host/src/plugins/devices.rs (from #7822), failing the workspace clippy run on main; the pipe type now has a local name.
Programs started from the IDE (terminal, run configurations) and web views could never use the camera or microphone on macOS: the request was refused without a prompt and OpenIDEA was never listed under Privacy & Security. The bundle now declares NSCameraUsageDescription and NSMicrophoneUsageDescription (src-tauri/Info.plist, merged by Tauri) and the hardened runtime gets the com.apple.security.device.camera and device.audio-input entitlements, so macOS asks the user instead.
Co-authored-by: wislert <[email protected]>
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]>
dotnet() resolved on the runExited event, which can overtake the output channel, so `dotnet msbuild -getProperty … -getItem …` could return only the echoed command line and evaluating a test project failed with "JSON Parse error: Unexpected EOF" (Run and Run with Coverage of dotnet test configurations did not start). After the exit event it now waits up to two seconds for the channel's exit message, the last chunk the run host sends; cancelled or overflowing queries don't wait.
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]>
* 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]>
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]>
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]>
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]>
tauri-action builds and uploads the release, so its updates now come as a Dependabot PR of their own, merged after a draft release has gone through with it; the other Actions keep updating together in one group.
Regenerates docs/snippets/plugin-catalog.jsx from the published plugin index with scripts/gen-plugin-catalog.ts (now 200 plugins from 110 publishers; it was last generated with about 100).
Co-authored-by: mrfost07 <[email protected]>
`openidea --version` prints a second line `Build #<id>` from `OPENIDEA_BUILD` at compile time (`dev` when unset, like the About dialog). The release build job now sets `OPENIDEA_BUILD` to the commit SHA, so official builds report it in About and on --version instead of `dev`.
Co-authored-by: nako-ruru <[email protected]>
The Docker Compose step ran `cargo nextest run -p ide-host`, which resolves features for ide-host alone and rebuilt about 43 crates the workspace test build had already compiled. It now runs `--workspace` with a filter expression selecting the same single test, so only the src-tauri crate is rebuilt.
Co-authored-by: audichuang <[email protected]>
* 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]>