This commit is contained in:
Alex Dima
2019-02-18 16:41:01 +01:00
parent 5f70fddbfa
commit b164459bf8
23 changed files with 259 additions and 293 deletions

View File

@@ -83,8 +83,8 @@ export class MainThreadTextEditorProperties {
const modelOptions = model.getOptions();
return {
insertSpaces: modelOptions.insertSpaces,
indentSize: modelOptions.indentSize,
tabSize: modelOptions.tabSize,
indentSize: modelOptions.indentSize,
cursorStyle: cursorStyle,
lineNumbers: lineNumbers
};
@@ -350,7 +350,7 @@ export class MainThreadTextEditor {
newOpts.tabSize = newConfiguration.tabSize;
}
if (typeof newConfiguration.indentSize !== 'undefined') {
if (newConfiguration.indentSize === 'tab') {
if (newConfiguration.indentSize === 'tabSize') {
newOpts.indentSize = newOpts.tabSize || creationOpts.tabSize;
} else {
newOpts.indentSize = newConfiguration.indentSize;