Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only first element is rendered in autocompletion preview #234481

Open
scarf005 opened this issue Nov 23, 2024 · 1 comment
Open

Only first element is rendered in autocompletion preview #234481

scarf005 opened this issue Nov 23, 2024 · 1 comment
Assignees

Comments

@scarf005
Copy link

scarf005 commented Nov 23, 2024

Type: Bug

_20241124_031529.webm

reproduction:

write following typescript code

type Foo = "A" | "B" | "C"
const a: Foo = ""

move cursor at "" then trigger autocompletion (e.g ctrl+space). only A is shown in preview, and B and C doesn't get rendered.

this also happens in Code 1.95.3

VS Code version: Code 1.95.2 (e865366, 2024-11-07T11:07:22.054Z)
OS version: Linux x64 6.10.12-200.fc40.x86_64
Modes:
Remote OS version: Linux x64 6.10.12-200.fc40.x86_64

System Info
Item Value
CPUs AMD Ryzen 5 5600G with Radeon Graphics (12 x 4265)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
webnn: disabled_off
Load (avg) 3, 3, 3
Memory (System) 30.68GB (6.90GB free)
Process Argv --folder-uri vscode-remote://attached-container+6665646f7261//home/scarf/repo/etc/one-time-contribution/git
Screen Reader no
VM 0%
DESKTOP_SESSION plasma
XDG_CURRENT_DESKTOP KDE
XDG_SESSION_DESKTOP KDE
XDG_SESSION_TYPE wayland
Item Value
Remote Container registry.fedoraproject.org/fedora:latest (fedora)
OS Linux x64 6.10.12-200.fc40.x86_64
CPUs AMD Ryzen 5 5600G with Radeon Graphics (12 x 4245)
Memory (System) 30.68GB (6.90GB free)
VM 0%
Extensions (120)
Extension Author (truncated) Version
codesnap adp 1.3.4
vscode-userscript adp 1.3.2
open-folder-in-explorer adr 1.2.0
vscode-nginx-conf ahm 0.3.5
TabOut alb 0.2.2
pug ama 1.0.1
tsl-problem-matcher amo 0.6.2
vscode-subtitles ast 0.4.0
brainfuck-syntax att 0.0.1
github-markdown-preview bie 0.3.0
jsdoc-markdown-highlighting bie 0.0.1
lit-html bie 1.11.1
markdown-checkbox bie 0.4.0
markdown-emoji bie 0.3.0
markdown-footnotes bie 0.1.1
markdown-mermaid bie 1.27.0
markdown-preview-github-styles bie 2.1.0
markdown-yaml-preamble bie 0.1.0
vscode-fish bma 1.0.38
mermaid-markdown-syntax-highlighting bpr 1.7.0
ruff cha 2024.56.0
vscode-astyle chi 0.9.0
path-intellisense chr 2.9.0
package-json-upgrade cod 3.1.0
gitignore cod 0.9.0
doxdocgen csc 1.4.0
shebang-language-associator dav 1.4.0
vscode-deno den 3.42.0
dhall-lang dha 0.0.4
vscode-dhall-lsp-server dha 0.0.4
vscode-generate-getter-setter DSK 0.5.0
gitlens eam 16.0.3
EditorConfig Edi 0.16.4
dependi fil 0.7.13
shell-format fox 7.2.5
copilot Git 1.245.0
copilot-chat Git 0.22.4
vscode-github-actions git 0.27.0
vscode-pull-request-github Git 0.101.2024111810
vscode-graphql Gra 0.12.1
vscode-graphql-syntax Gra 1.3.8
vscode-systemd-support han 2.2.0
debug-visualizer hed 2.4.0
crontab-syntax-highlight hog 0.0.2
vscode-env Iro 0.1.0
vscode-codeowners jas 1.1.1
better-cpp-syntax jef 1.27.1
better-shellscript-syntax jef 1.10.0
es6-string-markdown jeo 1.1.2
nix-ide jno 0.3.5
svg joc 1.5.4
gruvbox-material-icon-theme Jon 1.1.5
vscode-gutter-preview kis 0.31.2
vscode-package-json-inspector kri 0.2.0
vscode-clangd llv 0.1.33
color-picker Mar 1.0.0
marp-vscode mar 2.8.0
git-graph mhu 1.30.0
auto-commit-msg Mic 0.27.2
language-gettext mro 0.5.0
vscode-docker ms- 1.29.3
vscode-language-pack-ko MS- 1.95.2024103009
vscode-dotnet-runtime ms- 2.2.3
python ms- 2024.20.0
vscode-pylance ms- 2024.11.101
jupyter ms- 2024.10.0
jupyter-keymap ms- 1.1.2
jupyter-renderers ms- 1.0.21
vscode-jupyter-cell-tags ms- 0.1.9
vscode-jupyter-slideshow ms- 0.1.6
remote-containers ms- 0.388.0
remote-ssh ms- 0.115.1
remote-ssh-edit ms- 0.87.0
vscode-remote-extensionpack ms- 0.26.0
live-server ms- 0.4.15
remote-explorer ms- 0.4.3
vscode-typescript-next ms- 5.8.20241122
export-typescript msc 0.4.2
color-highlight nau 2.8.0
linux-desktop-file nic 0.0.21
vscode-mogami nin 0.0.37
vscode-twoslash-queries Ort 1.4.0
inline-html pus 0.3.10
sqlite-viewer qwt 0.9.5
diff raf 0.0.1
vscode-yaml red 1.15.0
schemastore rem 1.0.192
llvm-ir rev 1.0.5
llvm RRe 0.2.0
rust-analyzer rus 0.4.2193
vscode-coverage-gutters rya 2.12.0
HOCON sab 0.0.1
scala sca 0.5.8
metals sca 1.43.0
uridecode sry 0.3.6
vscode-standard sta 2.1.3
lua sum 3.13.2
ninja sur 0.0.1
rust-pack Swe 0.3.38
even-better-toml tam 0.19.2
markdown-links tch 0.8.0
ayu tea 1.0.5
open-in-browser tec 2.0.0
vscode-markdown-paste-image tel 1.3.1
python-tox the 1.0.0
shellcheck tim 0.37.1
cron-explained tum 1.3.1
vscode-choosealicense ult 0.9.4
errorlens use 3.20.0
intellicode-api-usage-examples Vis 0.2.9
vscodeintellicode Vis 1.3.2
vscode-conventional-commits viv 1.26.0
vscode-mermaid-preview vst 1.6.3
vscode-wakatime Wak 24.9.1
vscode-import-cost wix 3.3.0
pretty-ts-errors Yoa 0.6.0
gitconfig-lsp yy0 0.10.2
markdown-all-in-one yzh 3.6.2
material-theme zhu 3.17.6
vscode-open-in-github ziy 1.3.6

(8 theme extensions excluded)

Copy link

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.95.3. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants