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

Didn't work in code-server for docker

Open dxkrs opened this issue 2 years ago • 2 comments

I install and use the code-server by the docker image linuxserver/code-server.(Also, I do the nginx proxy)

Then I open my vscode on my browser, search & success install the Draw.io Integration, which from the market "open-vsx", and then create a file test.dio, open it, a few minutes later, just show a loading tips view.

I try to open the Chrome DevTools -> Network to see what happed, I see some request urls are wrong! Such as the 'app.min.js` request, I see what in Network is:

https://vscode-remote+{some-string-like-my-machine-id}.vscode-resource.vscode-webview.net/config/extensions/hediet.vscode-drawio-1.6.4/drawio/src/main/webapp/js/app.min.js

These url can't be visited, and I found the right url to visit the app.min.js which I have installed should like:

https://{my-code-server-domain}/vscode-remote-resource?path=/config/extensions/hediet.vscode-drawio-1.6.4/drawio/src/main/webapp/js/app.min.js

This promble also be found in the request of files:stencils.min.js,shapes.min.js,PostConfig.js,extensions.min.js, or more.

Should this extension match the open-vsx market? Or it's just the code-server promble? I don't know. I just want to use drawio in my code-server after I installed it successfully :)

PS: I try to use the github.dev, which look like the code-server, the extension is work! However, the extension market is different from my code-server, it looks like same with the software of vscode.

dxkrs avatar Jun 21 '22 10:06 dxkrs

I have sloved this promble! It's about the service worker,but the main of reason is the low bandwidth. This issue recorded my finally result detail. So, can we make the service worker friendly to low bandwidth network? 😂

dxkrs avatar Jul 05 '22 10:07 dxkrs

Coder is an unsupported environment for this extension.

I'm open for maintainable PRs though!

hediet avatar Jul 05 '22 10:07 hediet