Skip to content

Clicking on the quick fix light bulb doesn't show the context menu #574

@rcjsuen

Description

@rcjsuen

monaco-editor version: Monaco Editor Playground

Browser:
Google Chrome 60.0.3112.113 (Official Build)
Microsoft Edge 38.14393.1066.0 EdgeHTML 14.14393

OS: Windows 10

  1. Open the Monaco Editor Playground.
  2. Replace the JavaScript with the following snippet.
monaco.languages.registerCodeActionProvider("json", {
    provideCodeActions: function(model, range, context, token) {
        return [
            {
                command: {
                    id: "command.id",
                    title: "command title"
                },
                score: 0
            }
        ]
    }
});

monaco.editor.create(document.getElementById("container"), {
	value: "{ \"key\": \"value\" }",
	language: "json",
    glyphMargin: true
});
  1. Run the code.
  2. The light bulb should appear. If not, click inside the JSON string. The light bulb should then appear if it's not already visible.
  3. Click on the light bulb, no context menu will appear.
  4. Hit CTRL + . to get the command to popup. The menu will appear but there the menu item has no text in it.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions