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
Typing repeated dots in js expands to first suggestion #130096
Comments
Controlled by And also it works OKish¹ for "rest"-places @swantzter is it reproducible for you when you add ¹ - inconsistent (e.g. no trigger for functions parameters) and questionable benefit for rest places inside of |
@IllusionMH The specific place I had this happen the most was in an "object rest" in an arrow function for an array method callback, for example I also found that if the load on my computer is high I can avoid it by typing faster than the suggestions can load (which seems expected) |
I think this was introduced with commit 76885d7 but I'm not 💯 about that. |
@jayandcatchfire looks like you are correct. In JS/TS files suggestions are triggered when user types first 1.60-insiders has |
@mjbvz may I ask what's the scenario that I should check, I tried
Every dot on the last line will trigger the auto complete. |
@rebornix Try typing inside an object or array literal. microsoft/TypeScript#45436 has a simple code example, for example: const abc = {};
({ }); // type inside here
([ ]); // or here The first three dots should not accept |
@rebornix I think it's valid place to trigger and accept suggestions. There are no ASI and it's valid to use property access right after object literal |
I'm still having this issue of spread operator not respected rather abrupted by VSCode's auto-select of first suggestion on each dot type.
Edit: It appears the commit fixing this issue has been merged on 13th August, which is 9 days after the latest 1.59 release. @mjbvz can you shed some information about my question above? Thnx. |
1.60 will be released in early September. In your case you are more interested in July 2021 Recovery release that is tracked in #130212 |
No indication of any release date for that milestone or am I missing something? |
No date there. As mentioned in #130096 (comment) in the meantime you can:
|
IDK if this type of suggestion is allowed but I just put this in the vscode snippets: |
It's unnecessary as 1.59.1 already released and contains fix |
Issue Type: Bug
For the past couple days when I type , for example
...rest
the first suggested "property" get's automatically expanded when i enter the second and third dot, resulting in something like.name.name.rest
meaning I have to do something like .←.←.→→restVS Code version: Code - Insiders 1.59.0-insider (cead2f6, 2021-08-03T16:24:47.105Z)
OS version: Windows_NT x64 10.0.19043
Restricted Mode: No
System Info
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Extensions (38)
A/B Experiments
The text was updated successfully, but these errors were encountered: