We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
monaco-editor version: 0.17.1 Browser: Chrome OS: Window 10
Steps or JS usage snippet reproducing the issue:
I used to use getOneIndent line 2268. But now it's removed. What API instead it?
getOneIndent
The text was updated successfully, but these errors were encountered:
Does this help https://microsoft.github.io/monaco-editor/api/classes/monaco.editor.textmodelresolvedoptions.html? You can get these by calling editor.getModel().getOptions()
editor.getModel().getOptions()
Sorry, something went wrong.
@spahnke Thank you. I implemented it by myself.
const getOneIndent = (editor) => { const options = editor.getModel().getOptions() return options.insertSpaces ? ' '.repeat(options.tabSize) : '\t' }
https://github.com/microsoft/vscode/blob/24f62626b222e9a8313213fb64b10d741a326288/src/vs/editor/common/model/textModel.ts#L663
No branches or pull requests
monaco-editor version: 0.17.1
Browser: Chrome
OS: Window 10
Steps or JS usage snippet reproducing the issue:
I used to use
getOneIndent
line 2268. But now it's removed. What API instead it?The text was updated successfully, but these errors were encountered: