-
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
formatter runs when deno.enable = false #193
Comments
Duplicate of #187 |
@CGQAQ That issues seems to have a larger scope than this one. As far as I can tell this isn't actually an issue with the Language Server, and I would be worried about closing this issue and having the other issue drop the minor point regarding it. |
It's the issue that lsp currently will not enabling or disabling dynamically according to the config |
You could keeping the issue open, I will try to fix this tomorrow |
@CGQAQ If you try and fix it, please make sure we can still use the formatter with:
and:
|
|
So if |
@lucacasonato @David-Else @kyeotic @kyeotic You are likely to have selected a default formatter as vscode-deno previously |
@CGQAQ You can see in the screenshot I posted that both the default and javascript formatter are set to prettier. I have never set the default formatter to deno. I just reimaged this machine last week, so I am quite confident that it has never had that setting. Even if I had set it in the past shouldn't the fact that its not set that way now still mean that the extension is behaving improperly? The only way I can stop the deno formatter is to disable the extension. |
If you did not set default formatter to deno, vscode will not even trigger |
What evidence would you accept that this is not the case? I have already provided a screenshot. |
I debugged the code, this function not run if I set the defaultFormatter to prettier |
@kyeotic |
@kyeotic Please show me your settings.json in your workspace root .vscode folder |
Its empty. I have no workspace settings. |
This doesn't happen if I set Perhaps it isn't in that function but it is definitely caused by this extension. |
Ok, that was definitely part of the problem. I had disabled prettier while I was trying to figure out what was going on. Re-enabling it causes it to run instead of deno. I'm still confused though, because if I comment those lines out entirely I still get deno trying to run as the formatter. What is causing it to be selected when no formatter is defined? This may be a seperate issue, but I am also confused about why it hangs instead of actually formatting anything. |
Unrelated, but what are you using for those gif recordings with key capture? That's pretty dope! |
The key capture feature is vsode-built in feature |
that's vscode's problem, you should definitely open an issue on vscode repo. cc @lucacasonato close this issue |
Describe the bug
When
deno.enable
is set tofalse
saving a javascript file still hangs trying to run the Deno formatter.To Reproduce
"deno.enable": false
in User Settings.js
fileExpected behavior
The file should save without any attempt to run the deno formatter
Screenshots
Versions
Electron: 7.3.2
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 19.6.0
deno 1.3.3
v8 8.6.334
typescript 4.0.2
extension: 2.2.0
The text was updated successfully, but these errors were encountered: