CommandLine: Error executing cmd. TextEditor has been disposed.
Open
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
- open csv file with vscode (about 6 MB)
- tab
:to execute cmd - input
%s/,804_/,189804_/g - I can see line are changed, but can not execute other command.
- close windows, Throwing an exception
Expected behavior
text been replaced.
Screenshots

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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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