Editor model creation options do not honour folder scope yet (#32695)

* Editor model creation options do not honour folder scope yet (fixes #29119)

* fix tests
This commit is contained in:
Benjamin Pasero
2017-08-24 08:02:21 +02:00
committed by GitHub
parent 3a69df335e
commit 8b7a2e6d2b
6 changed files with 63 additions and 20 deletions

View File

@@ -179,7 +179,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(this._model.getLanguageIdentifier().language);
let creationOpts = this._modelService.getCreationOptions(this._model.getLanguageIdentifier().language, this._model.uri);
let insertSpaces = creationOpts.insertSpaces;
let tabSize = creationOpts.tabSize;