Skip to content

Commit

Permalink
When tabSize is set via API, also set indentSize to the same value (
Browse files Browse the repository at this point in the history
#168986)

Fixes #168836: When `tabSize` is set via API, also set `indentSize` to the same value
  • Loading branch information
alexdima authored Dec 13, 2022
1 parent 93987e8 commit 7dcd27a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/vs/workbench/api/browser/mainThreadEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ export class MainThreadTextEditor {
}
if (typeof newConfiguration.tabSize !== 'undefined') {
newOpts.tabSize = newConfiguration.tabSize;
newOpts.indentSize = newConfiguration.tabSize;
}
if (typeof newConfiguration.indentSize !== 'undefined') {
if (newConfiguration.indentSize === 'tabSize') {
Expand Down

0 comments on commit 7dcd27a

Please sign in to comment.