question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deno appears in the status bar regardless of whether workspace has "deno.enable": true

See original GitHub issue

I don’t see any code that prevents this as right now the commands are registered and then it runs the code to start the language server.

We should register the commands, but only start the language server when the extension is enabled. If someone runs the “Deno: Restart Language Server” command and "deno.enable" is not true, then we should tell them to run “Deno: Initialize Workspace”.

I checked my global configuration and "deno.enable" was not true.

image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
kitsonkcommented, Jul 16, 2021

Yeah, the challenge is that there is no great way to “detect” a Deno project. It would be guessing. We are working on a optional unified meta data file, and that would allow us to “magically” enable Deno for a project without having to do it explicitly.

1reaction
dsherretcommented, Jun 26, 2021

@lucacasonato I just find it weird that I’m working on something unrelated to Deno, don’t have formatting enabled to use Deno, and don’t have "deno.enable": true in the repo and yet I see it running in the bottom right corner. I’d rather it not start at all in this scenario. Thinking about it more, I guess yeah if someone is using it for formatting then it’s less maintainable to have two ways of doing something. I think in that case to simplify things then we should start it, but not in my case here where it has no use.

Read more comments on GitHub >

github_iconTop Results From Across the Web

deno.enablePaths conflict with build in typescript language ...
In this case (where "deno.enable" is false ) both deno and typescript language servers are active on deno_main.ts , which causes conflicts.
Read more >
Using Visual Studio Code | Manual - Deno
In a given workspace (or workspace folder), sub-paths can be enabled for Deno, while code outside those paths will be not be enabled...
Read more >
vscode-linter-xo - Visual Studio Marketplace
Could use with Deno, yarn pnp, or to have the xo library lint itself. By default xo is resolved from the workspace folders...
Read more >
Developer setup for programming with 🦕 Deno
Deno extension for Visual Studio Code · 💡 for workspace users. If you use workspaces in VS Code, add this to your workspace...
Read more >
Chapter 2 - CEHD | UMN
For example, if your temperature was elevated, the doctor may order more ... to affect more progress for each student (Deno & Fuchs,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found