-
Similar to how microsoft/monaco-json#10 enables consumers to enable / disable modes (formatters), it would be useful to have this option for typescript / javascript as well. I think at the moment |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
We have the same issue for
I was able to get around it by simply deferring the registration using a timeout which works in our specific use case but is less than ideal 🤷♂️
|
Beta Was this translation helpful? Give feedback.
-
const htmlDefaults = monaco.languages.html.htmlDefaults
htmlDefaults.setModeConfiguration({
...htmlDefaults.modeConfiguration,
documentFormattingEdits: false,
documentRangeFormattingEdits: false,
}) this code can disable the default html formatter |
Beta Was this translation helpful? Give feedback.
-
thank you very much @troy351 |
Beta Was this translation helpful? Give feedback.
this code can disable the default html formatter