thefrontside / effection

Structured concurrency and effects for JavaScript
https://frontside.com/effection
MIT License
592 stars 25 forks source link

imports not used when using multi-root workspaces for website development in VSCode #893

Open taras opened 9 months ago

taras commented 9 months ago

VSCode Deno plugin does not read deno.json when used in multi-root workspace configuration. www/deno.json has imports path for Effection in other dependencies which Deno LSP does not know how to resolve which causes the following error

image
cowboyd commented 9 months ago

@taras Does the workaround in that issue work?

taras commented 9 months ago

No, because it's not the same issue. Our issue isn't that deno.json is in a folder. The problem is that it only reads the deno.json of the root workspace. The workaround in #894 is to make www root, which automatically reads the deno.json with imports relying on the fact that the core doesn't have any imports.