Skip to content

configuration change is not detected when it is coming from extends #10373

@Sysix

Description

@Sysix

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:

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.

Metadata

Metadata

Assignees

Labels

A-editorArea - Editor and Language Server

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions