oxc/crates/oxc_language_server
overlookmotel 55f3636ecf perf(language_server): use FxDashMap for diagnostics reports map (#7523)
Same as #7521. Use `FxDashMap` instead of plain `DashMap` for hash map storing diagnostics.
2024-11-28 11:52:13 +00:00
..
src perf(language_server): use FxDashMap for diagnostics reports map (#7523) 2024-11-28 11:52:13 +00: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