VSCodeVim / VSCodeVim/Vim

Abandon `EditorIdentity` and map `TextEditor` directly to `ModeHandler`

Open
#4,889 0 comments 0 reactions 1 assignee View on GitHub

@J-Fields is already working on this.

Since May 22, 2020.

kind/refactor upstream/vscode
Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

This is pending https://github.com/microsoft/vscode/issues/15178 , which will hopefully land in the next VS Code release. It's been put back on the backlog.

Currently, we have a ModeHandler for each TextDocument, and have to sync VS Code's selections back to VimState each time the active editor changes, because it may change between editors of the same document. This works most of the time, but should be unnecessary. One instance where it fails is syncing a visual line selection where the cursor is in the middle of the line. It also means that the mode is shared among these editors, and it's caused many other strange bugs in the past.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.