VSCode becomes unresponsive while using auto-rename-tags extension and typing < or >
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
- Click thumbs-up 👍 on this issue if you want it!
- Click confused 😕 on this issue if not having it makes VSCodeVim unusable.
The VSCodeVim team prioritizes issues based on reaction count.
BUG REPORT
Environment:
- VSCode Version: 1.18.1
- VsCodeVim Version: 0.10.5
- Auto Rename Tags Version: 0.0.15
- OS: Arch Linux (also occurs on Debian)
What happened:
I've noticed VSCode freezing up intermittently, usually after I enter a < or > within a LaTeX document. It is not completely unresponsive, but it will start to take 10-20 seconds per keystroke and requires that I close it and reopen it in order to get it working again. I finally was able to isolate and reliably reproduce the issue, and cleared out all my extensions and settings to verify the unusual behavior (described below).
What did you expect to happen:
How to reproduce it:
- From a clean install of VSCode (I just moved the
~/.vscodeand~/.config/Codefolders) install vscode-auto-rename-tag and VSCodeVim and reload VSCode - Put the following into a file called "test.tex":
Each $B_i$ can be specified by $n$ bits, so we have that the input size is $O(mn)$, and since - Save the file, and now move the cursor to the beginning of the line and try to insert
$k < n$(Keystrokes:Esc I $k < n$)
Result:
The cursor freezes after the < character, and VSCode is unresponsive. Closing it down leaves a process hanging around in the background, which has to be killed manually. (killall code)
Strangely enough, this does not occur when only one of the two extensions above are installed, but I can't imagine what the connection is.
For reference, bug report on auto-rename-tag: https://github.com/formulahendry/vscode-auto-rename-tag/issues/40
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
Start with the reproduction in test.tex using VSCode 1.18.1, VSCodeVim 0.10.5, and Auto Rename Tags 0.0.15; reproduce the freeze after Esc I $k < n$. Compare behavior with each extension installed alone, then review the linked Auto Rename Tags issue 40. Done means the interaction no longer makes VSCode unresponsive or leave a hanging process.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- devtools, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100