-
Notifications
You must be signed in to change notification settings - Fork 4k
Open
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bughelp wantedIssues identified as good community contribution opportunitiesIssues identified as good community contribution opportunitiesinline-completions
Milestone
Description
Reproducible in vscode.dev or in VS Code Desktop?
- Not reproducible in vscode.dev or VS Code Desktop
Reproducible in the monaco editor playground?
- Not reproducible in the monaco editor playground
Monaco Editor Playground Link
Monaco Editor Playground Code
monaco.editor.create(document.getElementById('container'), {
value: "function hello() {\n\talert('Hello world!');\n}",
language: 'javascript',
inlineSuggest: {
enabled: true,
}
});
class InlineCompleter {
provideInlineCompletions() {
return {items: [{insertText: '11111'}, {insertText: '22222'}]};
}
freeInlineCompletions() {}
}
monaco.languages.registerInlineCompletionsProvider('javascript', new InlineCompleter());Reproduction Steps
- Trigger the inline completions provider
- Hover over suggested text so that action bar shows up
- Click three-dot menu in action bar
- Notice there are no styles applied to the three-dot menu (bug)
Actual (Problematic) Behavior
The three-dot menu does not have any styling applied to it. It looks like it is added to the DOM outside of the .monaco-editor context and therefore thinks that none of the styling variables exist. The result is that the menu is unstyled.
Expected Behavior
The three-dot menu for inline completions action bar should have styling applied to it.
Additional Context
No response
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 bughelp wantedIssues identified as good community contribution opportunitiesIssues identified as good community contribution opportunitiesinline-completions