Skip to content

Automatic imports for react function not working in js but resolved correctly in ts #30549

Description

VSCode doesn't show autoimport suggestions on my machine.

I've reproduced this issue on previous stable release and on insiders version (clean install, no user settings). code --verbose and console in dev. tools shows nothing suspicious.

On launch it creates operation_log.txt in temp folder:

[11884:10884:0314/222311.384:VERBOSE1:crash_service_main.cc(81)] Session start. cmdline is [--reporter-url=https://rink.hockeyapp.net/api/2/apps/9dca90f9ee8449a2b45bb36238fb0879/crashes/upload --application-name=VSCode "--crashes-directory=C:\Users\Александр\AppData\Local\Temp\VSCode Crashes" --v=1]
[11884:10884:0314/222311.391:VERBOSE1:crash_service.cc(150)] window handle is 002C059C
[11884:10884:0314/222311.391:VERBOSE1:crash_service.cc(291)] pipe name is \\.\pipe\VSCode Crash Service
dumps at C:\Users\Александр\AppData\Local\Temp\VSCode Crashes
[11884:10884:0314/222311.391:VERBOSE1:crash_service.cc(295)] checkpoint is C:\Users\Александр\AppData\Local\Temp\VSCode Crashes\crash_checkpoint.txt
server is https://rink.hockeyapp.net/api/2/apps/9dca90f9ee8449a2b45bb36238fb0879/crashes/upload
maximum 128 reports/day
reporter is electron-crash-service
[11884:10884:0314/222311.393:VERBOSE1:crash_service_main.cc(95)] Ready to process crash requests
[11884:12436:0314/222311.393:VERBOSE1:crash_service.cc(325)] client start. pid = 11636
[11884:12436:0314/222311.481:VERBOSE1:crash_service.cc(325)] client start. pid = 14128
[628:9556:0314/222311.519:VERBOSE1:crash_service_main.cc(81)] Session start. cmdline is [--reporter-url=https://rink.hockeyapp.net/api/2/apps/9dca90f9ee8449a2b45bb36238fb0879/crashes/upload --application-name=VSCode "--crashes-directory=C:\Users\Александр\AppData\Local\Temp\VSCode Crashes" --v=1]
[628:9556:0314/222311.529:VERBOSE1:crash_service.cc(150)] window handle is 001504C2
[628:9556:0314/222311.530:VERBOSE1:crash_service.cc(291)] pipe name is \\.\pipe\VSCode Crash Service
dumps at C:\Users\Александр\AppData\Local\Temp\VSCode Crashes
[628:9556:0314/222311.530:VERBOSE1:crash_service.cc(295)] checkpoint is C:\Users\Александр\AppData\Local\Temp\VSCode Crashes\crash_checkpoint.txt
server is https://rink.hockeyapp.net/api/2/apps/9dca90f9ee8449a2b45bb36238fb0879/crashes/upload
maximum 128 reports/day
reporter is electron-crash-service
[628:9556:0314/222311.530:ERROR:crash_service.cc(302)] could not start dumper
[11884:13552:0314/222606.151:VERBOSE1:crash_service.cc(334)] client end. pid = 11636
[11884:13552:0314/222606.194:VERBOSE1:crash_service.cc(334)] client end. pid = 14128
[11884:13552:0314/222607.195:VERBOSE1:crash_service.cc(355)] zero clients. exiting
[11884:10884:0314/222607.195:VERBOSE1:crash_service.cc(527)] session ending..
[11884:10884:0314/222607.195:VERBOSE1:crash_service.cc(532)] clients connected :2
clients terminated :2
dumps serviced :0
dumps reported :0
[11884:10884:0314/222607.195:VERBOSE1:crash_service_main.cc(100)] Session end. return code is 0

And it creates a folder vscode-typescript with an empty file tscancellation-6e5026c63e8646d8cd9f.tmp3

Auto imports does work as expected on a different machine. Is there anything i can try to solve this issue?

  • VSCode Version: 1.32.2
  • OS Version: Windows 10 Pro (1809) x64

Steps to Reproduce:

  1. For example, npm install react. Create index.js. Start typing useSta. No auto import suggestions

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScript

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions