microsoft / vscode-java-pack

VS Code extensions for Java developers.
Other
291 stars 133 forks source link

Single java file without workspace doesn't work well in codespace #1286

Closed yuyully closed 9 months ago

yuyully commented 9 months ago

Environment:

Step to Reproduce:

  1. Clone https://github.com/redhat-developer/vscode-java to your local folder
  2. In codesapce, open an empty window
  3. Drag a java file vscode-java/blob/master/test/resources/projects/eclipse/simple-app/src/app/App.java to it

Expected Behavior:

  1. Has Run/Debug actions in editor
  2. Can run successfully
  3. Refresh codespace in browser > Can load the java file well

Actual Behavior:

  1. No Run/Debug actions in editor
  2. Fail to run with below error
  3. Refresh codespace in browser > Cannot load the java file image image
loralei28 commented 9 months ago

"UNC host 'wsl.localhost' access is not allowed" appears on os-WSL, and the result does not change after setting settings according to the information. image

testforstephen commented 9 months ago

By design. When you drag a single file to a remote workspace, you are moving it between different file systems and network environments. I don't think the Java extension supports this kind of use case for single files.