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

[VSCode] Support build files in non-workspace-root directories #346

Open
jhostetler opened this issue Jun 23, 2023 · 0 comments
Open

[VSCode] Support build files in non-workspace-root directories #346

jhostetler opened this issue Jun 23, 2023 · 0 comments

Comments

@jhostetler
Copy link

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

I am using VSCode. I have a multi-language project structured like this:

project-root/
    python/
    jvm/
        pom.xml
        src/main/scala/...

Metals always tries to launch in project-root/ and can't find the build file.

Describe the solution you'd like

Ideally, there would be a configuration option to tell Metals which directory to consider the root. So I could just set "metals.workDir" = "jvm/" or something. Perhaps it could even accept a list of directories.

Describe alternatives you've considered

It is possible to work around this limitation by opening a new VSCode window pointed at the jvm/ subdirectory. This is not ideal because one has to remember to switch to the new window when editing Scala code.

I tried adding the jvm/ subdirectory using File > Add Folder to Workspace ..., so that both project-root/ and project-root/jvm/ are top-level workspace folders, but Metals still wants to look in project-root/ only.

Additional context

Related issues:

scalameta/metals#5907
scalameta/metals#5188
scalameta/metals#5033

Search terms

working directory maven

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

No branches or pull requests

1 participant