microsoft / vscode-java-dependency

Manage Java projects in Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-dependency
MIT License
140 stars 68 forks source link

Modules from other directory are not displayed #804

Open nzaytsev opened 7 months ago

nzaytsev commented 7 months ago

I have Java project with module structure like this:

    <modules>
        <module>../shared</module>
        <module>../ui</module>
        <module>module1</module>
        <module>module2</module>
        ...
    </modules>

When I open this project, I see only modules from current directory, and I don't see ../shared and ../ui modules in the Java Projects view

jdneo commented 7 months ago

Thank you for reporting. It's a bug about project searching.

https://github.com/microsoft/vscode-java-dependency/blob/f2368711a58456de61dda5598896b102122bef88/jdtls.ext/com.microsoft.jdtls.ext.core/src/com/microsoft/jdtls/ext/core/ProjectCommand.java#L127

I need to think about how to handle it correctly when projects locate out of the workspace root.