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]>
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]>
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]>
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]>
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]>
The Linux install section now states the minimum (glibc 2.35 and WebKitGTK 4.1, as in Ubuntu 22.04 and Debian 12 or later), explains that the AppImage bundles WebKitGTK but not glibc or libstdc++, and names the unsupported distributions (RHEL 9 and rebuilds, Debian 11 and older derivatives).
* 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]>
[[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]>
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
Typing open in Run Anything lists recent projects and filters them as the user keeps typing. Choosing one opens it as Open Recent does: an open project's window comes to the front, otherwise the Open project in setting applies. Opening a project is not added to the Run Anything command history (new optional RunAnythingItem.addToHistory).
Co-authored-by: aLIEz1 <[email protected]>
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
The Close Remote Development Window dialog gets a Don't ask again checkbox that saves Stop Backend or Keep Backend Running to the new client setting general.closeRemoteWindow (ask | keep | stop); later closes apply it without asking. Settings > Tools > Remote Development > When closing a remote window changes it back.
Refs #7929
text-editor.visible-lines (editor.read) returns the first and last document line shown in the editor when the command or event was invoked, or none when the editor is not on screen. The workbench fills it from the focused editor view with the rest of the plugin editor context; older clients leave it out. SDK: TextEditor::visible_lines and MockHost::set_visible_lines. Plugin components rebuilt.
Refs #7928
Reformat File gains a Rearrange entries option (Python, TypeScript, JavaScript; whole-file scope only, remembered with the other options), and Tools > Actions on Save gains Rearrange code (actionsOnSave.rearrange, off by default), run after Optimize imports and before cleanup and reformatting. Rearranging from either place is quiet when nothing moves.
Refs #7783
Build, Restore and Clean .NET Project ran dotnet as a background task of the .NET tool window, with no Build window output, no status bar progress and no notification; the output appeared only in the NuGet Packages window afterwards. They now run through a new build_dotnet_command host command on the shared .NET build runner, so output and errors stream into the Build window, Stop Build cancels, Rerun repeats, and a notification reports the result. The selected project is re-evaluated (and audited after a restore) only when the command succeeds.
Fixes#7853
A .NET Project run configuration gains a Run with dotnet watch option: dotnet watch --non-interactive in the same Run tab, with launch profiles still applied and the terminal emulated so Stop ends the watcher; Debug and tests run without it.
C#, F# and Visual Basic projects gain Publish .NET Project...: choose a folder publish profile (server and container profiles are not listed), or set configuration, framework, runtime, self-contained and output folder. dotnet publish streams into the Build tool window, can be cancelled and rerun, through a new build_dotnet_publish command sharing the dotnet format runner.
Closes#7900
Co-authored-by: wildcatDownstairs <[email protected]>
Plugins linked with openidea-plugin link are read in place, but edits showed only after Reload. Each linked folder is now watched (.git, target, node_modules and editor temp files ignored); a change wakes the plugin event pump, which reloads the plugin under the lifecycle lock. Installed and project plugins are not watched. A reloaded plugin that provides the selected theme restyles in place: the theme setting is reconciled after the contribution swap instead of in between, so the IDE no longer drops to the built-in theme.
Co-authored-by: Bruno0416 <[email protected]>
- Plugin keymaps accept the Backslash and Backquote key names (API 1.21), and a declared key is translated to the character the keystroke types, so Ctrl+Backslash (and Ctrl+Slash) from a plugin now match the key pressed.
- Pick dialogs with 15 or more candidates, and every plugin quickPick, get a filter field: with it the field holds focus and its arrows drive the list; without it the list keeps focus as before.
Co-authored-by: junchangpeng <[email protected]>
Plugin API 1.21 adds two read-only calls behind the build.read capability and the trusted-project gate:
- build.sdks(project, kind?): the installed JDKs, interpreters and toolchains of a kind (or all), with the one the project uses marked active.
- build.artifacts(project): the deployable WAR modules of the build model (origin build-model, with the ids the server run configurations use, e.g. maven:app/pom.xml) followed by the Project Structure > Artifacts entries (origin project-structure).
The Rust SDK, its mock and the docs cover both, and the official plugins and test fixtures are rebuilt. Used by https://github.com/RuyimgByCN/openidea-smart-tomcat.
Co-authored-by: RuyimgByCN <[email protected]>
A [[contributes.statusBar]] item can declare an icon (a built-in icon name or a package SVG, with iconDark for dark themes) and leave text out, gated on plugin API 1.21. An icon-only item takes its tooltip, else the plugin's name, as its accessible label. The manifest docs list the new fields.
Co-authored-by: RuyimgByCN <[email protected]>
Ctrl+Enter (also Cmd+Enter on macOS) runs the notebook cell and keeps the caret in it, and Shift+Enter runs it and selects the next cell, adding a code cell at the end of the notebook. Run Cell, Run Cell and Select Below and Run Cell and Insert Below are actions in Find Action and the keymap settings; they take these keys only while the notebook has focus (notebookFocus), ahead of the editor's Split Line / Start New Line, and the notebook's own key handler is gone. Markdown cells render instead of running; while a cell runs, the keys do nothing on a code cell. Alt+Enter stays Show Intentions, so Insert Below has no default key except in the VS Code keymaps.
Closes#7624
Co-authored-by: ntbang0901 <[email protected]>
Authorization: Basic user password in a .http file went out as written, so the server answered 401 to a correct password; a converted curl -u user:password writes that same line. The credentials are now Base64-encoded when the request is prepared. The line is split before variables are filled in, so a variable's value may contain spaces; credentials that are already encoded, also from a variable, are sent unchanged.
Co-authored-by: ntbang0901 <[email protected]>
A file included in a .http request body (< ./a.png, whole body or multipart part) was read as UTF-8 with replacement characters and lost its trailing line breaks, so images, archives and Latin-1 files arrived corrupted. The prepared body is now a list of text and file bytes and a file is sent exactly as it is on disk; included text files keep their trailing line break. A binary file shows as its < path line in the history and the Request tab, and Convert to cURL reads it by path (--data-binary @path, or a printf/cat pipe into --data-binary @- for a mixed body). History entries written by the previous version still load.
Co-authored-by: ntbang0901 <[email protected]>
PHPantom has its own Blade, Twig and framework support, but Twig, YAML and XML files were never sent to it, laravel-lsp kept running alongside it, and it was never told the project is trusted. PHPantom now joins twig, yaml and xml (XML limited to *.xml, *.xlf, *.xliff), replaces laravel-lsp, gets .phpantom.toml as a root marker, and configure_phpantom sends workspaceTrusted (servers only start outside Restricted Mode) plus the excluded folders and PHP file-type extensions as its indexing filters at startup and on every configuration change. Docs updated.
Co-authored-by: AJenbo <[email protected]>
Reorganize Settings > Agents into General, Coding Agents, Permissions, Rules & Memory, Skills, MCP (External Servers, IDE Server), Agent Plugins and Automations, with redirects from the old MCP page ids. List pages share a master-detail layout and form pages align their fields. The IDE Server options stay in the settings search, and the docs use the new page names.
API 1.11, 1.12, 1.14, 1.15, 1.19 and 1.20 were still listed as in development; each now names the release it shipped in, and the plugin overview names 1.20.0 as the latest released API and 1.21.0 as in development.
A choice option of an icon theme can list the groups it turns on (those groups are owned by the choice and leave the checkbox list), and can set the theme's default folder icons (folder, folderExpanded, folderOpen). A choice settings item takes presentation select, radio or segmented. Themes may declare up to 64 choices. Themes using none of the new keys produce the same mapping and page as before; stored per-group values of owned groups are ignored, not deleted.
Part of #7688.
Co-authored-by: Bruno0416 <[email protected]>
An icon theme can offer a fileIconsForCode checkbox (off by default). When on, Java and Kotlin files with a declaration show the theme's file icon in the Project tree and tabs, and the element kind stays visible as a corner badge in the tree. Off, or without a theme, nothing changes; settings written by older versions read as off.
Part of #7688.
Co-authored-by: Bruno0416 <[email protected]>
Plugin API 1.21 adds optional settings schema fields: presentation (select, radio, segmented, slider, color, checkbox-list), enumOptions (label, description, icon per enum value), minimum / maximum / step, and when conditions on another setting of the page. New src/ui primitives RadioGroup, SegmentedControl, CheckboxGroup, Slider and ColorInput. Schemas that use none of them render as before; manifests admitting an older API keep ignoring JSON Schema bounds.
Review changes: the fields are gated on API 1.21 (1.20 shipped in 0.1.57), and the colour swatch fill is stretched inside its button.
Part of #7688.
Co-authored-by: Bruno0416 <[email protected]>
A group or a choice option of an icon theme can name one of the theme's icons with an optional icon key; the theme's settings page draws it whether or not the theme is applied. Previews are registered apart from the applied theme's icons and released with the page. Unknown icon ids are refused at install.
Part of #7688.
Co-authored-by: Bruno0416 <[email protected]>
Each File Icon Themes row in a plugin's details gets a Settings… button while that theme's settings page is registered; it opens Settings at the page through file.settings.
Part of #7688.
Co-authored-by: Bruno0416 <[email protected]>
Spring application*/bootstrap* config files now use spring-config-yaml or spring-config-properties. Both render like spring-config by default and fall back to a theme's spring-config override, so existing themes keep working while a theme can override either one.
Part of #7688.
Co-authored-by: Bruno0416 <[email protected]>
An icon theme can list folder roles (source roots, packages, excluded, module folders, ...) in roleFolderNames; folders of a listed role then match the theme's folderNames and folder patterns before the role icon. An unmatched folder keeps the role icon only when the theme overrides it, otherwise it gets the theme's folder. Roles are validated at install; themes without the key behave as before.
Part of #7688.
Co-authored-by: Bruno0416 <[email protected]>
Plugin API 1.21:
- run-started events, and run-exited for user-launched plugin configurations (plugins on API 1.21 only).
- run.stop(id) for runs of the plugin's own configurations; run.upsert-configuration and run.open-edit-configurations for the plugin's own run configuration types.
- prepareCommand receives the run/debug mode; plugin configurations can declare a loopback JDWP attach target.
- runConfigTypes.ownsBeforeLaunch, log file tabs in the run console (plugin_run_log_tail, authorised by the plugin's project.read / fs.read grants), and the runConsole.toolbar menu in the Run and Debug consoles.
Review fixes: RunView log tab state keyed by the string session id, tail chunks cut on a UTF-8 boundary, user-run exits gated to API 1.21.
Co-authored-by: RuyimgByCN <[email protected]>
Properties/launchSettings.json and global.json opened as plain JSON, with no key completion and no check of values such as commandName or rollForward. Both file names are now associated with their SchemaStore schemas in languages/json.toml, next to package.json and tsconfig.json; a $schema in the file still wins.
Closes#7729
Co-authored-by: wildcatDownstairs <[email protected]>
The built-in SSH client only offered russh's defaults and ignored the algorithm options of ~/.ssh/config, so a server that only speaks older algorithms could not be reached. The client now starts from the OpenSSH client's defaults (adding the ECDH key exchanges, aes128-gcm and the SHA-1 MACs) and applies KexAlgorithms, HostKeyAlgorithms, Ciphers and MACs with OpenSSH's +, - and ^ forms. They apply to SSH configurations that sign in with a password or key as well as to OpenSSH config hosts. When negotiation fails, the error names what the server offers and the line that allows it.
Fixes#7757
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]>
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]>
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]>