-
Notifications
You must be signed in to change notification settings - Fork 149
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
Not working, confusing error message with"editor.formatOnSaveMode": "modificationsIfAvailable" #860
Comments
I'm not sure if there's much that can be easily done here. Deno doesn't support range formatting (modifications/modificationsIfAvailable) so the vscode-languageclient sees that Deno says it doesn't support range formatting, then doesn't range format, and that message box appears. It would be nice if there were an instructional message box to remove the So unfortuantely I'm going to close this one as "wontfix". The workaround to get this to work is to remove |
@dsherret I think you're right and this is a bug upstream. Namely, the Deno language server says it supports document formatting and the integration layer |
This is likely coming from VSCode, as I also have the same problem with all major Go formatter |
Describe the bug
I have my project set up to use Deno as a formatter, but it doesn't format on save, instead giving the error message:
This error message is extra confusing since the extension can format a file with "Format Document" or "Format Document With..." commands.
If I disable the builtin plugin
vscode.git
, or if I set mode="file", format on save works again.Expected behavior
I expect one of the following in decreasing order of preference:
"editor.formatOnSaveMode"
Screenshots
If applicable, add screenshots to help explain your problem.
Versions
vscode: 1.78.2 deno: 1.34.1 extension: 3.19.1
The text was updated successfully, but these errors were encountered: