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? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Steps to reproduce
tab
What was expected
Since in the options insertSpaces is set to true, the content should have been formatted with indent type as spaces.
insertSpaces
spaces
The issue seems to be in monaco-html. https://github.com/microsoft/monaco-html/blob/master/src/htmlWorker.ts#L42 Instead of taking passed in options, the global options are taken into consideration to format the content.
monaco-html
monaco-editor version: 0.20.0 Browser: Chrome OS: macOS Playground code that reproduces the issue:
monaco.editor.create(document.getElementById("container"), { value: "<html><head></head><body><div><div><div></div></div></div></body></html>", language: "html", insertSpaces: true, tabSize: 2, renderWhitespace: true, });
The text was updated successfully, but these errors were encountered:
@alexdima Let me know if you guys are willing to accept a PR for this.
Sorry, something went wrong.
@pankajk07 Thanks for looking into this, PR is welcome!
@aeschli microsoft/monaco-html#12
microsoft/monaco-html@0b66311
Merge pull request #12 from pankajk07/master
f379dfc
Fixes microsoft/monaco-editor#2101
aeschli
No branches or pull requests
Steps to reproduce
tab
as the indent type.What was expected
Since in the options
insertSpaces
is set to true, the content should have been formatted with indent type asspaces
.The issue seems to be in
monaco-html
. https://github.com/microsoft/monaco-html/blob/master/src/htmlWorker.ts#L42Instead of taking passed in options, the global options are taken into consideration to format the content.
monaco-editor version: 0.20.0
Browser: Chrome
OS: macOS
Playground code that reproduces the issue:
The text was updated successfully, but these errors were encountered: