'Convert to multi line' & 'Convert to single line' code actions do not understand custom spacing
- Dominant language
- Bicep
- Stars
- 3.6k
- Forks
- 830
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 79
Description
Repro steps:
1. Set Spaces to 8 in VSCode, open the following Bicep file:
```bicep
var foo = {
bar: {
baz: 'abc'
}
}
```
1. Put cursor inside first object, and select "Convert to single line" code action. 2 space indention is used instead of 8:
```bicep
var foo = { bar: {
baz: 'abc'
} }
```
1. Put cursor inside first object, and select "Convert to multi line" code action. 2 space indention is used instead of 8:
```bicep
var foo = {
bar: {
baz: 'abc'
}
}
```
Contributor guide
Research direction
Reproduce the issue in VSCode using the Bicep example and the "Convert to single line" and "Convert to multi line" code actions. Trace how these code actions determine indentation, then verify that both actions respect the configured 8-space indentation instead of using two spaces.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- vscode
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100