monaco-editor
monaco-editor copied to clipboard
[Bug] Suggestion widget width is not commensurate with content width
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?
- [ ] Not reproducible in the monaco editor playground
Monaco Editor Playground Link
https://microsoft.github.io/monaco-editor/playground.html?source=v0.45.0#example-extending-language-services-completion-provider-example
Monaco Editor Playground Code
It's unchanged from the link provided.
Reproduction Steps
Resize the window so that it's as narrow as possible (width is small). Type something that will open the suggestion widget. The widget will be wider than the content by a large margin.
Actual (Problematic) Behavior
The widget will be wider than the content by a large margin.
Expected Behavior
The widget would be as wide as it becomes when you double click the edge of the widget. It would also be great to be able to specify minimum width / maximum width or otherwise specify the dimensions of the suggestion widget, but I can't find that functionality in the documentation.