modularml / mojo

The Mojo Programming Language
https://docs.modular.com/mojo/manual/
Other
23.27k stars 2.59k forks source link

[Feature Request] Auto-importing in VS Code #3331

Open DanielEdrisian opened 3 months ago

DanielEdrisian commented 3 months ago

Review Mojo's priorities

What is your request?

Be able to auto-find and import functions defined in other files using the cmd+. shortcut.

What is your motivation for this change?

Right now the VS Code extension does not support auto-finding and importing of functions in other files.

This is a commonly used feature in VS Code & PyCharm, and would greatly improve the developer experience of Mojo.

Any other details?

No response

DanielEdrisian commented 3 months ago

I would like to learn how to contribute this feature to the VS Code extension, if possible. Would appreciate any pointers on how to start / contribute!

walter-erquinigo commented 3 months ago

Thank you for your ideas!
We are considering a few ways to make contributing to these tools easier (e.g. open sourcing the vscode extension, which doesn't rely on the compiler). We'll share news soon.
But regarding this specific issue, we are going to launch soon a way to specify a project definition file. This will provide information for the LSP to know what all the files of a project are, and this will enable better cross-file features.

DanielEdrisian commented 3 months ago

Thank you @walter-erquinigo !! That sounds exciting

In general, are there any small intro-friendly tasks that I can take to get acquainted with contributing? I would love to help out :D

walter-erquinigo commented 3 months ago

I know you can contribute to the standard library. Talk to them on our discord channel!