You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does this issue occur when all extensions are disabled?: Yes
VS Code Version: 1.60.0
OS Version: Windows 10
Something changed about the way VSCode started doing it's auto import suggestions at 1.60.0 and this thread (microsoft/vscode#132299) has several people talking about it but it was closed because a few people had other issues because of a plugin.
VSCode will now only suggest importing variables from my index.ts files rather than the file in the same project.
Open file /src/common/types/test/test.ts and place cursor at the User types on line 5 and hit Ctrl+space to bring up suggestions.
Suggestion should not point to ../.. but ../user/user.
This also created situations with Prisma, the import suggestions now attempt to import .prisma/client rather than @prisma/client
The workaround is that I don't use the auto import and use the Quick fix suggestion list to find the desired path.
Also to be clear, the circular import portion of this isn't demonstrated by this example repo, but I was getting the error Class extends value undefined is not a constructor or null and solved it by manually changing the imports to point directly to the files rather than the re-exports.
The text was updated successfully, but these errors were encountered:
That does seem like a dupe, strange I thought I searched the issues thoroughly. Oops, well, there's some additional info on this one that can be used to help.
Does this issue occur when all extensions are disabled?: Yes
Something changed about the way VSCode started doing it's auto import suggestions at 1.60.0 and this thread (microsoft/vscode#132299) has several people talking about it but it was closed because a few people had other issues because of a plugin.
VSCode will now only suggest importing variables from my index.ts files rather than the file in the same project.
Steps to Reproduce:
/src/common/types/test/test.ts
and place cursor at theUser
types on line 5 and hit Ctrl+space to bring up suggestions.Suggestion should not point to
../..
but../user/user
.This also created situations with Prisma, the import suggestions now attempt to import
.prisma/client
rather than@prisma/client
The workaround is that I don't use the auto import and use the Quick fix suggestion list to find the desired path.
Also to be clear, the circular import portion of this isn't demonstrated by this example repo, but I was getting the error
Class extends value undefined is not a constructor or null
and solved it by manually changing the imports to point directly to the files rather than the re-exports.The text was updated successfully, but these errors were encountered: