In monaco-editor, each language has a configuration (type of comments, foldind, etc.). So if you are in html mode, the "toggle comment" key wraps the code in <!-- -->, if you are in css, the comments become /* */, etc.
This behavior stops working correctly if we have languages with embedded modes (ex. html with
Hello,
In monaco-editor, each language has a configuration (type of comments, foldind, etc.). So if you are in html mode, the "toggle comment" key wraps the code in
<!-- -->
, if you are in css, the comments become/* */
, etc.This behavior stops working correctly if we have languages with embedded modes (ex. html with