`deno.enablePaths` conflict with build in typescript language server.
See original GitHub issueIn other word, deno.enablePaths
doesn’t disable default typescript language server from running specified path.
So both deno
and typescript
language server running on the same project…
Versions
deno 1.22.0 (release, x86_64-pc-windows-msvc)
v8 10.0.139.17
typescript 4.6.2
Vscode version:
Version: 1.67.2 (user setup)
Electron: 17.4.1
Chromium: 98.0.4758.141
Node.js: 16.13.0
V8: 9.8.177.13-electron.0
OS: Windows_NT x64 10.0.22000
Issue Analytics
- State:
- Created a year ago
- Reactions:9
- Comments:12 (1 by maintainers)
Top Results From Across the Web
Overview of the Language Server | Manual - Deno
This allows clients to access documents in the Deno cache, like remote modules and TypeScript library files built into Deno. The Deno language...
Read more >How to Resolve LSPs for Deno Projects in Neovim
nvim-lspconfig allows me to configure, launch, and initialize various language servers I have on my machine. For my JavaScript and TypeScript ...
Read more >Deno - Visual Studio Marketplace
Extension for Visual Studio Code - A language server client for Deno. ... the built-in VSCode JavaScript and TypeScript language services, ...
Read more >Untitled
Vikings draft pick history, When were the pyramids built in mexico, 14hd403, ... Leclercville, Demo recording csgo, Speed networking example, Zatoichi 2003 ...
Read more >Untitled
Best edinburgh guide book, Catholic church building plans, Fa geba ennigerloh, ... Dailyfix win, Plymouth ma post office long pond rd, Server 03...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
"deno.enabled"
is being handled when"deno.enablePaths"
is supplied.Set up
OS: Windows 11 (22000.675) VS Code: 1.68.0 (user setup) Deno: 1.22.1 Deno VS Code Extension: v3.12.0
Current
settings.json
:Folder structure:
Expected behavior
My understanding is that this set up should yield the following result:
deno_main.ts
:typescript_main.ts
:Observed outcome
What I am actually getting is:
deno_main.ts
:typescript_main.ts
:In this case (where
"deno.enable"
istrue
) typescript language server is disabled ontypescript_main.ts
, despite me wanted it to be active.If I change
"deno.enable"
tofalse
I get the follow:deno_main.ts
:typescript_main.ts
:In this case (where
"deno.enable"
isfalse
) both deno and typescript language servers are active ondeno_main.ts
, which causes conflicts.Issue
It appears to me that the following is happening (on Windows 10 and 11):
"deno.enablePaths"
is correctly controlling what files and folders the deno language server is active on, however;"deno.enable"
is not being ignoredtrue
, the typescript language server is disabled on all files in the project, regardless of if they are in theenabledPaths
or notfalse
, the typescript language server is enabled on all files in the project, regardless of if they are in theenabledPaths
or notDesired outcome
Desired outcome would be as follows:
"deno.enable"
is ignored when"deno.enablePaths"
is supplied"deno.enablePaths"
)"deno.enablePaths"
should have typescript language server disabled"deno.enablePaths"
should have typescript language server enabledHello @kitsonk thank you for the follow up. Currently I have this configuration that is working as expected on macOs 12.1 but not on Windows 10
Current directory structure:
I want Deno Language Server to only work for the
scripts
directory and ignore theservices
directory (which has node ts projects). the current configuration I have in settings.json isThis current configuration works perfectly on macOs.
As for windows 10:
scripts
directory are still not detected by the Deno Language Server while files inservices
are picked up by the built-in Typescript Language Server. im assuming after many trials thatdeno.enablePaths
effectively doesn’t do anything in this case"deno.enable" : true
(which according to the docs should be ignored ifdeno.enablePaths
is provided) the files inscripts
are picked up by the Deno Language Server and the files inservices
are ignored. however they are not picked by the Typescript Language Server either (no errors but also no Intellisense). when I removedeno.enablePaths
at this point they start to show errors since the Deno Language Server is not ignoring them anymore.I hope that was not confusing, I will also be willing to do some screen recordings if that is necessary Also worth mentioning is that I have the latest versions of VS Code as well as the Deno extension