@lezer/java tags PrimitiveType as standard(typeName), so int/long/boolean/... used the built-in colour instead of the keyword colour IntelliJ uses (void already had it). JAVA_TAGS now tags PrimitiveType as keyword; this covers Java files, JSP scriptlets and java code blocks in Markdown.
Co-authored-by: wildcatDownstairs <[email protected]>
openidea-plugin keygen, pack --out and index --out failed with 'No such file or directory' when the output file's folder didn't exist yet. They now create the parent directories first, like new and build already do, and the pack error names the path.
Co-authored-by: Rhombicdodecahedron <[email protected]>
Both .icls readers (the theme converter and Settings > Color Scheme > Import) accepted only bare hex, so schemes like One Dark that write #rrggbb lost most colours. One iclsColor helper now follows IntelliJ's rules (bare, # or 0x prefixes); the settings import still leaves out RRGGBBAA values.
Co-authored-by: Rhombicdodecahedron <[email protected]>
JavaScript files were parsed without the JSX dialect, so JSX tags and attributes in .js/.mjs/.cjs files got parse errors and wrong colours. The JavaScript parser now enables JSX; TypeScript parsing is unchanged.
Co-authored-by: ffgenius <[email protected]>
The bracket matcher only recomputed on document or selection changes, so a closing brace beyond the parsed prefix stayed marked unmatched after background parsing found its opening brace. A patch to @codemirror/language also refreshes the decorations when the syntax tree changes.
Co-authored-by: faysou <[email protected]>
Gutter markers compared only the entry name (block:<fence line>), so after editing a block CodeMirror kept the old run button and its click ran the old commands until the file was reopened. ScriptMarker.eq now compares the whole entry, covering the npm script and launch profile gutters that share it. Part of #5624.
While SELFHOSTED_RUNNERS is true, trusted Linux jobs in ci.yml and language-smoke.yml run on the openidea-selfhosted runners and fall back to ubuntu-latest otherwise. The runner image moves to Ubuntu 24.04, E2E installs Chromium on the runner, and the smoke tests resolve fixtures from the runtime CARGO_MANIFEST_DIR.
Add a docker_volume_sizes command (docker system df -v, Engine API fallback) and show each volume's disk usage in the Volume, Compose project and Container dashboards, refreshed every 30 seconds while the Services tool window is visible.
A prompt that opened with a pasted fenced block was titled from the first line inside the block until the generated title arrived. A line outside the fences now wins; a prompt that is one fenced block is still titled from inside it.
The inheritance inspections matched the open document's classes to the inheritance graph by exact position, and the graph is re-indexed only on save, so a line typed above a class hid the warnings of every class below until the file was saved. The document's classes now pair with the graph's in order while they read the same names, and by position otherwise; same-document methods and members come from the live document.
Reuse the ref-decoration snapshot for log refs and cache branch lists, invalidated by ref storage, HEAD, repository config, shallow state and trust-mode changes.
* feat(agents): reorder the task menu and polish selection and images
- Task menu: Pin, Rename, Mark as Unread/Read; Fork, Group; Archive (⇧⌘E
in the task list), Archive All Below, Delete. Terminal and Open in New
Window leave the menu. Hovering a task row shows Pin and Archive beside
its age.
- Reply text: no stripe under the unselected start of a line when a
selection runs on past it; inline code keeps its side insets inside the
selection. A double or triple click no longer selects into the next
message.
- Images: tool-read images show as same-height thumbnails; the remove
button on attached images stays opaque on hover.
* fix(agents): keep Jump to Latest opaque on hover
* fix(agents): keep task row hover buttons from selecting or opening the task
A path deeper than four folders collapses its middle into an ellipsis whose tooltip is the whole relative path, the same as the last folder's, so React warned about two children with the same key. Segments are now keyed by their position as well.
With preview tabs enabled, selecting a file in the Project view also opens it, so the External Tools test disables preview tabs to keep the Project selection and the active editor on different files. The task-input shortcut test focuses a directory so the task editor stays visible.
Opening Add Python Interpreter in a plain browser started a Hatch discovery request whose cancellation called the desktop command without a bridge, an unhandled rejection. Browser mode now returns an empty result with a no-op cancel.
Windows CI on main failed four tests the earlier clippy error had hidden:
- pipenv naming hashed a Unix path, which Windows joins with a backslash;
the Windows expectation now uses a Windows path.
- the VIRTUAL_ENV assertion joined "member/.override" as one component.
- the diagnostics coalescing tests slept 30 ms for a 16 ms flush, too short
for Windows timers; they wait for the flush with a deadline.
- the patch preview test read automatic mappings while new folders could
still be re-indexing (automatic mappings pause then); it waits for indexing.
- Java parses the string values of Spring Data JPA @Query (JPQL, or SQL with
nativeQuery = true), @Value / @ConditionalOnExpression (SpEL #{...} and
property placeholders ${...}), and the SpEL attributes of @PreAuthorize,
@PostAuthorize, @PreFilter, @PostFilter, @Cacheable, @CachePut, @CacheEvict
- annotations are matched by their imported or qualified class, so other
annotations named Query stay plain strings
- escape sequences stay outside the embedded text and keep the string colours
Co-authored-by: LU XIANGRUI <[email protected]>
Each language job compiled the language_smoke / project_smoke tests and
openidea-server itself, about 4-5 minutes of the same work nine times. A
build job now compiles them once and hands them on as an artifact; the
language jobs only install their tools and run the binaries.
The project file watcher only reports Git metadata in the .git folders it
sees: the project root's and nested repositories'. When the project is a
subfolder of its repository, a linked worktree, a mapped repository
elsewhere, or a submodule (.git/modules/<name>), a commit, checkout or
reset in a terminal wrote nothing the watcher reported, so file statuses
stayed stale until something else triggered a refresh.
Watch HEAD, index, packed-refs and refs/** of those git directories, follow
repository changes, and emit VcsChanged for them (ignoring the IDE's own
index writes).
The user's message was only added to the conversation after the pre-turn checkout was recorded, which can take seconds in a large repository, so pressing Enter appeared to do nothing and the view did not scroll to the new message.
The home composer's taller minimum height overrode the composer rule by selector, so stylesheet load order could reset it to the single-line height once CodeMirror re-rendered. The home view now sets a --composer-min-height variable that the composer rule reads.
Bookmarks and TODO are listed under the stripe's "…" until first opened. The Database
window is on the stripe by default only while the project has data sources. Of the
Flutter DevTools windows only Flutter Inspector has a stripe button; Deep Links,
DevTools and DevTools Extensions wait under "…". A user's own stripe choice still wins.
Closing a remote window (SSH, WSL, Dev Containers) used to end openidea-server --stdio and tear down terminals, runs (running their stop commands), indexing and agent turns. openidea-server --attach now connects through a detached per-project daemon (private 0700 run dir, owner check, flock) that keeps them alive across disconnects; reopening reattaches terminals with bounded scrollback and OSC state, runs and agent turns, and restores remote editor tabs, tool windows and plugin views. The close dialog offers Keep Backend Running / Stop Backend; Stop Remote Backend shuts the daemon down on demand. A disconnected backend with no live work exits after an idle timeout (3 hours by default; presets, custom or Never in Settings › Tools › Remote Development, host override wins). The socket is keyed by project, so a new build replaces an idle backend of another build and reports a busy one; a window taken over by another shows that instead of a dropped connection. Clean documents are released on disconnect while dirty buffers keep the backend alive.
Also: a plugin-owned PTY keeps its exit hook across reattach (reattach only rebinds the forwarding sink), and a recent project clicked again while it is still opening joins that attempt instead of connecting twice (a double click made the second attach take over and fail the first).
Co-authored-by: dengliu <[email protected]>
Detected npm scripts are already in the run configuration list and runnable from the
package.json gutter. Remove the separate npm tool window, its package scan and e2e spec.
The editor context menu Run / Debug on a package.json script line stays.
Helm chart manifests and .tpl helpers keep YAML highlighting with Go template actions and are served by helm-ls (installable from Settings › Language Servers, pinned 0.5.4). Standalone .gotmpl / .tmpl / .go.tmpl files are a Go Template language: template actions highlighted, the Go icon, and gopls. Adds a small chart fixture.
Disconnecting a Docker connection in Services was remembered only in memory, so after a restart opening Services dialled every saved connection again (including SSH ones the user had disconnected). The Disconnect intent is now saved per connection; panel startup and the 10 s poll skip it until Connect clears the flag. Older settings keep connecting automatically.
Smart Type completion is in the VS Code preset and Rearrange Code is listed (no default shortcut) in the IntelliJ and VS Code presets, fixing the keymap and Vim :action tests on main.
dogfood:local builds and installs the local dogfood app (--build-only skips installation); dogfood:all <remote_name> runs it alongside dogfood:remote in parallel with [local]/[remote] prefixed output, validates the SSH configuration before the local build starts, stops the sibling process tree on failure, and runs the remote restart prompt once after both finish. AGENTS.md, mise tasks and the setup docs use the new names.
Co-authored-by: dengliu <[email protected]>
Tailwind color classes (`bg-red-500`, `text-brand-700`, `@apply bg-brand-500` in CSS) and the colors a CSS server knows beyond the built-in literal detector (`hwb()`…) now show swatches in the editor gutter. This was the remaining acceptance criterion of #5154. The editor never asked language servers for `textDocument/documentColor`; it only drew swatches for literals it found itself and for colors that plugins reported.
- Backend (`ide-lsp`): the client advertises `colorProvider`. `document_colors` asks every server that has it and tags each color with its server, then drops the answer if the document version changed in the meantime. `color_presentations` asks that server for `textDocument/colorPresentation`. A presentation without its own `textEdit` replaces the color's range with its label. New commands `lsp_document_colors` / `lsp_color_presentations`; bindings regenerated.
- Frontend (`color-preview`): `lspColors.ts` sits next to the plugin source and shares its swatch and picker flow, now in `providerSwatch.ts`. A server color gets no swatch when the built-in detector already shows a literal at the same range, and two servers reporting the same range (CSS + Tailwind) get one swatch. The gutter follows Settings › Editor › General › Gutter Icons › Color preview, and while that is off the editor sends no requests. Picking a color applies the server's single presentation, or offers a menu when there are several.
- Tailwind only presents arbitrary values (`border-[#16a34a]` → `border-[#2563eb]` / `[rgb(…)]` / `[hsl(…)]`). For palette classes like `bg-red-500` it returns none, as in VS Code. In that case a hint says the color can't be changed with the picker (new string, en + zh).
Co-authored-by: wildcatDownstairs <[email protected]>
The IDE's own Python inspections (Circular inheritance, Inconsistent '@override', Abstract method not implemented, Redundant override) could only be turned off for the whole profile. They now honour PyCharm's `# noinspection <Id>` comment (several ids comma-separated, or `ALL`): directly above a statement it covers that statement, above a `def` / `class` (or its decorators) the whole definition, and among the file's leading comments followed by a blank line the whole file. The parser reports these regions with the Python facts the inspections already read. Alt+Enter on such a problem offers Suppress for statement / function / class, which writes the comment at the definition's indentation or adds the id to a `# noinspection` comment already there.
While testing, the ⌥↵ options row for these problems read "Python builtin:python-abstract-method", and Disable inspection wrote an override for an id that doesn't exist: the checks publish under one producer with their inspection id as the code, and that id was not looked up. It now is.
Ruff and basedpyright problems need nothing new: both servers already offer their own suppress fixes (`# noqa: CODE`, `# pyright: ignore[rule]`), shown in the same menu.
Co-authored-by: wildcatDownstairs <[email protected]>
Ctrl+Shift+Space now runs **Smart Type** completion in Python files (Code › Code Completion › Smart Type, `code.smartTypeCompletion`): the lookup keeps the items whose type fits the caret's expected type, with that type in the right-hand column. basedpyright's completion items carry no type, so the candidates are resolved and their type is read from the documentation's code block.
The expected type comes from the active parameter's annotation (signature help), an annotated assignment `x: T = |`, or the enclosing function's `-> T` for `return |` (also in `async def`). A member access being typed (`x: T = task.|`, `return self.|`) is skipped over to find it. Keywords and comparisons are not taken for an assignment (`else: x = |`, `ok: bool = a <= |`).
An item fits when each member of its type's union fits the expected union:
- types are compared in a canonical form: module prefixes dropped, `typing` aliases lowered, `Optional` / `Union` and spacing read alike (`List[Optional[int]]` is `list[int | None]`);
- numbers are promoted as PEP 484 says: `float` accepts `int`, `complex` accepts both, and `bool` counts as an `int`;
- a class fits as any of its bases, from the project's classes (`Dog` for `Animal`);
Co-authored-by: wildcatDownstairs <[email protected]>
A Python module's type stub (`.pyi`) was invisible from the implementation, and jumping between a declaration and its stub meant finding the other file by hand. Functions, classes and methods that both files declare now get a gutter icon: in the `.py` it opens the stub declaration, in the `.pyi` the implementation. A new `nav_python_stubs` command finds the counterpart and matches declarations by qualified name on the tree-sitter outline of both texts, unsaved edits included. The counterpart is looked for:
- beside the file (`m.py` ↔ `m.pyi`);
- in a PEP 561 stub package beside the package (`pkg/m.py` ↔ `pkg-stubs/m.pyi`), or for a single module (`six.py` ↔ `six-stubs/__init__.pyi`);
- in the stub folder basedpyright reads (`stubPath` from `pyrightconfig.json` or `[tool.basedpyright]` / `[tool.pyright]` in `pyproject.toml`, else `typings/`), by module name. Modules are searched in the project's Python roots and its virtualenv's `site-packages`, so a `typings/requests/api.pyi` pairs with the installed `requests/api.py` both ways.
Navigate › **Stub / Implementation** (Find Action) does the same from the caret, and Related Symbol (⌃⌘↑) lists the counterpart. Markers refresh when a file where the counterpart may be changes, and a counterpart over the large-file limit still opens but gets no markers.
Co-authored-by: wildcatDownstairs <[email protected]>
On an unresolved name in Python, Alt+Enter only offered basedpyright's "Add `# pyright: ignore[...]`" (and an import when one matches). It now also offers PyCharm's **Create function 'foo'** and **Create class 'Foo'** on an undefined name, and **Create method 'bar' in 'Greeter'** on a missing method called on `self`/`cls`. Parameters come from the call site: a keyword keeps its keyword, a plain-name argument keeps its name, others become `param1`, `param2`…, with `*args` / `**kwargs` for starred arguments; positional and starred names are renamed so they never repeat the receiver or a keyword. The function or class goes above the top-level statement that uses it; the method goes at the end of the enclosing class, a `@classmethod` when the calling method is one (none is offered from a `@staticmethod`). The caret lands on the `pass` body.
The server says what is unresolved (`reportUndefinedVariable` / `reportAttributeAccessIssue`, and the equivalent codes of Ruff, ty and pyrefly); the parse tree says where and how it is used. The fixes are local quick fixes, so they also show in the problem hover's quick-fix list.
Co-authored-by: wildcatDownstairs <[email protected]>
Typing `"""` and Enter under a Python `def` always inserted reStructuredText `:param` / `:return:` fields: **Settings › Python › Docstrings** only changed highlighting. The stub now follows that setting (reStructuredText, Epytext, Google, NumPy, or Plain for a summary line only), lists the exceptions the function body raises (`raise X` / `raise X(...)`, nested functions skipped), and also closes a docstring under a `class`. The setting's hint and the Python docs page say so.
Co-authored-by: wildcatDownstairs <[email protected]>
Clears the React-specific violations reported by oxlint's `perf` category: 123 array-index keys, 28 constructed context values and 6 object/array default props. Keys now use a stable data id where one exists, and the index with a short documented suppression where position is the real identity (editable rows, streams, repeated data). Context values are memoized or hoisted, and default literals are module-level constants. Enabling the `perf` category itself is handled separately; this PR only fixes the violations.
Co-authored-by: akbar1214 <[email protected]>
A kept-alive session tab (up to 5, `KEPT_TABS`) painted its whole conversation and never gave any of it back: `Stream` opens at the last `ENTRY_BATCH` (40) entries, then the "following the end" effect (`Stream.tsx`, the `useEffect` on `[start]`) keeps adding batches until the full history is DOM, hidden or not. Five long tabs therefore held every turn as DOM nodes (WebKit keeps layout/style/render-tree memory for all of it).
Now a tab that was left at the end of its conversation and stays hidden for 30 s drops back to its recent tail, and a hidden tab no longer paints more batches. When it is shown again it is at the end as before and re-paints the earlier entries in the background exactly as when it first opened.
Independent of #5462 (hidden tabs stop rendering), #5467 (per-chunk re-render) and the Rust PRs.
Co-authored-by: Mr0Bread <[email protected]>
Switching between Console / Worktrees and Log in the Git tool window stuttered on every click of Log: the log view was unmounted whenever another tab was shown and rebuilt on return. The log now stays mounted (inert and unfocusable) while hidden; switching back takes ~33 ms instead of 70–100 ms.
Dragging a scrollbar thumb across a split divider could show the resize cursor while the page was still scrolling. In a side-by-side Markdown editor, pressing the outside edge of the source thumb could start resizing the pane.
Keep the arrow until the scrollbar drag ends and keep the source thumb clear of the Markdown divider. A transparent surface catches the pointer during the drag, so grabbing the thumb does not change inherited styles across the document.
Co-authored-by: faysou <[email protected]>
In the notebook editor, "Insert Code Cell Below" and "Delete Cell" (and the "Add Code Cell" /
"Add Markdown Cell" buttons) show the generic file icon instead of a plus and a trash can. They
ask for the icons `add` and `delete`, which are not in `src/ui/icons.tsx`; `IconButton` accepts
any string, so the unknown names fall back to `ICONS.file`. They now use `plus` and `trash`.
Co-authored-by: Delaruno20 <[email protected]>