#19511 Adopt to language based settings for model configurations

This commit is contained in:
Sandeep Somavarapu
2017-01-30 16:51:29 +01:00
parent 25af6cd6bc
commit 6a4016f1c6
16 changed files with 190 additions and 153 deletions

View File

@@ -210,7 +210,7 @@ export class MainThreadTextEditor {
if (newConfiguration.tabSize === 'auto' || newConfiguration.insertSpaces === 'auto') {
// one of the options was set to 'auto' => detect indentation
let creationOpts = this._modelService.getCreationOptions();
let creationOpts = this._modelService.getCreationOptions(this._model.getLanguageIdentifier().language);
let insertSpaces = creationOpts.insertSpaces;
let tabSize = creationOpts.tabSize;