Skip to content

Commit

Permalink
Fix 'tab-size' Getter
Browse files Browse the repository at this point in the history
  • Loading branch information
evanplaice committed May 25, 2020
1 parent 2e14de1 commit 98902af
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion index.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/wc-monaco-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class WCMonacoEditor extends HTMLElement {

get tabSize () { return this.editor.tabSize; }
set tabSize (value) {
this.editor.getModel().updateOptions({ tabSize: 2 });
this.editor.getModel().updateOptions({ tabSize: value });
}

constructor () {
Expand Down

0 comments on commit 98902af

Please sign in to comment.