-
Notifications
You must be signed in to change notification settings - Fork 158
Open
Description
Describe the bug
The Deno extension for VS Code formats files on save even if they are excluded by deno.json.
To Reproduce
.vscode/settings.json:
{
"[jsonc]": {
"editor.defaultFormatter": "denoland.vscode-deno",
"editor.formatOnSave": true
}
}deno.json:
{
"fmt": {
"exclude": [
"fixture.jsonc"
]
}
}fixture.jsonc:
Gets formatted to:
{
"a": "property"
} // should not be formattedExpected behavior
Deno should not format files on save if excluded by deno.json. Similar to Deno CLI:
$ deno fmt fixture.jsonc
error: No target files found.Screenshots
No response.
Versions
- vscode: 1.105.1
- deno: 2.5.4
- extension: 3.45.2
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
{"a": "property"} // should not be formatted