monaco-editor
monaco-editor copied to clipboard
[Bug] "Developer: Inspect Editor Tokens and Scopes" causes error
Reproducible in vscode.dev or in VS Code Desktop?
- [X] Not reproducible in vscode.dev or VS Code Desktop
Reproducible in the monaco editor playground?
- [X] Not reproducible in the monaco editor playground
Monaco Editor Playground Link
No response
Monaco Editor Playground Code
No response
Reproduction Steps
No response
Actual (Problematic) Behavior
The syntax highlighting for my language wasn't working, so I tried to open the tokenization inspector, which resulted in this alert:
Expected Behavior
Expected the Token inspector to open up
Additional Context
I am using the monaco-editor-wrapper, but I don't think it causes the issue. I also can't reproduce this issue anywhere else. This is the minimal reproducible example I could get.
const wrapper = new MonacoEditorLanguageClientWrapper();
const userConfig: UserConfig = {
wrapperConfig: {
editorAppConfig: {
$type: "classic",
useDiffEditor: false,
languageId: "json"
},
},
};
const htmlElement = document.getElementById("monaco-editor-root")!;
await wrapper.initAndStart(userConfig, htmlElement);
You should open the issue on that repo, because that error doesn't come from monaco-editor itself