VSCodeVim / VSCodeVim/Vim

CommandLine: Error executing cmd. TextEditor has been disposed.

Open
#5,332 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/performance kind/bug
Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

Describe the bug

Throwing an exception when excute a simple replace in csv file

CommandLine: Error executing cmd=%s/,804_/,189804_/g. err=DISPOSED: TextEditor(vs.editor.ICodeEditor:1,$model6) has been disposed.

To Reproduce

  1. open csv file with vscode (about 6 MB)
  2. tab : to execute cmd
  3. input %s/,804_/,189804_/g
  4. I can see line are changed, but can not execute other command.
  5. close windows, Throwing an exception

Expected behavior

text been replaced.

Screenshots

image

Environment (please complete the following information):

  • Extension (VsCodeVim) version: v1.17.1
  • VSCode version: 1.49.3
  • OS: Windows

Additional context
Add any other context about the problem here.

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.

Research direction

Reproduce the issue in VSCodeVim by opening a roughly 6 MB CSV in VS Code and running the : command %s/,804_/,189804_/g. Observe whether the replacement completes and whether subsequent commands or window closing trigger the disposed TextEditor exception. Done means the replacement and later editor actions complete without that exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.