mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 19:44:25 +01:00
#19511 Adopt to language based settings for model configurations
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user