Reference
Every name each entry point exports, read from its source. Anything not listed is internal and may change in any release.
@adecore/lsp
The client, the edit helpers, the transports and the LanguageService contract.
| Name | Kind | Source |
|---|---|---|
ErrorCodes | const | connection |
LspError | class | connection |
StaleResultError | class | connection |
RequestHandler | type | connection |
applyCompletionDefaults | function | completion-defaults |
LspDocument | class | document |
applyContentChanges | function | edits |
applyTextEdits | function | edits |
minimalChange | function | edits |
planWorkspaceEdit | function | edits |
DocumentSnapshot | type | edits |
PlannedDocumentEdit | type | edits |
planWorkspaceOperations | function | workspace-operations |
PlannedCreateStep | type | workspace-operations |
PlannedDeleteStep | type | workspace-operations |
PlannedRenameStep | type | workspace-operations |
PlannedTextStep | type | workspace-operations |
ResourceOperationKind | type | workspace-operations |
WorkspaceEditPlan | type | workspace-operations |
WorkspaceEditSource | type | workspace-operations |
WorkspaceEditStep | type | workspace-operations |
WorkspaceEditText | type | workspace-operations |
CreatedFile | type | file-operations |
DeletedFile | type | file-operations |
RenamedFile | type | file-operations |
watchesFile | function | watched-files |
FileChangeType | type | watched-files |
LspSession | class | session |
LspSessionOptions | type | session |
SessionState | type | session |
TextMirror | class | text-mirror |
DiagnosticsReport | type | service |
LanguageDocument | type | service |
LanguageRequestOptions | type | service |
LanguageService | type | service |
ServerMessage | type | service |
unservedLanguageService | function | unserved |
connectWebSocket | function | transport |
createStreamTransport | function | transport |
ByteStream | type | transport |
WebSocketTransportOptions | type | transport |
fileUriToPath | function | uris |
pathToFileUri | function | uris |
documentLanguageId | function | language-ids |
lspLanguageId | function | language-ids |
lspLanguageIdOf | function | language-ids |
SCRIPT_LANGUAGE_IDS | const | language-ids |
bridgeVueTypeScript | function | vue |
vueServerOrder | function | vue |
VueServer | type | vue |
ApplyWorkspaceEditParams | type | protocol |
ApplyWorkspaceEditResult | type | protocol |
CallHierarchyIncomingCall | type | protocol |
CallHierarchyItem | type | protocol |
CallHierarchyOutgoingCall | type | protocol |
CodeAction | type | protocol |
CodeActionContext | type | protocol |
CodeLens | type | protocol |
Color | type | protocol |
ColorInformation | type | protocol |
ColorPresentation | type | protocol |
Command | type | protocol |
CompletionContext | type | protocol |
CompletionItem | type | protocol |
CompletionList | type | protocol |
CompletionResult | type | protocol |
ConfigurationItem | type | protocol |
ContentChange | type | protocol |
CreateFile | type | protocol |
DeleteFile | type | protocol |
Diagnostic | type | protocol |
Disposable | type | protocol |
DocumentDiagnosticReport | type | protocol |
DocumentFilter | type | protocol |
DocumentHighlight | type | protocol |
DocumentItem | type | protocol |
DocumentLink | type | protocol |
DocumentRequestOptions | type | protocol |
DocumentSymbol | type | protocol |
DocumentSymbolResult | type | protocol |
FileCreate | type | protocol |
FileDelete | type | protocol |
FileEvent | type | protocol |
FileOperation | type | protocol |
FileOperationFilter | type | protocol |
FileRename | type | protocol |
FileSystemWatcher | type | protocol |
FoldingRange | type | protocol |
FormattingOptions | type | protocol |
Hover | type | protocol |
InitializeResult | type | protocol |
InlayHint | type | protocol |
InlayHintLabelPart | type | protocol |
InlineCompletionContext | type | protocol |
InlineCompletionItem | type | protocol |
InlineCompletionResult | type | protocol |
InlineValue | type | protocol |
InlineValueContext | type | protocol |
InsertReplaceEdit | type | protocol |
LinkedEditingRanges | type | protocol |
Location | type | protocol |
LocationLink | type | protocol |
LogMessageParams | type | protocol |
LogTraceParams | type | protocol |
LspTransport | type | protocol |
MarkedString | type | protocol |
MarkupContent | type | protocol |
MessageActionItem | type | protocol |
MessageType | type | protocol |
Moniker | type | protocol |
MonikerKind | type | protocol |
NavigationResult | type | protocol |
NotebookCell | type | protocol |
NotebookCellArrayChange | type | protocol |
NotebookDocument | type | protocol |
NotebookDocumentChangeEvent | type | protocol |
NotebookDocumentFilter | type | protocol |
NotebookDocumentSyncOptions | type | protocol |
ParameterInformation | type | protocol |
Position | type | protocol |
PrepareRenameResult | type | protocol |
PreviousResultId | type | protocol |
ProgressParams | type | protocol |
ProgressToken | type | protocol |
ProviderOptions | type | protocol |
PublishDiagnosticsParams | type | protocol |
Range | type | protocol |
Registration | type | protocol |
RenameFile | type | protocol |
RequestId | type | protocol |
RequestOptions | type | protocol |
RpcMessage | type | protocol |
RpcNotification | type | protocol |
RpcRequest | type | protocol |
RpcResponse | type | protocol |
SelectionRange | type | protocol |
SemanticTokens | type | protocol |
SemanticTokensDelta | type | protocol |
SemanticTokensLegend | type | protocol |
ServerCapabilities | type | protocol |
ShowDocumentParams | type | protocol |
ShowDocumentResult | type | protocol |
ShowMessageParams | type | protocol |
ShowMessageRequestParams | type | protocol |
SignatureHelp | type | protocol |
SignatureHelpContext | type | protocol |
SignatureInformation | type | protocol |
SymbolInformation | type | protocol |
SymbolKind | type | protocol |
TextDocumentContentResult | type | protocol |
TextDocumentEdit | type | protocol |
TextDocumentSaveReason | type | protocol |
TextDocumentSyncOptions | type | protocol |
TextEdit | type | protocol |
TraceValue | type | protocol |
TypeHierarchyItem | type | protocol |
UniquenessLevel | type | protocol |
WorkDoneProgress | type | protocol |
WorkspaceDiagnosticReport | type | protocol |
WorkspaceDocumentDiagnosticReport | type | protocol |
WorkspaceEdit | type | protocol |
WorkspaceFolder | type | protocol |
WorkspaceFoldersChangeEvent | type | protocol |
WorkspaceSymbol | type | protocol |
WorkspaceSymbolResult | type | protocol |
Most of the types in the table are the protocol's own shapes. They follow LSP 3.17 and the 3.18 additions the client announces, and most carry the specification's names. ContentChange is its TextDocumentContentChangeEvent, DocumentItem its TextDocumentItem, and ProviderOptions the options of a registration. Grouped as the specification groups them:
- Base protocol:
RequestId,RpcRequest,RpcNotification,RpcResponse,RpcMessage,ProgressToken,ProgressParams,WorkDoneProgress,TraceValue,LogTraceParams. - Basic structures:
Position,Range,Location,LocationLink,TextEdit,InsertReplaceEdit,TextDocumentEdit,CreateFile,RenameFile,DeleteFile,WorkspaceEdit,Diagnostic,Command,MarkupContent,MarkedString,DocumentFilter,DocumentItem. - Lifecycle:
InitializeResult,ServerCapabilities,TextDocumentSyncOptions,Registration,ProviderOptions. - Document synchronization:
ContentChange,TextDocumentSaveReason,NotebookDocument,NotebookCell,NotebookCellArrayChange,NotebookDocumentChangeEvent,NotebookDocumentFilter,NotebookDocumentSyncOptions. - Language features:
CompletionContext,CompletionItem,CompletionList,CompletionResult,Hover,SignatureHelp,SignatureHelpContext,SignatureInformation,ParameterInformation,NavigationResult,DocumentHighlight,DocumentSymbol,DocumentSymbolResult,SymbolInformation,SymbolKind,CallHierarchyItem,CallHierarchyIncomingCall,CallHierarchyOutgoingCall,TypeHierarchyItem,CodeAction,CodeActionContext,CodeLens,DocumentLink,Color,ColorInformation,ColorPresentation,FormattingOptions,PrepareRenameResult,LinkedEditingRanges,Moniker,MonikerKind,UniquenessLevel,FoldingRange,SelectionRange,SemanticTokens,SemanticTokensDelta,SemanticTokensLegend,InlayHint,InlayHintLabelPart,InlineValue,InlineValueContext,InlineCompletionContext,InlineCompletionItem,InlineCompletionResult,PublishDiagnosticsParams,DocumentDiagnosticReport,PreviousResultId. - Workspace features:
WorkspaceFolder,WorkspaceFoldersChangeEvent,ConfigurationItem,WorkspaceSymbol,WorkspaceSymbolResult,FileEvent,FileSystemWatcher,FileOperation,FileOperationFilter,FileCreate,FileRename,FileDelete,ApplyWorkspaceEditParams,ApplyWorkspaceEditResult,WorkspaceDiagnosticReport,WorkspaceDocumentDiagnosticReport,TextDocumentContentResult. - Window features:
ShowMessageParams,ShowMessageRequestParams,MessageActionItem,MessageType,LogMessageParams,ShowDocumentParams,ShowDocumentResult.
LspTransport, Disposable, RequestOptions and DocumentRequestOptions belong to this package, not to the specification. See Transports and Sessions.
@adecore/lsp/testing
A language server for tests and the memory transport. See Testing.
| Name | Kind | Source |
|---|---|---|
createMemoryTransportPair | function | transport |
FakeLanguageServerOptions | type | testing |
FakeDocument | type | testing |
ReceivedMessage | type | testing |
FakeLanguageServer | class | testing |