Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 tasks done
Christiano300 opened this issue Apr 7, 2024 · 1 comment
Open
2 tasks done

Comments

@Christiano300
Copy link

Reproducible in vscode.dev or in VS Code Desktop?

  • 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);
@CGNonofr
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants