winglang / wing

A programming language for the cloud ☁️ A unified programming model, combining infrastructure and runtime code into one language ⚡
https://winglang.io
Other
5.03k stars 197 forks source link

Show published winglibs as autocomplete suggestions for `bring` statements #5265

Open Chriscbr opened 10 months ago

Chriscbr commented 10 months ago

Use Case

Beginning in Wing 0.x, IDEs with the Wing language server enabled will display published winglibs (like redis, websockets, etc.) as autocomplete suggestions when you're looking for libraries to bring into your code.

Screenshot 2023-12-19 at 2 09 37 PM

Proposed Solution

Publish a list of all available winglibs to a file on S3 and keep it up to date. Cache the list of all of the available winglibs on disk locally somewhere (like ~/.wing/winglibs.json) and update it periodically. In the Winglang LSP, we can look up this file from the user's disk, and if it's there, add the extra libraries when generating a list of autocomplete options.

Implementation Notes

No response

Component

IDE Extension, Libraries

Community Notes

github-actions[bot] commented 8 months ago

Hi,

This issue hasn't seen activity in 60 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. Feel free to re-open this issue when there's an update or relevant information to be added. Thanks!