Графік комітів
3979 Коміти
Автор SHA1 Повідомлення Дата
ntbang0901 8f080ee99e fix(database): write binary keys and values as bytes when submitting edits (#8209)
The data grid shows a binary value as 0x... hex, and a submitted edit sent that text back as a quoted string: a row with a binary primary key could not be changed or deleted (SQLite and SQL Server matched no row or refused the varchar-to-varbinary conversion, MySQL silently changed nothing), and an edited binary value was stored as the bytes of its hex text.

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

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

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

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

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

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

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

Refs #8171

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

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

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

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

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

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

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

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

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

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

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

Co-authored-by: ntbang0901 <[email protected]>
2026-12-05 17:42:39 +08:00
ntbang0901 1102822981 fix(http-client): decode responses in their charset and join form parameters written on separate lines (#8189)
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]>
2026-12-05 17:41:06 +08:00
ntbang0901 006777dae1 fix(vcs): match macOS decomposed (NFD) file names to Git's precomposed paths (#8188)
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]>
2026-12-05 17:36:43 +08:00
ntbang0901 df77c18117 fix(editor): re-detect the line separator and read-only state when a file is reloaded from disk (#8186)
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]>
2026-12-05 17:34:13 +08:00
ntbang0901 360c6f1ae1 fix(editor): draw file text in every view with the editor's font and tab size (#8192)
The TODO preview, Problems preview, notebook cells, HTTP response bodies and database text views drew file text in JetBrains Mono 13 px whatever Settings › Editor › Font said, and the Find in Files, Search Everywhere and Bookmarks previews kept the font they were opened with: each CodeMirror view set the editor font on itself, so a view that built its own editor or plain text never got it. The family, size and line height are now set on the root next to the weights, editor themes take ligatures from the root's switch, and those views read them, so all of them follow the setting and its changes. Previews and diff panes draw tabs at the file's tab size (its open document's, else its Code Style) instead of a fixed 4 or 8. In Tools › Terminal, "Use editor font" also disables Size, and disabled font fields show the font actually in use (likewise Agents › Chat's "Use interface font").

Closes #8168

