tsgo preview: import suggestions are not aware of paths
With vtsls in zed:
But using tsgo:
I'm unsure whether this is something the zed extension should be handling or not... but I'm unable to work with tsgo until this is ready.
What is your tsconfig? Do you have a repo to test?
Actually I think it just might be configuration thing that tsgo doesn't support yet.
Is there plans to support importModuleSpecifier: 'non-relative'?
Yes, we just don't have any user prefs implemented yet.
Also been running into I think the same issue:
Cannot find module '@pubsub/events' or its corresponding type declarations.ts(2307)
In my tsconfig.json I have this:
"compilerOptions": {
"paths": {
"@pubsub/*": ["pubSub/client/*"],
// ... other path aliases
}
}
Sounds like this might just not be supported yet? Adding a comment just to track this so I can try the preview again when supported is added, thanks for your work on this, it's exciting!
That is unrelated; please file a new issue with a repro.
What's the priority on user preferences for the LSP?
Priority? We want to fix them; I would have expected this to start working as of #1793.
If not, we need a repro.
I can also repro after the latest changes in #1793 and extension version 0.20251214.1
Made a repro project https://github.com/longzheng/typescript-go-import-path-repro
Expecting import from @/export instead of ./export
"compilerOptions": {
"paths": {
"@/*": ["./src/*"]
}
}
{
"typescript.preferences.importModuleSpecifier": "non-relative",
"typescript.experimental.useTsgo": true
}