bufbuild/vscode-buf

Auto-import support for remote packages

smaye81 opened this issue · 2 comments

Auto-import of messages is not working in VS Code with remote packages. Users would like to be able to enter a message name and have VS Code auto-import the full name without having to manually type it.

Note: This is also an issue in Webstorm as well: bufbuild/intellij-buf#83

I can confirm that auto-importing fails in WebStorm as well

I believe this is related to how the typescript package.json is being handled. There's no hints for where types are located, there's also no list of exports in the package.json which may be preventing the language server from knowing what's in the package and discovering the types ahead of time allowing the auto-import/auto-compolete/intellisense feature from working correctly.

I tried messing with the package.json of the library directly in node_modules but didn't have much luck (I author approximately 1 package every 3 years)

Here's a link to the community Slack channel where I reported it as well https://bufbuild.slack.com/archives/CRZ680FUH/p1678726050884479