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

Intellisense import suggestions in JS/TS files do not work #58115

Closed
grentank opened this issue Apr 7, 2024 · 4 comments
Closed

Intellisense import suggestions in JS/TS files do not work #58115

grentank opened this issue Apr 7, 2024 · 4 comments
Labels
Duplicate An existing issue was already created

Comments

@grentank
Copy link

grentank commented Apr 7, 2024

Does this issue occur when all extensions are disabled?: Yes

Type: Bug

How to reproduce:

  1. Initialize a React project
  2. Install some 3rd party libraries (for instance: axios, react-bootstrap, mui, etc.)
  3. Create/open a file App.js or App.jsx
  4. Begin to type a name for an exported entity from the aforementioned library (for example: axios, <Container>, <Grid>, <Image>, etc.)

Expected result:

  1. Intellisense shows an import suggestion for the entity. After selecting one of the suggestions it adds an import on top of the file (for example import axios from 'axios', import {Image} from 'react-bootstrap')
  2. If Intellisense fails to do that for the first time, manually write the desired import. After that Intellisense should update its import suggestion list. It is expected that the same entity imported in another file should be in the Intellisense import suggestions.

Actual result:

  1. Intellisense does not show any suggestions to import the desirable entity.
  2. After manually adding the import (for example import axios from 'axios') Intellisense still fails to show the same suggestion in another file.

Some info

setting.json

is almost empty

extensions

all disabled except for WSL

Ways to initialize the React project

To reporduce the issue:

  1. Use the npm create vite@latest command.
  2. OR create an empty directory, input npm init -y && npm i react react-dom axios

VS Code version: Code 1.88.0 (5c3e652f63e798a5ac2f31ffd0d863669328dc4c, 2024-04-03T13:26:18.741Z)
OS version: Windows_NT x64 10.0.22631
Modes:
Remote OS version: Linux x64 5.15.146.1-microsoft-standard-WSL2

System Info
Item Value
CPUs 12th Gen Intel(R) Core(TM) i7-12650H (16 x 2688)
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
Load (avg) undefined
Memory (System) 15.63GB (2.31GB free)
Process Argv --folder-uri=vscode-remote://wsl+Ubuntu-22.04/home/grentank/elbrus/temp/auth-csr --remote=wsl+Ubuntu-22.04 --crash-reporter-id b17d2aeb-39ed-4289-94df-f96ccf46bd82
Screen Reader no
VM 0%
Item Value
Remote WSL: Ubuntu-22.04
OS Linux x64 5.15.146.1-microsoft-standard-WSL2
CPUs 12th Gen Intel(R) Core(TM) i7-12650H (16 x 2688)
Memory (System) 7.57GB (6.14GB free)
VM 0%
Extensions (1)
Extension Author (truncated) Version
remote-wsl ms- 0.88.0
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:30899288
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
welcomedialogc:30910334
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
h48ei257:31000450
pythontbext0:30879054
accentitlementsc:30995553
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
d34g3935:30971562
fegfb526:30981948
bg6jg535:30979843
ccp2r3:30993541
dsvsc020:30976470
pythonait:31006305
gee8j676:31009558
dsvsc021:30996838
gd77d436:30999572

Tasks

Preview Give feedback
No tasks being tracked yet.
@grentank grentank changed the title Import suggestions in JS/TS files do not work Intellisense import suggestions in JS/TS files do not work Apr 7, 2024
@greatgraphicdesign
Copy link

This broke for me as well 4 days ago with the update to Version: 1.88.0 (Universal) on Mac Ventura (13.6.4)

@Speedforce12
Copy link

I have been experiencing this same issue as well with next js projects since the latest update

@mjbvz mjbvz transferred this issue from microsoft/vscode Apr 8, 2024
@mjbvz mjbvz removed their assignment Apr 8, 2024
@andrewbranch
Copy link
Member

Duplicate of #58113 / #57740

@andrewbranch andrewbranch closed this as not planned Won't fix, can't repro, duplicate, stale Apr 8, 2024
@andrewbranch andrewbranch added the Duplicate An existing issue was already created label Apr 8, 2024
@techUdayMungalpara
Copy link

I also face the same issue after updaing vs code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

6 participants