From ef4251f84f38f8bf35122fccd5e8295bd3bae59c Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Tue, 13 Dec 2022 12:43:56 +0100 Subject: [PATCH] Fixes #168836: When `tabSize` is set via API, also set `indentSize` to the same value --- src/vs/workbench/api/browser/mainThreadEditor.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vs/workbench/api/browser/mainThreadEditor.ts b/src/vs/workbench/api/browser/mainThreadEditor.ts index cbc28f4d953f8..5fe9edd01cfd1 100644 --- a/src/vs/workbench/api/browser/mainThreadEditor.ts +++ b/src/vs/workbench/api/browser/mainThreadEditor.ts @@ -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') {