oxc/crates/oxc_language_server
Nicholas Rayburn 99ecc687ba
feat(language_server): Add code actions to disable rules for the current line or entire file (#6968)
This definitely needs some cleanup by somebody more familiar with Rust,
but I think it contains most of the important pieces. I'll leave a
review with the different pieces that I know need cleanup.

Ref #6966.
2024-11-28 10:30:53 +08:00
..
src feat(language_server): Add code actions to disable rules for the current line or entire file (#6968) 2024-11-28 10:30:53 +08:00
Cargo.toml fix(oxc_language_server): correct diagnostic link (#6765) 2024-10-22 06:23:54 -04:00
README.md docs(language_server): add readme (#7429) 2024-11-24 12:31:23 +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