`<c-o>` and `<c-i>` malfunction sometimes
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
Describe the bug
Sometimes when jumping around the definitions jumping back doesn't work properly. This error occured several times to me and I can reproduce it with .scss files.
To Reproduce
Steps to reproduce the behavior:
- Open
.scssfile
$variable: 4px;
.css {
width: $variable;
}
- Go to line 3
width: $variable;and navigate to$variable;and then click go to definition<F12> - You will jump to line 1 now click
<c-o> - You don't jump back to line 3 in which you were before the jump. Notice that normal go back shortcut
ctrl+alt+-allows to jump back to line 3.
Expected behavior
<c-o> should allow to navigate back to line 3 and then <c-i> should allow user to go to line 1 again.
- Extension (VsCodeVim) version: v1.25.2
- VSCode version: 1.76.2
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
No source file or test is identified in the issue. First reproduce the behavior with the provided SCSS example, comparing / against VS Code's normal go-back shortcut; done when navigation returns to line 3 and then back to line 1 reliably.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100