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
feat(editor): add oxc.fmt.experimental flag (#13923)
Support the new server option `fmt.experimental` with an own VSCode option `oxc.fmt.experimental`.
This option can be set for each Workspace individually.
Added a Test to check if changing the settings, will tell the server and then the file can be formatted.
Copy file name to clipboardExpand all lines: editors/vscode/README.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,25 @@ This is the linter for Oxc. The currently supported features are listed below.
21
21
to automatically apply fixes when saving the file.
22
22
- Support for multi root workspaces
23
23
24
+
## Oxfmt
25
+
26
+
This is the formatter for Oxc. The currently supported features are listed below.
27
+
28
+
- Experimental formatting with `oxc.fmt.experimental`
29
+
30
+
To enable it, use a VSCode `settings.json` like:
31
+
32
+
```json
33
+
{
34
+
"oxc.fmt.experimental": true,
35
+
"editor.defaultFormatter": "oxc.oxc-vscode"
36
+
// Or enable it for specific files:
37
+
// "[javascript]": {
38
+
// "editor.defaultFormatter": "oxc.oxc-vscode"
39
+
// },
40
+
}
41
+
```
42
+
24
43
## Configuration
25
44
26
45
### Window Configuration
@@ -46,6 +65,7 @@ Following configuration are supported via `settings.json` and can be changed for
46
65
|`oxc.unusedDisableDirectives`|`allow`|`allow`\|`warn`\|`deny`| Define how directive comments like `// oxlint-disable-line` should be reported, when no errors would have been reported on that line anyway. |
47
66
|`oxc.typeAware`|`false`|`false`\|`true`| Enable type aware linting. |
48
67
|`oxc.flags`| - |`Record<string, string>`| Custom flags passed to the language server. |
68
+
|`oxc.fmt.experimental`|`false`|`false`\|`true`| Enable experimental formatting support. This feature is experimental and might not work as expected. |
0 commit comments