rubenf
rubenf•2y ago

types with local import

I read the deno lsp codebase, I'm gonna give it a try and might have something ready in a few hours.
4 Replies
Sindre
Sindre•2y ago
How is it going? Just out of curiosity. Are you able to make this work as a private registry? I was expecting you to get into problems around caching and auth, but maybe you own enough of the stack on both side to get around it? I thought you would implement this with the vscode-api trought workspace
rubenf
rubenf•2y ago
i'm almost done, I botched the last release but right now '/' imports work on app.windmill.dev I didn't go the registry route, I went the import maps with token inlined route I think in general registry will not work because registry make the assumptions that they are immutable so you can cache them and consider them to be purely additive it's also not possible to have the relative import syntax with private registry but tl;dr, it will work on app.windmill.dev, but for some reasons, I had issues making it work with localhost
Sindre
Sindre•2y ago
Then you just call it a enterprise feature and call it a day 😄
rubenf
rubenf•2y ago
ahah that's one way but set a bad precedent It would also bar us from being the one tru enterprise software, and in our web editor, bind them. I think with the latest fix it will work all the time although a bit quirky