vscode: Suggest widget does not resize properly when number of suggestions increases.
Issue Type: Bug
When there is a small number of suggestions a small suggest widget is shown. If later a larger number of suggestions is given then the box remains at the small size and it isn’t obvious that the rest of the suggestions gets cut off. The size seems to be based on the first box in a sequence of suggestions.
As an example here is a case using the codeql extension. Typing m.
in the following ends up first suggesting m
and then tries to suggest methods on Bar
(foo
, toString
, getAQlClass
) but with a small box which only shows foo
(although you can get the rest by scrolling.
newtype TFoo = Foo()
select "test"
class Bar extends Foo { predicate foo() {any()} string toString() {any()}}
predicate foo(Bar m) {
m.
}
I would expect to see the same size box as I get with Ctrl-Space
the second time around.
It seems like all of the default providers always show many suggestions or never end up showing more suggestions so I couldn’t find a case to reproduce.
This seems to be a regression since 1.50.1 where a full sized suggestion widget was shown for the second set of suggestions
It seems to happen on macos and linux (windows not tested).
VS Code version: Code 1.51.1 (e5a624b788d92b8d34d1392e4c4d9789406efe8f, 2020-11-10T23:31:29.624Z) OS version: Linux x64 4.19.0-12-amd64
System Info
Item | Value |
---|---|
CPUs | Intel® Core™ i7-4810MQ CPU @ 2.80GHz (8 x 3219) |
GPU Status | 2d_canvas: enabled flash_3d: enabled flash_stage3d: enabled flash_stage3d_baseline: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on oop_rasterization: disabled_off opengl: enabled_on protected_video_decode: unavailable_off rasterization: disabled_software skia_renderer: enabled_on video_decode: unavailable_off vulkan: disabled_off webgl: enabled webgl2: enabled |
Load (avg) | 2, 2, 2 |
Memory (System) | 31.02GB (13.21GB free) |
Process Argv | –no-sandbox --unity-launch --crash-reporter-id 66c77ce2-2dd6-4bac-9c9c-633de1e518e9 |
Screen Reader | no |
VM | 0% |
DESKTOP_SESSION | gnome |
XDG_CURRENT_DESKTOP | GNOME |
XDG_SESSION_DESKTOP | gnome |
XDG_SESSION_TYPE | wayland |
Extensions (19)
Extension | Author (truncated) | Version |
---|---|---|
vscode-eslint | dba | 2.1.13 |
gitlens | eam | 11.0.1 |
tsfmt-vscode | ete | 0.3.3 |
vscode-codeql | Git | 1.3.6 |
vscode-test-explorer | hbe | 2.19.3 |
vscode-graphviz | joa | 0.0.6 |
csharp | ms- | 1.23.6 |
python | ms- | 2020.11.367453362 |
jupyter | ms- | 2020.11.358541065 |
vscode-groovy-lint | Nic | 1.3.0 |
java | red | 0.71.0 |
rust | rus | 0.7.8 |
vscode-lldb | vad | 1.6.0 |
vscodeintellicode | Vis | 1.2.10 |
vscode-java-debug | vsc | 0.29.0 |
vscode-java-dependency | vsc | 0.15.0 |
vscode-java-pack | vsc | 0.10.0 |
vscode-java-test | vsc | 0.26.0 |
vscode-maven | vsc | 0.25.0 |
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (11 by maintainers)
This latest. In order to help you I need steps to reproduce. Please try again the sequence that you described and let me know if you reproduce or not
Did you resize the widget before? Just by itself the widget has no “custom” size and always shows 12 items. Once you have resized it the custom size will be reused.