hediet / vscode-drawio

This unofficial extension integrates Draw.io (also known as diagrams.net) into VS Code.
https://marketplace.visualstudio.com/items?itemName=hediet.vscode-drawio
GNU General Public License v3.0
9.02k stars 406 forks source link

customLibraries in remote workspace searches for file on local machine #337

Open darsor opened 1 year ago

darsor commented 1 year ago

Amazing extension!

I'm running vscode on a windows machine, connected to a remote linux machine via SSH. I'm trying to have this remote workspace load a custom library for drawio.

The customLibraries setting appears to search the local windows machine for the library file, rather than the remote machine. I would expect the workspace-specific settings to search for files on the remote machine (the library file is in the remote workspace).

This works:

"hediet.vscode-drawio.customLibraries": [
    {
        "libName": "test",
        "file": "C:\\Users\\<username>\\path\\to\library.xml",
    }
],

This does not work, saying it can't open a nonexistent file

"hediet.vscode-drawio.customLibraries": [
    {
        "libName": "test",
        "file": "${workspaceFolder}/path/to/library.xml",
    }
],
bjoernbusch commented 3 months ago

@hediet Can you give any insights on this? I also can't get the ${workspaceFolder} to work, even though the tooltip for the file suggests that it should work.

When I clone this repo locally and add my custom Library file in the same substructure that I have in my actual repo and start debugging the extension, the file gets properly loaded with the ${workspaceFolder} in the settings. The exact same thing doesn't work in my own repo.