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.
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]>
* 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
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
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
The HTTP client decoded every response body as lossy UTF-8, so a GBK, Shift_JIS or ISO-8859-1 page showed replacement characters, and a body that was valid text in its declared charset could be taken for binary. Bodies are now decoded with encoding_rs in the encoding of their byte order mark, else the Content-Type charset, else an HTML <meta> or XML declaration, else UTF-8; the binary check uses the declared charset too.
Form-urlencoded bodies written one parameter per line (key = value &, as the "separate lines" layout writes them) were sent with line breaks and spaces around the separators. Each run of text lines is now joined and the whitespace around & and a parameter's first = dropped; variable values, included files and whitespace inside names and values are sent as they are.
Co-authored-by: ntbang0901 <[email protected]>
On macOS, Finder and the system file APIs write file names decomposed (NFD) while Git stores them precomposed (core.precomposeUnicode). The IDE compared the two spellings byte for byte, so a committed file named like café.txt showed every line as added, Annotate found no history, Compare with HEAD had an empty base, the tree showed no change colour and Rollback found nothing (and deleted the file, taking it for untracked).
Paths handed to Git are now precomposed where Git precomposes them (Repo::git_spelling), and status spells names like the disk does, as it already did after a case-only rename. Add to .gitignore writes rules Git applies, and the source of a staged rename is found by segment count instead of a suffix match (renamedFromPath, shared with pairsRenames).
Co-authored-by: ntbang0901 <[email protected]>
Load Changes from Disk and File > Reload from Disk replaced the text but kept the buffer's old line separator, so after another program rewrote a CRLF file as LF the next save converted every line back; only the watcher's reload re-detected it. The read-only state was read once on open, so a file made read-only outside the IDE still accepted edits and autosave wrote it.
The watcher reload, Load Changes from Disk and Reload with Encoding now share take_disk_text, which takes the separator found in the new text (.editorconfig's when set; text without a line break keeps the buffer's) and the file's write permission. The watcher and focus check also follow a permission-only change, and a new IdeEvent::DocReadOnly updates the status bar lock, the read-only banner and the editor (library sources stay read-only).
Co-authored-by: ntbang0901 <[email protected]>
cargo deny failed on main and every PR: wasmtime 49.0.7 has 14 new advisories (RUSTSEC-2026-0633 to -0643, -0646 to -0648), among them memory corruption when instantiating a non-exported component module, Cranelift jump/spillslot offset overflows, missing Spectre guards in memory.copy/memory.fill, and host panics or stack overflows triggerable from guest code. The 49 line gets no fix; this moves wasmtime and wasmtime-wasi to the patched 51.0.1 (the plugin host compiles unchanged) and updates the yanked pin-project-lite 0.2.17 to 0.2.19. No new crates.
Maven modules that share sources by symlinking a folder into src/main/java built with `mvn compile` but failed in the IDE's own Java build: jbuild listed sources with DirEntry::file_type(), which does not follow links, so classes under the linked folder never reached javac. Linked folders under resource roots had the same gap in change detection.
Source and resource walks now follow links. Cycles are skipped only along the current descent path; includes/excludes match each literal path and a file reached through several paths is listed once afterwards, preferring a path without links, so an excluded alias cannot hide a valid path. Each folder is read fully before descending (one open directory at a time), entries are visited in a stable order, and javac gets the literal link path so errors and breakpoints name the file the user opened. Trees without links list exactly the same files as before.
Co-authored-by: audichuang <[email protected]>
A profile Maven activates by `<activation><os>` showed unchecked in the Maven tool window and no deactivation was ever passed, so unticking it could not keep it out of a build (per-platform native classifiers ended up in the jar). The POM reader ignored `<os>`. It now parses `<name>`, `<family>` and `<arch>`, requires every named field to match this machine (families as Maven's OsUtils: mac/darwin, unix covering Linux and macOS, windows; amd64/x86_64 and aarch64/arm64 spellings; a leading `!` negates). A matching profile counts as active by default, so the tool window shows it implicitly enabled and unticking it sends `-P !id`; it also suppresses activeByDefault siblings as Maven does.
Closes#8171
Co-authored-by: Jackzigen <[email protected]>
Refreshing External Libraries on multi-repository workspaces kept re-running the same probes: `cargo locate-project --workspace` and failing offline `cargo metadata` for every crate, and an uncancellable `has_java_sources` walk through non-ignored dependency trees.
- `cargo locate-project` results are cached per (dir, cargo), validated against the cargo binary and every ancestor Cargo.toml.
- Failed offline `cargo metadata` and `has_java_sources` results are cached only for paths under a project root with a healthy watcher. Watcher batches drop them on `.java` changes, new directories, removals, Cargo manifest or `.cargo/config` changes, and ignore/exclude changes, before the scan epoch is bumped; hitting the watch limit clears them. Timeouts and cancellations are never cached, and nothing expires by time.
- `has_java_sources` honours cancellation and skips dependency/build directories, and still checks the project's source roots for every root, so results are unchanged. `python_groups` honours cancellation.
Co-authored-by: dengliu <[email protected]>
Several features and MCP tools request run_configs, full vcs_status and sdk_project_libraries independently, so on large or multi-repository workspaces overlapping refreshes ran the same full-tree walks and git index sweeps side by side on the blocking pool. Each project now runs at most one of each scan at a time: callers that arrive while one is running with the same state key share its result.
The key carries a per-project epoch that watcher batches, IDE file operations, settings and workspace changes, and run-config saves bump; vcs_status also stamps each repository's index, HEAD and packed-refs, so a caller after a change never joins a scan started before it and instead waits for a single fresh rerun. The libraries stream replays earlier batches to joined callers in order, lets each caller cancel on its own, and cancels the shared run only when every caller has left. A panicking leader releases its waiters, who retry.
Co-authored-by: dengliu <[email protected]>
File > New Project > JavaScript gains Hono and Elysia generators. Hono runs create-hono non-interactively with the chosen template and package manager (it installs dependencies itself, since it prompts without --install) and requires Node.js 20.19+. Elysia requires Bun 1.0+, runs `bun create --no-install --no-git elysia <name>`, then `bun install` when Install dependencies is checked; Git is initialized by the scaffold engine.
Closes#7955
Co-authored-by: wildcatDownstairs <[email protected]>
.NET run configuration detection walked dependency and build trees (Python venvs, CocoaPods, Xcode DerivedData, SwiftPM checkouts, out/) looking for project files. These directories are now skipped, case-insensitively, alongside bin/obj/node_modules/target/build/dist/vendor/packages. Detection stays complete: there is no depth or directory budget, so deeply nested projects without a solution near the root are still found (covered by a new test).
Co-authored-by: dengliu <[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]>
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]>
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]>
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.
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]>