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
<img width="717" height="150" alt="grafik" src="https://github.com/user-attachments/assets/df1a4614-bf4c-464e-8aff-13bc0f42be66" />
Now the configuration `oxc.flags` is deprecated on the editor side too.
It still sends the `flags` configuration to the language server, because it does not know which version is used. (defined with `oxc.path.server`).
Updated all test + included a deprecated flag test.
Copy file name to clipboardExpand all lines: editors/vscode/README.md
+13-2Lines changed: 13 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,11 +64,22 @@ Following configuration are supported via `settings.json` and can be changed for
64
64
|`oxc.tsConfigPath`|`null`|`null`\|`<string>`| Path to TypeScript configuration. If your `tsconfig.json` is not at the root, alias paths will not be resolve correctly for the `import` plugin. |
65
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. |
66
66
|`oxc.typeAware`|`false`|`false`\|`true`| Enable type aware linting. |
67
-
|`oxc.flags`| - |`Record<string, string>`| Custom flags passed to the language server. |
67
+
|`oxc.disableNestedConfig`|`false`|`false`\|`true`| Disable searching for nested configuration files. |
68
+
|`oxc.fixKind`|`safe_fix`|[FixKind](#fixkind)| Specify the kind of fixes to suggest/apply. |
68
69
|`oxc.fmt.experimental`|`false`|`false`\|`true`| Enable experimental formatting support. This feature is experimental and might not work as expected. |
69
70
|`oxc.fmt.configPath`|`null`|`<string>`\|`null`| Path to an oxfmt configuration file. When `null`, the server will use `.oxfmtrc.json` at the workspace root. |
71
+
|`oxc.flags`| - |`Record<string, string>`| (deprecated) Custom flags passed to the language server. |
70
72
71
-
#### Flags
73
+
#### FixKind
74
+
75
+
-`"safe_fix"` (default)
76
+
-`"safe_fix_or_suggestion"`
77
+
-`"dangerous_fix"`
78
+
-`"dangerous_fix_or_suggestion"`
79
+
-`"none"`
80
+
-`"all"`
81
+
82
+
#### Flags (deprecated)
72
83
73
84
-`key: disable_nested_config`: Disabled nested configuration and searches only for `configPath`
Copy file name to clipboardExpand all lines: editors/vscode/package.json
+29Lines changed: 29 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -147,10 +147,39 @@
147
147
"default": false,
148
148
"description": "Enable type-aware linting."
149
149
},
150
+
"oxc.disableNestedConfig": {
151
+
"type": "boolean",
152
+
"scope": "resource",
153
+
"default": false,
154
+
"description": "Disable searching for nested configuration files. When set to true, only the configuration file specified in `oxc.configPath` (if any) will be used."
155
+
},
156
+
"oxc.fixKind": {
157
+
"type": "string",
158
+
"scope": "resource",
159
+
"enum": [
160
+
"safe_fix",
161
+
"safe_fix_or_suggestion",
162
+
"dangerous_fix",
163
+
"dangerous_fix_or_suggestion",
164
+
"none",
165
+
"all"
166
+
],
167
+
"enumDescriptions": [
168
+
"Only safe fixes will be applied",
169
+
"Safe fixes or suggestions will be applied",
170
+
"Safe and dangerous fixes will be applied",
171
+
"Safe and dangerous fixes or suggestions will be applied",
172
+
"No fixes will be applied",
173
+
"All fixes and suggestions will be applied"
174
+
],
175
+
"default": "safe_fix",
176
+
"description": "Specify the kind of fixes to suggest/apply."
177
+
},
150
178
"oxc.flags": {
151
179
"type": "object",
152
180
"scope": "resource",
153
181
"default": {},
182
+
"deprecationMessage": "deprecated since 1.25.0, use `oxc.fixKind` or `oxc.disableNestedConfig` instead.",
154
183
"description": "Specific Oxlint flags to pass to the language server."
0 commit comments