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

vscode-java-dependency doesn't install or setup correctly when listed in devcontainer.json #818

Open djshaw opened 5 months ago

djshaw commented 5 months ago

When I add vscjava.vscode-java-dependency to devcontainer.json's customizations.vscode.extensions, and after "Dev Containers: Rebuild Container" is executed, the vscode-java-dependency doesn't appear to be installed. I was expecting the Java Project tab to be present in Explorer, but it was not.

The extension can be manually installed from the extension tab, and the Java Project tab is populated correctly.

Logs from building and installing the dev container are here: https://github.com/djshaw/vscode-java-dependency-install-problem/blob/main/dev-container-build-log.txt

Logs for manually installing the extension are at the bottom of: https://github.com/djshaw/vscode-java-dependency-install-problem/blob/main/README.md

A repository to reproduce the issue is here: https://github.com/djshaw/vscode-java-dependency-install-problem/tree/main

If this issue is actually a configuration problem on my part, or if there is a work around, I would greatly appreciate any advice on how the issue can be solved.