You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extension 'Deno' is configured as formatter but it cannot format 'JSON with Comments'-files
The denoland.vscode-deno extension is ONLY cannot format the user profile level settings.json file.
But it can format the workspace level settings.json file or the *.jsonc file within the workspace.
This is very strange but I think it might be solved in vscode extensions since Prettier - Code formatter extension works in all files mentioned above.
This is actually consistent with #840, but I think it defines the scope of the issue more clearly here, and the possibility of a fix.
I've also tested adding "editor.formatOnSaveMode": "file" but it has no effect.
Like said in the comment, if you drag that settings.json as a file into vscode to open it works, but not when opening the file directly from entrances within vscode.
NOTE that the Prettier extension works in both cases, so there must be a way around it.
Not supporting formatting of user profile level settings.json file is very inconvenient, for example I cannot set "denoland.vscode-deno" to user level "editor.defaultFormatter" because it does not work in the file itself.
Instead I have to configure "denoland.vscode-deno" individually in each workspace.
I hope someone can investigate and resolve this humble little issue. And I'm perfectly willing to set this to my user level "editor.defaultFormatter" once this issue is resolved.
Versions
vscode: 1.95.2 deno: 2.0.6 extension: 3.42.0
The text was updated successfully, but these errors were encountered:
Describe the bug
The
denoland.vscode-deno
extension is ONLY cannot format the user profile levelsettings.json
file.But it can format the workspace level
settings.json
file or the*.jsonc
file within the workspace.This is very strange but I think it might be solved in vscode extensions since
Prettier - Code formatter
extension works in all files mentioned above.This is actually consistent with #840, but I think it defines the scope of the issue more clearly here, and the possibility of a fix.
I've also tested adding
"editor.formatOnSaveMode": "file"
but it has no effect.Like said in the comment, if you drag that
settings.json
as a file into vscode to open it works, but not when opening the file directly from entrances within vscode.NOTE that the Prettier extension works in both cases, so there must be a way around it.
Not supporting formatting of user profile level
settings.json
file is very inconvenient, for example I cannot set "denoland.vscode-deno" to user level "editor.defaultFormatter" because it does not work in the file itself.Instead I have to configure "denoland.vscode-deno" individually in each workspace.
I hope someone can investigate and resolve this humble little issue. And I'm perfectly willing to set this to my user level "editor.defaultFormatter" once this issue is resolved.
Versions
vscode:
1.95.2
deno:2.0.6
extension:3.42.0
The text was updated successfully, but these errors were encountered: