Skip to content

Auto import doesn't work unless it already imported from another file #46700

Closed
@jespertheend

Description

@jespertheend

Issue Type: Bug

This is a continuation of microsoft/vscode#129031

  1. Unzip autoImportBug.zip and open it in vscode
  2. Place your cursor at Foo in test1.js and press ctrl + space
  3. Uncomment line 2 in test2.js
  4. Try step 2 again
Screen.Recording.2021-11-05.at.10.12.30.mp4.mp4

VS Code version: Code - Insiders 1.63.0-insider (Universal) (552af97, 2021-11-05T05:15:13.016Z)
OS version: Darwin x64 20.6.0
Restricted Mode: No

System Info
Item Value
CPUs Intel(R) Core(TM) i7-6920HQ CPU @ 2.90GHz (8 x 2900)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 10, 10, 9
Memory (System) 16.00GB (0.72GB free)
Process Argv --crash-reporter-id a8077276-b3ec-4c71-8c24-fdfb35f5f811
Screen Reader no
VM 0%
Extensions (7)
Extension Author (truncated) Version
Bookmarks ale 13.2.2
vscode-eslint dba 2.2.2
EditorConfig Edi 0.16.4
prettier-vscode esb 9.0.0
copilot Git 1.7.3689
hexeditor ms- 1.8.2
material-icon-theme PKi 4.10.0
A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythontb:30258533
pythonvspyt551cf:30291413
pythonptprofiler:30281269
vsdfh931:30280409
vshan820:30294714
pythondataviewer:30285072
vscod805:30301674
pythonvspyt200:30323110
vsccppwt:30382699
bridge0708:30335490
pygetstartedt2:30353727
bridge0723:30353136
pythonrunftest32:30365365
pythonf5test824:30361779
javagetstartedt:30350119
pythonvspyt187:30365360
pydsgst2:30361790
vsaa593:30376534

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already created

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions