xabikos / vscode-javascript

Contains the code snippets for JavaScript (ES6) development in VS Code editor
MIT License
325 stars 134 forks source link

JS Intellisense not working after opening parens with snippet #101

Open kgalliher opened 2 years ago

kgalliher commented 2 years ago

Issue Type: Bug

  1. Declare a variable myVarName = 1;
  2. Use a snippet to insert a function clg -> console.log()
  3. Try typing the first letters of the variable. No intellisense for myVarName

Workaround: Move the cursor out of the parenthesis then back in.

Example: Bug: image

Workaround (exit the parenthesis): image

Extension version: 1.8.0 VS Code version: Code 1.66.0 (e18005f0f1b33c29e81d732535d8c0e47cafb0b5, 2022-03-30T05:50:14.623Z) OS version: Windows_NT x64 10.0.19042 Restricted Mode: No

System Info |Item|Value| |---|---| |CPUs|11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz (16 x 2304)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|31.20GB (12.74GB free)| |Process Argv|C:\\data\\parcel-fabric\\ags-log-viewer --crash-reporter-id 8cc9a58a-bbea-4d16-8e26-a7254667eb75| |Screen Reader|no| |VM|0%|
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 pythonvspyl392:30443607 pythontb:30283811 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 pythondataviewer:30285071 vscod805cf:30301675 pythonvspyt200:30340761 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593:30376534 vsc1dst:30438360 pythonvs932:30410667 wslgetstarted:30449410 vsclayoutctrt:30451275 dsvsc009:30452663 pythonvsnew555:30457759 vscscmwlcmc:30438804 pynewfile477:30463512 ```
dogbot commented 2 years ago

Same issue with rqr. It generates require('') but no path completion inside the quotes. Workaround is super-tedious: delete the quotes and put in one quote.

Might as well just type the whole thing out