Rider has no speculative undo, so the undo stack is on the backend. The
backend applies the frontend's changes as undo-transparent patches,
merges all of them into one undo step, and undoes all transparent steps
on top of the stack at once. So one `u` undid every change IdeaVim made
since the backend's own last command, e.g. both deletions after `x x`.
Before each command that follows a change, the frontend now asks the
backend to end the undo step. If the step has only the frontend's
changes, the backend merges a no-op non-transparent action into it first,
so it's undone on its own.
It relies on how the platform merges undo steps, so it's a workaround
until RIDER-145069 is fixed.
Rider and CLion have no speculative undo, so the undo stack is on the
backend and `u` on the frontend ran `$Undo` there. With caret movement
not undo-transparent, the platform spends the first undo of a group only
on restoring the caret when it moved after the change. Leaving Insert
mode moves the caret back by one, so the first `u` did nothing.
Run undo/redo on the backend through ChangeRemoteApi with
`ide.undo.transparent.caret.movement` on, as the monolith does. Frontends
with speculative undo keep using `$Undo`.
The indent was only worked out where the language has a formatter. Rider has
no formatter for C# on the frontend (formatting lives in the ReSharper
backend), so cc and S left the line with its old indent.
Rider's frontend has a LineIndentProvider that works out the C# indent, but
also a dummy one answering DO_NOT_ADJUST, and CodeStyle.getLineIndent only
asks the first provider of a language. Ask all of them and take the first
indent, and fall back to the formatter only if none of them answers.
The AIR prompt was recognised and handled in several places of the core
by AIR's internal key names and action ids. Everything AIR-specific now
lives in the ideavim-air module, which only loads with the AIR plugin and
implements the new ChatInputProvider extension point. The core asks the
provider whether an editor is a chat prompt, whether the chat owns a key,
and which action breaks a line.
The line-break action is now also used by processEnter, so <C-J>, <C-M>
and mappings ending in <CR> break the line in the AIR prompt. Before,
they ran the platform's Enter action, which AIR turns into a no-op there.
A "Show Diff" tab of changes in version control was matched by the names of
its diffs, which only some diffs name after the path of the file. Its
changes know the path, through PresentableChange, which lives in
intellij.platform.vcs.impl. ideavim-vcs depends on it already, so it now
knows such chains too, and the providers come before the match by name,
which stays for chains of other diffs.
<C-O> to another file moves the caret in the other editor and then
returned Motion.Error, which made IdeaVim report an error after a jump that
worked. It returns Motion.NoMotion now. Marks, the tag stack and the change
list do the same when they go to another file, and are left for later.
Cmd+B and Ctrl+Click run the IDE's Go to Declaration, which IdeaVim doesn't
see, so only the IDE's navigation history records them, mirrored into the
jump list by 'ideaunifyjumps'. The history knows a diff tab only as a
whole, without a caret, so JumpsListener dropped such places.
For a place in an open diff tab, JumpsListener now asks the tab for its
caret on the side the user works in. Navigating away to another file
leaves that caret where it was, so it is the place the IDE recorded.
JumpInfo carries the diff source over RPC. JumpsListener runs on the
backend, where diff tabs live in split mode too.
A removal is not mirrored for a diff tab: its caret says nothing about the
older place the IDE drops.
The tests wait before navigating like the IDE: for a short while after any
jump, the jump list ignores the IDE's navigation, which would otherwise
mirror IdeaVim's own jumps a second time. That window also drops the IDE's
places mirrored from its history, which is left as it is here. The
split-mode test project gets a module with `src` as a source root, so that
Java resolves the declaration.
In split mode the diff tab lives on the backend: the frontend only shows
it, with editors that mirror the backend's ones. IdeaVim runs on the
frontend, so it found no diff tab and fell back to the plain file.
- The diff code moved to ideavim-common, so it runs on both sides, and
uses only the platform: the backend has no IdeaVim injector. The
frontend looks for a local diff tab first (monolith), and otherwise
asks the backend through JumpRemoteApi. The mirrored editors share the
backend editors' EditorId, so the backend finds the real diff editor.
- On the backend, split mode keeps a diff tab in its own file editor
(DiffRequestDirectTransferEditor), which exposes the diff only as a
`processor` property. There is no public API for it, so it is read by
reflection, with the old behaviour as the fallback.
- A write action can't wait for the backend, so a jump recorded during
one stays a plain file jump, as before.
- The left side of a diff from version control has a document with a
LightVirtualFile, so it counted as "in the file": such a jump was saved
across restarts and came back as the plain file at the wrong line.
Only a file on disk counts now. The tests use such a left side too.
Two jump bugs showed up on the way, not specific to diffs:
- <C-O> could stay where the caret already was, when the IDE had already
recorded that place as the newest jump (e.g. after clicking another
file in the Commit tool window). Leaving the newest end of the jump
list now adds the place of the caret first, which replaces the older
jump to it, and then goes back, as Vim does.
- In split mode, jumping to a file that wasn't open didn't place the
caret: selectEditor looked for the frontend editor right after the RPC,
before the frontend has it, so the file opened wherever it was last
left. The backend now opens the file at the position, for jumps, marks,
the tag stack, the change list and quickfix.
git rev-parse --show-toplevel resolves symlinks, so in /tmp on macOS matches pointed to /private/tmp and opened a second tab for files that were already open
IJPL-257728 removed intellij.platform.kernel, kernel.impl and kernel.backend
from the platform. On builds from master, IdeaVIM.ideavim-backend and both
bookmark backend modules declared a dependency on intellij.platform.kernel.backend,
so the platform skipped them silently. None of the remoteApiProvider extensions
got registered, and Commentary, Format and the other RPC calls failed with
"No remote API found".
IdeaVim doesn't use any class from these modules. The backend-only loading in
split mode is still provided by the dependency on intellij.platform.backend.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
intellij.platform.rpc doesn't exist in 2025.3, is embedded in the core
classloader in 2026.1-2026.2 and is a standalone module since 2026.3.
Declaring it as a dependency of the embedded ideavim-common module disables
the whole plugin on 2025.3 and breaks the 2025.3 build.
Move the dependency to a new optional ideavim-rpc module that provides
VimRemoteApiResolver via the IdeaVIM.remoteApiResolver extension point.
When the module is skipped (2025.3), fall back to calling
RemoteApiProviderService from the core classloader.