Co-authored-by: ntbang0901 <[email protected]>
2026-12-05 17:26:39 +08:00
ntbang0901 258639c372 fix(editor): keep code valid when joining a line after a comment or moving a JSON entry (#8187)
Join Lines on a line ending in a `//`, `#` or `--` comment turned the next line's code into comment text. Like IntelliJ's JoinLinesHandler, a line comment that code would follow now becomes a block comment (`int a = 1; /* first */ int b = 2;`); where the language has no usable block comment there (Python, Ruby, Lua), the comment moves to the end of the joined line.

Move Statement Up/Down in JSON swapped whole lines with their commas, leaving a missing or trailing comma. Moved members and array elements now take the commas of their new places, also when moving into or out of a nested object or array, and nothing moves out of the top-level value.

Co-authored-by: ntbang0901 <[email protected]>
2026-12-05 17:22:04 +08:00
ntbang0901 9a10fde46f fix(database): count the rows of a SQL Server result that has ORDER BY or a CTE (#8185)
On SQL Server, Count rows and Last Page failed for a query ending in ORDER BY (error 1033), one starting with WITH (error 156), or one with a trailing OPTION hint: the count wraps the query as `select count(*) from (<query>) q`, and SQL Server allows none of these in a derived table. For SQL Server the count now drops a top-level ORDER BY that has no TOP, OFFSET … FETCH or FOR XML/JSON (it doesn't change the count), puts a leading WITH in front of `select count(*)`, and moves an OPTION clause after the derived table. Other dialects get the same count query as before.

Co-authored-by: ntbang0901 <[email protected]>
2026-12-05 17:20:31 +08:00
arookieofc-ai[bot]таarookieofc-ai eecd78aee5 fix(markdown): keep cross-file link destination focused (#8194)
#8172 recorded a cross-file Markdown preview link's origin by moving the source editor's caret before opening the destination. In Split mode that selection pulled focus back into the source editor while the open was still in progress, so the new destination tab was deactivated at once. In Split mode the clicked line is now recorded in navigation history directly, without touching the caret; Preview Only keeps using the hidden editor's caret, which is the reader's position.

Co-authored-by: arookieofc-ai <[email protected]>
2026-12-05 17:19:25 +08:00
LU XIANGRUIтаwildcatDownstairs 1f4ac3afbb feat(diff): files counter and change list in the diff window (#8183)
A diff opened in its own window had no way to move to the next changed file: Show Diff in New Window built a single-file diff without the change set, and neither the window nor diff tabs had a files counter. Show Diff in New Window now builds its diff the same way as Show Diff (one selected change brings its whole changelist, several bring exactly those; a diff tab's own data still wins), so Compare Previous/Next File appear. A "2/5 files" counter between them opens the chain's files grouped by folder, with Expand All / Collapse All and speed search; Enter or a double-click shows that file in place, saving a staged draft first.

Refs #7433

Co-authored-by: wildcatDownstairs <[email protected]>
2026-12-05 16:13:35 +08:00
arookieofc-ai[bot]таarookieofc-ai b8d0d12142 fix(ci): repair remaining frontend and e2e failures (#8181)
Main's Frontend and E2E jobs failed on stale expectations and one costly selector. The Visual Studio and ReSharper keymap presets (#8106) intentionally bind the caret-selection actions and, on Windows, use Ctrl+Alt+Click to add carets, but the tests still expected every preset to keep the old defaults. `github.issue.refresh` now has a shortcut (#8147), so the menu item's accessible name includes it. `.bannerStack > * + *` (#8167) restyles sibling subtrees on insertion and trips the selector-cost test; `:not(:first-child)` selects the same rows.

Co-authored-by: arookieofc-ai <[email protected]>
2026-12-05 15:57:31 +08:00
LU XIANGRUIтаwildcatDownstairs 6d22097e9a feat(scaffold): add Hono and Elysia project generators (#8161)
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]>
2026-12-05 14:19:02 +08:00
Deng Liuтаdengliu 8a301dad86 feat(markdown): record preview clicks in navigation history for Back/Forward (#8172)
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]>
2026-12-05 14:16:46 +08:00
LU XIANGRUIтаwildcatDownstairs ee6f9f81a5 feat(project-tree): reveal kotlin-language-server temp files and C# csharp: assemblies (#8162)
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]>
2026-12-05 14:09:35 +08:00
LU XIANGRUIтаwildcatDownstairs c13cb2bf27 feat(plugins): add customEditor.toolbar menu above split/preview text editors (#8164)
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]>
2026-12-05 14:05:54 +08:00
l0ng-ai 7d30d23a56 feat(agents): redesign composer controls, branch switching, and worktree reuse (#8167)
* feat(agents): redesign composer controls, branch switching, and worktree reuse

* fix(agents): address PR #8167 review findings for worktree safety, branch checkout, and composer UX
2026-12-05 14:03:16 +08:00
LU XIANGRUIтаwildcatDownstairs 749c34df7a feat(plugins): add views.set-badge API for plugin tool window badges (#8165)
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]>
2026-12-05 13:58:37 +08:00
LU XIANGRUIтаwildcatDownstairs 9d5c294218 fix(lsp): send the UI locale in initialize; optional diagnostic source line on hover (#8163)
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]>
2026-12-05 13:37:32 +08:00
tongkangwangтаchiyanking 588d1d17aa fix(agents): dismiss the image preview on outside click (#8159)
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]>
2026-12-05 13:37:14 +08:00
waht41 6b94744df3 fix(editor): keep focus put when clicking find arrows; Ctrl/Cmd+Enter focuses the editor (#8157)
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]>
2026-12-05 13:37:00 +08:00
Muuтаmuutot 30c80107e3 fix(vcs): recognize GitCode as a GitHub-style hosting (#8153)
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]>
2026-12-05 13:26:29 +08:00
astesiaтаkirito1105 05a88394fb feat(plugins): Project view panes and Git branch menu commands (API 1.21) (#7980)
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]>
2026-12-05 12:24:10 +08:00
l0ng-ai 455e32ab76 refactor(agents): replace per-file memory controls with native-only auto-memory controls (#8068)
* refactor(agents): replace per-file memory controls with native-only auto-memory controls

* test(e2e): update agentComposerPopup memory catalog fixture

* fix(agents): add missing memory i18n keys, valid spacing token, and rollout count
2026-12-05 11:51:00 +08:00
l0ng-ai c55ee61b71 feat(java): integrate java-analyzer sourceOrigin and attachSources (#8146)
* feat(java): integrate java-analyzer sourceOrigin and attachSources

* fix(java): address sourceOrigin/attachSources review findings
2026-12-05 11:48:35 +08:00
l0ng-ai 0b7485f69f feat(github): align GitHub Issues tool window with Pull Requests (#8147)
* feat(github): align GitHub Issues tool window with Pull Requests

* fix(github): deduplicate issue account reload, bind refresh keymap, and refine #number UX
2026-12-05 11:48:14 +08:00
l0ng-ai 5a44ccb615 feat(vcs): offer an HTTPS clone when the SSH key cannot reach the repository (#7966)
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.
2026-12-05 11:47:52 +08:00
l0ng-ai 63f20ce5cc fix(terminal): restore scrollbar slider inset and theme tokens (#8148) 2026-12-05 11:47:24 +08:00
l0ng-ai 2389f55bae fix(vcs): keep manual merge result edits valid across changes (#8127) 2026-12-05 11:47:17 +08:00
l0ng-ai af416b0572 fix(debugger): keep inline values in the selected frame (#8105) 2026-12-05 11:47:11 +08:00
l0ng-ai 1548f5cfe5 fix(run): reconcile Gradle test display names with XML reports (#8140) 2026-12-05 11:46:26 +08:00
l0ng-ai bca532e4e3 fix(run): do not count empty Surefire suites as ignored tests (#8084) 2026-12-05 11:46:20 +08:00
32242eaf53 feat(build): honor Maven project.build.sourceEncoding (#7933)
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]>
2026-12-05 11:08:19 +08:00
630e56a263 feat(endpoints): add an Endpoints tool window (#7997)
* feat(endpoints): add endpoints tool window

Supersedes #883.

Co-authored-by: Roberto Scinocca <[email protected]>

* fix(endpoints): translate the plural and use spacing tokens

---------

Co-authored-by: arookieofc <[email protected]>
Co-authored-by: Roberto Scinocca <[email protected]>
Co-authored-by: l0ng-ai <[email protected]>
2026-12-05 10:36:02 +08:00
Binтаl0ng-ai 6600a06ee8 fix(editor): cap and stabilize color preview gutter (#8073)
Co-authored-by: l0ng-ai <[email protected]>
2026-12-05 10:32:21 +08:00
ca4644cbde fix(services): distinguish same-named configurations by module (#7999)
Part of #772.

Co-authored-by: arookieofc <[email protected]>
Co-authored-by: hpz <[email protected]>
2026-12-05 10:32:13 +08:00
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
l0ng-ai 9f63ea75fe fix(dotnet): keep output that arrives after the process exit event (#8149)
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.
2026-12-05 10:00:50 +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
l0ng-ai ccb73f4efd fix(agents): bound inline reply images to the chat viewport 2026-12-05 09:47:37 +08:00
l0ng-ai d69ebb9f1e style(icons): use a document glyph for Markdown files 2026-12-05 09:47:37 +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