Skip to content

Commit 7dcd27a

Browse files
authored
When tabSize is set via API, also set indentSize to the same value (microsoft#168986)
Fixes microsoft#168836: When `tabSize` is set via API, also set `indentSize` to the same value
1 parent 93987e8 commit 7dcd27a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/vs/workbench/api/browser/mainThreadEditor.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ export class MainThreadTextEditor {
377377
}
378378
if (typeof newConfiguration.tabSize !== 'undefined') {
379379
newOpts.tabSize = newConfiguration.tabSize;
380+
newOpts.indentSize = newConfiguration.tabSize;
380381
}
381382
if (typeof newConfiguration.indentSize !== 'undefined') {
382383
if (newConfiguration.indentSize === 'tabSize') {

0 commit comments

Comments
 (0)