peteypie_
peteypie_
TTCTheo's Typesafe Cult
Created by peteypie_ on 12/29/2023 in #questions
VSCode Intellisense: "Add import from" only suggests relative path for `cn`
I figured it out. I needed to set
"typescript.preferences.importModuleSpecifier": "non-relative"
"typescript.preferences.importModuleSpecifier": "non-relative"
in my VScode settings.json file
5 replies
TTCTheo's Typesafe Cult
Created by peteypie_ on 12/29/2023 in #questions
VSCode Intellisense: "Add import from" only suggests relative path for `cn`
Oof. OK actually I see now that it only worked for the components import because I was already importing things from that alias. If I remove all of the imports from "@/components/ui/dropdown-menu", the Quick Fix menu also only suggests the relative path. So how do I get Intellisense to suggest my import aliases instead of the relative path?
5 replies
TTCTheo's Typesafe Cult
Created by peteypie_ on 12/29/2023 in #questions
VSCode Intellisense: "Add import from" only suggests relative path for `cn`
Note: The import alias "@/lib/utils" does work fine, the issue is that I have to manually type it and Intellisense does not suggest it using the Quick Fix menu in VSCode.
5 replies