oxc/crates/oxc_language_server
2024-11-26 10:44:13 +08:00
..
src fix(language_server): calculate correct column when Unicode chars (#7484) 2024-11-26 10:44:13 +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