oxc/crates/oxc_language_server
camc314 3c534aeb5a refactor(linter): refactor LintBuilder to prep for nested configs (#8034)
More simplification/preparations for nested configurations:

1. renames `LinterBuilder` to `ConfigStoreBuilder`
2. moves the `options` logic out of `LintBuilder`
3. make `ConfigStoreBuilder::build()` return a result (currently always returns OK, but it will return errors when nested config is implemented

The next steps to implement nested config which i hope to do in the next week are:
1. refactor the `from_oxlintrc` to accept a file path
2. introduce a new method on `ConfigStoreBuilder` (name TBC) that walks all child directories, collecting `.oxlintrc` files. these will be put into `ConfigStore` as a hash map of path > config.
2025-01-05 04:08:26 +00:00
..
src refactor(linter): refactor LintBuilder to prep for nested configs (#8034) 2025-01-05 04:08:26 +00:00
Cargo.toml feat(data_structures): add rope (#7764) 2024-12-10 10:30:04 +00:00
README.md feat(editor): Create a command to apply all auto-fixes for the current active text editor (#7672) 2024-12-13 13:46:05 +08:00

oxc_language_server

This crate provides an LSP Server which is used inside an editor or IDE.

Server Capabilities

Supported LSP Specifications from Server

Workspace

workspace/didChangeConfiguration

The server expects this request when settings like run, enable or configPath are changed. The server will revalidate or reset the diagnostics for all open files and send one or more textDocument/publishDiagnostics requests to the client.

workspace/didChangeWatchedFiles

The server expects this request when the oxlint configuration is changed. The server will revalidate the diagnostics for all open files and send one or more textDocument/publishDiagnostics requests to the client.

TextDocument

textDocument/didOpen

The server will validate the file content and send a textDocument/publishDiagnostics request to the client.

textDocument/didSave

When the configuration run is set to onSave, the server will validate the file content and send a textDocument/publishDiagnostics request to the client.

textDocument/didChange

When the configuration run is set to onType, the server will validate the file content and send a textDocument/publishDiagnostics request to the client.

textDocument/didClose

It will remove the reference internal.

textDocument/codeAction

Returns a list of CodeAction

Expected LSP Specification from Client

TextDocument

textDocument/publishDiagnostics

Returns a PublishDiagnostic object