Skip to content

Commit

Permalink
Fixes #168836: When tabSize is set via API, also set indentSize t…
Browse files Browse the repository at this point in the history
…o the same value
  • Loading branch information
alexdima committed Dec 13, 2022
1 parent 93987e8 commit ef4251f
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 ef4251f

Please sign in to comment.