-
-
Notifications
You must be signed in to change notification settings - Fork 899
Labels
A-editorArea - Editor and Language ServerArea - Editor and Language Server
Description
The current behavior of the language server is to revalidate the diagnostics when some .oxlintrc.json file is changing.
This works perfectly with nested configuration.
We are sending a workspace/didChangeWatchedFiles request from VSCode to the server:
oxc/editors/vscode/client/extension.ts
Line 200 in fbd4f92
| fileEvents: fileWatchers, |
Description
When some .oxlintrc.json has extends keyword, and the files included in them are changing, the language server will not revalidate the diagnostics.
Setup
/.oxlintrc.json:
{
"extends": ["./configs/.oxlintrc.json"]
}
/configs/.oxlintrc.json:
{
"rules": { ... }
}
Expected
Changing ./configs/.oxlintrc.json should revalidate the diagnostics on the language server.
This will be a problem because the extends can include any filename the user wants, as long as it is valid.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-editorArea - Editor and Language ServerArea - Editor and Language Server