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

A single _ (underscore/discard) gets auto-completed to something else #7623

Open
detzt opened this issue Oct 3, 2024 · 2 comments
Open

A single _ (underscore/discard) gets auto-completed to something else #7623

detzt opened this issue Oct 3, 2024 · 2 comments
Assignees
Milestone

Comments

@detzt
Copy link

detzt commented Oct 3, 2024

Type: Bug

When I want to use a discard in a C# project, I type _ usually followed by a space or comma, which triggers the auto-completion.
For other words this is fine, but a single underscore is not part of the autocompletion list, so it gets completed to some public class name that contains an underscore.
Can you add the discard character to that autocompletion list?

Extension version: 2.45.25
VS Code version: Code 1.93.1 (38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40, 2024-09-11T17:20:05.685Z)
OS version: Windows_NT x64 10.0.19045
Modes:

System Info
Item Value
CPUs AMD Ryzen 5 5600X 6-Core Processor (12 x 3693)
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: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 31.95GB (15.39GB free)
Process Argv
Screen Reader no
VM 0%
@detzt detzt changed the title A single _ (underscore/discard) gets auto-completed to some name A single _ (underscore/discard) gets auto-completed to something else Oct 3, 2024
@ARKye03
Copy link

ARKye03 commented Oct 8, 2024

+1 annoying issue, trying to set up a discard like:

_ = ReturnIntMethod();

After typing _ and pressing space it ends up in a random thing containing _.
For example:

SHA3_256 = ReturnIntMethod();

@dibarbet dibarbet added this to the October2024 milestone Oct 8, 2024
@dibarbet dibarbet self-assigned this Oct 8, 2024
@dibarbet
Copy link
Member

dibarbet commented Oct 9, 2024

Not 100% sure yet, but potentially related to microsoft/language-server-protocol#1791
We're getting an 'invoked' trigger kind which may be causing us to hard select the item (including space as a commit char). Still investigating

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

No branches or pull requests

3 participants