Графік комітів
3061 Коміти
Автор SHA1 Повідомлення Дата
l0ng-ai fd4efff6e3 feat(database): group and filter the Modify Table list (#6248)
The Modify Table / Create Table list was one flat list of columns. It now
groups Columns, Keys (the primary key as edited), Foreign Keys, Indexes and
Triggers, each collapsible with its count, and a filter on its toolbar
narrows the rows by name or type. The statements the dialog runs are
unchanged.

Fixes #6128
2026-11-27 03:54:09 +08:00
l0ng-ai 8968974f42 feat(database): side panels, data extractor and Export Table to Clipboard in the grid's context menu (#6247)
The grid's context menu gets Show Record View, Open in Value Editor and Show
Aggregate View (checked while shown; the shown one hides it), the toolbar's
data extractor as a submenu, and Export Table to Clipboard, which copies the
whole result or table page through that extractor (whole values, as Export).

Part of #6144
2026-11-27 03:50:44 +08:00
l0ng-ai 83b14b4329 feat(project): Copy Path/Reference… in the Project view opens the previewing chooser (#6242)
The Project view's Copy Path/Reference... opened a submenu of names only. It
now opens the editor's chooser at the menu's position, previewing what each
row copies for the selection (several paths one per line): absolute path,
file name, path from content root and source root, plus the contributed rows
(repository path, remote link, agent reference). The chooser is provided to
@/editor/api by editor/core, so the API module stays free of popup imports.

Fixes #6032
2026-11-27 03:37:15 +08:00
l0ng-ai 74eefd6116 feat(agents): Send to Agent from the editor tab menu and editor tab drops on the composer (#6241)
The editor tab context menu gets Send to Agent, which adds the tab's file as
an @ reference to the agent message typed last. Dragging a file tab onto the
agent composer adds the same reference; session and virtual tabs are not
accepted there.

Fixes #6036
2026-11-27 03:22:21 +08:00
l0ng-ai a96c70f2a7 fix(ui): show the JSON icon for .uproject and .uplugin files (#6239)
#5444 associated .uproject and .uplugin with JSON but left them on the
generic file icon, which failed icons.test on main. They now use the JSON
file icon.
2026-11-27 03:15:01 +08:00
l0ng-ai 304503b9f1 feat(vcs): submenu aim on repository rows of the multi-repository branch popup (#6238)
Moving the pointer from a repository row toward its open branch list no
longer swaps the list for each repository row it crosses: like submenus of a
menu (menuAim), a row reached while heading for the list waits 300 ms, and
the list stays when the pointer enters it. The repository the window works
on is listed first; the others keep their order and colours.

Fixes #6152
2026-11-27 03:14:15 +08:00
l0ng-ai 521e00d075 feat(vcs): Checkout and Update for a local branch with an upstream (#6236)
The branch popup and the Branches pane offer Checkout and Update next to
Checkout for a local branch that is not checked out: it checks the branch out,
then updates it with the configured update method, in each repository where
the checkout took place (the common-branch menu of a multi-repository project
acts in all of them). Disabled without a tracked branch.

Fixes #6222
2026-11-27 03:07:37 +08:00
l0ng-ai b4cad6ec1b feat(run): Pause Output in the console context menu (#6235)
The Run/Debug console's context menu gets a Pause Output toggle. While it is
on, the output shown so far stays put and new output (including the rest of the
open line) is held back; turning it off shows everything that arrived
meanwhile. Clear All also resumes.

Fixes #5998
2026-11-27 03:03:15 +08:00
Jesse 62e26fa7e3 feat(unreal): support Unreal Engine projects (#5444)
A folder whose top level holds a .uproject is now an Unreal project. The
Project tool window switches to an Unreal view: Source is a source root,
Config a resources root, and Binaries, Intermediate, Saved and
DerivedDataCache are excluded from the tree, index, search and file watching
even before Unreal creates them. The root label names the engine the
project's EngineAssociation resolves to (HKCU Builds / HKLM InstalledDirectory
on Windows; a registered directory that no longer exists is dropped), and
three run configurations start UnrealEditor with the project as the editor,
as a game (-game) or as a dedicated server (-server), debugged through
lldb-dap. Nested projects are detected like Godot and Flutter ones, and the
.NET detector skips the same generated directories case-insensitively.

Also sets the new field in the remote_dev test ProjectInfo and keeps
"Unreal Engine" and the .uproject placeholder in English in the catalogs.

Co-authored-by: fengling375 <[email protected]>
2026-11-27 02:49:18 +08:00
Vadim LazukтаInf1mum 1119467ab4 feat(plugins): network grants from a settings key, approved when it is set (#6233)
A manifest can now declare net:setting:<key> / net.http:setting:<key> (plugin
API 1.18): the plugin may connect to the host the user typed into its own
string setting <key> (a bare host or a URL), so plugins for self-hosted
servers (GitLab, Jira Server, Gitea) can reach an intranet instance.

- The key must name a string setting of the plugin's own schema, checked at
  install and start; value hosts follow the manifest host rules, '*' refused.
- Applying the value in Settings asks once, naming plugin, setting and host
  (Deny by default; the net.http variant says the connection is unencrypted).
  A value that changes any other way shows as pending with an Approve action
  in the plugin's permissions, next to the net:ask hosts, and is revocable.
- The approval is recorded per plugin and grant in the ledger and
  materializes as net:<host> / net.http:<host> only while the setting still
  holds it, so the request path (net_capability, redirects) is unchanged.
  Remote hosts keep it for the session only, like net:ask. net:ask prompts
  never fire for a setting-derived host.
- Approving takes the host the user was shown and is refused when the
  setting no longer holds it, so a value the plugin writes after the dialog
  opens is never approved in its place.

Fixes #3809

Co-authored-by: Inf1mum <[email protected]>
2026-11-27 02:41:26 +08:00
George Mukha e1ce850a29 feat(vcs): compare image revisions and highlight changed pixels (#6232)
Image files in Git diffs (Local Changes, commit details, file history) now
open in an image diff instead of a binary notice: both revisions side by side
with their sizes, plus an optional third pane that highlights changed pixels
and counts them. Revisions are read through a new vcs_image_at command backed
by Repo::file_bytes_at_bounded, which falls back to a bounded git cat-file like
the existing blob reader.

Fixes #6229

Co-authored-by: themukha <[email protected]>
2026-11-27 02:34:33 +08:00
Mansur Akhmadiтаmansur-akhmadi 3e39368d43 feat(editor): word moves and deletes in Different "CamelHumps" Mode (#6226)
Adds Move Caret to Next / Previous Word in Different "CamelHumps" Mode (with and without Selection) and Delete to Word Start / End in Different "CamelHumps" Mode. Each runs the word move or delete of the mode opposite to Use "CamelHumps" words, picked from the same CodeMirror commands the editor keys already use, and reads the setting when it runs. Unbound by default, as in IDEA, and reachable from Find Action, imported keymaps and IdeaVim :action.

Co-authored-by: mansur-akhmadi <[email protected]>
2026-11-27 02:10:32 +08:00
Vadim LazukтаInf1mum b2a5ea1594 fix(notebook): editor shortcuts work while a notebook cell has focus (#6228)
Editor-scoped shortcuts (Reformat Code, Show Context Actions, column selection, multi-caret and the rest) did nothing while a notebook cell had focus. The focused cell editor is now published through @/editor/api, the notebook sets textEditorActive / editorTextFocus for it the way a text tab does, and the core, LSP and inline-completion action resolvers run in that cell instead of the last text tab. Actions that cannot target a notebook yet (read-only toggle, rendered doc comments, soft wrap, bookmarks, Show History for Selection) decline rather than act on another tab. Cell editors also get the text editor's multi-caret mouse handling.

Co-authored-by: Inf1mum <[email protected]>
2026-11-27 01:58:07 +08:00
Delaruno20таDelaruno20 902d8ca257 fix(notebook): theme HTML output frames instead of a fixed white page (#6223)
Rich HTML outputs (a pandas DataFrame, for example) rendered in a sandboxed frame whose document hard-coded a white page, leaving a bright block in dark themes. staticOutputDocument takes an optional palette (text, background, table border and header colours, color-scheme), validated before it goes into the CSS; the output view reads it from the theme tokens and the root's data-theme, follows theme changes, and the frame uses the notebook's editor background. Raster images keep their own background.

Co-authored-by: Delaruno20 <[email protected]>
2026-11-27 01:52:29 +08:00
Mansur Akhmadiтаmansur-akhmadi 92b5b5306f feat(workbench): Enter / Exit Zen Mode (#6039)
View › Appearance › Enter Zen Mode turns on Distraction Free Mode and full screen with one action. Zen Mode is on while both are on; the action sets both to the opposite, touching only the one that differs, and a second run while one is in progress joins it. Full screen is tracked from the window's events (macOS) or resizes (Windows, Linux), and the title flips between Enter and Exit Zen Mode. The item is in the native View › Appearance menu after Enter Distraction Free Mode and in Quick Switch Scheme › View Mode.

Co-authored-by: mansur-akhmadi <[email protected]>
2026-11-27 01:49:04 +08:00
ambersariya 707cee9b0b fix(vcs): scope Git Log to the selected branch repository (#6227)
Activating a branch under a repository group in the Git Log's Branches pane passed only the branch name, so the log also listed commits from other repositories with a branch of the same name. The filter now keeps the repository of each activated branch (branchTargets), the log queries only those repositories for it, and the branch tree and Paths filter keep their scope. Clearing the branch filter restores the log of every repository Paths allows.

Co-authored-by: ambersariya <[email protected]>
2026-11-27 01:46:44 +08:00
LU XIANGRUIтаwildcatDownstairs cb60c742fc feat(typescript): code style for semicolons, quotes and spaces, sent to tsserver (#6045)
Only tabSize and insertSpaces reached the TypeScript server, so quick fixes, auto-imports, refactorings and Reformat Code used tsserver's own style. Editor › Code Style › JavaScript and TypeScript get Spaces (tsserver's insertSpace* options) and Punctuation (semicolons, quote style) tabs, stored with the per-language code style settings and passed to vtsls and typescript-language-server. A project's own Prettier, oxfmt or Biome configuration still takes over formatting once the tool is installed, and Format on save keeps running it.

Merged main in and combined this with the dprint formatter that landed meanwhile: dprint is chosen before the project-formatter check and also runs on save.

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-27 01:43:28 +08:00
Deng Liuтаdengliu e13ed093ec fix(workbench): skip hidden tool-window focus targets and track plugin iframe focus (#6094)
Activating a tool window focused its first [data-autofocus] or focusable descendant without checking visibility, so a hidden file input or an inactive tab panel took the focus as a no-op and left it in the previous window. Activation now skips hidden, inert and display:none / visibility:hidden targets and falls back to the tool window body.

Focus inside a sandboxed plugin iframe doesn't bubble focusin to the host, so focus scopes, toolWindowFocus / activeToolWindow and auto-hide of unpinned tool windows stayed stale. The frame bridge now reports activation, accepted only while the host document has focus and the frame is its active element, and window blur into an iframe is tracked too.

Co-authored-by: dengliu <[email protected]>
2026-11-27 01:37:36 +08:00
LU XIANGRUIтаwildcatDownstairs aa0f8105af feat(run): run Cypress tests with a test tree and Rerun Failed Tests (#6044)
Cypress specs only ran as an npm script. A package.json script that runs cypress run is now a test configuration, and a package that depends on cypress or has a cypress.config.* gets a Cypress configuration (npx cypress run) whose form chooses the testing type, browser and specs. Test runs report through Cypress's built-in teamcity reporter into the test tree (spec › describe chain › test, with durations and failure details), with gutter icons, navigation to source and Rerun Failed Tests selecting the failed specs.

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-27 01:32:57 +08:00
LU XIANGRUIтаwildcatDownstairs 0adc816a56 feat(problems): list TypeScript project errors from the project's tsc --watch (#6097)
The TypeScript server reports errors only for open files, so a change that breaks an unopened file went unnoticed until Build. Problems › ⋮ gets TypeScript Project Errors (tsc --watch), off by default (project setting languages.typescript.watchProblems). When on, the IDE runs the project's own node_modules/.bin/tsc in watch mode for each root tsconfig.json and lists its errors under source tsc, parsed by Build's tsc parser. The watcher never writes into the project: build info goes to a temporary folder, and an error that Build and the watcher both report is listed once.

The language smoke workflow step from the original branch is left to a separate change.

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-27 01:32:29 +08:00
LU XIANGRUIтаwildcatDownstairs ea29339b6b feat(css): complete var(--…) custom properties from the whole project (#6043)
var(-- completion offered only the custom properties of the current stylesheet, because the CSS language server sees one file. The project index now stores each --name declaration's value, and a web_css_variables command returns the document's own declarations (from its unsaved text) followed by the index's. The editor uses it for completion inside var( (document's own first, value in the type column, a swatch for colors), hover and Go to Declaration across CSS, SCSS, Less and <style> blocks.

Also keeps the fallback doc comment on fallback() in completion.ts.

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-27 01:27:56 +08:00
l0ng-ai 84854bed0e test(i18n): accept the DuckDB source's untranslated catalog entries (#6230)
The DuckDB data source (#6181) added zh catalog entries that are the same as English (DuckDB, JDBC URL and the path/to/database.duckdb placeholder), which src/platform/i18n.test.ts rejects for locales with another script. List them as same-as-English.
2026-11-27 01:26:36 +08:00
Vladislav Kuzmin 81b6cb7af6 feat(database): add a named DuckDB JDBC data source (#6181)
DuckDB gets its own data source preset on top of the JDBC driver profiles: register the official DuckDB JDBC JAR once, then choose a database file, an in-memory database or a JDBC URL. Opening a .duckdb file or importing a jdbc:duckdb: URL leads to the same dialog.

Read-only file connections ask DuckDB for read-only access when the database opens (duckdb.read_only), and reject URL or property options that conflict with it, so a read-only connection can no longer create a missing file. In-memory databases require write access. The source type picker also keeps a visible option in place while it is clicked, so the first click selects it.

Co-authored-by: principalwater <[email protected]>
2026-11-27 01:13:34 +08:00
LU XIANGRUIтаwildcatDownstairs ffe96c2ca2 feat(format): format with the project's dprint (#6049)
Reformat Code and format on save run the project's own dprint (dprint fmt --stdin <path>) for files its plugins cover when a dprint config or a project-local dprint is found below the project root. The covered files come from dprint editor-info, cached per config file and modification time (failures included, so an offline plugin download doesn't time out on every format). Files no plugin covers, and every file when dprint can't run, keep their usual formatter.

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-27 00:54:33 +08:00
LU XIANGRUIтаwildcatDownstairs 33bd5372b6 feat(run): run Jasmine tests with a test tree and Rerun Failed Tests (#6050)
Jasmine test configurations report results to the test tree through a reporter, so specs show up as they run, navigate to source, and Rerun Failed Tests selects the failed specs with --filter=. A suite whose afterAll failed is rerun by its specs.

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-27 00:54:16 +08:00
Mr0Bread 44aeb95993 feat(agents): configure additional launch arguments for built-in ACP agents (#6199) (#6199)
Agent Setup gets an Additional arguments field for built-in ACP agents that launch directly. The arguments are stored as an argv array and appended to the agent's existing launch command; Reset clears only that suffix and keeps the executable, environment and the agent's own arguments. Registry, package-runner, custom ACP and native-driver entries don't show the field.

Co-authored-by: Mr0Bread <[email protected]>
2026-11-27 00:51:24 +08:00
LU XIANGRUIтаwildcatDownstairs 144cd90175 feat(run): watch mode for Jest and Vitest test runs (#6102) (#6102)
Jest and Vitest test run configurations get a watch option. A watched run keeps the runner alive, re-runs on file changes and ends each cycle in the test tree like a finished run; derived runs (rerun failed, run at cursor) run once.

Merged main in and combined the RunExtras watch field with the executor field that landed on main.

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-27 00:42:53 +08:00
Mansur Akhmadiтаmansur-akhmadi da3b621345 feat(run): run a Go package folder's tests from the Project view (#6218)
A Go package folder or the module root in the Project view had no Run / Debug: produceDirectory only knew folders with a test-like name or marked test roots, which Go packages rarely are. Now any folder of a Go module gets Run 'go test <dir>/...' (./... at the module root), Debug, and the More Run/Debug entries, as GoLand does. The configuration's flags and -args are kept and its package arguments replaced. A Go Test form configuration gets scope: directory and the target. Folders go test skips (testdata, vendor, names starting with . or _) and folders outside the module get nothing. _test.go files get a Go test file icon.

Closes #6217

Co-authored-by: mansur-akhmadi <[email protected]>
2026-11-27 00:40:53 +08:00
Orion b301e2bbe1 fix(agents): expose and apply native Codex Fast mode (#5064)
The composer shows Codex's native service tier as a Fast toggle and sends it with each turn: Fast sends the runtime's advertised fast tier, an explicit Off sends `default`, and an untouched toggle inherits the runtime's default. The tier is a per-model option, and an explicit Fast choice survives a reconnect on a model that only offers Standard, applying again once a model that supports it is selected.

Co-authored-by: Dream-Winter <[email protected]>
2026-11-27 00:40:03 +08:00
Alexanderтаformiat feac919a1b feat(vcs): grow an opened branch filter group down to the window edge (#6220)
In Git Log > Branch filter, an opened Local or Remote group now lengthens the popup down to the window's bottom edge, instead of scrolling everything past 320 px in a small box. The popup measures its room once on open (anchor to window edge, minus Popup's offset and margin and its own search field and footer) and uses that as the list's limit, so it never outgrows the room below or flips. With less room than 320 px, the old cap stays.

Closes #6219

Co-authored-by: formiat <[email protected]>
2026-11-27 00:38:36 +08:00
LU XIANGRUIтаwildcatDownstairs 0155d74084 feat(debugger): reconnect Attach to Node.js automatically when the process restarts (#6103)
Attach to Node.js ended the debug session as soon as the inspected process exited, so with nodemon, node --watch or tsx watch the attach had to be restarted after every save. The configuration gets Reconnect automatically, which passes js-debug's `restart: true`. js-debug waits for the inspector to come back and attaches the new process as a new child session with the same breakpoints. While it waits, the Frames pane says so. The restarted process's tab replaces the finished one and keeps its console output. VS Code attach configurations with `restart` (true or a policy object) import with the option on.

Closes #6084

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-27 00:32:02 +08:00
l0ng-ai 130f75e7e8 fix(agents): keep Generate Commit Message tasks out of the task list (#6221)
Generate Commit Message runs a throwaway agent task. The task was saved when it was created and deleted only by the frontend afterwards, so a delete that never ran left it (and the agent's own session history) behind after a restart. NewAgentTask gets `ephemeral`. An ephemeral task is never written to disk, and its session/new carries `_meta.openidea.ephemeral`, so Claude Code starts with --no-session-persistence and Codex starts an ephemeral thread.

Fixes #6132
2026-11-27 00:30:58 +08:00
Deng Liuтаdengliu 2abd65aedd feat(editor): track non-file editor tabs and split panes in Back / Forward (#5986)
Navigate › Back / Forward now records editor tabs without a file path (agent chats, terminal editor tabs, other custom editor tabs) as places, and remembers the split pane of each place, so Back returns to the same pane while it still holds the tab. Entries an editor kind reports as no longer navigable are skipped, and duplicates they expose collapse. Moving focus between tool windows is still never a history step.

Co-authored-by: dengliu <[email protected]>
2026-11-27 00:26:45 +08:00
LU XIANGRUIтаwildcatDownstairs 1b3e4fac6a feat(profiler): open .cpuprofile files as snapshots (#6101)
.cpuprofile files saved outside the IDE (node --cpu-prof, Chrome DevTools, CI) open in the Profiler tool window. Run > Open Profiler Snapshot…, the Profiler header and its empty state pick one or more files. The Project view, editor and tab menus offer Open in Profiler on .cpuprofile files, and a banner shows above one opened in the editor. Each file becomes its own snapshot, and reopening a file replaces it. ProfileSpec::CpuProfileFile reads it with the existing V8 parser. Unreadable, non-profile and sample-less files are errors. Frames whose source isn't on this machine keep their name but drop the location. The menu item now lives in ide-host's menu spec.

Closes #6086

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-27 00:20:40 +08:00
LU XIANGRUIтаwildcatDownstairs 72b0c7c48c feat(refactor): Extract Type Alias and Extract Interface for TypeScript (#6040)
tsserver's "Extract to type alias" and "Extract to interface" were reachable only as unnamed server items in Refactor This, and Refactor > Extract Interface… worked only in Java. In TS/JS files, Extract Interface… now runs tsserver's "Extract to interface" (Java keeps the jdtls dialog). The new Refactor > Extract Type Alias… runs "Extract to type alias" ("Extract to typedef" in JavaScript). The new type is then renamed in place, as Introduce Variable does. When tsserver offers no such action, a hint says why. classifyAction maps these tsserver titles so Refactor This lists them under Extract/Introduce. The menu item now lives in ide-host's menu spec.

Closes #6014

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-27 00:09:52 +08:00
Charlie.Weiтаcharli117 25d1046af0 feat(agents): fork a recorded native session into a new task (API 1.18) (#5131)
A recorded native Claude Code or Codex session can be forked into a new task, from the Agents view's session list and from Import Sessions (one or several at once). The fork starts from the recorded conversation and leaves the original session untouched; the host validates the session and builds the fork invocation itself.

Plugins get the same through the grant-scoped `agents.fork-session` (API 1.18, `agents` capability, trusted projects only).

Co-authored-by: charli117 <[email protected]>
2026-11-27 00:05:44 +08:00
Alexanderтаformiat 1cdb998532 feat(search): match - and _ interchangeably in Go to File queries (#6063)
In Go to File and the Files tab of Search Everywhere, a `-` or `_` in the query now matches either separator in file and folder names (`bit_matcher` finds `bit-matcher/`). File needles fold `_` to `-` one character for one, so highlight indices stay correct. ASCII candidates keep nucleo's ASCII path through a reused per-thread buffer. The `char_mask` pre-filter gives both separators one bit. Exact and prefix boosts still compare the original spelling, so the exact name ranks first. Class and symbol matching is unchanged.

Closes #5942

Co-authored-by: formiat <[email protected]>
2026-11-27 00:01:39 +08:00
l0ng-ai b1ab5afa67 feat(plugins): Services menus on the IDE's own nodes and plugin executors (API 1.18) (#6216)
services.context and services.toolbar menus let plugins act on the IDE's own Services nodes (run configurations, Docker containers): when keys per selected service (serviceProvider, serviceKind, serviceId, serviceName, serviceRunning, runConfigurationId, serviceSelectionCount) and the selection as the command's JSON argument, through a new workbench registerServiceSelectionItems registry fed by ServiceProviderContribution.context.

executor = "<title>" on [[contributes.javaAgents]] binds the agent to a plugin executor: Run/Debug '<name>' with <title> beside Run and Debug (run widget, gutter, context menus, Services), the only launches that get the agent. The launch carries the plugin id (RunConfig.executor, or executor in the debug launch extras); the java.agent grant and jar pin are unchanged; without the grant the IDE asks instead of launching. The Services menu of a run configuration now also lists its executors (Coverage, Profile).

Fixes #4528
2026-11-27 00:00:19 +08:00
l0ng-ai 0101d11ac9 feat(plugins): complete the Arguments field of a plugin's own run configurations (API 1.18) (#6213)
The optional run-configuration-completion export receives the project, the configuration's id, the field (arguments), its text and a UTF-16 caret, and answers items that each replace one UTF-16 range, so other options, quoted values and the arguments after -- stay as typed.

The host completes only configurations the plugin currently provides for the window's project (also a user's override of one), keeps 200 items and gives the plugin 300 ms. In Run | Edit Configurations the field asks while typing and on Ctrl+Space, applies an item with Enter or Tab, closes the popup on Escape without closing the dialog, drops answers for text that has changed, and stays usable when the plugin fails.

Fixes #4753
2026-11-26 23:34:36 +08:00
l0ng-ai 07d26722b1 feat(plugins): watch files outside the project within fs.read grants (API 1.18) (#6212)
events.watch-paths watches files and directories outside the invoking window's project that an fs.read grant covers, checked where they really are (a link out of the grant is denied; project paths are refused; at most 32). A file is watched through its parent directory so atomic saves and re-creation keep working; a directory is watched flat, never recursively. Changes arrive as watched-files-changed events to the window that asked, through the same queue as project file changes.

Watches belong to (plugin, project) and end when the project or its window closes or the plugin stops (disabled, updated, a grant revoked); idle reclaim keeps them. Watcher threads only queue changes, and delivery re-checks that the set, its window and its project are still current. Nothing remote is watched.

Fixes #4761
2026-11-26 23:33:04 +08:00
Muuтаmuutot df48d9271b feat(editor): complete paths on bare lines in ignore files (#6007)
Path completion only triggered inside quoted strings, HTML attributes, url()
and Markdown links, so it never fired in .gitignore-style files. Each
non-comment line of an ignore file (.gitignore, .dockerignore, ...) is now a
path prefix completed eagerly from the file system, after an optional `!`.
Glob patterns and comment lines are left alone.

Co-authored-by: muutot <[email protected]>
2026-11-26 23:31:47 +08:00
LU XIANGRUIтаwildcatDownstairs cb6b7ccd3f feat(run): suggest installing dependencies when package.json or the lockfile changes (#6100)
A Node.js project now gets a notification when node_modules is missing
("Dependencies are not installed") or out of date ("Dependencies changed since
the last install"), with Install (npm / pnpm / yarn / bun install by the
detected package manager, in the Run tool window) and Ignore.

Stale means a lockfile newer than the last install, or a package.json whose
dependency fields changed since the last up-to-date check and is newer than the
install; scripts-only edits never count. The last install is the newest install
marker (.package-lock.json, .modules.yaml, .yarn-integrity, .yarn-state.yml,
.pnp.cjs, .yarn/install-state.gz) or, for bun, the newest package folder. In
workspaces one notification is shown for the workspace root. The project root
and the folders right under it are checked on open. Shown once per state; Ignore
lasts until the dependencies change again, across restarts; only in trusted
projects. Also available as Install Node.js Dependencies for the active file's
package.

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-26 23:28:37 +08:00
Muuтаmuutot 13c0e8aa8d feat(settings): breadcrumb links back up the tree and mouse side-button page history (#6163)
Settings breadcrumb parents are links back up the page tree, and the dialog keeps a page history in its store: the header Back / Forward buttons, ⌘[ / ⌘] (and ⌘⌥← / ⌘⌥→) and the mouse side buttons all walk it.

While Settings is open it takes over navigate.back / navigate.forward through overrideActions, which puts the editor's own registrations back when Settings closes, so their owners can still dispose them. In the standalone Settings window the history keys listen in the capture phase: the window's browser guards cancel ⌘[ / ⌘] in the bubble phase.

Co-authored-by: muutot <[email protected]>
2026-11-26 23:24:02 +08:00
Luis Felipeтаluisfelipe18 9f643af069 feat(web): openidea-server --web serves the IDE to a browser (#5134)
`openidea-server --web` serves the built frontend and the IDE backend over one HTTP + WebSocket port, directly or behind a reverse proxy that strips or keeps its path prefix.

- The rpc dispatcher gains an async `invoke` with a channel sink, so project-host commands, streaming channels and IDE events run over WebSockets as they do over `--stdio`.
- Token auth is on by default (a random token unless `--token` or `--no-auth`), binds 127.0.0.1 by default, and WebSocket upgrades must be same-origin.
- The browser serves the desktop shell commands with the trust classes the desktop declares (a test keeps them in step), and the desktop menu spec, now in `ide_host::menu`. Recent-project recording and project rename are shared ide-host ops.
- WebSocket output is queued without dropping channel data or events. A reloaded page gets back the project its window still has open; after a server restart the page reloads. One tab per window, with Take Over.
- Browser fallbacks for the title bar menu, path chooser, clipboard, dialogs, Settings and external links; a reconnecting banner and an unsaved-changes guard.
- `scripts/start-web.sh` and the guide (English and Chinese).

Co-authored-by: luisfelipe18 <[email protected]>
2026-11-26 23:00:28 +08:00
LU XIANGRUIтаwildcatDownstairs 0c02a9e467 feat(run): complete npx / pnpm exec / bunx / yarn commands in Run Anything (#6099)
Typing npx (or pnpm exec, bunx, yarn) in Run Anything lists the executables
installed in node_modules/.bin from the current file's package up to the project
root, the current package first and its direct dependencies' bins first within
a package. Typing filters, Tab completes, and Enter runs the command as an
npm-kind configuration in that package folder. A typed line with arguments runs
in the first package that has the executable; an executable that isn't installed
or a line with shell syntax still goes to the shell. Yarn 2+ offers only direct
dependencies' bins; Bun .bunx shims and dangling links are skipped.

Only the disk is read. The provider uses Run Anything's subscribe() to refresh
the open popup when its background read finishes; reads are cached and dropped
when node_modules or a package.json changes.

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-26 22:43:33 +08:00
LU XIANGRUIтаwildcatDownstairs 8c7bdc9bf2 feat(run): add a Node.js run configuration type (#6098)
node configurations had no type of their own, so they were edited as a bare
command line and Add Configuration had no Node.js entry. The existing node kind
gets a Node.js type with Node interpreter, Node options, JavaScript file and
application arguments; working directory and environment are the shared fields.

Configurations from the gutter or imported from VS Code / JetBrains carry only a
command line; the type splits it into options, file and arguments, and opens it
in the form only when that reproduces exactly what runs today (npx tsx, test
runs, node --test and node -e keep their plain command). An empty interpreter
runs the project's node. js-debug already passes the options as runtimeArgs.

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-26 22:41:16 +08:00
LU XIANGRUIтаwildcatDownstairs a3f6d82391 feat(run): update Jest and Vitest snapshots from a failed test (#6093)
A Jest or Vitest snapshot mismatch now offers Update Snapshot: in the test tree
context menu (on the test, or on a file/suite for every snapshot failure under
it), above the failure output, and in the editor gutter run menu when the newest
finished run with a result for that test has a mismatch.

It reruns only those tests in the same Run tab with the existing test-name
filter plus -u. The tab then keeps the selection without -u, so Rerun runs the
tests instead of rewriting snapshots. For Jest, whose -u deletes every obsolete
.snap file regardless of filters, the update also passes a
--testPathIgnorePatterns that keeps the other files. The update always runs once
(watch cleared). Mismatches are recognised from Jest's toMatchSnapshot /
toMatchInlineSnapshot / toThrowErrorMatching(Inline)Snapshot headers and
Vitest's "Snapshot ... mismatched"; other runners are unaffected.

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-26 22:39:41 +08:00
LU XIANGRUIтаwildcatDownstairs bfde0ffc34 feat(templates): add React component live templates rfc, rfce, rafce and rcc (#6030)
React files only had the useState / useEffect live templates. Four component
templates are added for .jsx and .tsx files in the JavaScript / TypeScript
group: rfc (export default function), rfce (function + export default), rafce
(arrow const + export default) and rcc (class component extending
React.Component). The name comes from the file through a new componentName()
template function (user-card.tsx -> UserCard, PascalCase names kept, a leading
digit gets a Component prefix), and the caret lands inside the returned <div>.
The TSX variants declare `type Props = {}` and take `{}: Props`.

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-26 22:38:07 +08:00
LU XIANGRUIтаwildcatDownstairs 9067abf0cf feat(editor): JSDoc @param / @returns stubs for JavaScript and TypeScript (#6025)
Typing /** + Enter above a JavaScript or TypeScript function fills in the JSDoc
stub: @param for each parameter (rest parameters as ...args, destructured ones
as options), and in .js/.jsx files the type of a default value ({string},
{number}, {boolean}, {Array}, {Object}, {Map} for new Map()). @returns is added
when a declared result isn't void, or with no declared result when the body
returns a value (not counting nested functions) or an arrow has an expression
body; constructors and setters get none. Function expressions and
single-parameter arrows assigned to a variable are handled too.

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-26 22:36:31 +08:00
faysouтаfaysou 4939b63c88 feat(markdown): extract embedded images to files (#6171)
Extract Embedded Images... in the Markdown editor context menu and Find Action
lists the image count and the sibling output folder, then writes each supported
data: URL image (JPEG, PNG, GIF, WebP, checked against its file signature) from
inline Markdown and quoted HTML <img src> to that folder and replaces the
destinations in one undoable edit. Alt text, titles and other attributes stay as
they are; literal HTML (code, pre, script, ...) is skipped.

If a write fails or the document changes during extraction, no link changes and
the notification reports how many files were already written.

Co-authored-by: faysou <[email protected]>
2026-11-26 22:35:33 +08:00