microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.15k stars 28.53k forks source link

Auto import in js/ts #187315

Closed erfanGharib closed 1 year ago

erfanGharib commented 1 year ago

Issue Type: Bug

Hello to the VS Code team,

I have been working with this application for a long time, and every time I encounter an issue, I tend to ignore it and continue coding. However, this time, the issue is bothering me a lot.

The problem is that as the project becomes bigger, the auto import feature for new files stops working. please fix this issue

thanks.

VS Code version: Code 1.67.2 (c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5, 2022-05-17T18:15:52.058Z) OS version: Windows_NT x64 10.0.19044 Restricted Mode: No

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz (4 x 2667)| |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: unavailable_off
opengl: enabled_on
rasterization: unavailable_off
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: unavailable_off
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|4.00GB (1.00GB free)| |Process Argv|--enable-proposed-api TabNine.tabnine-vscode --crash-reporter-id 77838dcf-5b03-4a49-90f7-3ae499694d69| |Screen Reader|no| |VM|36%|
Extensions (26) Extension|Author (truncated)|Version ---|---|--- persian-lorem|Abo|1.0.1 html-snippets|abu|0.2.1 jest-snippets|and|1.9.1 jsx-html-tags|ang|1.0.1 vscode-tailwindcss|bra|0.9.11 simple-react-snippets|bur|1.2.7 css-snippet|CSS|0.1.9 vscode-eslint|dba|2.4.2 javascript-ejs-support|Dig|1.3.3 vscode-html-css|ecm|1.13.1 code-runner|for|0.12.0 go|gol|0.39.0 python|ms-|2023.12.0 jupyter|ms-|2023.5.1101742258 jupyter-renderers|ms-|1.0.15 cpptools|ms-|1.16.3 material-icon-theme|PKi|4.28.0 prisma|Pri|4.16.2 cpp-format|psy|1.2.0 LiveServer|rit|5.7.9 todotasks|san|0.5.0 ejs-snippets|Tao|0.1.0 vscode-readme-pattern|tho|1.3.0 lorem-ipsum|Tyr|1.3.1 luna-paint|Tyr|0.16.0 JavaScriptSnippets|xab|1.8.0 (1 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vstes627:30244334 pythontb:30283811 pythonptprofiler:30281270 vshan820:30294714 vstes263cf:30335440 vscoreces:30445986 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593cf:30376535 pythonvs932:30410667 py29gd2263:30776702 vscaat:30438848 vsclangdc:30486549 c4g48928:30535728 dsvsc012cf:30540253 pynewext54:30695312 azure-dev_surveyone:30548225 3biah626:30602489 89544117:30613380 pythonsymbol12:30671437 showlangstatbar:30737416 pythonms35:30701012 pythonfmttext:30731395 pythoncmv:30756943 fixshowwlkth:30771522 hideindicator:30766889 pythongtdpath:30769146 bgfeh915:30780428 pythonnosm12tcf:30779713 pythonidxpt:30784022 pythonnocebcf:30776496 h7j2d465:30772216 cmakesidepanelv2:30779593 ```
VSCodeTriageBot commented 1 year ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.80.0. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

IllusionMH commented 1 year ago

/needsMoreInfo

Do you have proper config file that includes all necessary files into the project? What's your config and what files have problems when you try to import them? See https://code.visualstudio.com/Docs/languages/javascript#_javascript-projects-jsconfigjson

Also make sure to update VS Code to latest version as yours is unsupported for more than a year

VSCodeTriageBot commented 1 year ago

Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.

Happy Coding!

VSCodeTriageBot commented 1 year ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!