-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deno.enablePaths conflicts with vscode TSServer when used in a monorepo #878
Comments
I believe this is the exact same problem as #581, let's continue there. |
@bartlomieju Maybe related but I don't think it's exactly the same problem. I'm not using a multi-root workspace like people in the other issue. I'm only using |
Just to verify I created a new vscode profile that was empty except for the Deno plugin. Opening my project in this deno-only profile resulted in the same bug. It seems |
Does that match the behavior reported in #838? |
Deno is still mostly unusable in a monorepo due to this issue I'm forced to use Deno since it's a runtime on which supabase edge functions is based and this issue makes it super painful. |
Here's a recording, this happens constantly on every edit and when opening any file when you use the Deno vscode plugin in a monorepo that also uses plain TS Screen.Recording.2023-09-25.at.20.22.23.mov |
+1 to the above. I'm currently using Deno in a small monorepo utilizing a non-edge version of Prisma (therefore need a My guess is it's caused by the lsp not looking at the current directory's |
@evelant Are you still experiencing this? I'm not sure detecting package.json outside of the enabled scope is the issue, the runtime will detect it on execution anyway and there shouldn't be diagnostics resulting from that. Can you show what kind of diagnostics are appearing if it's still happening? |
Sorry, but I've removed all Deno code from my project, it was causing too many problems. |
That's a shame to hear. Unfortunately we don't have a reproduction or much info to go off, so I'll close this for the time being. |
Describe the bug
In a pnpm monorepo I have a subdirectory which contains a Deno project. This is a common configuration with Supabase. I have the deno plugin configured to only run in the deno project subdirectory, like so:
It seems as though this bug has resurfaced: #668
With this configuration the Deno language server appears to ignore
enablePaths
and auto-loads the package.json from the parent directory (Auto-resolved package.json: "file:///Users/imagio/dev/myproj/package.json"
)When I attempt to edit Deno code it appears as though the TS LSP and the Deno LSP are "fighting" each other -- errors are highlighted, disappear, invalid errors are highlighted, disappear, errors are highlighted again, and so on. Sometimes it settles down after a time but as soon as one character is changed in the file it happens again.
Deno LSP output:
I'm guessing the
client asked to cancel request 136, but no such pending request exists, ignoring
might be indicative of the problem.To Reproduce
Expected behavior
enablePath
. (Don't resolve package.json in a parent dir outside of enablePath)Screenshots
Versions
vscode: 1.80.0 deno: 1.33.2 extension: 3.19.1
The text was updated successfully, but these errors were encountered: