vscode-drawio icon indicating copy to clipboard operation
vscode-drawio copied to clipboard

extensions don't work in WSL

Open L0laapk3 opened this issue 1 year ago • 3 comments

I have tried two different extensions by two different authors:

  • https://marketplace.visualstudio.com/items?itemName=nopeslide.vscode-drawio-plugin-wavedrom
  • https://marketplace.visualstudio.com/items?itemName=dzylikecode.vscode-drawio-plugin-markdown

Both worked in a windows native environment, but neither worked in a WSL environment (using the official WSL plugin: https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-wsl)

The current behavior is that drawio looks and acts as if there are no extensions installed.

L0laapk3 avatar Oct 17 '23 11:10 L0laapk3

I am experiencing the same thing in a Remote (ssh) environment. The plugins work fine on the native windows host, but don't work on remote Linux hosts.

darsor avatar Oct 17 '23 18:10 darsor

Found a fix with security.allowedUNCHosts - perhaps this should be somehow caught in the extensions and recommended to the user to set this or something. It was a bit deep in the stacktrace and solution was not obvious. I added vscode-app

@darsor / @L0laapk3 - do you want to try this? Or is your issue another issue than this?

Get the same, the error i get is image

There is a full stack trace in the output window Error: Unable to resolve nonexistent file 'vscode-remote://wsl+ubuntu/home/ (... ) /domain_model.drawio.svg')

Also UNC host 'vscode-app' access is not allowed. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.)

image

I think this issue is unrelated to what you're seeing. We get no error message, it simply behaves like the plugins are not installed. Adding vscode-app to UNCHosts had no effect.

darsor avatar Nov 17 '23 16:11 darsor