monaco-editor icon indicating copy to clipboard operation
monaco-editor copied to clipboard

[Bug] "Developer: Inspect Editor Tokens and Scopes" causes error

Open Christiano300 opened this issue 1 year ago • 1 comments

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?

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: image

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);

Christiano300 avatar Apr 07 '24 09:04 Christiano300

You should open the issue on that repo, because that error doesn't come from monaco-editor itself

CGNonofr avatar Apr 29 '24 08:04 CGNonofr