vscode: Auto Import not working (Typescript ) after latest update
Issue Type: Bug
Autocomplete imports have not worked for me since latest update. Specifically the list of suggestions that pops up when I’m typing, which normally I press “Tab” to select and automatically add the import statement at the top of the file. The suggestions are still there, but it no longer adds the import statement at the top of the file.
VS Code version: Code 1.60.0 (e7d7e9a9348e6a8cc8c03f877d39cb72e5dfb1ff, 2021-09-01T10:41:52.311Z) OS version: Windows_NT x64 10.0.19042 Restricted Mode: No
System Info
Item | Value |
---|---|
CPUs | AMD Ryzen 9 3900X 12-Core Processor (24 x 3800) |
GPU Status | 2d_canvas: enabled 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 |
Load (avg) | undefined |
Memory (System) | 31.92GB (14.25GB free) |
Process Argv | –crash-reporter-id 34049ddb-b0b3-47a2-b7b3-23771ba5709f |
Screen Reader | no |
VM | 0% |
Extensions (54)
Extension | Author (truncated) | Version |
---|---|---|
better-comments | aar | 2.1.0 |
namespace | adr | 1.1.2 |
to | ami | 0.0.10 |
laravel-extra-intellisense | ami | 0.6.1 |
vscode-django | bat | 1.6.0 |
vscode-intelephense-client | bme | 1.7.1 |
vscode-tailwindcss | bra | 0.6.14 |
simple-react-snippets | bur | 1.2.4 |
npm-intellisense | chr | 1.4.0 |
path-intellisense | chr | 2.4.0 |
vscode-svgviewer | css | 2.0.0 |
vscode-eslint | dba | 2.1.23 |
netcore-snippets | dog | 3.15.1 |
python-extension-pack | don | 1.6.0 |
vscode-html-css | ecm | 1.10.2 |
vscode-npm-script | eg2 | 0.3.22 |
prettier-vscode | esb | 8.1.0 |
comment-anchors | Exo | 1.9.6 |
php-debug | fel | 1.17.0 |
php-intellisense | fel | 2.3.14 |
auto-rename-tag | for | 0.1.8 |
vscode-pull-request-github | Git | 0.30.0 |
gc-excelviewer | Gra | 3.0.44 |
csharpextensions | jch | 1.3.1 |
vscode-position | jtr | 1.0.3 |
auto-comment-blocks | kev | 1.0.1 |
vscode-github | Kni | 0.30.6 |
json-trimmer | log | 0.0.3 |
bash-ide-vscode | mad | 1.11.0 |
MagicPython | mag | 1.1.0 |
vscode-wrap-console-log | mid | 1.7.2 |
vscode-docker | ms- | 1.16.1 |
csharp | ms- | 1.23.15 |
python | ms- | 2021.9.1191016588 |
vscode-pylance | ms- | 2021.9.0 |
jupyter | ms- | 2021.8.2031190714 |
jupyter-keymap | ms- | 1.0.0 |
remote-ssh | ms- | 0.65.7 |
remote-ssh-edit | ms- | 0.65.7 |
vscode-remote-extensionpack | ms- | 0.21.0 |
laravel-blade | one | 1.25.0 |
laravel5-snippets | one | 1.13.0 |
material-icon-theme | PKi | 4.10.0 |
phpdoc-comment-vscode-plugin | rex | 1.3.0 |
lit-plugin | run | 1.2.1 |
vscode-autohotkey | sle | 0.2.2 |
addDocComments | ste | 0.0.8 |
msbuild-project-tools | tin | 0.3.15 |
highlight-matching-tag | vin | 0.10.1 |
vscodeintellicode | Vis | 1.2.14 |
jinja | who | 0.0.8 |
change-case | wma | 1.0.0 |
JavaScriptSnippets | xab | 1.8.0 |
convert-object-to-jsx | zac | 1.0.0 |
(2 theme extensions excluded)
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256859
pythonvspyt639:30300192
pythontb:30283811
pythonvspyt551:30345470
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
pythonvsuse255:30340121
vscod805:30301674
pythonvspyt200:30340761
vscextlangct:30333562
binariesv615:30325510
vsccppwtct:30329789
pythonvssor306:30344512
bridge0708:30335490
pygetstartedt2:30360495
bridge0723:30353136
pythonrunftest32:30361774
pythonf5test824cf:30361778
vsdyn321cf:30356811
pydsgst2:30361792
vscus224:30358039
vssid140:30362080
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 15
- Comments: 31 (6 by maintainers)
@mjbvz Do you imply that it somehow functions in 1.60.0 for you? For me and others in this ticket I believe this is the case: 1.60.0
1.59.1

To clarify, Quick Fix import action functions on 1.60.0, it’s autocomplete that does not.
I used the excellent ”extension bisect” to determine that lit-plugin caused the issue for me. You can probably find your problematic extension the same way
for me disabling lit-plugin extension and reloading vscode re enabled auto imports
@mjbvz I hope this helps https://github.com/artu-ole/vscode-132299
Same here
1.60.1
1.59.1
That said, this is an example with https://github.com/chakra-ui/chakra-ui, other packages are still auto importing in 1.60.1, like https://github.com/react-hook-form/react-hook-form
@viczam yes, just downloaded the prior version and reinstalled