LSP-julia icon indicating copy to clipboard operation
LSP-julia copied to clipboard

Utilization of Base.active_project()

Open StefanPofahl opened this issue 3 years ago • 2 comments

What about using the command Base.active_project() to take the right Pkg-Julia-Environment per default?

StefanPofahl avatar Dec 01 '22 07:12 StefanPofahl

Do you have a concrete example how how it should be used and what exactly you want to solve with it?

Note that the Sublime API and this plugin (mostly) is implemented in Python, and starting another Julia subprocess might add a bit of overhead time. And wouldn't this just return the same information that you have already provided yourself when communicating with this Julia subprocess?

But pull requests with improvements are always welcome, of course.

jwortmann avatar Dec 01 '22 13:12 jwortmann

Thank for the fast responnse :-) As far as I understood, I should open the folder, which holds the Project.toml that defines the environment settings. But if I use the command Base.active_project() LSP-julia can be informed about the correct environment Project.toml, even if I open a project folder instead of the environment folder. I hope it is clearer now.

StefanPofahl avatar Dec 01 '22 15:12 StefanPofahl