hediet / vscode-drawio

This unofficial extension integrates Draw.io (also known as diagrams.net) into VS Code.

Home Page:https://marketplace.visualstudio.com/items?itemName=hediet.vscode-drawio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

extensions don't work in WSL

L0laapk3 opened this issue · comments

I have tried two different extensions by two different authors:

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.

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.

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.