Indenting unaligned text gives unexpected results
Open
Nobody has claimed this yet.
kind/bug
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
Describe the bug
Indenting unaligned text gives unexpected results.
To Reproduce
SELECT id
, name
FROM table
Select all, then >>, I get
SELECT id
, name
FROM table
Expected behavior
SELECT id
, name
FROM table
Environment (please complete the following information):
- Extension (VsCodeVim) version: 1.17.1
- VSCode version: 1.50.1
- OS: Windows 10 20H2 (OS Build 19042.572)
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 by reproducing the visual selection and >> indentation behavior in VSCodeVim with the SQL example from the issue. Trace the visual-mode indentation entry point and compare the actual spacing with the expected output. Done means unaligned selected text is indented while preserving the expected relative alignment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- developer-experience
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100