-
Notifications
You must be signed in to change notification settings - Fork 144
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
conflict with build in typescript language server.
#668
Comments
deno.enablePaths
doesn't workdeno.enablePaths
conflict with build in typescript language server.
@nurmohammed840 any updates or workarounds u have for this problem? |
Can you provide the output of Deno: Language Server Status from the command pallet in vscode for the workspace you have that you are concerned about. When you say:
What do you mean specifically. The whole purpose of |
Hello @kitsonk thank you for the follow up. Current directory structure:
I want Deno Language Server to only work for the {
"deno.lint": true,
"deno.unstable": true,
"deno.enablePaths": ["./scripts"]
} This current configuration works perfectly on macOs. As for windows 10:
I hope that was not confusing, I will also be willing to do some screen recordings if that is necessary |
I have a similar issue to @nurmohammed840 and @ragrag on Windows 11 (and 10). The issue is that both deno and typescript language servers are running on the same file, not project, and specifically how Set upOS: Windows 11 (22000.675) Current
Folder structure:
Expected behaviorMy understanding is that this set up should yield the following result:
Observed outcomeWhat I am actually getting is:
In this case (where If I change
In this case (where IssueIt appears to me that the following is happening (on Windows 10 and 11):
Desired outcomeDesired outcome would be as follows:
|
I had a similar issue. My problem was solved by disabling |
@alexndremelyanov can you please explain your issue? What was similar and what was not? This setting was disabled by default for me, enabling it (or re-disabling it) didn't change any of my results from above. |
Can confirm. Versions visual studio code version 1.69.0-insiders |
having the same issue on my monorepo |
I was having a play around to see if I could identify the issue. I haven't been able to find any issue in it (because I don't know how to debug the ts part of the extension), but I did notice inconsistencies in I also found the following in my Extension Host Log:
Not sure if these could be related. |
I felt LSP has poor support for windows.. |
Any update on this? I have the problem in my monorepo as well: TypeScript language server runs for files provided in
.vscode/settings.json
|
I'm also having problem with Here is the output of the deno extension Starting Deno language server...
version: 1.27.0 (release, x86_64-pc-windows-msvc)
executable: C:\Users\diego\.local\bin\deno.exe
Connected to "Visual Studio Code" 1.72.2
Enabling import suggestions for: https://deno.land
Enabling import suggestions for: https://x.nest.land
Download https://x.nest.land/.well-known/deno-import-intellisense.json
Download https://intellisense.nest.land/deno-import-intellisense.json
Enabling import suggestions for: https://crux.land
Server ready.
successfully cancelled request with ID: 1
Unable to send result to client.
client asked to cancel request 2, but no such pending request exists, ignoring My {
"deno.lint": true,
"deno.unstable": true,
"deno.enablePaths": ["./supabase"]
} And my {
"enable": false,
"enablePaths": [
"./supabase"
],
"cache": null,
"certificateStores": null,
"config": null,
"importMap": null,
"codeLens": {
"implementations": false,
"references": false,
"referencesAllFunctions": false,
"test": false
},
"inlayHints": {
"parameterNames": {
"enabled": "none",
"suppressWhenArgumentMatchesName": true
},
"parameterTypes": {
"enabled": false
},
"variableTypes": {
"enabled": false,
"suppressWhenArgumentMatchesName": true
},
"propertyDeclarationTypes": {
"enabled": false
},
"functionLikeReturnTypes": {
"enabled": false
},
"enumMemberValues": {
"enabled": false
}
},
"internalDebug": false,
"lint": true,
"suggest": {
"completeFunctionCalls": false,
"names": true,
"paths": true,
"autoImports": true,
"imports": {
"autoDiscover": true,
"hosts": {
"https://deno.land": true,
"https://x.nest.land": true,
"https://crux.land": true
}
}
},
"testing": {
"args": [
"--allow-all",
"--no-check"
],
"enable": true
},
"tlsCertificate": null,
"unsafelyIgnoreCertificateErrors": null,
"unstable": true
} I'm working now with my project with |
Path separators on Windows caused an incorrect behavior in `#fileNameDenoEnabled` that resulted in a non-functioning `deno.enablePaths` setting on Windows. This fixes #668.
With resolving denoland/vscode_deno#668
The following workspace settings.json has worked for me. Adding an import map was what was needed to tie it all together.
|
This is the one that fixes Deno imports with 'module not found' |
In other word,
deno.enablePaths
doesn't disable default typescript language server from running specified path.So both
deno
andtypescript
language server running on the same project...Versions
Vscode version:
The text was updated successfully, but these errors were encountered: