-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Start VS code with Julia repl running, and the environment initialized #1622
Comments
Looks like this may be the way to get this done...?? https://code.visualstudio.com/api/references/activation-events |
If you put this:
In your startup.jl, if there is a Project.toml and a Manifest.toml in the current folder, it's going to be activated. I think there is a way of doing a statement to instantiate the project if necessary, but I've never though about it and searched for. I don't know if this will help, because you still need to do a lot of stuff (open code, open the terminal and run julia) to do what you are asking for (if I understood correctly), but I use this config. and I like it. |
Good thinking. It precisely fits my current need! (I want students to work with the IDE with the least amount of obstacles and things to do.) |
I don't think that code should be needed: the extension already checks whether there is a So we'll just track adding some option to automatically start the REPL at startup in this issue here. |
This does not seem to be the case, I have a project and manifest file, when I open Julia, it is not activating the environment automatically. |
Ah, true! We probably need to register the project file types as being handled by the extension and that they should activate the extension. |
When there is a Manifest.toml (and a Project.toml) in the root of the folder that you open with VS Code, it should automatically fire up the REPL, activate and instantiate the project. At least it should be an option.
The text was updated successfully, but these errors were encountered: