Skip to content
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

[Feature]: Support multiroot workspace #68

Open
gracicot opened this issue Feb 17, 2022 · 2 comments
Open

[Feature]: Support multiroot workspace #68

gracicot opened this issue Feb 17, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@gracicot
Copy link

Is your feature request related to a problem? Please describe.

I have a workspace with multiple roots. Some are node projects, some are C++ projects with CMake and I use nix to manage all the environments.

The nix-env-selector don't seem to support this. I cannot select which nix file I'm loading for which directory, and some tools don't seem to work. I must run all my tools in the integrated terminal instead of using extension commands

Describe the solution you'd like

Being able to select a nix file for each projects.

Describe alternatives you've considered

Running all tools in the integrated terminal. For some things like python debugging it seem to work since the venv point to the nix python.

Also running everything in different windows seem to work.

@gracicot gracicot added the enhancement New feature or request label Feb 17, 2022
@CMCDragonkai
Copy link

I'm interested in this, since I have many NodeJS projects, and I have a workspace file that is rooted at Projects/ directory.

In particular, one thing I'm confused about is how nix-specific environment variables get applied to certain extensions.

For example in one project which involves C++, I want to have one of the include paths that shell.nix brings in to be understood by the cpptools extension.

It appears that the cpptools extension can make use of includePath in a c_cpp_properties.json configuration file. Now it can use environment variables as per https://code.visualstudio.com/docs/editor/variables-reference#_environment-variables.

However my vscode is loaded before entering the nix-shell, so I'm not sure how nix-shell's env variables will apply here.

Is it expected to run vscode within each nix-shell?

@paulhdk
Copy link

paulhdk commented Sep 23, 2022

Just giving this a polite bump. Any updates on this? Would also be very interested in this feature :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants