luminaxster / syntax-highlighter

An extensible library to highlight (and comment) JSX syntax in the Monaco Editor using Babel. It exposes its AST, so you can add your own syntax-based or custom highlights.

Home Page:https://luminaxster.github.io/syntax-highlighter/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

addJSXCommentCommand doesn't seem to work

habahabahaba opened this issue · comments

With
monaco-editor (0.48.0),
@monaco-editor/react (4.6.0),
@babel/parser (7.24.6),
@babel/traverse (7.24.6),

addJSXCommentCommand doesn't seem to work:
pressing " cmd / ctl " + "/ " on the line with the jsx-component or element, still results in "// " being added at the start of the line.

I just played with your example on codesandbox.io and, after updating @babel/parser to 7.24.6 jsx, commenting stops working.

Same with:
"@babel/parser": "7.24.7",
"@babel/traverse": "7.24.7",
"@monaco-editor/react": "4.6.0",