-
Notifications
You must be signed in to change notification settings - Fork 4k
Closed
microsoft/vscode
#41927Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug
Description
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
- Open the Monaco Editor Playground.
- 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
});- Run the code.
- The light bulb should appear. If not, click inside the JSON string. The light bulb should then appear if it's not already visible.
- Click on the light bulb, no context menu will appear.
- Hit CTRL + . to get the command to popup. The menu will appear but there the menu item has no text in it.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug