-
Notifications
You must be signed in to change notification settings - Fork 12
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
VS Code ignores dprint.json
and stops formatting with dprint
version 0.16.1
on Mac
#84
Comments
@schreter do you have a repo I could try it out on? If not, what does the setup look like? It's been working for me. |
Sorry, it's a private repo (and quite large).
Are you also on MacOS w/ newest VS Code? It could be an OS-related problem. |
Ah, sorry, missed this one. Here some more details:
{
"incremental": true,
"markdown": {
"lineWidth": 100,
"textWrap": "always",
"unorderedListKind": "asterisks"
},
"toml": {
},
"includes": ["**/*.{md,toml}"],
"excludes": ["external/**"],
"plugins": [
"https://plugins.dprint.dev/markdown-0.17.0.wasm",
"https://plugins.dprint.dev/toml-0.6.1.wasm"
]
} VS Code will not even load The VS Code is configured w.r.t. "[markdown]": {
"editor.defaultFormatter": "dprint.dprint",
"editor.formatOnSave": true
},
"[toml]": {
"editor.defaultFormatter": "dprint.dprint",
"editor.formatOnSave": true
} BTW, I also tried to minimize |
I did some digging into The config file is there in the workspace, but it is hidden from the Explorer view by "files.exclude": {
...
"dprint.json": true,
...
} It seems like in VS Code the function We did hide quite a few files in workspace directory, since it's polluted by a lot of stuff which various tools require to have in the root of the workspace. |
Version
0.16.0
works just fine with VS Code on Mac and formats documents.Version
0.16.1
stopped working. Initialization of the plugin fails with "No configuration file found" printed to the output. The configurationdprint.json
in the workspace exists, of course.Seems like the fix #80 broke it, that's the only one referenced in release notes between
0.16.0
and0.16.1
.I only tested on newest VS Code 1.89.0 on MacOS.
Downgrading to
0.16.0
restores format-on-save viadprint
.The text was updated successfully, but these errors were encountered: