-
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
Unable to format vscode user profile level settings.json
file
#1206
Comments
Also reproducible with |
@dogfuntom Thank you for adding. I'm assuming user level jsonc config files may all have the same issue. |
@qupig Do you use WSL on Windows by any chance? I encountered this issue but it turns out it's because the user settings file is in a Windows directory. |
@nayeemrmn No, I'm in macOS. |
@nayeemrmn, I think the problem is that the settings.json file does not have a "file" scheme but rather "vscode-userdata" for which the extension is not registered. Extension is currently registered for the "file" and "untitled" schemes (for the jsonc file type, of course). |
According to @redking00's instructions, I found this in prettier extension: It seems that the issue can finally be solved. 🎉 |
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: