microsoft/typescript-go

tsgo preview: import suggestions are not aware of paths

Opened this issue · 5 comments

With vtsls in zed:
Image

But using tsgo:
Image

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.