688
689
public updateOptions(_newOpts: model.ITextModelUpdateOptions): void {
691
>
const tabSize = (typeof _newOpts.tabSize !== 'undefined') ? _newOpts.tabSize : this._options.tabSize;
692
>
const indentSize = (typeof _newOpts.indentSize !== 'undefined') ? _newOpts.indentSize : this._options.originalIndentSize;
693
>
const insertSpaces = (typeof _newOpts.insertSpaces !== 'undefined') ? _newOpts.insertSpaces : this._options.insertSpaces;
694
>
const trimAutoWhitespace = (typeof _newOpts.trimAutoWhitespace !== 'undefined') ? _newOpts.trimAutoWhitespace : this._options.trimAutoWhitespace;
695
>
const bracketPairColorizationOptions = (typeof _newOpts.bracketColorizationOptions !== 'undefined') ? _newOpts.bracketColorizationOptions : this._options.bracketPairColorizationOptions;
696
>
697
>
const newOpts = new model.TextModelResolvedOptions({
698
>
tabSize: tabSize,
699
>
indentSize: indentSize,
700
>
insertSpaces: insertSpaces,
701
>
defaultEOL: this._options.defaultEOL,
702
>
trimAutoWhitespace: trimAutoWhitespace,
703
>
bracketPairColorizationOptions,
704
>
});
705
>
706
>
if (this._options.equals(newOpts)) {
707
return;
708
}