robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
2899e350ff
master
1--[[ 2THIS FILE IS GENERATED by src/gen/gen_lsp.lua 3DO NOT EDIT MANUALLY 4 5Based on LSP protocol 3.18 6 7Regenerate: 8nvim -l src/gen/gen_lsp.lua --version 3.18 9--]] 10 11---@meta 12error ( 'Cannot require a meta file' ) 13 14---@alias lsp.null vim.NIL 15---@alias uinteger integer 16---@alias decimal number 17---@alias lsp.DocumentUri string 18---@alias lsp.URI string 19 20---@class lsp.ImplementationParams: lsp.TextDocumentPositionParams, lsp.WorkDoneProgressParams, lsp.PartialResultParams 21 22---Represents a location inside a resource, such as a line 23---inside a text file. 24---@class lsp.Location 25--- 26---@field uri lsp.DocumentUri 27--- 28---@field range lsp.Range 29 30---@class lsp.ImplementationRegistrationOptions: lsp.TextDocumentRegistrationOptions, lsp.ImplementationOptions, lsp.StaticRegistrationOptions 31 32---@class lsp.TypeDefinitionParams: lsp.TextDocumentPositionParams, lsp.WorkDoneProgressParams, lsp.PartialResultParams 33 34---@class lsp.TypeDefinitionRegistrationOptions: lsp.TextDocumentRegistrationOptions, lsp.TypeDefinitionOptions, lsp.StaticRegistrationOptions 35 36---A workspace folder inside a client. 37---@class lsp.WorkspaceFolder 38--- 39---The associated URI for this workspace folder. 40---@field uri lsp.URI 41--- 42---The name of the workspace folder. Used to refer to this 43---workspace folder in the user interface. 44---@field name string 45 46---The parameters of a `workspace/didChangeWorkspaceFolders` notification. 47---@class lsp.DidChangeWorkspaceFoldersParams 48--- 49---The actual workspace folder change event. 50---@field event lsp.WorkspaceFoldersChangeEvent 51 52---The parameters of a configuration request. 53---@class lsp.ConfigurationParams 54--- 55---@field items lsp.ConfigurationItem[] 56 57---Parameters for a {@link DocumentColorRequest}. 58---@class lsp.DocumentColorParams: lsp.WorkDoneProgressParams, lsp.PartialResultParams 59--- 60---The text document. 61---@field textDocument lsp.TextDocumentIdentifier 62 63---Represents a color range from a document. 64---@class lsp.ColorInformation 65--- 66---The range in the document where this color appears. 67---@field range lsp.Range 68--- 69---The actual color value for this color range. 70---@field color lsp.Color 71 72---@class lsp.DocumentColorRegistrationOptions: lsp.TextDocumentRegistrationOptions, lsp.DocumentColorOptions, lsp.StaticRegistrationOptions 73 74---Parameters for a {@link ColorPresentationRequest}. 75---@class lsp.ColorPresentationParams: lsp.WorkDoneProgressParams, lsp.PartialResultParams 76--- 77---The text document. 78---@field textDocument lsp.TextDocumentIdentifier 79--- 80---The color to request presentations for. 81---@field color lsp.Color 82--- 83---The range where the color would be inserted. Serves as a context. 84---@field range lsp.Range 85 86---@class lsp.ColorPresentation 87--- 88---The label of this color presentation. It will be shown on the color 89---picker header. By default this is also the text that is inserted when selecting 90---this color presentation. 91---@field label string 92--- 93---An {@link TextEdit edit} which is applied to a document when selecting 94---this presentation for the color. When `falsy` the {@link ColorPresentation.label label} 95---is used. 96---@field textEdit? lsp.TextEdit 97--- 98---An optional array of additional {@link TextEdit text edits} that are applied when 99---selecting this color presentation. Edits must not overlap with the main {@link ColorPresentation.textEdit edit} nor with themselves. 100---@field additionalTextEdits? lsp.TextEdit[] 101 102---@class lsp.WorkDoneProgressOptions 103--- 104---@field workDoneProgress? boolean 105 106---General text document registration options. 107---@class lsp.TextDocumentRegistrationOptions 108--- 109---A document selector to identify the scope of the registration. If set to null 110---the document selector provided on the client side will be used. 111---@field documentSelector lsp.DocumentSelector|lsp.null 112 113---Parameters for a {@link FoldingRangeRequest}. 114---@class lsp.FoldingRangeParams: lsp.WorkDoneProgressParams, lsp.PartialResultParams 115--- 116---The text document. 117---@field textDocument lsp.TextDocumentIdentifier 118 119---Represents a folding range. To be valid, start and end line must be bigger than zero and smaller 120---than the number of lines in the document. Clients are free to ignore invalid ranges. 121---@class lsp.FoldingRange 122--- 123---The zero-based start line of the range to fold. The folded area starts after the line's last character. 124---To be valid, the end must be zero or larger and smaller than the number of lines in the document. 125---@field startLine uinteger 126--- 127---The zero-based character offset from where the folded range starts. If not defined, defaults to the length of the start line. 128---@field startCharacter? uinteger 129--- 130---The zero-based end line of the range to fold. The folded area ends with the line's last character. 131---To be valid, the end must be zero or larger and smaller than the number of lines in the document. 132---@field endLine uinteger 133--- 134---The zero-based character offset before the folded range ends. If not defined, defaults to the length of the end line. 135---@field endCharacter? uinteger 136--- 137---Describes the kind of the folding range such as 'comment' or 'region'. The kind 138---is used to categorize folding ranges and used by commands like 'Fold all comments'. 139---See {@link FoldingRangeKind} for an enumeration of standardized kinds. 140---@field kind? lsp.FoldingRangeKind 141--- 142---The text that the client should show when the specified range is 143---collapsed. If not defined or not supported by the client, a default 144---will be chosen by the client. 145--- 146---@since 3.17.0 147---@field collapsedText? string 148 149---@class lsp.FoldingRangeRegistrationOptions: lsp.TextDocumentRegistrationOptions, lsp.FoldingRangeOptions, lsp.StaticRegistrationOptions 150 151---@class lsp.DeclarationParams: lsp.TextDocumentPositionParams, lsp.WorkDoneProgressParams, lsp.PartialResultParams 152 153---@class lsp.DeclarationRegistrationOptions: lsp.DeclarationOptions, lsp.TextDocumentRegistrationOptions, lsp.StaticRegistrationOptions 154 155---A parameter literal used in selection range requests. 156---@class lsp.SelectionRangeParams: lsp.WorkDoneProgressParams, lsp.PartialResultParams 157--- 158---The text document. 159---@field textDocument lsp.TextDocumentIdentifier 160--- 161---The positions inside the text document. 162---@field positions lsp.Position[] 163 164---A selection range represents a part of a selection hierarchy. A selection range 165---may have a parent selection range that contains it. 166---@class lsp.SelectionRange 167--- 168---The {@link Range range} of this selection range. 169---@field range lsp.Range 170--- 171---The parent selection range containing this range. Therefore `parent.range` must contain `this.range`. 172---@field parent? lsp.SelectionRange 173 174---@class lsp.SelectionRangeRegistrationOptions: lsp.SelectionRangeOptions, lsp.TextDocumentRegistrationOptions, lsp.StaticRegistrationOptions 175 176---@class lsp.WorkDoneProgressCreateParams 177--- 178---The token to be used to report progress. 179---@field token lsp.ProgressToken 180 181---@class lsp.WorkDoneProgressCancelParams 182--- 183---The token to be used to report progress. 184---@field token lsp.ProgressToken 185 186---The parameter of a `textDocument/prepareCallHierarchy` request. 187--- 188---@since 3.16.0 189---@class lsp.CallHierarchyPrepareParams: lsp.TextDocumentPositionParams, lsp.WorkDoneProgressParams 190 191---Represents programming constructs like functions or constructors in the context 192---of call hierarchy. 193--- 194---@since 3.16.0 195---@class lsp.CallHierarchyItem 196--- 197---The name of this item. 198---@field name string 199--- 200---The kind of this item. 201---@field kind lsp.SymbolKind 202--- 203---Tags for this item. 204---@field tags? lsp.SymbolTag[] 205--- 206---More detail for this item, e.g. the signature of a function. 207---@field detail? string 208--- 209---The resource identifier of this item. 210---@field uri lsp.DocumentUri 211--- 212---The range enclosing this symbol not including leading/trailing whitespace but everything else, e.g. comments and code. 213---@field range lsp.Range 214--- 215---The range that should be selected and revealed when this symbol is being picked, e.g. the name of a function. 216---Must be contained by the {@link CallHierarchyItem.range `range`}. 217---@field selectionRange lsp.Range 218--- 219---A data entry field that is preserved between a call hierarchy prepare and 220---incoming calls or outgoing calls requests. 221---@field data? lsp.LSPAny 222 223---Call hierarchy options used during static or dynamic registration. 224--- 225---@since 3.16.0 226---@class lsp.CallHierarchyRegistrationOptions: lsp.TextDocumentRegistrationOptions, lsp.CallHierarchyOptions, lsp.StaticRegistrationOptions 227 228---The parameter of a `callHierarchy/incomingCalls` request. 229--- 230---@since 3.16.0 231---@class lsp.CallHierarchyIncomingCallsParams: lsp.WorkDoneProgressParams, lsp.PartialResultParams 232--- 233---@field item lsp.CallHierarchyItem 234 235---Represents an incoming call, e.g. a caller of a method or constructor. 236--- 237---@since 3.16.0 238---@class lsp.CallHierarchyIncomingCall 239--- 240---The item that makes the call. 241---@field from lsp.CallHierarchyItem 242--- 243---The ranges at which the calls appear. This is relative to the caller 244---denoted by {@link CallHierarchyIncomingCall.from `this.from`}. 245---@field fromRanges lsp.Range[] 246 247---The parameter of a `callHierarchy/outgoingCalls` request. 248--- 249---@since 3.16.0 250---@class lsp.CallHierarchyOutgoingCallsParams: lsp.WorkDoneProgressParams, lsp.PartialResultParams 251--- 252---@field item lsp.CallHierarchyItem 253 254---Represents an outgoing call, e.g. calling a getter from a method or a method from a constructor etc. 255--- 256---@since 3.16.0 257---@class lsp.CallHierarchyOutgoingCall 258--- 259---The item that is called. 260---@field to lsp.CallHierarchyItem 261--- 262---The range at which this item is called. This is the range relative to the caller, e.g the item 263---passed to {@link CallHierarchyItemProvider.provideCallHierarchyOutgoingCalls `provideCallHierarchyOutgoingCalls`} 264---and not {@link CallHierarchyOutgoingCall.to `this.to`}. 265---@field fromRanges lsp.Range[] 266 267---@since 3.16.0 268---@class lsp.SemanticTokensParams: lsp.WorkDoneProgressParams, lsp.PartialResultParams 269--- 270---The text document. 271---@field textDocument lsp.TextDocumentIdentifier 272 273---@since 3.16.0 274---@class lsp.SemanticTokens 275--- 276---An optional result id. If provided and clients support delta updating 277---the client will include the result id in the next semantic token request. 278---A server can then instead of computing all semantic tokens again simply 279---send a delta. 280---@field resultId? string 281--- 282---The actual tokens. 283---@field data uinteger[] 284 285---@since 3.16.0 286---@class lsp.SemanticTokensPartialResult 287--- 288---@field data uinteger[] 289 290---@since 3.16.0 291---@class lsp.SemanticTokensRegistrationOptions: lsp.TextDocumentRegistrationOptions, lsp.SemanticTokensOptions, lsp.StaticRegistrationOptions 292 293---@since 3.16.0 294---@class lsp.SemanticTokensDeltaParams: lsp.WorkDoneProgressParams, lsp.PartialResultParams 295--- 296---The text document. 297---@field textDocument lsp.TextDocumentIdentifier 298--- 299---The result id of a previous response. The result Id can either point to a full response 300---or a delta response depending on what was received last. 301---@field previousResultId string 302 303---@since 3.16.0 304---@class lsp.SemanticTokensDelta 305--- 306---@field resultId? string 307--- 308---The semantic token edits to transform a previous result into a new result. 309---@field edits lsp.SemanticTokensEdit[] 310 311---@since 3.16.0 312---@class lsp.SemanticTokensDeltaPartialResult 313--- 314---@field edits lsp.SemanticTokensEdit[] 315 316---@since 3.16.0 317---@class lsp.SemanticTokensRangeParams: lsp.WorkDoneProgressParams, lsp.PartialResultParams 318--- 319---The text document. 320---@field textDocument lsp.TextDocumentIdentifier 321--- 322---The range the semantic tokens are requested for. 323---@field range lsp.Range 324 325---Params to show a resource in the UI. 326--- 327---@since 3.16.0 328---@class lsp.ShowDocumentParams 329--- 330---The uri to show. 331---@field uri lsp.URI 332--- 333---Indicates to show the resource in an external program. 334---To show, for example, `https://code.visualstudio.com/` 335---in the default WEB browser set `external` to `true`. 336---@field external? boolean 337--- 338---An optional property to indicate whether the editor 339---showing the document should take focus or not. 340---Clients might ignore this property if an external 341---program is started. 342---@field takeFocus? boolean 343--- 344---An optional selection range if the document is a text 345---document. Clients might ignore the property if an 346---external program is started or the file is not a text 347---file. 348---@field selection? lsp.Range 349 350---The result of a showDocument request. 351--- 352---@since 3.16.0 353---@class lsp.ShowDocumentResult 354--- 355---A boolean indicating if the show was successful. 356---@field success boolean 357 358---@class lsp.LinkedEditingRangeParams: lsp.TextDocumentPositionParams, lsp.WorkDoneProgressParams 359 360---The result of a linked editing range request. 361--- 362---@since 3.16.0 363---@class lsp.LinkedEditingRanges 364--- 365---A list of ranges that can be edited together. The ranges must have 366---identical length and contain identical text content. The ranges cannot overlap. 367---@field ranges lsp.Range[] 368--- 369---An optional word pattern (regular expression) that describes valid contents for 370---the given ranges. If no pattern is provided, the client configuration's word 371---pattern will be used. 372---@field wordPattern? string 373 374---@class lsp.LinkedEditingRangeRegistrationOptions: lsp.TextDocumentRegistrationOptions, lsp.LinkedEditingRangeOptions, lsp.StaticRegistrationOptions 375 376---The parameters sent in notifications/requests for user-initiated creation of 377---files. 378--- 379---@since 3.16.0 380---@class lsp.CreateFilesParams 381--- 382---An array of all files/folders created in this operation. 383---@field files lsp.FileCreate[] 384 385---A workspace edit represents changes to many resources managed in the workspace. The edit 386---should either provide `changes` or `documentChanges`. If documentChanges are present 387---they are preferred over `changes` if the client can handle versioned document edits. 388--- 389---Since version 3.13.0 a workspace edit can contain resource operations as well. If resource 390---operations are present clients need to execute the operations in the order in which they 391---are provided. So a workspace edit for example can consist of the following two changes: 392---(1) a create file a.txt and (2) a text document edit which insert text into file a.txt. 393--- 394---An invalid sequence (e.g. (1) delete file a.txt and (2) insert text into file a.txt) will 395---cause failure of the operation. How the client recovers from the failure is described by 396---the client capability: `workspace.workspaceEdit.failureHandling` 397---@class lsp.WorkspaceEdit 398--- 399---Holds changes to existing resources. 400---@field changes? table<lsp.DocumentUri, lsp.TextEdit[]> 401--- 402---Depending on the client capability `workspace.workspaceEdit.resourceOperations` document changes 403---are either an array of `TextDocumentEdit`s to express changes to n different text documents 404---where each text document edit addresses a specific version of a text document. Or it can contain 405---above `TextDocumentEdit`s mixed with create, rename and delete file / folder operations. 406--- 407---Whether a client supports versioned document edits is expressed via 408---`workspace.workspaceEdit.documentChanges` client capability. 409--- 410---If a client neither supports `documentChanges` nor `workspace.workspaceEdit.resourceOperations` then 411---only plain `TextEdit`s using the `changes` property are supported. 412---@field documentChanges? (lsp.TextDocumentEdit|lsp.CreateFile|lsp.RenameFile|lsp.DeleteFile)[] 413--- 414---A map of change annotations that can be referenced in `AnnotatedTextEdit`s or create, rename and 415---delete file / folder operations. 416--- 417---Whether clients honor this property depends on the client capability `workspace.changeAnnotationSupport`. 418--- 419---@since 3.16.0 420---@field changeAnnotations? table<lsp.ChangeAnnotationIdentifier, lsp.ChangeAnnotation> 421 422---The options to register for file operations. 423--- 424---@since 3.16.0 425---@class lsp.FileOperationRegistrationOptions 426--- 427---The actual filters. 428---@field filters lsp.FileOperationFilter[] 429 430---The parameters sent in notifications/requests for user-initiated renames of 431---files. 432--- 433---@since 3.16.0 434---@class lsp.RenameFilesParams 435--- 436---An array of all files/folders renamed in this operation. When a folder is renamed, only 437---the folder will be included, and not its children. 438---@field files lsp.FileRename[] 439 440---The parameters sent in notifications/requests for user-initiated deletes of 441---files. 442--- 443---@since 3.16.0 444---@class lsp.DeleteFilesParams 445--- 446---An array of all files/folders deleted in this operation. 447---@field files lsp.FileDelete[] 448 449---@class lsp.MonikerParams: lsp.TextDocumentPositionParams, lsp.WorkDoneProgressParams, lsp.PartialResultParams 450 451---Moniker definition to match LSIF 0.5 moniker definition. 452--- 453---@since 3.16.0 454---@class lsp.Moniker 455--- 456---The scheme of the moniker. For example tsc or .Net 457---@field scheme string 458--- 459---The identifier of the moniker. The value is opaque in LSIF however 460---schema owners are allowed to define the structure if they want. 461---@field identifier string 462--- 463---The scope in which the moniker is unique 464---@field unique lsp.UniquenessLevel 465--- 466---The moniker kind if known. 467---@field kind? lsp.MonikerKind 468 469---@class lsp.MonikerRegistrationOptions: lsp.TextDocumentRegistrationOptions, lsp.MonikerOptions 470 471---The parameter of a `textDocument/prepareTypeHierarchy` request. 472--- 473---@since 3.17.0 474---@class lsp.TypeHierarchyPrepareParams: lsp.TextDocumentPositionParams, lsp.WorkDoneProgressParams 475 476---@since 3.17.0 477---@class lsp.TypeHierarchyItem 478--- 479---The name of this item. 480---@field name string 481--- 482---The kind of this item. 483---@field kind lsp.SymbolKind 484--- 485---Tags for this item. 486---@field tags? lsp.SymbolTag[] 487--- 488---More detail for this item, e.g. the signature of a function. 489---@field detail? string 490--- 491---The resource identifier of this item. 492---@field uri lsp.DocumentUri 493--- 494---The range enclosing this symbol not including leading/trailing whitespace 495---but everything else, e.g. comments and code. 496---@field range lsp.Range 497--- 498---The range that should be selected and revealed when this symbol is being 499---picked, e.g. the name of a function. Must be contained by the 500---{@link TypeHierarchyItem.range `range`}. 501---@field selectionRange lsp.Range 502--- 503---A data entry field that is preserved between a type hierarchy prepare and 504---supertypes or subtypes requests. It could also be used to identify the 505---type hierarchy in the server, helping improve the performance on 506---resolving supertypes and subtypes. 507---@field data? lsp.LSPAny 508 509---Type hierarchy options used during static or dynamic registration. 510--- 511---@since 3.17.0 512---@class lsp.TypeHierarchyRegistrationOptions: lsp.TextDocumentRegistrationOptions, lsp.TypeHierarchyOptions, lsp.StaticRegistrationOptions 513 514---The parameter of a `typeHierarchy/supertypes` request. 515--- 516---@since 3.17.0 517---@class lsp.TypeHierarchySupertypesParams: lsp.WorkDoneProgressParams, lsp.PartialResultParams 518--- 519---@field item lsp.TypeHierarchyItem 520 521---The parameter of a `typeHierarchy/subtypes` request. 522--- 523---@since 3.17.0 524---@class lsp.TypeHierarchySubtypesParams: lsp.WorkDoneProgressParams, lsp.PartialResultParams 525--- 526---@field item lsp.TypeHierarchyItem 527 528---A parameter literal used in inline value requests. 529--- 530---@since 3.17.0 531---@class lsp.InlineValueParams: lsp.WorkDoneProgressParams 532--- 533---The text document. 534---@field textDocument lsp.TextDocumentIdentifier 535--- 536---The document range for which inline values information will be returned. 537---@field range lsp.Range 538--- 539---Additional information about the context in which inline values information was 540---requested. 541---@field context lsp.InlineValueContext 542 543---Inline value options used during static or dynamic registration. 544--- 545---@since 3.17.0 546---@class lsp.InlineValueRegistrationOptions: lsp.InlineValueOptions, lsp.TextDocumentRegistrationOptions, lsp.StaticRegistrationOptions 547 548---A parameter literal used in inlay hint requests. 549--- 550---@since 3.17.0 551---@class lsp.InlayHintParams: lsp.WorkDoneProgressParams 552--- 553---The text document. 554---@field textDocument lsp.TextDocumentIdentifier 555--- 556---The document range for which inlay hints should be computed. 557---@field range lsp.Range 558 559---Inlay hint information. 560--- 561---@since 3.17.0 562---@class lsp.InlayHint 563--- 564---The position of this hint. 565--- 566---If multiple hints have the same position, they will be shown in the order 567---they appear in the response. 568---@field position lsp.Position 569--- 570---The label of this hint. A human readable string or an array of 571---InlayHintLabelPart label parts. 572--- 573---*Note* that neither the string nor the label part can be empty. 574---@field label string|lsp.InlayHintLabelPart[] 575--- 576---The kind of this hint. Can be omitted in which case the client 577---should fall back to a reasonable default. 578---@field kind? lsp.InlayHintKind 579--- 580---Optional text edits that are performed when accepting this inlay hint. 581--- 582---*Note* that edits are expected to change the document so that the inlay 583---hint (or its nearest variant) is now part of the document and the inlay 584---hint itself is now obsolete. 585---@field textEdits? lsp.TextEdit[] 586--- 587---The tooltip text when you hover over this item. 588---@field tooltip? string|lsp.MarkupContent 589--- 590---Render padding before the hint. 591--- 592---Note: Padding should use the editor's background color, not the 593---background color of the hint itself. That means padding can be used 594---to visually align/separate an inlay hint. 595---@field paddingLeft? boolean 596--- 597---Render padding after the hint. 598--- 599---Note: Padding should use the editor's background color, not the 600---background color of the hint itself. That means padding can be used 601---to visually align/separate an inlay hint. 602---@field paddingRight? boolean 603--- 604---A data entry field that is preserved on an inlay hint between 605---a `textDocument/inlayHint` and a `inlayHint/resolve` request. 606---@field data? lsp.LSPAny 607 608---Inlay hint options used during static or dynamic registration. 609--- 610---@since 3.17.0 611---@class lsp.InlayHintRegistrationOptions: lsp.InlayHintOptions, lsp.TextDocumentRegistrationOptions, lsp.StaticRegistrationOptions 612 613---Parameters of the document diagnostic request. 614--- 615---@since 3.17.0 616---@class lsp.DocumentDiagnosticParams: lsp.WorkDoneProgressParams, lsp.PartialResultParams 617--- 618---The text document. 619---@field textDocument lsp.TextDocumentIdentifier 620--- 621---The additional identifier provided during registration. 622---@field identifier? string 623--- 624---The result id of a previous response if provided. 625---@field previousResultId? string 626 627---A partial result for a document diagnostic report. 628--- 629---@since 3.17.0 630---@class lsp.DocumentDiagnosticReportPartialResult 631--- 632---@field relatedDocuments table<lsp.DocumentUri, lsp.FullDocumentDiagnosticReport|lsp.UnchangedDocumentDiagnosticReport> 633 634---Cancellation data returned from a diagnostic request. 635--- 636---@since 3.17.0 637---@class lsp.DiagnosticServerCancellationData 638--- 639---@field retriggerRequest boolean 640 641---Diagnostic registration options. 642--- 643---@since 3.17.0 644---@class lsp.DiagnosticRegistrationOptions: lsp.TextDocumentRegistrationOptions, lsp.DiagnosticOptions, lsp.StaticRegistrationOptions 645 646---Parameters of the workspace diagnostic request. 647--- 648---@since 3.17.0 649---@class lsp.WorkspaceDiagnosticParams: lsp.WorkDoneProgressParams, lsp.PartialResultParams 650--- 651---The additional identifier provided during registration. 652---@field identifier? string 653--- 654---The currently known diagnostic reports with their 655---previous result ids. 656---@field previousResultIds lsp.PreviousResultId[] 657 658---A workspace diagnostic report. 659--- 660---@since 3.17.0 661---@class lsp.WorkspaceDiagnosticReport 662--- 663---@field items lsp.WorkspaceDocumentDiagnosticReport[] 664 665---A partial result for a workspace diagnostic report. 666--- 667---@since 3.17.0 668---@class lsp.WorkspaceDiagnosticReportPartialResult 669--- 670---@field items lsp.WorkspaceDocumentDiagnosticReport[] 671 672---The params sent in an open notebook document notification. 673--- 674---@since 3.17.0 675---@class lsp.DidOpenNotebookDocumentParams 676--- 677---The notebook document that got opened. 678---@field notebookDocument lsp.NotebookDocument 679--- 680---The text documents that represent the content 681---of a notebook cell. 682---@field cellTextDocuments lsp.TextDocumentItem[] 683 684---Registration options specific to a notebook. 685--- 686---@since 3.17.0 687---@class lsp.NotebookDocumentSyncRegistrationOptions: lsp.NotebookDocumentSyncOptions, lsp.StaticRegistrationOptions 688 689---The params sent in a change notebook document notification. 690--- 691---@since 3.17.0 692---@class lsp.DidChangeNotebookDocumentParams 693--- 694---The notebook document that did change. The version number points 695---to the version after all provided changes have been applied. If 696---only the text document content of a cell changes the notebook version 697---doesn't necessarily have to change. 698---@field notebookDocument lsp.VersionedNotebookDocumentIdentifier 699--- 700---The actual changes to the notebook document. 701--- 702---The changes describe single state changes to the notebook document. 703---So if there are two changes c1 (at array index 0) and c2 (at array 704---index 1) for a notebook in state S then c1 moves the notebook from 705---S to S' and c2 from S' to S''. So c1 is computed on the state S and 706---c2 is computed on the state S'. 707--- 708---To mirror the content of a notebook using change events use the following approach: 709---- start with the same initial content 710---- apply the 'notebookDocument/didChange' notifications in the order you receive them. 711---- apply the `NotebookChangeEvent`s in a single notification in the order 712--- you receive them. 713---@field change lsp.NotebookDocumentChangeEvent 714 715---The params sent in a save notebook document notification. 716--- 717---@since 3.17.0 718---@class lsp.DidSaveNotebookDocumentParams 719--- 720---The notebook document that got saved. 721---@field notebookDocument lsp.NotebookDocumentIdentifier 722 723---The params sent in a close notebook document notification. 724--- 725---@since 3.17.0 726---@class lsp.DidCloseNotebookDocumentParams 727--- 728---The notebook document that got closed. 729---@field notebookDocument lsp.NotebookDocumentIdentifier 730--- 731---The text documents that represent the content 732---of a notebook cell that got closed. 733---@field cellTextDocuments lsp.TextDocumentIdentifier[] 734 735---A parameter literal used in inline completion requests. 736--- 737---@since 3.18.0 738---@class lsp.InlineCompletionParams: lsp.TextDocumentPositionParams, lsp.WorkDoneProgressParams 739--- 740---Additional information about the context in which inline completions were 741---requested. 742---@field context lsp.InlineCompletionContext 743 744---Represents a collection of {@link InlineCompletionItem inline completion items} to be presented in the editor. 745--- 746---@since 3.18.0 747---@class lsp.InlineCompletionList 748--- 749---The inline completion items 750---@field items lsp.InlineCompletionItem[] 751 752---An inline completion item represents a text snippet that is proposed inline to complete text that is being typed. 753--- 754---@since 3.18.0 755---@class lsp.InlineCompletionItem 756--- 757---The text to replace the range with. Must be set. 758---@field insertText string|lsp.StringValue 759--- 760---A text that is used to decide if this inline completion should be shown. When `falsy` the {@link InlineCompletionItem.insertText} is used. 761---@field filterText? string 762--- 763---The range to replace. Must begin and end on the same line. 764---@field range? lsp.Range 765--- 766---An optional {@link Command} that is executed *after* inserting this completion. 767---@field command? lsp.Command 768 769---Inline completion options used during static or dynamic registration. 770--- 771---@since 3.18.0 772---@class lsp.InlineCompletionRegistrationOptions: lsp.InlineCompletionOptions, lsp.TextDocumentRegistrationOptions, lsp.StaticRegistrationOptions 773 774---Parameters for the `workspace/textDocumentContent` request. 775--- 776---@since 3.18.0 777---@class lsp.TextDocumentContentParams 778--- 779---The uri of the text document. 780---@field uri lsp.DocumentUri 781 782---Result of the `workspace/textDocumentContent` request. 783--- 784---@since 3.18.0 785---@class lsp.TextDocumentContentResult 786--- 787---The text content of the text document. Please note, that the content of 788---any subsequent open notifications for the text document might differ 789---from the returned content due to whitespace and line ending 790---normalizations done on the client 791---@field text string 792 793---Text document content provider registration options. 794--- 795---@since 3.18.0 796---@class lsp.TextDocumentContentRegistrationOptions: lsp.TextDocumentContentOptions, lsp.StaticRegistrationOptions 797 798---Parameters for the `workspace/textDocumentContent/refresh` request. 799--- 800---@since 3.18.0 801---@class lsp.TextDocumentContentRefreshParams 802--- 803---The uri of the text document to refresh. 804---@field uri lsp.DocumentUri 805 806---@class lsp.RegistrationParams 807--- 808---@field registrations lsp.Registration[] 809 810---@class lsp.UnregistrationParams 811--- 812---@field unregisterations lsp.Unregistration[] 813 814---@class lsp.InitializeParams: lsp._InitializeParams, lsp.WorkspaceFoldersInitializeParams 815 816---The result returned from an initialize request. 817---@class lsp.InitializeResult 818--- 819---The capabilities the language server provides. 820---@field capabilities lsp.ServerCapabilities 821--- 822---Information about the server. 823--- 824---@since 3.15.0 825---@field serverInfo? lsp.ServerInfo 826 827---The data type of the ResponseError if the 828---initialize request fails. 829---@class lsp.InitializeError 830--- 831---Indicates whether the client execute the following retry logic: 832---(1) show the message provided by the ResponseError to the user 833---(2) user selects retry or cancel 834---(3) if user selected retry the initialize method is sent again. 835---@field retry boolean 836 837---@class lsp.InitializedParams 838 839---The parameters of a change configuration notification. 840---@class lsp.DidChangeConfigurationParams 841--- 842---The actual changed settings 843---@field settings lsp.LSPAny 844 845---@class lsp.DidChangeConfigurationRegistrationOptions 846--- 847---@field section? string|string[] 848 849---The parameters of a notification message. 850---@class lsp.ShowMessageParams 851--- 852---The message type. See {@link MessageType} 853---@field type lsp.MessageType 854--- 855---The actual message. 856---@field message string 857 858---@class lsp.ShowMessageRequestParams 859--- 860---The message type. See {@link MessageType} 861---@field type lsp.MessageType 862--- 863---The actual message. 864---@field message string 865--- 866---The message action items to present. 867---@field actions? lsp.MessageActionItem[] 868 869---@class lsp.MessageActionItem 870--- 871---A short title like 'Retry', 'Open Log' etc. 872---@field title string 873 874---The log message parameters. 875---@class lsp.LogMessageParams 876--- 877---The message type. See {@link MessageType} 878---@field type lsp.MessageType 879--- 880---The actual message. 881---@field message string 882 883---The parameters sent in an open text document notification 884---@class lsp.DidOpenTextDocumentParams 885--- 886---The document that was opened. 887---@field textDocument lsp.TextDocumentItem 888 889---The change text document notification's parameters. 890---@class lsp.DidChangeTextDocumentParams 891--- 892---The document that did change. The version number points 893---to the version after all provided content changes have 894---been applied. 895---@field textDocument lsp.VersionedTextDocumentIdentifier 896--- 897---The actual content changes. The content changes describe single state changes 898---to the document. So if there are two content changes c1 (at array index 0) and 899---c2 (at array index 1) for a document in state S then c1 moves the document from 900---S to S' and c2 from S' to S''. So c1 is computed on the state S and c2 is computed 901---on the state S'. 902--- 903---To mirror the content of a document using change events use the following approach: 904---- start with the same initial content 905---- apply the 'textDocument/didChange' notifications in the order you receive them. 906---- apply the `TextDocumentContentChangeEvent`s in a single notification in the order 907--- you receive them. 908---@field contentChanges lsp.TextDocumentContentChangeEvent[] 909 910---Describe options to be used when registered for text document change events. 911---@class lsp.TextDocumentChangeRegistrationOptions: lsp.TextDocumentRegistrationOptions 912--- 913---How documents are synced to the server. 914---@field syncKind lsp.TextDocumentSyncKind 915 916---The parameters sent in a close text document notification 917---@class lsp.DidCloseTextDocumentParams 918--- 919---The document that was closed. 920---@field textDocument lsp.TextDocumentIdentifier 921 922---The parameters sent in a save text document notification 923---@class lsp.DidSaveTextDocumentParams 924--- 925---The document that was saved. 926---@field textDocument lsp.TextDocumentIdentifier 927--- 928---Optional the content when saved. Depends on the includeText value 929---when the save notification was requested. 930---@field text? string 931 932---Save registration options. 933---@class lsp.TextDocumentSaveRegistrationOptions: lsp.TextDocumentRegistrationOptions, lsp.SaveOptions 934 935---The parameters sent in a will save text document notification. 936---@class lsp.WillSaveTextDocumentParams 937--- 938---The document that will be saved. 939---@field textDocument lsp.TextDocumentIdentifier 940--- 941---The 'TextDocumentSaveReason'. 942---@field reason lsp.TextDocumentSaveReason 943 944---A text edit applicable to a text document. 945---@class lsp.TextEdit 946--- 947---The range of the text document to be manipulated. To insert 948---text into a document create a range where start === end. 949---@field range lsp.Range 950--- 951---The string to be inserted. For delete operations use an 952---empty string. 953---@field newText string 954 955---The watched files change notification's parameters. 956---@class lsp.DidChangeWatchedFilesParams 957--- 958---The actual file events. 959---@field changes lsp.FileEvent[] 960 961---Describe options to be used when registered for text document change events. 962---@class lsp.DidChangeWatchedFilesRegistrationOptions 963--- 964---The watchers to register. 965---@field watchers lsp.FileSystemWatcher[] 966 967---The publish diagnostic notification's parameters. 968---@class lsp.PublishDiagnosticsParams 969--- 970---The URI for which diagnostic information is reported. 971---@field uri lsp.DocumentUri 972--- 973---Optional the version number of the document the diagnostics are published for. 974--- 975---@since 3.15.0 976---@field version? integer 977--- 978---An array of diagnostic information items. 979---@field diagnostics lsp.Diagnostic[] 980 981---Completion parameters 982---@class lsp.CompletionParams: lsp.TextDocumentPositionParams, lsp.WorkDoneProgressParams, lsp.PartialResultParams 983--- 984---The completion context. This is only available it the client specifies 985---to send this using the client capability `textDocument.completion.contextSupport === true` 986---@field context? lsp.CompletionContext 987 988---A completion item represents a text snippet that is 989---proposed to complete text that is being typed. 990---@class lsp.CompletionItem 991--- 992---The label of this completion item. 993--- 994---The label property is also by default the text that 995---is inserted when selecting this completion. 996--- 997---If label details are provided the label itself should 998---be an unqualified name of the completion item. 999---@field label string 1000--- 1001---Additional details for the label 1002--- 1003---@since 3.17.0 1004---@field labelDetails? lsp.CompletionItemLabelDetails 1005--- 1006---The kind of this completion item. Based of the kind 1007---an icon is chosen by the editor. 1008---@field kind? lsp.CompletionItemKind 1009--- 1010---Tags for this completion item. 1011--- 1012---@since 3.15.0 1013---@field tags? lsp.CompletionItemTag[] 1014--- 1015---A human-readable string with additional information 1016---about this item, like type or symbol information. 1017---@field detail? string 1018--- 1019---A human-readable string that represents a doc-comment. 1020---@field documentation? string|lsp.MarkupContent 1021--- 1022---Indicates if this item is deprecated. 1023---@deprecated Use `tags` instead. 1024---@field deprecated? boolean 1025--- 1026---Select this item when showing. 1027--- 1028---*Note* that only one completion item can be selected and that the 1029---tool / client decides which item that is. The rule is that the *first* 1030---item of those that match best is selected. 1031---@field preselect? boolean 1032--- 1033---A string that should be used when comparing this item 1034---with other items. When `falsy` the {@link CompletionItem.label label} 1035---is used. 1036---@field sortText? string 1037--- 1038---A string that should be used when filtering a set of 1039---completion items. When `falsy` the {@link CompletionItem.label label} 1040---is used. 1041---@field filterText? string 1042--- 1043---A string that should be inserted into a document when selecting 1044---this completion. When `falsy` the {@link CompletionItem.label label} 1045---is used. 1046--- 1047---The `insertText` is subject to interpretation by the client side. 1048---Some tools might not take the string literally. For example 1049---VS Code when code complete is requested in this example 1050---`con<cursor position>` and a completion item with an `insertText` of 1051---`console` is provided it will only insert `sole`. Therefore it is 1052---recommended to use `textEdit` instead since it avoids additional client 1053---side interpretation. 1054---@field insertText? string 1055--- 1056---The format of the insert text. The format applies to both the 1057---`insertText` property and the `newText` property of a provided 1058---`textEdit`. If omitted defaults to `InsertTextFormat.PlainText`. 1059--- 1060---Please note that the insertTextFormat doesn't apply to 1061---`additionalTextEdits`. 1062---@field insertTextFormat? lsp.InsertTextFormat 1063--- 1064---How whitespace and indentation is handled during completion 1065---item insertion. If not provided the clients default value depends on 1066---the `textDocument.completion.insertTextMode` client capability. 1067--- 1068---@since 3.16.0 1069---@field insertTextMode? lsp.InsertTextMode 1070--- 1071---An {@link TextEdit edit} which is applied to a document when selecting 1072---this completion. When an edit is provided the value of 1073---{@link CompletionItem.insertText insertText} is ignored. 1074--- 1075---Most editors support two different operations when accepting a completion 1076---item. One is to insert a completion text and the other is to replace an 1077---existing text with a completion text. Since this can usually not be 1078---predetermined by a server it can report both ranges. Clients need to 1079---signal support for `InsertReplaceEdits` via the 1080---`textDocument.completion.insertReplaceSupport` client capability 1081---property. 1082--- 1083---*Note 1:* The text edit's range as well as both ranges from an insert 1084---replace edit must be a [single line] and they must contain the position 1085---at which completion has been requested. 1086---*Note 2:* If an `InsertReplaceEdit` is returned the edit's insert range 1087---must be a prefix of the edit's replace range, that means it must be 1088---contained and starting at the same position. 1089--- 1090---@since 3.16.0 additional type `InsertReplaceEdit` 1091---@field textEdit? lsp.TextEdit|lsp.InsertReplaceEdit 1092--- 1093---The edit text used if the completion item is part of a CompletionList and 1094---CompletionList defines an item default for the text edit range. 1095--- 1096---Clients will only honor this property if they opt into completion list 1097---item defaults using the capability `completionList.itemDefaults`. 1098--- 1099---If not provided and a list's default range is provided the label 1100---property is used as a text. 1101--- 1102---@since 3.17.0 1103---@field textEditText? string 1104--- 1105---An optional array of additional {@link TextEdit text edits} that are applied when 1106---selecting this completion. Edits must not overlap (including the same insert position) 1107---with the main {@link CompletionItem.textEdit edit} nor with themselves. 1108--- 1109---Additional text edits should be used to change text unrelated to the current cursor position 1110---(for example adding an import statement at the top of the file if the completion item will 1111---insert an unqualified type). 1112---@field additionalTextEdits? lsp.TextEdit[] 1113--- 1114---An optional set of characters that when pressed while this completion is active will accept it first and 1115---then type that character. *Note* that all commit characters should have `length=1` and that superfluous 1116---characters will be ignored. 1117---@field commitCharacters? string[] 1118--- 1119---An optional {@link Command command} that is executed *after* inserting this completion. *Note* that 1120---additional modifications to the current document should be described with the 1121---{@link CompletionItem.additionalTextEdits additionalTextEdits}-property. 1122---@field command? lsp.Command 1123--- 1124---A data entry field that is preserved on a completion item between a 1125---{@link CompletionRequest} and a {@link CompletionResolveRequest}. 1126---@field data? lsp.LSPAny 1127 1128---Represents a collection of {@link CompletionItem completion items} to be presented 1129---in the editor. 1130---@class lsp.CompletionList 1131--- 1132---This list it not complete. Further typing results in recomputing this list. 1133--- 1134---Recomputed lists have all their items replaced (not appended) in the 1135---incomplete completion sessions. 1136---@field isIncomplete boolean 1137--- 1138---In many cases the items of an actual completion result share the same 1139---value for properties like `commitCharacters` or the range of a text 1140---edit. A completion list can therefore define item defaults which will 1141---be used if a completion item itself doesn't specify the value. 1142--- 1143---If a completion list specifies a default value and a completion item 1144---also specifies a corresponding value, the rules for combining these are 1145---defined by `applyKinds` (if the client supports it), defaulting to 1146---ApplyKind.Replace. 1147--- 1148---Servers are only allowed to return default values if the client 1149---signals support for this via the `completionList.itemDefaults` 1150---capability. 1151--- 1152---@since 3.17.0 1153---@field itemDefaults? lsp.CompletionItemDefaults 1154--- 1155---Specifies how fields from a completion item should be combined with those 1156---from `completionList.itemDefaults`. 1157--- 1158---If unspecified, all fields will be treated as ApplyKind.Replace. 1159--- 1160---If a field's value is ApplyKind.Replace, the value from a completion item 1161---(if provided and not `null`) will always be used instead of the value 1162---from `completionItem.itemDefaults`. 1163--- 1164---If a field's value is ApplyKind.Merge, the values will be merged using 1165---the rules defined against each field below. 1166--- 1167---Servers are only allowed to return `applyKind` if the client 1168---signals support for this via the `completionList.applyKindSupport` 1169---capability. 1170--- 1171---@since 3.18.0 1172---@field applyKind? lsp.CompletionItemApplyKinds 1173--- 1174---The completion items. 1175---@field items lsp.CompletionItem[] 1176 1177---Registration options for a {@link CompletionRequest}. 1178---@class lsp.CompletionRegistrationOptions: lsp.TextDocumentRegistrationOptions, lsp.CompletionOptions 1179 1180---Parameters for a {@link HoverRequest}. 1181---@class lsp.HoverParams: lsp.TextDocumentPositionParams, lsp.WorkDoneProgressParams 1182 1183---The result of a hover request. 1184---@class lsp.Hover 1185--- 1186---The hover's content 1187---@field contents lsp.MarkupContent|lsp.MarkedString|lsp.MarkedString[] 1188--- 1189---An optional range inside the text document that is used to 1190---visualize the hover, e.g. by changing the background color. 1191---@field range? lsp.Range 1192 1193---Registration options for a {@link HoverRequest}. 1194---@class lsp.HoverRegistrationOptions: lsp.TextDocumentRegistrationOptions, lsp.HoverOptions 1195 1196---Parameters for a {@link SignatureHelpRequest}. 1197---@class lsp.SignatureHelpParams: lsp.TextDocumentPositionParams, lsp.WorkDoneProgressParams 1198--- 1199---The signature help context. This is only available if the client specifies 1200---to send this using the client capability `textDocument.signatureHelp.contextSupport === true` 1201--- 1202---@since 3.15.0 1203---@field context? lsp.SignatureHelpContext 1204 1205---Signature help represents the signature of something 1206---callable. There can be multiple signature but only one 1207---active and only one active parameter. 1208---@class lsp.SignatureHelp 1209--- 1210---One or more signatures. 1211---@field signatures lsp.SignatureInformation[] 1212--- 1213---The active signature. If omitted or the value lies outside the 1214---range of `signatures` the value defaults to zero or is ignored if 1215---the `SignatureHelp` has no signatures. 1216--- 1217---Whenever possible implementors should make an active decision about 1218---the active signature and shouldn't rely on a default value. 1219--- 1220---In future version of the protocol this property might become 1221---mandatory to better express this. 1222---@field activeSignature? uinteger 1223--- 1224---The active parameter of the active signature. 1225--- 1226---If `null`, no parameter of the signature is active (for example a named 1227---argument that does not match any declared parameters). This is only valid 1228---if the client specifies the client capability 1229---`textDocument.signatureHelp.noActiveParameterSupport === true` 1230--- 1231---If omitted or the value lies outside the range of 1232---`signatures[activeSignature].parameters` defaults to 0 if the active 1233---signature has parameters. 1234--- 1235---If the active signature has no parameters it is ignored. 1236--- 1237---In future version of the protocol this property might become 1238---mandatory (but still nullable) to better express the active parameter if 1239---the active signature does have any. 1240--- 1241---Since version 3.16.0 the `SignatureInformation` itself provides a 1242---`activeParameter` property and it should be used instead of this one. 1243---@field activeParameter? uinteger|lsp.null 1244 1245---Registration options for a {@link SignatureHelpRequest}. 1246---@class lsp.SignatureHelpRegistrationOptions: lsp.TextDocumentRegistrationOptions, lsp.SignatureHelpOptions 1247 1248---Parameters for a {@link DefinitionRequest}. 1249---@class lsp.DefinitionParams: lsp.TextDocumentPositionParams, lsp.WorkDoneProgressParams, lsp.PartialResultParams 1250 1251---Registration options for a {@link DefinitionRequest}. 1252---@class lsp.DefinitionRegistrationOptions: lsp.TextDocumentRegistrationOptions, lsp.DefinitionOptions 1253 1254---Parameters for a {@link ReferencesRequest}. 1255---@class lsp.ReferenceParams: lsp.TextDocumentPositionParams, lsp.WorkDoneProgressParams, lsp.PartialResultParams 1256--- 1257---@field context lsp.ReferenceContext 1258 1259---Registration options for a {@link ReferencesRequest}. 1260---@class lsp.ReferenceRegistrationOptions: lsp.TextDocumentRegistrationOptions, lsp.ReferenceOptions 1261 1262---Parameters for a {@link DocumentHighlightRequest}. 1263---@class lsp.DocumentHighlightParams: lsp.TextDocumentPositionParams, lsp.WorkDoneProgressParams, lsp.PartialResultParams 1264 1265---A document highlight is a range inside a text document which deserves 1266---special attention. Usually a document highlight is visualized by changing 1267---the background color of its range. 1268---@class lsp.DocumentHighlight 1269--- 1270---The range this highlight applies to. 1271---@field range lsp.Range 1272--- 1273---The highlight kind, default is {@link DocumentHighlightKind.Text text}. 1274---@field kind? lsp.DocumentHighlightKind 1275 1276---Registration options for a {@link DocumentHighlightRequest}. 1277---@class lsp.DocumentHighlightRegistrationOptions: lsp.TextDocumentRegistrationOptions, lsp.DocumentHighlightOptions 1278 1279---Parameters for a {@link DocumentSymbolRequest}. 1280---@class lsp.DocumentSymbolParams: lsp.WorkDoneProgressParams, lsp.PartialResultParams 1281--- 1282---The text document. 1283---@field textDocument lsp.TextDocumentIdentifier 1284 1285---Represents information about programming constructs like variables, classes, 1286---interfaces etc. 1287---@class lsp.SymbolInformation: lsp.BaseSymbolInformation 1288--- 1289---Indicates if this symbol is deprecated. 1290--- 1291---@deprecated Use tags instead 1292---@field deprecated? boolean 1293--- 1294---The location of this symbol. The location's range is used by a tool 1295---to reveal the location in the editor. If the symbol is selected in the 1296---tool the range's start information is used to position the cursor. So 1297---the range usually spans more than the actual symbol's name and does 1298---normally include things like visibility modifiers. 1299--- 1300---The range doesn't have to denote a node range in the sense of an abstract 1301---syntax tree. It can therefore not be used to re-construct a hierarchy of 1302---the symbols. 1303---@field location lsp.Location 1304 1305---Represents programming constructs like variables, classes, interfaces etc. 1306---that appear in a document. Document symbols can be hierarchical and they 1307---have two ranges: one that encloses its definition and one that points to 1308---its most interesting range, e.g. the range of an identifier. 1309---@class lsp.DocumentSymbol 1310--- 1311---The name of this symbol. Will be displayed in the user interface and therefore must not be 1312---an empty string or a string only consisting of white spaces. 1313---@field name string 1314--- 1315---More detail for this symbol, e.g the signature of a function. 1316---@field detail? string 1317--- 1318---The kind of this symbol. 1319---@field kind lsp.SymbolKind 1320--- 1321---Tags for this document symbol. 1322--- 1323---@since 3.16.0 1324---@field tags? lsp.SymbolTag[] 1325--- 1326---Indicates if this symbol is deprecated. 1327--- 1328---@deprecated Use tags instead 1329---@field deprecated? boolean 1330--- 1331---The range enclosing this symbol not including leading/trailing whitespace but everything else 1332---like comments. This information is typically used to determine if the clients cursor is 1333---inside the symbol to reveal in the symbol in the UI. 1334---@field range lsp.Range 1335--- 1336---The range that should be selected and revealed when this symbol is being picked, e.g the name of a function. 1337---Must be contained by the `range`. 1338---@field selectionRange lsp.Range 1339--- 1340---Children of this symbol, e.g. properties of a class. 1341---@field children? lsp.DocumentSymbol[] 1342 1343---Registration options for a {@link DocumentSymbolRequest}. 1344---@class lsp.DocumentSymbolRegistrationOptions: lsp.TextDocumentRegistrationOptions, lsp.DocumentSymbolOptions 1345 1346---The parameters of a {@link CodeActionRequest}. 1347---@class lsp.CodeActionParams: lsp.WorkDoneProgressParams, lsp.PartialResultParams 1348--- 1349---The document in which the command was invoked. 1350---@field textDocument lsp.TextDocumentIdentifier 1351--- 1352---The range for which the command was invoked. 1353---@field range lsp.Range 1354--- 1355---Context carrying additional information. 1356---@field context lsp.CodeActionContext 1357 1358---Represents a reference to a command. Provides a title which 1359---will be used to represent a command in the UI and, optionally, 1360---an array of arguments which will be passed to the command handler 1361---function when invoked. 1362---@class lsp.Command 1363--- 1364---Title of the command, like `save`. 1365---@field title string 1366--- 1367---An optional tooltip. 1368--- 1369---@since 3.18.0 1370---@field tooltip? string 1371--- 1372---The identifier of the actual command handler. 1373---@field command string 1374--- 1375---Arguments that the command handler should be 1376---invoked with. 1377---@field arguments? lsp.LSPAny[] 1378 1379---A code action represents a change that can be performed in code, e.g. to fix a problem or 1380---to refactor code. 1381--- 1382---A CodeAction must set either `edit` and/or a `command`. If both are supplied, the `edit` is applied first, then the `command` is executed. 1383---@class lsp.CodeAction 1384--- 1385---A short, human-readable, title for this code action. 1386---@field title string 1387--- 1388---The kind of the code action. 1389--- 1390---Used to filter code actions. 1391---@field kind? lsp.CodeActionKind 1392--- 1393---The diagnostics that this code action resolves. 1394---@field diagnostics? lsp.Diagnostic[] 1395--- 1396---Marks this as a preferred action. Preferred actions are used by the `auto fix` command and can be targeted 1397---by keybindings. 1398--- 1399---A quick fix should be marked preferred if it properly addresses the underlying error. 1400---A refactoring should be marked preferred if it is the most reasonable choice of actions to take. 1401--- 1402---@since 3.15.0 1403---@field isPreferred? boolean 1404--- 1405---Marks that the code action cannot currently be applied. 1406--- 1407---Clients should follow the following guidelines regarding disabled code actions: 1408--- 1409--- - Disabled code actions are not shown in automatic [lightbulbs](https://code.visualstudio.com/docs/editor/editingevolved#_code-action) 1410--- code action menus. 1411--- 1412--- - Disabled actions are shown as faded out in the code action menu when the user requests a more specific type 1413--- of code action, such as refactorings. 1414--- 1415--- - If the user has a [keybinding](https://code.visualstudio.com/docs/editor/refactoring#_keybindings-for-code-actions) 1416--- that auto applies a code action and only disabled code actions are returned, the client should show the user an 1417--- error message with `reason` in the editor. 1418--- 1419---@since 3.16.0 1420---@field disabled? lsp.CodeActionDisabled 1421--- 1422---The workspace edit this code action performs. 1423---@field edit? lsp.WorkspaceEdit 1424--- 1425---A command this code action executes. If a code action 1426---provides an edit and a command, first the edit is 1427---executed and then the command. 1428---@field command? lsp.Command 1429--- 1430---A data entry field that is preserved on a code action between 1431---a `textDocument/codeAction` and a `codeAction/resolve` request. 1432--- 1433---@since 3.16.0 1434---@field data? lsp.LSPAny 1435--- 1436---Tags for this code action. 1437--- 1438---@since 3.18.0 - proposed 1439---@field tags? lsp.CodeActionTag[] 1440 1441---Registration options for a {@link CodeActionRequest}. 1442---@class lsp.CodeActionRegistrationOptions: lsp.TextDocumentRegistrationOptions, lsp.CodeActionOptions 1443 1444---The parameters of a {@link WorkspaceSymbolRequest}. 1445---@class lsp.WorkspaceSymbolParams: lsp.WorkDoneProgressParams, lsp.PartialResultParams 1446--- 1447---A query string to filter symbols by. Clients may send an empty 1448---string here to request all symbols. 1449--- 1450---The `query`-parameter should be interpreted in a *relaxed way* as editors 1451---will apply their own highlighting and scoring on the results. A good rule 1452---of thumb is to match case-insensitive and to simply check that the 1453---characters of *query* appear in their order in a candidate symbol. 1454---Servers shouldn't use prefix, substring, or similar strict matching. 1455---@field query string 1456 1457---A special workspace symbol that supports locations without a range. 1458--- 1459---See also SymbolInformation. 1460--- 1461---@since 3.17.0 1462---@class lsp.WorkspaceSymbol: lsp.BaseSymbolInformation 1463--- 1464---The location of the symbol. Whether a server is allowed to 1465---return a location without a range depends on the client 1466---capability `workspace.symbol.resolveSupport`. 1467--- 1468---See SymbolInformation#location for more details. 1469---@field location lsp.Location|lsp.LocationUriOnly 1470--- 1471---A data entry field that is preserved on a workspace symbol between a 1472---workspace symbol request and a workspace symbol resolve request. 1473---@field data? lsp.LSPAny 1474 1475---Registration options for a {@link WorkspaceSymbolRequest}. 1476---@class lsp.WorkspaceSymbolRegistrationOptions: lsp.WorkspaceSymbolOptions 1477 1478---The parameters of a {@link CodeLensRequest}. 1479---@class lsp.CodeLensParams: lsp.WorkDoneProgressParams, lsp.PartialResultParams 1480--- 1481---The document to request code lens for. 1482---@field textDocument lsp.TextDocumentIdentifier 1483 1484---A code lens represents a {@link Command command} that should be shown along with 1485---source text, like the number of references, a way to run tests, etc. 1486--- 1487---A code lens is _unresolved_ when no command is associated to it. For performance 1488---reasons the creation of a code lens and resolving should be done in two stages. 1489---@class lsp.CodeLens 1490--- 1491---The range in which this code lens is valid. Should only span a single line. 1492---@field range lsp.Range 1493--- 1494---The command this code lens represents. 1495---@field command? lsp.Command 1496--- 1497---A data entry field that is preserved on a code lens item between 1498---a {@link CodeLensRequest} and a {@link CodeLensResolveRequest} 1499---@field data? lsp.LSPAny 1500 1501---Registration options for a {@link CodeLensRequest}. 1502---@class lsp.CodeLensRegistrationOptions: lsp.TextDocumentRegistrationOptions, lsp.CodeLensOptions 1503 1504---The parameters of a {@link DocumentLinkRequest}. 1505---@class lsp.DocumentLinkParams: lsp.WorkDoneProgressParams, lsp.PartialResultParams 1506--- 1507---The document to provide document links for. 1508---@field textDocument lsp.TextDocumentIdentifier 1509 1510---A document link is a range in a text document that links to an internal or external resource, like another 1511---text document or a web site. 1512---@class lsp.DocumentLink 1513--- 1514---The range this link applies to. 1515---@field range lsp.Range 1516--- 1517---The uri this link points to. If missing a resolve request is sent later. 1518---@field target? lsp.URI 1519--- 1520---The tooltip text when you hover over this link. 1521--- 1522---If a tooltip is provided, is will be displayed in a string that includes instructions on how to 1523---trigger the link, such as `{0} (ctrl + click)`. The specific instructions vary depending on OS, 1524---user settings, and localization. 1525--- 1526---@since 3.15.0 1527---@field tooltip? string 1528--- 1529---A data entry field that is preserved on a document link between a 1530---DocumentLinkRequest and a DocumentLinkResolveRequest. 1531---@field data? lsp.LSPAny 1532 1533---Registration options for a {@link DocumentLinkRequest}. 1534---@class lsp.DocumentLinkRegistrationOptions: lsp.TextDocumentRegistrationOptions, lsp.DocumentLinkOptions 1535 1536---The parameters of a {@link DocumentFormattingRequest}. 1537---@class lsp.DocumentFormattingParams: lsp.WorkDoneProgressParams 1538--- 1539---The document to format. 1540---@field textDocument lsp.TextDocumentIdentifier 1541--- 1542---The format options. 1543---@field options lsp.FormattingOptions 1544 1545---Registration options for a {@link DocumentFormattingRequest}. 1546---@class lsp.DocumentFormattingRegistrationOptions: lsp.TextDocumentRegistrationOptions, lsp.DocumentFormattingOptions 1547 1548---The parameters of a {@link DocumentRangeFormattingRequest}. 1549---@class lsp.DocumentRangeFormattingParams: lsp.WorkDoneProgressParams 1550--- 1551---The document to format. 1552---@field textDocument lsp.TextDocumentIdentifier 1553--- 1554---The range to format 1555---@field range lsp.Range 1556--- 1557---The format options 1558---@field options lsp.FormattingOptions 1559 1560---Registration options for a {@link DocumentRangeFormattingRequest}. 1561---@class lsp.DocumentRangeFormattingRegistrationOptions: lsp.TextDocumentRegistrationOptions, lsp.DocumentRangeFormattingOptions 1562 1563---The parameters of a {@link DocumentRangesFormattingRequest}. 1564--- 1565---@since 3.18.0 1566---@class lsp.DocumentRangesFormattingParams: lsp.WorkDoneProgressParams 1567--- 1568---The document to format. 1569---@field textDocument lsp.TextDocumentIdentifier 1570--- 1571---The ranges to format 1572---@field ranges lsp.Range[] 1573--- 1574---The format options 1575---@field options lsp.FormattingOptions 1576 1577---The parameters of a {@link DocumentOnTypeFormattingRequest}. 1578---@class lsp.DocumentOnTypeFormattingParams 1579--- 1580---The document to format. 1581---@field textDocument lsp.TextDocumentIdentifier 1582--- 1583---The position around which the on type formatting should happen. 1584---This is not necessarily the exact position where the character denoted 1585---by the property `ch` got typed. 1586---@field position lsp.Position 1587--- 1588---The character that has been typed that triggered the formatting 1589---on type request. That is not necessarily the last character that 1590---got inserted into the document since the client could auto insert 1591---characters as well (e.g. like automatic brace completion). 1592---@field ch string 1593--- 1594---The formatting options. 1595---@field options lsp.FormattingOptions 1596 1597---Registration options for a {@link DocumentOnTypeFormattingRequest}. 1598---@class lsp.DocumentOnTypeFormattingRegistrationOptions: lsp.TextDocumentRegistrationOptions, lsp.DocumentOnTypeFormattingOptions 1599 1600---The parameters of a {@link RenameRequest}. 1601---@class lsp.RenameParams: lsp.TextDocumentPositionParams, lsp.WorkDoneProgressParams 1602--- 1603---The new name of the symbol. If the given name is not valid the 1604---request must return a {@link ResponseError} with an 1605---appropriate message set. 1606---@field newName string 1607 1608---Registration options for a {@link RenameRequest}. 1609---@class lsp.RenameRegistrationOptions: lsp.TextDocumentRegistrationOptions, lsp.RenameOptions 1610 1611---@class lsp.PrepareRenameParams: lsp.TextDocumentPositionParams, lsp.WorkDoneProgressParams 1612 1613---The parameters of a {@link ExecuteCommandRequest}. 1614---@class lsp.ExecuteCommandParams: lsp.WorkDoneProgressParams 1615--- 1616---The identifier of the actual command handler. 1617---@field command string 1618--- 1619---Arguments that the command should be invoked with. 1620---@field arguments? lsp.LSPAny[] 1621 1622---Registration options for a {@link ExecuteCommandRequest}. 1623---@class lsp.ExecuteCommandRegistrationOptions: lsp.ExecuteCommandOptions 1624 1625---The parameters passed via an apply workspace edit request. 1626---@class lsp.ApplyWorkspaceEditParams 1627--- 1628---An optional label of the workspace edit. This label is 1629---presented in the user interface for example on an undo 1630---stack to undo the workspace edit. 1631---@field label? string 1632--- 1633---The edits to apply. 1634---@field edit lsp.WorkspaceEdit 1635--- 1636---Additional data about the edit. 1637--- 1638---@since 3.18.0 1639---@field metadata? lsp.WorkspaceEditMetadata 1640 1641---The result returned from the apply workspace edit request. 1642--- 1643---@since 3.17 renamed from ApplyWorkspaceEditResponse 1644---@class lsp.ApplyWorkspaceEditResult 1645--- 1646---Indicates whether the edit was applied or not. 1647---@field applied boolean 1648--- 1649---An optional textual description for why the edit was not applied. 1650---This may be used by the server for diagnostic logging or to provide 1651---a suitable error for a request that triggered the edit. 1652---@field failureReason? string 1653--- 1654---Depending on the client's failure handling strategy `failedChange` might 1655---contain the index of the change that failed. This property is only available 1656---if the client signals a `failureHandlingStrategy` in its client capabilities. 1657---@field failedChange? uinteger 1658 1659---@class lsp.WorkDoneProgressBegin 1660--- 1661---@field kind "begin" 1662--- 1663---Mandatory title of the progress operation. Used to briefly inform about 1664---the kind of operation being performed. 1665--- 1666---Examples: "Indexing" or "Linking dependencies". 1667---@field title string 1668--- 1669---Controls if a cancel button should show to allow the user to cancel the 1670---long running operation. Clients that don't support cancellation are allowed 1671---to ignore the setting. 1672---@field cancellable? boolean 1673--- 1674---Optional, more detailed associated progress message. Contains 1675---complementary information to the `title`. 1676--- 1677---Examples: "3/25 files", "project/src/module2", "node_modules/some_dep". 1678---If unset, the previous progress message (if any) is still valid. 1679---@field message? string 1680--- 1681---Optional progress percentage to display (value 100 is considered 100%). 1682---If not provided infinite progress is assumed and clients are allowed 1683---to ignore the `percentage` value in subsequent in report notifications. 1684--- 1685---The value should be steadily rising. Clients are free to ignore values 1686---that are not following this rule. The value range is [0, 100]. 1687---@field percentage? uinteger 1688 1689---@class lsp.WorkDoneProgressReport 1690--- 1691---@field kind "report" 1692--- 1693---Controls enablement state of a cancel button. 1694--- 1695---Clients that don't support cancellation or don't support controlling the button's 1696---enablement state are allowed to ignore the property. 1697---@field cancellable? boolean 1698--- 1699---Optional, more detailed associated progress message. Contains 1700---complementary information to the `title`. 1701--- 1702---Examples: "3/25 files", "project/src/module2", "node_modules/some_dep". 1703---If unset, the previous progress message (if any) is still valid. 1704---@field message? string 1705--- 1706---Optional progress percentage to display (value 100 is considered 100%). 1707---If not provided infinite progress is assumed and clients are allowed 1708---to ignore the `percentage` value in subsequent in report notifications. 1709--- 1710---The value should be steadily rising. Clients are free to ignore values 1711---that are not following this rule. The value range is [0, 100] 1712---@field percentage? uinteger 1713 1714---@class lsp.WorkDoneProgressEnd 1715--- 1716---@field kind "end" 1717--- 1718---Optional, a final message indicating to for example indicate the outcome 1719---of the operation. 1720---@field message? string 1721 1722---@class lsp.SetTraceParams 1723--- 1724---@field value lsp.TraceValue 1725 1726---@class lsp.LogTraceParams 1727--- 1728---@field message string 1729--- 1730---@field verbose? string 1731 1732---@class lsp.CancelParams 1733--- 1734---The request id to cancel. 1735---@field id integer|string 1736 1737---@class lsp.ProgressParams 1738--- 1739---The progress token provided by the client or server. 1740---@field token lsp.ProgressToken 1741--- 1742---The progress data. 1743---@field value lsp.LSPAny 1744 1745---A parameter literal used in requests to pass a text document and a position inside that 1746---document. 1747---@class lsp.TextDocumentPositionParams 1748--- 1749---The text document. 1750---@field textDocument lsp.TextDocumentIdentifier 1751--- 1752---The position inside the text document. 1753---@field position lsp.Position 1754 1755---@class lsp.WorkDoneProgressParams 1756--- 1757---An optional token that a server can use to report work done progress. 1758---@field workDoneToken? lsp.ProgressToken 1759 1760---@class lsp.PartialResultParams 1761--- 1762---An optional token that a server can use to report partial results (e.g. streaming) to 1763---the client. 1764---@field partialResultToken? lsp.ProgressToken 1765 1766---Represents the connection of two locations. Provides additional metadata over normal {@link Location locations}, 1767---including an origin range. 1768---@class lsp.LocationLink 1769--- 1770---Span of the origin of this link. 1771--- 1772---Used as the underlined span for mouse interaction. Defaults to the word range at 1773---the definition position. 1774---@field originSelectionRange? lsp.Range 1775--- 1776---The target resource identifier of this link. 1777---@field targetUri lsp.DocumentUri 1778--- 1779---The full target range of this link. If the target for example is a symbol then target range is the 1780---range enclosing this symbol not including leading/trailing whitespace but everything else 1781---like comments. This information is typically used to highlight the range in the editor. 1782---@field targetRange lsp.Range 1783--- 1784---The range that should be selected and revealed when this link is being followed, e.g the name of a function. 1785---Must be contained by the `targetRange`. See also `DocumentSymbol#range` 1786---@field targetSelectionRange lsp.Range 1787 1788---A range in a text document expressed as (zero-based) start and end positions. 1789--- 1790---If you want to specify a range that contains a line including the line ending 1791---character(s) then use an end position denoting the start of the next line. 1792---For example: 1793---```ts 1794---{ 1795--- start: { line: 5, character: 23 } 1796--- end : { line 6, character : 0 } 1797---} 1798---``` 1799---@class lsp.Range 1800--- 1801---The range's start position. 1802---@field start lsp.Position 1803--- 1804---The range's end position. 1805---@field end lsp.Position 1806 1807---@class lsp.ImplementationOptions: lsp.WorkDoneProgressOptions 1808 1809---Static registration options to be returned in the initialize 1810---request. 1811---@class lsp.StaticRegistrationOptions 1812--- 1813---The id used to register the request. The id can be used to deregister 1814---the request again. See also Registration#id. 1815---@field id? string 1816 1817---@class lsp.TypeDefinitionOptions: lsp.WorkDoneProgressOptions 1818 1819---The workspace folder change event. 1820---@class lsp.WorkspaceFoldersChangeEvent 1821--- 1822---The array of added workspace folders 1823---@field added lsp.WorkspaceFolder[] 1824--- 1825---The array of the removed workspace folders 1826---@field removed lsp.WorkspaceFolder[] 1827 1828---@class lsp.ConfigurationItem 1829--- 1830---The scope to get the configuration section for. 1831---@field scopeUri? lsp.URI 1832--- 1833---The configuration section asked for. 1834---@field section? string 1835 1836---A literal to identify a text document in the client. 1837---@class lsp.TextDocumentIdentifier 1838--- 1839---The text document's uri. 1840---@field uri lsp.DocumentUri 1841 1842---Represents a color in RGBA space. 1843---@class lsp.Color 1844--- 1845---The red component of this color in the range [0-1]. 1846---@field red decimal 1847--- 1848---The green component of this color in the range [0-1]. 1849---@field green decimal 1850--- 1851---The blue component of this color in the range [0-1]. 1852---@field blue decimal 1853--- 1854---The alpha component of this color in the range [0-1]. 1855---@field alpha decimal 1856 1857---@class lsp.DocumentColorOptions: lsp.WorkDoneProgressOptions 1858 1859---@class lsp.FoldingRangeOptions: lsp.WorkDoneProgressOptions 1860 1861---@class lsp.DeclarationOptions: lsp.WorkDoneProgressOptions 1862 1863---Position in a text document expressed as zero-based line and character 1864---offset. Prior to 3.17 the offsets were always based on a UTF-16 string 1865---representation. So a string of the form `a𐐀b` the character offset of the 1866---character `a` is 0, the character offset of `𐐀` is 1 and the character 1867---offset of b is 3 since `𐐀` is represented using two code units in UTF-16. 1868---Since 3.17 clients and servers can agree on a different string encoding 1869---representation (e.g. UTF-8). The client announces it's supported encoding 1870---via the client capability [`general.positionEncodings`](https://microsoft.github.io/language-server-protocol/specifications/specification-current/#clientCapabilities). 1871---The value is an array of position encodings the client supports, with 1872---decreasing preference (e.g. the encoding at index `0` is the most preferred 1873---one). To stay backwards compatible the only mandatory encoding is UTF-16 1874---represented via the string `utf-16`. The server can pick one of the 1875---encodings offered by the client and signals that encoding back to the 1876---client via the initialize result's property 1877---[`capabilities.positionEncoding`](https://microsoft.github.io/language-server-protocol/specifications/specification-current/#serverCapabilities). If the string value 1878---`utf-16` is missing from the client's capability `general.positionEncodings` 1879---servers can safely assume that the client supports UTF-16. If the server 1880---omits the position encoding in its initialize result the encoding defaults 1881---to the string value `utf-16`. Implementation considerations: since the 1882---conversion from one encoding into another requires the content of the 1883---file / line the conversion is best done where the file is read which is 1884---usually on the server side. 1885--- 1886---Positions are line end character agnostic. So you can not specify a position 1887---that denotes `\r|\n` or `\n|` where `|` represents the character offset. 1888--- 1889---@since 3.17.0 - support for negotiated position encoding. 1890---@class lsp.Position 1891--- 1892---Line position in a document (zero-based). 1893---@field line uinteger 1894--- 1895---Character offset on a line in a document (zero-based). 1896--- 1897---The meaning of this offset is determined by the negotiated 1898---`PositionEncodingKind`. 1899---@field character uinteger 1900 1901---@class lsp.SelectionRangeOptions: lsp.WorkDoneProgressOptions 1902 1903---Call hierarchy options used during static registration. 1904--- 1905---@since 3.16.0 1906---@class lsp.CallHierarchyOptions: lsp.WorkDoneProgressOptions 1907 1908---@since 3.16.0 1909---@class lsp.SemanticTokensOptions: lsp.WorkDoneProgressOptions 1910--- 1911---The legend used by the server 1912---@field legend lsp.SemanticTokensLegend 1913--- 1914---Server supports providing semantic tokens for a specific range 1915---of a document. 1916---@field range? boolean|lsp._anonym1.range 1917--- 1918---Server supports providing semantic tokens for a full document. 1919---@field full? boolean|lsp.SemanticTokensFullDelta 1920 1921---@since 3.16.0 1922---@class lsp.SemanticTokensEdit 1923--- 1924---The start offset of the edit. 1925---@field start uinteger 1926--- 1927---The count of elements to remove. 1928---@field deleteCount uinteger 1929--- 1930---The elements to insert. 1931---@field data? uinteger[] 1932 1933---@class lsp.LinkedEditingRangeOptions: lsp.WorkDoneProgressOptions 1934 1935---Represents information on a file/folder create. 1936--- 1937---@since 3.16.0 1938---@class lsp.FileCreate 1939--- 1940---A file:// URI for the location of the file/folder being created. 1941---@field uri string 1942 1943---Describes textual changes on a text document. A TextDocumentEdit describes all changes 1944---on a document version Si and after they are applied move the document to version Si+1. 1945---So the creator of a TextDocumentEdit doesn't need to sort the array of edits or do any 1946---kind of ordering. However the edits must be non overlapping. 1947---@class lsp.TextDocumentEdit 1948--- 1949---The text document to change. 1950---@field textDocument lsp.OptionalVersionedTextDocumentIdentifier 1951--- 1952---The edits to be applied. 1953--- 1954---@since 3.16.0 - support for AnnotatedTextEdit. This is guarded using a 1955---client capability. 1956--- 1957---@since 3.18.0 - support for SnippetTextEdit. This is guarded using a 1958---client capability. 1959---@field edits (lsp.TextEdit|lsp.AnnotatedTextEdit|lsp.SnippetTextEdit)[] 1960 1961---Create file operation. 1962---@class lsp.CreateFile: lsp.ResourceOperation 1963--- 1964---A create 1965---@field kind "create" 1966--- 1967---The resource to create. 1968---@field uri lsp.DocumentUri 1969--- 1970---Additional options 1971---@field options? lsp.CreateFileOptions 1972 1973---Rename file operation 1974---@class lsp.RenameFile: lsp.ResourceOperation 1975--- 1976---A rename 1977---@field kind "rename" 1978--- 1979---The old (existing) location. 1980---@field oldUri lsp.DocumentUri 1981--- 1982---The new location. 1983---@field newUri lsp.DocumentUri 1984--- 1985---Rename options. 1986---@field options? lsp.RenameFileOptions 1987 1988---Delete file operation 1989---@class lsp.DeleteFile: lsp.ResourceOperation 1990--- 1991---A delete 1992---@field kind "delete" 1993--- 1994---The file to delete. 1995---@field uri lsp.DocumentUri 1996--- 1997---Delete options. 1998---@field options? lsp.DeleteFileOptions 1999 2000---Additional information that describes document changes. 2001--- 2002---@since 3.16.0 2003---@class lsp.ChangeAnnotation 2004--- 2005---A human-readable string describing the actual change. The string 2006---is rendered prominent in the user interface. 2007---@field label string 2008--- 2009---A flag which indicates that user confirmation is needed 2010---before applying the change. 2011---@field needsConfirmation? boolean 2012--- 2013---A human-readable string which is rendered less prominent in 2014---the user interface. 2015---@field description? string 2016 2017---A filter to describe in which file operation requests or notifications 2018---the server is interested in receiving. 2019--- 2020---@since 3.16.0 2021---@class lsp.FileOperationFilter 2022--- 2023---A Uri scheme like `file` or `untitled`. 2024---@field scheme? string 2025--- 2026---The actual file operation pattern. 2027---@field pattern lsp.FileOperationPattern 2028 2029---Represents information on a file/folder rename. 2030--- 2031---@since 3.16.0 2032---@class lsp.FileRename 2033--- 2034---A file:// URI for the original location of the file/folder being renamed. 2035---@field oldUri string 2036--- 2037---A file:// URI for the new location of the file/folder being renamed. 2038---@field newUri string 2039 2040---Represents information on a file/folder delete. 2041--- 2042---@since 3.16.0 2043---@class lsp.FileDelete 2044--- 2045---A file:// URI for the location of the file/folder being deleted. 2046---@field uri string 2047 2048---@class lsp.MonikerOptions: lsp.WorkDoneProgressOptions 2049 2050---Type hierarchy options used during static registration. 2051--- 2052---@since 3.17.0 2053---@class lsp.TypeHierarchyOptions: lsp.WorkDoneProgressOptions 2054 2055---@since 3.17.0 2056---@class lsp.InlineValueContext 2057--- 2058---The stack frame (as a DAP Id) where the execution has stopped. 2059---@field frameId integer 2060--- 2061---The document range where execution has stopped. 2062---Typically the end position of the range denotes the line where the inline values are shown. 2063---@field stoppedLocation lsp.Range 2064 2065---Returns inline value information as the complete text to be shown. 2066--- 2067---@since 3.17.0 2068---@class lsp.InlineValueText 2069--- 2070---The document range for which the inline value applies. 2071---@field range lsp.Range 2072--- 2073---The text of the inline value. 2074---@field text string 2075 2076---To compute inline value through a variable lookup. 2077--- 2078---If only a range is specified, the variable name should 2079---be extracted from the underlying document. 2080--- 2081---An optional variable name could be used to lookup instead 2082---of the extracted name. 2083--- 2084---@since 3.17.0 2085---@class lsp.InlineValueVariableLookup 2086--- 2087---The document range for which the inline value applies. 2088--- 2089---The range could be used to extract the variable name 2090---from the underlying document. 2091---@field range lsp.Range 2092--- 2093---If specified the name of the variable to look up. 2094---@field variableName? string 2095--- 2096---How to perform the lookup. 2097---@field caseSensitiveLookup boolean 2098 2099---To compute an inline value through an expression evaluation. 2100--- 2101---If only a range is specified, the expression should be 2102---extracted from the underlying document. 2103--- 2104---An optional expression could be evaluated instead of 2105---the extracted expression. 2106--- 2107---@since 3.17.0 2108---@class lsp.InlineValueEvaluatableExpression 2109--- 2110---The document range for which the inline value applies. 2111--- 2112---The range could be used to extract the evaluatable expression 2113---from the underlying document. 2114---@field range lsp.Range 2115--- 2116---If specified the expression could be evaluated instead. 2117---@field expression? string 2118 2119---Inline value options used during static registration. 2120--- 2121---@since 3.17.0 2122---@class lsp.InlineValueOptions: lsp.WorkDoneProgressOptions 2123 2124---An inlay hint label part allows for interactive and composite labels 2125---of inlay hints. 2126--- 2127---@since 3.17.0 2128---@class lsp.InlayHintLabelPart 2129--- 2130---The value of this label part. 2131---@field value string 2132--- 2133---The tooltip text when you hover over this label part. Depending on 2134---the client capability `inlayHint.resolveSupport` clients might resolve 2135---this property late using the resolve request. 2136---@field tooltip? string|lsp.MarkupContent 2137--- 2138---An optional source code location that represents this 2139---label part. 2140--- 2141---The editor will use this location for the hover and for code navigation 2142---features: This part will become a clickable link that resolves to the 2143---definition of the symbol at the given location (not necessarily the 2144---location itself), it shows the hover that shows at the given location, 2145---and it shows a context menu with further code navigation commands. 2146--- 2147---Depending on the client capability `inlayHint.resolveSupport` clients 2148---might resolve this property late using the resolve request. 2149---@field location? lsp.Location 2150--- 2151---An optional command for this label part. 2152--- 2153---Depending on the client capability `inlayHint.resolveSupport` clients 2154---might resolve this property late using the resolve request. 2155---@field command? lsp.Command 2156 2157---A `MarkupContent` literal represents a string value which content is interpreted base on its 2158---kind flag. Currently the protocol supports `plaintext` and `markdown` as markup kinds. 2159--- 2160---If the kind is `markdown` then the value can contain fenced code blocks like in GitHub issues. 2161---See https://help.github.com/articles/creating-and-highlighting-code-blocks/#syntax-highlighting 2162--- 2163---Here is an example how such a string can be constructed using JavaScript / TypeScript: 2164---```ts 2165---let markdown: MarkdownContent = { 2166--- kind: MarkupKind.Markdown, 2167--- value: [ 2168--- '# Header', 2169--- 'Some text', 2170--- '```typescript', 2171--- 'someCode();', 2172--- '```' 2173--- ].join('\n') 2174---}; 2175---``` 2176--- 2177---*Please Note* that clients might sanitize the return markdown. A client could decide to 2178---remove HTML from the markdown to avoid script execution. 2179---@class lsp.MarkupContent 2180--- 2181---The type of the Markup 2182---@field kind lsp.MarkupKind 2183--- 2184---The content itself 2185---@field value string 2186 2187---Inlay hint options used during static registration. 2188--- 2189---@since 3.17.0 2190---@class lsp.InlayHintOptions: lsp.WorkDoneProgressOptions 2191--- 2192---The server provides support to resolve additional 2193---information for an inlay hint item. 2194---@field resolveProvider? boolean 2195 2196---A full diagnostic report with a set of related documents. 2197--- 2198---@since 3.17.0 2199---@class lsp.RelatedFullDocumentDiagnosticReport: lsp.FullDocumentDiagnosticReport 2200--- 2201---Diagnostics of related documents. This information is useful 2202---in programming languages where code in a file A can generate 2203---diagnostics in a file B which A depends on. An example of 2204---such a language is C/C++ where marco definitions in a file 2205---a.cpp and result in errors in a header file b.hpp. 2206--- 2207---@since 3.17.0 2208---@field relatedDocuments? table<lsp.DocumentUri, lsp.FullDocumentDiagnosticReport|lsp.UnchangedDocumentDiagnosticReport> 2209 2210---An unchanged diagnostic report with a set of related documents. 2211--- 2212---@since 3.17.0 2213---@class lsp.RelatedUnchangedDocumentDiagnosticReport: lsp.UnchangedDocumentDiagnosticReport 2214--- 2215---Diagnostics of related documents. This information is useful 2216---in programming languages where code in a file A can generate 2217---diagnostics in a file B which A depends on. An example of 2218---such a language is C/C++ where marco definitions in a file 2219---a.cpp and result in errors in a header file b.hpp. 2220--- 2221---@since 3.17.0 2222---@field relatedDocuments? table<lsp.DocumentUri, lsp.FullDocumentDiagnosticReport|lsp.UnchangedDocumentDiagnosticReport> 2223 2224---A diagnostic report with a full set of problems. 2225--- 2226---@since 3.17.0 2227---@class lsp.FullDocumentDiagnosticReport 2228--- 2229---A full document diagnostic report. 2230---@field kind "full" 2231--- 2232---An optional result id. If provided it will 2233---be sent on the next diagnostic request for the 2234---same document. 2235---@field resultId? string 2236--- 2237---The actual items. 2238---@field items lsp.Diagnostic[] 2239 2240---A diagnostic report indicating that the last returned 2241---report is still accurate. 2242--- 2243---@since 3.17.0 2244---@class lsp.UnchangedDocumentDiagnosticReport 2245--- 2246---A document diagnostic report indicating 2247---no changes to the last result. A server can 2248---only return `unchanged` if result ids are 2249---provided. 2250---@field kind "unchanged" 2251--- 2252---A result id which will be sent on the next 2253---diagnostic request for the same document. 2254---@field resultId string 2255 2256---Diagnostic options. 2257--- 2258---@since 3.17.0 2259---@class lsp.DiagnosticOptions: lsp.WorkDoneProgressOptions 2260--- 2261---An optional identifier under which the diagnostics are 2262---managed by the client. 2263---@field identifier? string 2264--- 2265---Whether the language has inter file dependencies meaning that 2266---editing code in one file can result in a different diagnostic 2267---set in another file. Inter file dependencies are common for 2268---most programming languages and typically uncommon for linters. 2269---@field interFileDependencies boolean 2270--- 2271---The server provides support for workspace diagnostics as well. 2272---@field workspaceDiagnostics boolean 2273 2274---A previous result id in a workspace pull request. 2275--- 2276---@since 3.17.0 2277---@class lsp.PreviousResultId 2278--- 2279---The URI for which the client knowns a 2280---result id. 2281---@field uri lsp.DocumentUri 2282--- 2283---The value of the previous result id. 2284---@field value string 2285 2286---A notebook document. 2287--- 2288---@since 3.17.0 2289---@class lsp.NotebookDocument 2290--- 2291---The notebook document's uri. 2292---@field uri lsp.URI 2293--- 2294---The type of the notebook. 2295---@field notebookType string 2296--- 2297---The version number of this document (it will increase after each 2298---change, including undo/redo). 2299---@field version integer 2300--- 2301---Additional metadata stored with the notebook 2302---document. 2303--- 2304---Note: should always be an object literal (e.g. LSPObject) 2305---@field metadata? lsp.LSPObject 2306--- 2307---The cells of a notebook. 2308---@field cells lsp.NotebookCell[] 2309 2310---An item to transfer a text document from the client to the 2311---server. 2312---@class lsp.TextDocumentItem 2313--- 2314---The text document's uri. 2315---@field uri lsp.DocumentUri 2316--- 2317---The text document's language identifier. 2318---@field languageId lsp.LanguageKind 2319--- 2320---The version number of this document (it will increase after each 2321---change, including undo/redo). 2322---@field version integer 2323--- 2324---The content of the opened text document. 2325---@field text string 2326 2327---Options specific to a notebook plus its cells 2328---to be synced to the server. 2329--- 2330---If a selector provides a notebook document 2331---filter but no cell selector all cells of a 2332---matching notebook document will be synced. 2333--- 2334---If a selector provides no notebook document 2335---filter but only a cell selector all notebook 2336---document that contain at least one matching 2337---cell will be synced. 2338--- 2339---@since 3.17.0 2340---@class lsp.NotebookDocumentSyncOptions 2341--- 2342---The notebooks to be synced 2343---@field notebookSelector (lsp.NotebookDocumentFilterWithNotebook|lsp.NotebookDocumentFilterWithCells)[] 2344--- 2345---Whether save notification should be forwarded to 2346---the server. Will only be honored if mode === `notebook`. 2347---@field save? boolean 2348 2349---A versioned notebook document identifier. 2350--- 2351---@since 3.17.0 2352---@class lsp.VersionedNotebookDocumentIdentifier 2353--- 2354---The version number of this notebook document. 2355---@field version integer 2356--- 2357---The notebook document's uri. 2358---@field uri lsp.URI 2359 2360---A change event for a notebook document. 2361--- 2362---@since 3.17.0 2363---@class lsp.NotebookDocumentChangeEvent 2364--- 2365---The changed meta data if any. 2366--- 2367---Note: should always be an object literal (e.g. LSPObject) 2368---@field metadata? lsp.LSPObject 2369--- 2370---Changes to cells 2371---@field cells? lsp.NotebookDocumentCellChanges 2372 2373---A literal to identify a notebook document in the client. 2374--- 2375---@since 3.17.0 2376---@class lsp.NotebookDocumentIdentifier 2377--- 2378---The notebook document's uri. 2379---@field uri lsp.URI 2380 2381---Provides information about the context in which an inline completion was requested. 2382--- 2383---@since 3.18.0 2384---@class lsp.InlineCompletionContext 2385--- 2386---Describes how the inline completion was triggered. 2387---@field triggerKind lsp.InlineCompletionTriggerKind 2388--- 2389---Provides information about the currently selected item in the autocomplete widget if it is visible. 2390---@field selectedCompletionInfo? lsp.SelectedCompletionInfo 2391 2392---A string value used as a snippet is a template which allows to insert text 2393---and to control the editor cursor when insertion happens. 2394--- 2395---A snippet can define tab stops and placeholders with `$1`, `$2` 2396---and `${3:foo}`. `$0` defines the final tab stop, it defaults to 2397---the end of the snippet. Variables are defined with `$name` and 2398---`${name:default value}`. 2399--- 2400---@since 3.18.0 2401---@class lsp.StringValue 2402--- 2403---The kind of string value. 2404---@field kind "snippet" 2405--- 2406---The snippet string. 2407---@field value string 2408 2409---Inline completion options used during static registration. 2410--- 2411---@since 3.18.0 2412---@class lsp.InlineCompletionOptions: lsp.WorkDoneProgressOptions 2413 2414---Text document content provider options. 2415--- 2416---@since 3.18.0 2417---@class lsp.TextDocumentContentOptions 2418--- 2419---The schemes for which the server provides content. 2420---@field schemes string[] 2421 2422---General parameters to register for a notification or to register a provider. 2423---@class lsp.Registration 2424--- 2425---The id used to register the request. The id can be used to deregister 2426---the request again. 2427---@field id string 2428--- 2429---The method / capability to register for. 2430---@field method vim.lsp.protocol.Method 2431--- 2432---Options necessary for the registration. 2433---@field registerOptions? lsp.LSPAny 2434 2435---General parameters to unregister a request or notification. 2436---@class lsp.Unregistration 2437--- 2438---The id used to unregister the request or notification. Usually an id 2439---provided during the register request. 2440---@field id string 2441--- 2442---The method to unregister for. 2443---@field method vim.lsp.protocol.Method 2444 2445---The initialize parameters 2446---@class lsp._InitializeParams: lsp.WorkDoneProgressParams 2447--- 2448---The process Id of the parent process that started 2449---the server. 2450--- 2451---Is `null` if the process has not been started by another process. 2452---If the parent process is not alive then the server should exit. 2453---@field processId integer|lsp.null 2454--- 2455---Information about the client 2456--- 2457---@since 3.15.0 2458---@field clientInfo? lsp.ClientInfo 2459--- 2460---The locale the client is currently showing the user interface 2461---in. This must not necessarily be the locale of the operating 2462---system. 2463--- 2464---Uses IETF language tags as the value's syntax 2465---(See https://en.wikipedia.org/wiki/IETF_language_tag) 2466--- 2467---@since 3.16.0 2468---@field locale? string 2469--- 2470---The rootPath of the workspace. Is null 2471---if no folder is open. 2472--- 2473---@deprecated in favour of rootUri. 2474---@field rootPath? string|lsp.null 2475--- 2476---The rootUri of the workspace. Is null if no 2477---folder is open. If both `rootPath` and `rootUri` are set 2478---`rootUri` wins. 2479--- 2480---@deprecated in favour of workspaceFolders. 2481---@field rootUri lsp.DocumentUri|lsp.null 2482--- 2483---The capabilities provided by the client (editor or tool) 2484---@field capabilities lsp.ClientCapabilities 2485--- 2486---User provided initialization options. 2487---@field initializationOptions? lsp.LSPAny 2488--- 2489---The initial trace setting. If omitted trace is disabled ('off'). 2490---@field trace? lsp.TraceValue 2491 2492---@class lsp.WorkspaceFoldersInitializeParams 2493--- 2494---The workspace folders configured in the client when the server starts. 2495--- 2496---This property is only available if the client supports workspace folders. 2497---It can be `null` if the client supports workspace folders but none are 2498---configured. 2499--- 2500---@since 3.6.0 2501---@field workspaceFolders? lsp.WorkspaceFolder[]|lsp.null 2502 2503---Defines the capabilities provided by a language 2504---server. 2505---@class lsp.ServerCapabilities 2506--- 2507---The position encoding the server picked from the encodings offered 2508---by the client via the client capability `general.positionEncodings`. 2509--- 2510---If the client didn't provide any position encodings the only valid 2511---value that a server can return is 'utf-16'. 2512--- 2513---If omitted it defaults to 'utf-16'. 2514--- 2515---@since 3.17.0 2516---@field positionEncoding? lsp.PositionEncodingKind 2517--- 2518---Defines how text documents are synced. Is either a detailed structure 2519---defining each notification or for backwards compatibility the 2520---TextDocumentSyncKind number. 2521---@field textDocumentSync? lsp.TextDocumentSyncOptions|lsp.TextDocumentSyncKind 2522--- 2523---Defines how notebook documents are synced. 2524--- 2525---@since 3.17.0 2526---@field notebookDocumentSync? lsp.NotebookDocumentSyncOptions|lsp.NotebookDocumentSyncRegistrationOptions 2527--- 2528---The server provides completion support. 2529---@field completionProvider? lsp.CompletionOptions 2530--- 2531---The server provides hover support. 2532---@field hoverProvider? boolean|lsp.HoverOptions 2533--- 2534---The server provides signature help support. 2535---@field signatureHelpProvider? lsp.SignatureHelpOptions 2536--- 2537---The server provides Goto Declaration support. 2538---@field declarationProvider? boolean|lsp.DeclarationOptions|lsp.DeclarationRegistrationOptions 2539--- 2540---The server provides goto definition support. 2541---@field definitionProvider? boolean|lsp.DefinitionOptions 2542--- 2543---The server provides Goto Type Definition support. 2544---@field typeDefinitionProvider? boolean|lsp.TypeDefinitionOptions|lsp.TypeDefinitionRegistrationOptions 2545--- 2546---The server provides Goto Implementation support. 2547---@field implementationProvider? boolean|lsp.ImplementationOptions|lsp.ImplementationRegistrationOptions 2548--- 2549---The server provides find references support. 2550---@field referencesProvider? boolean|lsp.ReferenceOptions 2551--- 2552---The server provides document highlight support. 2553---@field documentHighlightProvider? boolean|lsp.DocumentHighlightOptions 2554--- 2555---The server provides document symbol support. 2556---@field documentSymbolProvider? boolean|lsp.DocumentSymbolOptions 2557--- 2558---The server provides code actions. CodeActionOptions may only be 2559---specified if the client states that it supports 2560---`codeActionLiteralSupport` in its initial `initialize` request. 2561---@field codeActionProvider? boolean|lsp.CodeActionOptions 2562--- 2563---The server provides code lens. 2564---@field codeLensProvider? lsp.CodeLensOptions 2565--- 2566---The server provides document link support. 2567---@field documentLinkProvider? lsp.DocumentLinkOptions 2568--- 2569---The server provides color provider support. 2570---@field colorProvider? boolean|lsp.DocumentColorOptions|lsp.DocumentColorRegistrationOptions 2571--- 2572---The server provides workspace symbol support. 2573---@field workspaceSymbolProvider? boolean|lsp.WorkspaceSymbolOptions 2574--- 2575---The server provides document formatting. 2576---@field documentFormattingProvider? boolean|lsp.DocumentFormattingOptions 2577--- 2578---The server provides document range formatting. 2579---@field documentRangeFormattingProvider? boolean|lsp.DocumentRangeFormattingOptions 2580--- 2581---The server provides document formatting on typing. 2582---@field documentOnTypeFormattingProvider? lsp.DocumentOnTypeFormattingOptions 2583--- 2584---The server provides rename support. RenameOptions may only be 2585---specified if the client states that it supports 2586---`prepareSupport` in its initial `initialize` request. 2587---@field renameProvider? boolean|lsp.RenameOptions 2588--- 2589---The server provides folding provider support. 2590---@field foldingRangeProvider? boolean|lsp.FoldingRangeOptions|lsp.FoldingRangeRegistrationOptions 2591--- 2592---The server provides selection range support. 2593---@field selectionRangeProvider? boolean|lsp.SelectionRangeOptions|lsp.SelectionRangeRegistrationOptions 2594--- 2595---The server provides execute command support. 2596---@field executeCommandProvider? lsp.ExecuteCommandOptions 2597--- 2598---The server provides call hierarchy support. 2599--- 2600---@since 3.16.0 2601---@field callHierarchyProvider? boolean|lsp.CallHierarchyOptions|lsp.CallHierarchyRegistrationOptions 2602--- 2603---The server provides linked editing range support. 2604--- 2605---@since 3.16.0 2606---@field linkedEditingRangeProvider? boolean|lsp.LinkedEditingRangeOptions|lsp.LinkedEditingRangeRegistrationOptions 2607--- 2608---The server provides semantic tokens support. 2609--- 2610---@since 3.16.0 2611---@field semanticTokensProvider? lsp.SemanticTokensOptions|lsp.SemanticTokensRegistrationOptions 2612--- 2613---The server provides moniker support. 2614--- 2615---@since 3.16.0 2616---@field monikerProvider? boolean|lsp.MonikerOptions|lsp.MonikerRegistrationOptions 2617--- 2618---The server provides type hierarchy support. 2619--- 2620---@since 3.17.0 2621---@field typeHierarchyProvider? boolean|lsp.TypeHierarchyOptions|lsp.TypeHierarchyRegistrationOptions 2622--- 2623---The server provides inline values. 2624--- 2625---@since 3.17.0 2626---@field inlineValueProvider? boolean|lsp.InlineValueOptions|lsp.InlineValueRegistrationOptions 2627--- 2628---The server provides inlay hints. 2629--- 2630---@since 3.17.0 2631---@field inlayHintProvider? boolean|lsp.InlayHintOptions|lsp.InlayHintRegistrationOptions 2632--- 2633---The server has support for pull model diagnostics. 2634--- 2635---@since 3.17.0 2636---@field diagnosticProvider? lsp.DiagnosticOptions|lsp.DiagnosticRegistrationOptions 2637--- 2638---Inline completion options used during static registration. 2639--- 2640---@since 3.18.0 2641---@field inlineCompletionProvider? boolean|lsp.InlineCompletionOptions 2642--- 2643---Workspace specific server capabilities. 2644---@field workspace? lsp.WorkspaceOptions 2645--- 2646---Experimental server capabilities. 2647---@field experimental? lsp.LSPAny 2648 2649---Information about the server 2650--- 2651---@since 3.15.0 2652---@since 3.18.0 ServerInfo type name added. 2653---@class lsp.ServerInfo 2654--- 2655---The name of the server as defined by the server. 2656---@field name string 2657--- 2658---The server's version as defined by the server. 2659---@field version? string 2660 2661---A text document identifier to denote a specific version of a text document. 2662---@class lsp.VersionedTextDocumentIdentifier: lsp.TextDocumentIdentifier 2663--- 2664---The version number of this document. 2665---@field version integer 2666 2667---Save options. 2668---@class lsp.SaveOptions 2669--- 2670---The client is supposed to include the content on save. 2671---@field includeText? boolean 2672 2673---An event describing a file change. 2674---@class lsp.FileEvent 2675--- 2676---The file's uri. 2677---@field uri lsp.DocumentUri 2678--- 2679---The change type. 2680---@field type lsp.FileChangeType 2681 2682---@class lsp.FileSystemWatcher 2683--- 2684---The glob pattern to watch. See {@link GlobPattern glob pattern} for more detail. 2685--- 2686---@since 3.17.0 support for relative patterns. 2687---@field globPattern lsp.GlobPattern 2688--- 2689---The kind of events of interest. If omitted it defaults 2690---to WatchKind.Create | WatchKind.Change | WatchKind.Delete 2691---which is 7. 2692---@field kind? lsp.WatchKind 2693 2694---Represents a diagnostic, such as a compiler error or warning. Diagnostic objects 2695---are only valid in the scope of a resource. 2696---@class lsp.Diagnostic 2697--- 2698---The range at which the message applies 2699---@field range lsp.Range 2700--- 2701---The diagnostic's severity. To avoid interpretation mismatches when a 2702---server is used with different clients it is highly recommended that servers 2703---always provide a severity value. 2704---@field severity? lsp.DiagnosticSeverity 2705--- 2706---The diagnostic's code, which usually appear in the user interface. 2707---@field code? integer|string 2708--- 2709---An optional property to describe the error code. 2710---Requires the code field (above) to be present/not null. 2711--- 2712---@since 3.16.0 2713---@field codeDescription? lsp.CodeDescription 2714--- 2715---A human-readable string describing the source of this 2716---diagnostic, e.g. 'typescript' or 'super lint'. It usually 2717---appears in the user interface. 2718---@field source? string 2719--- 2720---The diagnostic's message. It usually appears in the user interface. 2721--- 2722---@since 3.18.0 - support for MarkupContent. This is guarded by the client 2723---capability `textDocument.diagnostic.markupMessageSupport`. 2724---@field message string|lsp.MarkupContent 2725--- 2726---Additional metadata about the diagnostic. 2727--- 2728---@since 3.15.0 2729---@field tags? lsp.DiagnosticTag[] 2730--- 2731---An array of related diagnostic information, e.g. when symbol-names within 2732---a scope collide all definitions can be marked via this property. 2733---@field relatedInformation? lsp.DiagnosticRelatedInformation[] 2734--- 2735---A data entry field that is preserved between a `textDocument/publishDiagnostics` 2736---notification and `textDocument/codeAction` request. 2737--- 2738---@since 3.16.0 2739---@field data? lsp.LSPAny 2740 2741---Contains additional information about the context in which a completion request is triggered. 2742---@class lsp.CompletionContext 2743--- 2744---How the completion was triggered. 2745---@field triggerKind lsp.CompletionTriggerKind 2746--- 2747---The trigger character (a single character) that has trigger code complete. 2748---Is undefined if `triggerKind !== CompletionTriggerKind.TriggerCharacter` 2749---@field triggerCharacter? string 2750 2751---Additional details for a completion item label. 2752--- 2753---@since 3.17.0 2754---@class lsp.CompletionItemLabelDetails 2755--- 2756---An optional string which is rendered less prominently directly after {@link CompletionItem.label label}, 2757---without any spacing. Should be used for function signatures and type annotations. 2758---@field detail? string 2759--- 2760---An optional string which is rendered less prominently after {@link CompletionItem.detail}. Should be used 2761---for fully qualified names and file paths. 2762---@field description? string 2763 2764---A special text edit to provide an insert and a replace operation. 2765--- 2766---@since 3.16.0 2767---@class lsp.InsertReplaceEdit 2768--- 2769---The string to be inserted. 2770---@field newText string 2771--- 2772---The range if the insert is requested 2773---@field insert lsp.Range 2774--- 2775---The range if the replace is requested. 2776---@field replace lsp.Range 2777 2778---In many cases the items of an actual completion result share the same 2779---value for properties like `commitCharacters` or the range of a text 2780---edit. A completion list can therefore define item defaults which will 2781---be used if a completion item itself doesn't specify the value. 2782--- 2783---If a completion list specifies a default value and a completion item 2784---also specifies a corresponding value, the rules for combining these are 2785---defined by `applyKinds` (if the client supports it), defaulting to 2786---ApplyKind.Replace. 2787--- 2788---Servers are only allowed to return default values if the client 2789---signals support for this via the `completionList.itemDefaults` 2790---capability. 2791--- 2792---@since 3.17.0 2793---@class lsp.CompletionItemDefaults 2794--- 2795---A default commit character set. 2796--- 2797---@since 3.17.0 2798---@field commitCharacters? string[] 2799--- 2800---A default edit range. 2801--- 2802---@since 3.17.0 2803---@field editRange? lsp.Range|lsp.EditRangeWithInsertReplace 2804--- 2805---A default insert text format. 2806--- 2807---@since 3.17.0 2808---@field insertTextFormat? lsp.InsertTextFormat 2809--- 2810---A default insert text mode. 2811--- 2812---@since 3.17.0 2813---@field insertTextMode? lsp.InsertTextMode 2814--- 2815---A default data value. 2816--- 2817---@since 3.17.0 2818---@field data? lsp.LSPAny 2819 2820---Specifies how fields from a completion item should be combined with those 2821---from `completionList.itemDefaults`. 2822--- 2823---If unspecified, all fields will be treated as ApplyKind.Replace. 2824--- 2825---If a field's value is ApplyKind.Replace, the value from a completion item (if 2826---provided and not `null`) will always be used instead of the value from 2827---`completionItem.itemDefaults`. 2828--- 2829---If a field's value is ApplyKind.Merge, the values will be merged using the rules 2830---defined against each field below. 2831--- 2832---Servers are only allowed to return `applyKind` if the client 2833---signals support for this via the `completionList.applyKindSupport` 2834---capability. 2835--- 2836---@since 3.18.0 2837---@class lsp.CompletionItemApplyKinds 2838--- 2839---Specifies whether commitCharacters on a completion will replace or be 2840---merged with those in `completionList.itemDefaults.commitCharacters`. 2841--- 2842---If ApplyKind.Replace, the commit characters from the completion item will 2843---always be used unless not provided, in which case those from 2844---`completionList.itemDefaults.commitCharacters` will be used. An 2845---empty list can be used if a completion item does not have any commit 2846---characters and also should not use those from 2847---`completionList.itemDefaults.commitCharacters`. 2848--- 2849---If ApplyKind.Merge the commitCharacters for the completion will be the 2850---union of all values in both `completionList.itemDefaults.commitCharacters` 2851---and the completion's own `commitCharacters`. 2852--- 2853---@since 3.18.0 2854---@field commitCharacters? lsp.ApplyKind 2855--- 2856---Specifies whether the `data` field on a completion will replace or 2857---be merged with data from `completionList.itemDefaults.data`. 2858--- 2859---If ApplyKind.Replace, the data from the completion item will be used if 2860---provided (and not `null`), otherwise 2861---`completionList.itemDefaults.data` will be used. An empty object can 2862---be used if a completion item does not have any data but also should 2863---not use the value from `completionList.itemDefaults.data`. 2864--- 2865---If ApplyKind.Merge, a shallow merge will be performed between 2866---`completionList.itemDefaults.data` and the completion's own data 2867---using the following rules: 2868--- 2869---- If a completion's `data` field is not provided (or `null`), the 2870--- entire `data` field from `completionList.itemDefaults.data` will be 2871--- used as-is. 2872---- If a completion's `data` field is provided, each field will 2873--- overwrite the field of the same name in 2874--- `completionList.itemDefaults.data` but no merging of nested fields 2875--- within that value will occur. 2876--- 2877---@since 3.18.0 2878---@field data? lsp.ApplyKind 2879 2880---Completion options. 2881---@class lsp.CompletionOptions: lsp.WorkDoneProgressOptions 2882--- 2883---Most tools trigger completion request automatically without explicitly requesting 2884---it using a keyboard shortcut (e.g. Ctrl+Space). Typically they do so when the user 2885---starts to type an identifier. For example if the user types `c` in a JavaScript file 2886---code complete will automatically pop up present `console` besides others as a 2887---completion item. Characters that make up identifiers don't need to be listed here. 2888--- 2889---If code complete should automatically be trigger on characters not being valid inside 2890---an identifier (for example `.` in JavaScript) list them in `triggerCharacters`. 2891---@field triggerCharacters? string[] 2892--- 2893---The list of all possible characters that commit a completion. This field can be used 2894---if clients don't support individual commit characters per completion item. See 2895---`ClientCapabilities.textDocument.completion.completionItem.commitCharactersSupport` 2896--- 2897---If a server provides both `allCommitCharacters` and commit characters on an individual 2898---completion item the ones on the completion item win. 2899--- 2900---@since 3.2.0 2901---@field allCommitCharacters? string[] 2902--- 2903---The server provides support to resolve additional 2904---information for a completion item. 2905---@field resolveProvider? boolean 2906--- 2907---The server supports the following `CompletionItem` specific 2908---capabilities. 2909--- 2910---@since 3.17.0 2911---@field completionItem? lsp.ServerCompletionItemOptions 2912 2913---Hover options. 2914---@class lsp.HoverOptions: lsp.WorkDoneProgressOptions 2915 2916---Additional information about the context in which a signature help request was triggered. 2917--- 2918---@since 3.15.0 2919---@class lsp.SignatureHelpContext 2920--- 2921---Action that caused signature help to be triggered. 2922---@field triggerKind lsp.SignatureHelpTriggerKind 2923--- 2924---Character that caused signature help to be triggered. 2925--- 2926---This is undefined when `triggerKind !== SignatureHelpTriggerKind.TriggerCharacter` 2927---@field triggerCharacter? string 2928--- 2929---`true` if signature help was already showing when it was triggered. 2930--- 2931---Retriggers occurs when the signature help is already active and can be caused by actions such as 2932---typing a trigger character, a cursor move, or document content changes. 2933---@field isRetrigger boolean 2934--- 2935---The currently active `SignatureHelp`. 2936--- 2937---The `activeSignatureHelp` has its `SignatureHelp.activeSignature` field updated based on 2938---the user navigating through available signatures. 2939---@field activeSignatureHelp? lsp.SignatureHelp 2940 2941---Represents the signature of something callable. A signature 2942---can have a label, like a function-name, a doc-comment, and 2943---a set of parameters. 2944---@class lsp.SignatureInformation 2945--- 2946---The label of this signature. Will be shown in 2947---the UI. 2948---@field label string 2949--- 2950---The human-readable doc-comment of this signature. Will be shown 2951---in the UI but can be omitted. 2952---@field documentation? string|lsp.MarkupContent 2953--- 2954---The parameters of this signature. 2955---@field parameters? lsp.ParameterInformation[] 2956--- 2957---The index of the active parameter. 2958--- 2959---If `null`, no parameter of the signature is active (for example a named 2960---argument that does not match any declared parameters). This is only valid 2961---if the client specifies the client capability 2962---`textDocument.signatureHelp.noActiveParameterSupport === true` 2963--- 2964---If provided (or `null`), this is used in place of 2965---`SignatureHelp.activeParameter`. 2966--- 2967---@since 3.16.0 2968---@field activeParameter? uinteger|lsp.null 2969 2970---Server Capabilities for a {@link SignatureHelpRequest}. 2971---@class lsp.SignatureHelpOptions: lsp.WorkDoneProgressOptions 2972--- 2973---List of characters that trigger signature help automatically. 2974---@field triggerCharacters? string[] 2975--- 2976---List of characters that re-trigger signature help. 2977--- 2978---These trigger characters are only active when signature help is already showing. All trigger characters 2979---are also counted as re-trigger characters. 2980--- 2981---@since 3.15.0 2982---@field retriggerCharacters? string[] 2983 2984---Server Capabilities for a {@link DefinitionRequest}. 2985---@class lsp.DefinitionOptions: lsp.WorkDoneProgressOptions 2986 2987---Value-object that contains additional information when 2988---requesting references. 2989---@class lsp.ReferenceContext 2990--- 2991---Include the declaration of the current symbol. 2992---@field includeDeclaration boolean 2993 2994---Reference options. 2995---@class lsp.ReferenceOptions: lsp.WorkDoneProgressOptions 2996 2997---Provider options for a {@link DocumentHighlightRequest}. 2998---@class lsp.DocumentHighlightOptions: lsp.WorkDoneProgressOptions 2999 3000---A base for all symbol information. 3001---@class lsp.BaseSymbolInformation 3002--- 3003---The name of this symbol. 3004---@field name string 3005--- 3006---The kind of this symbol. 3007---@field kind lsp.SymbolKind 3008--- 3009---Tags for this symbol. 3010--- 3011---@since 3.16.0 3012---@field tags? lsp.SymbolTag[] 3013--- 3014---The name of the symbol containing this symbol. This information is for 3015---user interface purposes (e.g. to render a qualifier in the user interface 3016---if necessary). It can't be used to re-infer a hierarchy for the document 3017---symbols. 3018---@field containerName? string 3019 3020---Provider options for a {@link DocumentSymbolRequest}. 3021---@class lsp.DocumentSymbolOptions: lsp.WorkDoneProgressOptions 3022--- 3023---A human-readable string that is shown when multiple outlines trees 3024---are shown for the same document. 3025--- 3026---@since 3.16.0 3027---@field label? string 3028 3029---Contains additional diagnostic information about the context in which 3030---a {@link CodeActionProvider.provideCodeActions code action} is run. 3031---@class lsp.CodeActionContext 3032--- 3033---An array of diagnostics known on the client side overlapping the range provided to the 3034---`textDocument/codeAction` request. They are provided so that the server knows which 3035---errors are currently presented to the user for the given range. There is no guarantee 3036---that these accurately reflect the error state of the resource. The primary parameter 3037---to compute code actions is the provided range. 3038---@field diagnostics lsp.Diagnostic[] 3039--- 3040---Requested kind of actions to return. 3041--- 3042---Actions not of this kind are filtered out by the client before being shown. So servers 3043---can omit computing them. 3044---@field only? lsp.CodeActionKind[] 3045--- 3046---The reason why code actions were requested. 3047--- 3048---@since 3.17.0 3049---@field triggerKind? lsp.CodeActionTriggerKind 3050 3051---Captures why the code action is currently disabled. 3052--- 3053---@since 3.18.0 3054---@class lsp.CodeActionDisabled 3055--- 3056---Human readable description of why the code action is currently disabled. 3057--- 3058---This is displayed in the code actions UI. 3059---@field reason string 3060 3061---Provider options for a {@link CodeActionRequest}. 3062---@class lsp.CodeActionOptions: lsp.WorkDoneProgressOptions 3063--- 3064---CodeActionKinds that this server may return. 3065--- 3066---The list of kinds may be generic, such as `CodeActionKind.Refactor`, or the server 3067---may list out every specific kind they provide. 3068---@field codeActionKinds? lsp.CodeActionKind[] 3069--- 3070---Static documentation for a class of code actions. 3071--- 3072---Documentation from the provider should be shown in the code actions menu if either: 3073--- 3074---- Code actions of `kind` are requested by the editor. In this case, the editor will show the documentation that 3075--- most closely matches the requested code action kind. For example, if a provider has documentation for 3076--- both `Refactor` and `RefactorExtract`, when the user requests code actions for `RefactorExtract`, 3077--- the editor will use the documentation for `RefactorExtract` instead of the documentation for `Refactor`. 3078--- 3079---- Any code actions of `kind` are returned by the provider. 3080--- 3081---At most one documentation entry should be shown per provider. 3082--- 3083---@since 3.18.0 3084---@field documentation? lsp.CodeActionKindDocumentation[] 3085--- 3086---The server provides support to resolve additional 3087---information for a code action. 3088--- 3089---@since 3.16.0 3090---@field resolveProvider? boolean 3091 3092---Location with only uri and does not include range. 3093--- 3094---@since 3.18.0 3095---@class lsp.LocationUriOnly 3096--- 3097---@field uri lsp.DocumentUri 3098 3099---Server capabilities for a {@link WorkspaceSymbolRequest}. 3100---@class lsp.WorkspaceSymbolOptions: lsp.WorkDoneProgressOptions 3101--- 3102---The server provides support to resolve additional 3103---information for a workspace symbol. 3104--- 3105---@since 3.17.0 3106---@field resolveProvider? boolean 3107 3108---Code Lens provider options of a {@link CodeLensRequest}. 3109---@class lsp.CodeLensOptions: lsp.WorkDoneProgressOptions 3110--- 3111---Code lens has a resolve provider as well. 3112---@field resolveProvider? boolean 3113 3114---Provider options for a {@link DocumentLinkRequest}. 3115---@class lsp.DocumentLinkOptions: lsp.WorkDoneProgressOptions 3116--- 3117---Document links have a resolve provider as well. 3118---@field resolveProvider? boolean 3119 3120---Value-object describing what options formatting should use. 3121---@class lsp.FormattingOptions 3122--- 3123---Size of a tab in spaces. 3124---@field tabSize uinteger 3125--- 3126---Prefer spaces over tabs. 3127---@field insertSpaces boolean 3128--- 3129---Trim trailing whitespace on a line. 3130--- 3131---@since 3.15.0 3132---@field trimTrailingWhitespace? boolean 3133--- 3134---Insert a newline character at the end of the file if one does not exist. 3135--- 3136---@since 3.15.0 3137---@field insertFinalNewline? boolean 3138--- 3139---Trim all newlines after the final newline at the end of the file. 3140--- 3141---@since 3.15.0 3142---@field trimFinalNewlines? boolean 3143 3144---Provider options for a {@link DocumentFormattingRequest}. 3145---@class lsp.DocumentFormattingOptions: lsp.WorkDoneProgressOptions 3146 3147---Provider options for a {@link DocumentRangeFormattingRequest}. 3148---@class lsp.DocumentRangeFormattingOptions: lsp.WorkDoneProgressOptions 3149--- 3150---Whether the server supports formatting multiple ranges at once. 3151--- 3152---@since 3.18.0 3153---@field rangesSupport? boolean 3154 3155---Provider options for a {@link DocumentOnTypeFormattingRequest}. 3156---@class lsp.DocumentOnTypeFormattingOptions 3157--- 3158---A character on which formatting should be triggered, like `{`. 3159---@field firstTriggerCharacter string 3160--- 3161---More trigger characters. 3162---@field moreTriggerCharacter? string[] 3163 3164---Provider options for a {@link RenameRequest}. 3165---@class lsp.RenameOptions: lsp.WorkDoneProgressOptions 3166--- 3167---Renames should be checked and tested before being executed. 3168--- 3169---@since version 3.12.0 3170---@field prepareProvider? boolean 3171 3172---@since 3.18.0 3173---@class lsp.PrepareRenamePlaceholder 3174--- 3175---@field range lsp.Range 3176--- 3177---@field placeholder string 3178 3179---@since 3.18.0 3180---@class lsp.PrepareRenameDefaultBehavior 3181--- 3182---@field defaultBehavior boolean 3183 3184---The server capabilities of a {@link ExecuteCommandRequest}. 3185---@class lsp.ExecuteCommandOptions: lsp.WorkDoneProgressOptions 3186--- 3187---The commands to be executed on the server 3188---@field commands string[] 3189 3190---Additional data about a workspace edit. 3191--- 3192---@since 3.18.0 3193---@class lsp.WorkspaceEditMetadata 3194--- 3195---Signal to the editor that this edit is a refactoring. 3196---@field isRefactoring? boolean 3197 3198---@since 3.16.0 3199---@class lsp.SemanticTokensLegend 3200--- 3201---The token types a server uses. 3202---@field tokenTypes string[] 3203--- 3204---The token modifiers a server uses. 3205---@field tokenModifiers string[] 3206 3207---Semantic tokens options to support deltas for full documents 3208--- 3209---@since 3.18.0 3210---@class lsp.SemanticTokensFullDelta 3211--- 3212---The server supports deltas for full documents. 3213---@field delta? boolean 3214 3215---A text document identifier to optionally denote a specific version of a text document. 3216---@class lsp.OptionalVersionedTextDocumentIdentifier: lsp.TextDocumentIdentifier 3217--- 3218---The version number of this document. If a versioned text document identifier 3219---is sent from the server to the client and the file is not open in the editor 3220---(the server has not received an open notification before) the server can send 3221---`null` to indicate that the version is unknown and the content on disk is the 3222---truth (as specified with document content ownership). 3223---@field version integer|lsp.null 3224 3225---A special text edit with an additional change annotation. 3226--- 3227---@since 3.16.0. 3228---@class lsp.AnnotatedTextEdit: lsp.TextEdit 3229--- 3230---The actual identifier of the change annotation 3231---@field annotationId lsp.ChangeAnnotationIdentifier 3232 3233---An interactive text edit. 3234--- 3235---@since 3.18.0 3236---@class lsp.SnippetTextEdit 3237--- 3238---The range of the text document to be manipulated. 3239---@field range lsp.Range 3240--- 3241---The snippet to be inserted. 3242---@field snippet lsp.StringValue 3243--- 3244---The actual identifier of the snippet edit. 3245---@field annotationId? lsp.ChangeAnnotationIdentifier 3246 3247---A generic resource operation. 3248---@class lsp.ResourceOperation 3249--- 3250---The resource operation kind. 3251---@field kind string 3252--- 3253---An optional annotation identifier describing the operation. 3254--- 3255---@since 3.16.0 3256---@field annotationId? lsp.ChangeAnnotationIdentifier 3257 3258---Options to create a file. 3259---@class lsp.CreateFileOptions 3260--- 3261---Overwrite existing file. Overwrite wins over `ignoreIfExists` 3262---@field overwrite? boolean 3263--- 3264---Ignore if exists. 3265---@field ignoreIfExists? boolean 3266 3267---Rename file options 3268---@class lsp.RenameFileOptions 3269--- 3270---Overwrite target if existing. Overwrite wins over `ignoreIfExists` 3271---@field overwrite? boolean 3272--- 3273---Ignores if target exists. 3274---@field ignoreIfExists? boolean 3275 3276---Delete file options 3277---@class lsp.DeleteFileOptions 3278--- 3279---Delete the content recursively if a folder is denoted. 3280---@field recursive? boolean 3281--- 3282---Ignore the operation if the file doesn't exist. 3283---@field ignoreIfNotExists? boolean 3284 3285---A pattern to describe in which file operation requests or notifications 3286---the server is interested in receiving. 3287--- 3288---@since 3.16.0 3289---@class lsp.FileOperationPattern 3290--- 3291---The glob pattern to match. Glob patterns can have the following syntax: 3292---- `*` to match zero or more characters in a path segment 3293---- `?` to match on one character in a path segment 3294---- `**` to match any number of path segments, including none 3295---- `{}` to group sub patterns into an OR expression. (e.g. `**/*.{ts,js}` matches all TypeScript and JavaScript files) 3296---- `[]` to declare a range of characters to match in a path segment (e.g., `example.[0-9]` to match on `example.0`, `example.1`, …) 3297---- `[!...]` to negate a range of characters to match in a path segment (e.g., `example.[!0-9]` to match on `example.a`, `example.b`, but not `example.0`) 3298---@field glob string 3299--- 3300---Whether to match files or folders with this pattern. 3301--- 3302---Matches both if undefined. 3303---@field matches? lsp.FileOperationPatternKind 3304--- 3305---Additional options used during matching. 3306---@field options? lsp.FileOperationPatternOptions 3307 3308---A full document diagnostic report for a workspace diagnostic result. 3309--- 3310---@since 3.17.0 3311---@class lsp.WorkspaceFullDocumentDiagnosticReport: lsp.FullDocumentDiagnosticReport 3312--- 3313---The URI for which diagnostic information is reported. 3314---@field uri lsp.DocumentUri 3315--- 3316---The version number for which the diagnostics are reported. 3317---If the document is not marked as open `null` can be provided. 3318---@field version integer|lsp.null 3319 3320---An unchanged document diagnostic report for a workspace diagnostic result. 3321--- 3322---@since 3.17.0 3323---@class lsp.WorkspaceUnchangedDocumentDiagnosticReport: lsp.UnchangedDocumentDiagnosticReport 3324--- 3325---The URI for which diagnostic information is reported. 3326---@field uri lsp.DocumentUri 3327--- 3328---The version number for which the diagnostics are reported. 3329---If the document is not marked as open `null` can be provided. 3330---@field version integer|lsp.null 3331 3332---A notebook cell. 3333--- 3334---A cell's document URI must be unique across ALL notebook 3335---cells and can therefore be used to uniquely identify a 3336---notebook cell or the cell's text document. 3337--- 3338---@since 3.17.0 3339---@class lsp.NotebookCell 3340--- 3341---The cell's kind 3342---@field kind lsp.NotebookCellKind 3343--- 3344---The URI of the cell's text document 3345---content. 3346---@field document lsp.DocumentUri 3347--- 3348---Additional metadata stored with the cell. 3349--- 3350---Note: should always be an object literal (e.g. LSPObject) 3351---@field metadata? lsp.LSPObject 3352--- 3353---Additional execution summary information 3354---if supported by the client. 3355---@field executionSummary? lsp.ExecutionSummary 3356 3357---@since 3.18.0 3358---@class lsp.NotebookDocumentFilterWithNotebook 3359--- 3360---The notebook to be synced If a string 3361---value is provided it matches against the 3362---notebook type. '*' matches every notebook. 3363---@field notebook string|lsp.NotebookDocumentFilter 3364--- 3365---The cells of the matching notebook to be synced. 3366---@field cells? lsp.NotebookCellLanguage[] 3367 3368---@since 3.18.0 3369---@class lsp.NotebookDocumentFilterWithCells 3370--- 3371---The notebook to be synced If a string 3372---value is provided it matches against the 3373---notebook type. '*' matches every notebook. 3374---@field notebook? string|lsp.NotebookDocumentFilter 3375--- 3376---The cells of the matching notebook to be synced. 3377---@field cells lsp.NotebookCellLanguage[] 3378 3379---Cell changes to a notebook document. 3380--- 3381---@since 3.18.0 3382---@class lsp.NotebookDocumentCellChanges 3383--- 3384---Changes to the cell structure to add or 3385---remove cells. 3386---@field structure? lsp.NotebookDocumentCellChangeStructure 3387--- 3388---Changes to notebook cells properties like its 3389---kind, execution summary or metadata. 3390---@field data? lsp.NotebookCell[] 3391--- 3392---Changes to the text content of notebook cells. 3393---@field textContent? lsp.NotebookDocumentCellContentChanges[] 3394 3395---Describes the currently selected completion item. 3396--- 3397---@since 3.18.0 3398---@class lsp.SelectedCompletionInfo 3399--- 3400---The range that will be replaced if this completion item is accepted. 3401---@field range lsp.Range 3402--- 3403---The text the range will be replaced with if this completion is accepted. 3404---@field text string 3405 3406---Information about the client 3407--- 3408---@since 3.15.0 3409---@since 3.18.0 ClientInfo type name added. 3410---@class lsp.ClientInfo 3411--- 3412---The name of the client as defined by the client. 3413---@field name string 3414--- 3415---The client's version as defined by the client. 3416---@field version? string 3417 3418---Defines the capabilities provided by the client. 3419---@class lsp.ClientCapabilities 3420--- 3421---Workspace specific client capabilities. 3422---@field workspace? lsp.WorkspaceClientCapabilities 3423--- 3424---Text document specific client capabilities. 3425---@field textDocument? lsp.TextDocumentClientCapabilities 3426--- 3427---Capabilities specific to the notebook document support. 3428--- 3429---@since 3.17.0 3430---@field notebookDocument? lsp.NotebookDocumentClientCapabilities 3431--- 3432---Window specific client capabilities. 3433---@field window? lsp.WindowClientCapabilities 3434--- 3435---General client capabilities. 3436--- 3437---@since 3.16.0 3438---@field general? lsp.GeneralClientCapabilities 3439--- 3440---Experimental client capabilities. 3441---@field experimental? lsp.LSPAny 3442 3443---@class lsp.TextDocumentSyncOptions 3444--- 3445---Open and close notifications are sent to the server. If omitted open close notification should not 3446---be sent. 3447---@field openClose? boolean 3448--- 3449---Change notifications are sent to the server. See TextDocumentSyncKind.None, TextDocumentSyncKind.Full 3450---and TextDocumentSyncKind.Incremental. If omitted it defaults to TextDocumentSyncKind.None. 3451---@field change? lsp.TextDocumentSyncKind 3452--- 3453---If present will save notifications are sent to the server. If omitted the notification should not be 3454---sent. 3455---@field willSave? boolean 3456--- 3457---If present will save wait until requests are sent to the server. If omitted the request should not be 3458---sent. 3459---@field willSaveWaitUntil? boolean 3460--- 3461---If present save notifications are sent to the server. If omitted the notification should not be 3462---sent. 3463---@field save? boolean|lsp.SaveOptions 3464 3465---Defines workspace specific capabilities of the server. 3466--- 3467---@since 3.18.0 3468---@class lsp.WorkspaceOptions 3469--- 3470---The server supports workspace folder. 3471--- 3472---@since 3.6.0 3473---@field workspaceFolders? lsp.WorkspaceFoldersServerCapabilities 3474--- 3475---The server is interested in notifications/requests for operations on files. 3476--- 3477---@since 3.16.0 3478---@field fileOperations? lsp.FileOperationOptions 3479--- 3480---The server supports the `workspace/textDocumentContent` request. 3481--- 3482---@since 3.18.0 3483---@field textDocumentContent? lsp.TextDocumentContentOptions|lsp.TextDocumentContentRegistrationOptions 3484 3485---@since 3.18.0 3486---@class lsp.TextDocumentContentChangePartial 3487--- 3488---The range of the document that changed. 3489---@field range lsp.Range 3490--- 3491---The optional length of the range that got replaced. 3492--- 3493---@deprecated use range instead. 3494---@field rangeLength? uinteger 3495--- 3496---The new text for the provided range. 3497---@field text string 3498 3499---@since 3.18.0 3500---@class lsp.TextDocumentContentChangeWholeDocument 3501--- 3502---The new text of the whole document. 3503---@field text string 3504 3505---Structure to capture a description for an error code. 3506--- 3507---@since 3.16.0 3508---@class lsp.CodeDescription 3509--- 3510---An URI to open with more information about the diagnostic error. 3511---@field href lsp.URI 3512 3513---Represents a related message and source code location for a diagnostic. This should be 3514---used to point to code locations that cause or related to a diagnostics, e.g when duplicating 3515---a symbol in a scope. 3516---@class lsp.DiagnosticRelatedInformation 3517--- 3518---The location of this related diagnostic information. 3519---@field location lsp.Location 3520--- 3521---The message of this related diagnostic information. 3522---@field message string 3523 3524---Edit range variant that includes ranges for insert and replace operations. 3525--- 3526---@since 3.18.0 3527---@class lsp.EditRangeWithInsertReplace 3528--- 3529---@field insert lsp.Range 3530--- 3531---@field replace lsp.Range 3532 3533---@since 3.18.0 3534---@class lsp.ServerCompletionItemOptions 3535--- 3536---The server has support for completion item label 3537---details (see also `CompletionItemLabelDetails`) when 3538---receiving a completion item in a resolve call. 3539--- 3540---@since 3.17.0 3541---@field labelDetailsSupport? boolean 3542 3543---@since 3.18.0 3544---@deprecated use MarkupContent instead. 3545---@class lsp.MarkedStringWithLanguage 3546--- 3547---@field language string 3548--- 3549---@field value string 3550 3551---Represents a parameter of a callable-signature. A parameter can 3552---have a label and a doc-comment. 3553---@class lsp.ParameterInformation 3554--- 3555---The label of this parameter information. 3556--- 3557---Either a string or an inclusive start and exclusive end offsets within its containing 3558---signature label. (see SignatureInformation.label). The offsets are based on a UTF-16 3559---string representation as `Position` and `Range` does. 3560--- 3561---To avoid ambiguities a server should use the [start, end] offset value instead of using 3562---a substring. Whether a client support this is controlled via `labelOffsetSupport` client 3563---capability. 3564--- 3565---*Note*: a label of type string should be a substring of its containing signature label. 3566---Its intended use case is to highlight the parameter label part in the `SignatureInformation.label`. 3567---@field label string|[uinteger, uinteger] 3568--- 3569---The human-readable doc-comment of this parameter. Will be shown 3570---in the UI but can be omitted. 3571---@field documentation? string|lsp.MarkupContent 3572 3573---Documentation for a class of code actions. 3574--- 3575---@since 3.18.0 3576---@class lsp.CodeActionKindDocumentation 3577--- 3578---The kind of the code action being documented. 3579--- 3580---If the kind is generic, such as `CodeActionKind.Refactor`, the documentation will be shown whenever any 3581---refactorings are returned. If the kind if more specific, such as `CodeActionKind.RefactorExtract`, the 3582---documentation will only be shown when extract refactoring code actions are returned. 3583---@field kind lsp.CodeActionKind 3584--- 3585---Command that is ued to display the documentation to the user. 3586--- 3587---The title of this documentation code action is taken from {@linkcode Command.title} 3588---@field command lsp.Command 3589 3590---A notebook cell text document filter denotes a cell text 3591---document by different properties. 3592--- 3593---@since 3.17.0 3594---@class lsp.NotebookCellTextDocumentFilter 3595--- 3596---A filter that matches against the notebook 3597---containing the notebook cell. If a string 3598---value is provided it matches against the 3599---notebook type. '*' matches every notebook. 3600---@field notebook string|lsp.NotebookDocumentFilter 3601--- 3602---A language id like `python`. 3603--- 3604---Will be matched against the language id of the 3605---notebook cell document. '*' matches every language. 3606---@field language? string 3607 3608---Matching options for the file operation pattern. 3609--- 3610---@since 3.16.0 3611---@class lsp.FileOperationPatternOptions 3612--- 3613---The pattern should be matched ignoring casing. 3614---@field ignoreCase? boolean 3615 3616---@class lsp.ExecutionSummary 3617--- 3618---A strict monotonically increasing value 3619---indicating the execution order of a cell 3620---inside a notebook. 3621---@field executionOrder uinteger 3622--- 3623---Whether the execution was successful or 3624---not if known by the client. 3625---@field success? boolean 3626 3627---@since 3.18.0 3628---@class lsp.NotebookCellLanguage 3629--- 3630---@field language string 3631 3632---Structural changes to cells in a notebook document. 3633--- 3634---@since 3.18.0 3635---@class lsp.NotebookDocumentCellChangeStructure 3636--- 3637---The change to the cell array. 3638---@field array lsp.NotebookCellArrayChange 3639--- 3640---Additional opened cell text documents. 3641---@field didOpen? lsp.TextDocumentItem[] 3642--- 3643---Additional closed cell text documents. 3644---@field didClose? lsp.TextDocumentIdentifier[] 3645 3646---Content changes to a cell in a notebook document. 3647--- 3648---@since 3.18.0 3649---@class lsp.NotebookDocumentCellContentChanges 3650--- 3651---@field document lsp.VersionedTextDocumentIdentifier 3652--- 3653---@field changes lsp.TextDocumentContentChangeEvent[] 3654 3655---Workspace specific client capabilities. 3656---@class lsp.WorkspaceClientCapabilities 3657--- 3658---The client supports applying batch edits 3659---to the workspace by supporting the request 3660---'workspace/applyEdit' 3661---@field applyEdit? boolean 3662--- 3663---Capabilities specific to `WorkspaceEdit`s. 3664---@field workspaceEdit? lsp.WorkspaceEditClientCapabilities 3665--- 3666---Capabilities specific to the `workspace/didChangeConfiguration` notification. 3667---@field didChangeConfiguration? lsp.DidChangeConfigurationClientCapabilities 3668--- 3669---Capabilities specific to the `workspace/didChangeWatchedFiles` notification. 3670---@field didChangeWatchedFiles? lsp.DidChangeWatchedFilesClientCapabilities 3671--- 3672---Capabilities specific to the `workspace/symbol` request. 3673---@field symbol? lsp.WorkspaceSymbolClientCapabilities 3674--- 3675---Capabilities specific to the `workspace/executeCommand` request. 3676---@field executeCommand? lsp.ExecuteCommandClientCapabilities 3677--- 3678---The client has support for workspace folders. 3679--- 3680---@since 3.6.0 3681---@field workspaceFolders? boolean 3682--- 3683---The client supports `workspace/configuration` requests. 3684--- 3685---@since 3.6.0 3686---@field configuration? boolean 3687--- 3688---Capabilities specific to the semantic token requests scoped to the 3689---workspace. 3690--- 3691---@since 3.16.0. 3692---@field semanticTokens? lsp.SemanticTokensWorkspaceClientCapabilities 3693--- 3694---Capabilities specific to the code lens requests scoped to the 3695---workspace. 3696--- 3697---@since 3.16.0. 3698---@field codeLens? lsp.CodeLensWorkspaceClientCapabilities 3699--- 3700---The client has support for file notifications/requests for user operations on files. 3701--- 3702---Since 3.16.0 3703---@field fileOperations? lsp.FileOperationClientCapabilities 3704--- 3705---Capabilities specific to the inline values requests scoped to the 3706---workspace. 3707--- 3708---@since 3.17.0. 3709---@field inlineValue? lsp.InlineValueWorkspaceClientCapabilities 3710--- 3711---Capabilities specific to the inlay hint requests scoped to the 3712---workspace. 3713--- 3714---@since 3.17.0. 3715---@field inlayHint? lsp.InlayHintWorkspaceClientCapabilities 3716--- 3717---Capabilities specific to the diagnostic requests scoped to the 3718---workspace. 3719--- 3720---@since 3.17.0. 3721---@field diagnostics? lsp.DiagnosticWorkspaceClientCapabilities 3722--- 3723---Capabilities specific to the folding range requests scoped to the workspace. 3724--- 3725---@since 3.18.0 3726---@field foldingRange? lsp.FoldingRangeWorkspaceClientCapabilities 3727--- 3728---Capabilities specific to the `workspace/textDocumentContent` request. 3729--- 3730---@since 3.18.0 3731---@field textDocumentContent? lsp.TextDocumentContentClientCapabilities 3732 3733---Text document specific client capabilities. 3734---@class lsp.TextDocumentClientCapabilities 3735--- 3736---Defines which synchronization capabilities the client supports. 3737---@field synchronization? lsp.TextDocumentSyncClientCapabilities 3738--- 3739---Defines which filters the client supports. 3740--- 3741---@since 3.18.0 3742---@field filters? lsp.TextDocumentFilterClientCapabilities 3743--- 3744---Capabilities specific to the `textDocument/completion` request. 3745---@field completion? lsp.CompletionClientCapabilities 3746--- 3747---Capabilities specific to the `textDocument/hover` request. 3748---@field hover? lsp.HoverClientCapabilities 3749--- 3750---Capabilities specific to the `textDocument/signatureHelp` request. 3751---@field signatureHelp? lsp.SignatureHelpClientCapabilities 3752--- 3753---Capabilities specific to the `textDocument/declaration` request. 3754--- 3755---@since 3.14.0 3756---@field declaration? lsp.DeclarationClientCapabilities 3757--- 3758---Capabilities specific to the `textDocument/definition` request. 3759---@field definition? lsp.DefinitionClientCapabilities 3760--- 3761---Capabilities specific to the `textDocument/typeDefinition` request. 3762--- 3763---@since 3.6.0 3764---@field typeDefinition? lsp.TypeDefinitionClientCapabilities 3765--- 3766---Capabilities specific to the `textDocument/implementation` request. 3767--- 3768---@since 3.6.0 3769---@field implementation? lsp.ImplementationClientCapabilities 3770--- 3771---Capabilities specific to the `textDocument/references` request. 3772---@field references? lsp.ReferenceClientCapabilities 3773--- 3774---Capabilities specific to the `textDocument/documentHighlight` request. 3775---@field documentHighlight? lsp.DocumentHighlightClientCapabilities 3776--- 3777---Capabilities specific to the `textDocument/documentSymbol` request. 3778---@field documentSymbol? lsp.DocumentSymbolClientCapabilities 3779--- 3780---Capabilities specific to the `textDocument/codeAction` request. 3781---@field codeAction? lsp.CodeActionClientCapabilities 3782--- 3783---Capabilities specific to the `textDocument/codeLens` request. 3784---@field codeLens? lsp.CodeLensClientCapabilities 3785--- 3786---Capabilities specific to the `textDocument/documentLink` request. 3787---@field documentLink? lsp.DocumentLinkClientCapabilities 3788--- 3789---Capabilities specific to the `textDocument/documentColor` and the 3790---`textDocument/colorPresentation` request. 3791--- 3792---@since 3.6.0 3793---@field colorProvider? lsp.DocumentColorClientCapabilities 3794--- 3795---Capabilities specific to the `textDocument/formatting` request. 3796---@field formatting? lsp.DocumentFormattingClientCapabilities 3797--- 3798---Capabilities specific to the `textDocument/rangeFormatting` request. 3799---@field rangeFormatting? lsp.DocumentRangeFormattingClientCapabilities 3800--- 3801---Capabilities specific to the `textDocument/onTypeFormatting` request. 3802---@field onTypeFormatting? lsp.DocumentOnTypeFormattingClientCapabilities 3803--- 3804---Capabilities specific to the `textDocument/rename` request. 3805---@field rename? lsp.RenameClientCapabilities 3806--- 3807---Capabilities specific to the `textDocument/foldingRange` request. 3808--- 3809---@since 3.10.0 3810---@field foldingRange? lsp.FoldingRangeClientCapabilities 3811--- 3812---Capabilities specific to the `textDocument/selectionRange` request. 3813--- 3814---@since 3.15.0 3815---@field selectionRange? lsp.SelectionRangeClientCapabilities 3816--- 3817---Capabilities specific to the `textDocument/publishDiagnostics` notification. 3818---@field publishDiagnostics? lsp.PublishDiagnosticsClientCapabilities 3819--- 3820---Capabilities specific to the various call hierarchy requests. 3821--- 3822---@since 3.16.0 3823---@field callHierarchy? lsp.CallHierarchyClientCapabilities 3824--- 3825---Capabilities specific to the various semantic token request. 3826--- 3827---@since 3.16.0 3828---@field semanticTokens? lsp.SemanticTokensClientCapabilities 3829--- 3830---Capabilities specific to the `textDocument/linkedEditingRange` request. 3831--- 3832---@since 3.16.0 3833---@field linkedEditingRange? lsp.LinkedEditingRangeClientCapabilities 3834--- 3835---Client capabilities specific to the `textDocument/moniker` request. 3836--- 3837---@since 3.16.0 3838---@field moniker? lsp.MonikerClientCapabilities 3839--- 3840---Capabilities specific to the various type hierarchy requests. 3841--- 3842---@since 3.17.0 3843---@field typeHierarchy? lsp.TypeHierarchyClientCapabilities 3844--- 3845---Capabilities specific to the `textDocument/inlineValue` request. 3846--- 3847---@since 3.17.0 3848---@field inlineValue? lsp.InlineValueClientCapabilities 3849--- 3850---Capabilities specific to the `textDocument/inlayHint` request. 3851--- 3852---@since 3.17.0 3853---@field inlayHint? lsp.InlayHintClientCapabilities 3854--- 3855---Capabilities specific to the diagnostic pull model. 3856--- 3857---@since 3.17.0 3858---@field diagnostic? lsp.DiagnosticClientCapabilities 3859--- 3860---Client capabilities specific to inline completions. 3861--- 3862---@since 3.18.0 3863---@field inlineCompletion? lsp.InlineCompletionClientCapabilities 3864 3865---Capabilities specific to the notebook document support. 3866--- 3867---@since 3.17.0 3868---@class lsp.NotebookDocumentClientCapabilities 3869--- 3870---Capabilities specific to notebook document synchronization 3871--- 3872---@since 3.17.0 3873---@field synchronization lsp.NotebookDocumentSyncClientCapabilities 3874 3875---@class lsp.WindowClientCapabilities 3876--- 3877---It indicates whether the client supports server initiated 3878---progress using the `window/workDoneProgress/create` request. 3879--- 3880---The capability also controls Whether client supports handling 3881---of progress notifications. If set servers are allowed to report a 3882---`workDoneProgress` property in the request specific server 3883---capabilities. 3884--- 3885---@since 3.15.0 3886---@field workDoneProgress? boolean 3887--- 3888---Capabilities specific to the showMessage request. 3889--- 3890---@since 3.16.0 3891---@field showMessage? lsp.ShowMessageRequestClientCapabilities 3892--- 3893---Capabilities specific to the showDocument request. 3894--- 3895---@since 3.16.0 3896---@field showDocument? lsp.ShowDocumentClientCapabilities 3897 3898---General client capabilities. 3899--- 3900---@since 3.16.0 3901---@class lsp.GeneralClientCapabilities 3902--- 3903---Client capability that signals how the client 3904---handles stale requests (e.g. a request 3905---for which the client will not process the response 3906---anymore since the information is outdated). 3907--- 3908---@since 3.17.0 3909---@field staleRequestSupport? lsp.StaleRequestSupportOptions 3910--- 3911---Client capabilities specific to regular expressions. 3912--- 3913---@since 3.16.0 3914---@field regularExpressions? lsp.RegularExpressionsClientCapabilities 3915--- 3916---Client capabilities specific to the client's markdown parser. 3917--- 3918---@since 3.16.0 3919---@field markdown? lsp.MarkdownClientCapabilities 3920--- 3921---The position encodings supported by the client. Client and server 3922---have to agree on the same position encoding to ensure that offsets 3923---(e.g. character position in a line) are interpreted the same on both 3924---sides. 3925--- 3926---To keep the protocol backwards compatible the following applies: if 3927---the value 'utf-16' is missing from the array of position encodings 3928---servers can assume that the client supports UTF-16. UTF-16 is 3929---therefore a mandatory encoding. 3930--- 3931---If omitted it defaults to ['utf-16']. 3932--- 3933---Implementation considerations: since the conversion from one encoding 3934---into another requires the content of the file / line the conversion 3935---is best done where the file is read which is usually on the server 3936---side. 3937--- 3938---@since 3.17.0 3939---@field positionEncodings? lsp.PositionEncodingKind[] 3940 3941---@class lsp.WorkspaceFoldersServerCapabilities 3942--- 3943---The server has support for workspace folders 3944---@field supported? boolean 3945--- 3946---Whether the server wants to receive workspace folder 3947---change notifications. 3948--- 3949---If a string is provided the string is treated as an ID 3950---under which the notification is registered on the client 3951---side. The ID can be used to unregister for these events 3952---using the `client/unregisterCapability` request. 3953---@field changeNotifications? string|boolean 3954 3955---Options for notifications/requests for user operations on files. 3956--- 3957---@since 3.16.0 3958---@class lsp.FileOperationOptions 3959--- 3960---The server is interested in receiving didCreateFiles notifications. 3961---@field didCreate? lsp.FileOperationRegistrationOptions 3962--- 3963---The server is interested in receiving willCreateFiles requests. 3964---@field willCreate? lsp.FileOperationRegistrationOptions 3965--- 3966---The server is interested in receiving didRenameFiles notifications. 3967---@field didRename? lsp.FileOperationRegistrationOptions 3968--- 3969---The server is interested in receiving willRenameFiles requests. 3970---@field willRename? lsp.FileOperationRegistrationOptions 3971--- 3972---The server is interested in receiving didDeleteFiles file notifications. 3973---@field didDelete? lsp.FileOperationRegistrationOptions 3974--- 3975---The server is interested in receiving willDeleteFiles file requests. 3976---@field willDelete? lsp.FileOperationRegistrationOptions 3977 3978---A relative pattern is a helper to construct glob patterns that are matched 3979---relatively to a base URI. The common value for a `baseUri` is a workspace 3980---folder root, but it can be another absolute URI as well. 3981--- 3982---@since 3.17.0 3983---@class lsp.RelativePattern 3984--- 3985---A workspace folder or a base URI to which this pattern will be matched 3986---against relatively. 3987---@field baseUri lsp.WorkspaceFolder|lsp.URI 3988--- 3989---The actual glob pattern; 3990---@field pattern lsp.Pattern 3991 3992---A document filter where `language` is required field. 3993--- 3994---@since 3.18.0 3995---@class lsp.TextDocumentFilterLanguage 3996--- 3997---A language id, like `typescript`. 3998---@field language string 3999--- 4000---A Uri {@link Uri.scheme scheme}, like `file` or `untitled`. 4001---@field scheme? string 4002--- 4003---A glob pattern, like **/*.{ts,js}. See TextDocumentFilter for examples. 4004--- 4005---@since 3.18.0 - support for relative patterns. Whether clients support 4006---relative patterns depends on the client capability 4007---`textDocuments.filters.relativePatternSupport`. 4008---@field pattern? lsp.GlobPattern 4009 4010---A document filter where `scheme` is required field. 4011--- 4012---@since 3.18.0 4013---@class lsp.TextDocumentFilterScheme 4014--- 4015---A language id, like `typescript`. 4016---@field language? string 4017--- 4018---A Uri {@link Uri.scheme scheme}, like `file` or `untitled`. 4019---@field scheme string 4020--- 4021---A glob pattern, like **/*.{ts,js}. See TextDocumentFilter for examples. 4022--- 4023---@since 3.18.0 - support for relative patterns. Whether clients support 4024---relative patterns depends on the client capability 4025---`textDocuments.filters.relativePatternSupport`. 4026---@field pattern? lsp.GlobPattern 4027 4028---A document filter where `pattern` is required field. 4029--- 4030---@since 3.18.0 4031---@class lsp.TextDocumentFilterPattern 4032--- 4033---A language id, like `typescript`. 4034---@field language? string 4035--- 4036---A Uri {@link Uri.scheme scheme}, like `file` or `untitled`. 4037---@field scheme? string 4038--- 4039---A glob pattern, like **/*.{ts,js}. See TextDocumentFilter for examples. 4040--- 4041---@since 3.18.0 - support for relative patterns. Whether clients support 4042---relative patterns depends on the client capability 4043---`textDocuments.filters.relativePatternSupport`. 4044---@field pattern lsp.GlobPattern 4045 4046---A notebook document filter where `notebookType` is required field. 4047--- 4048---@since 3.18.0 4049---@class lsp.NotebookDocumentFilterNotebookType 4050--- 4051---The type of the enclosing notebook. 4052---@field notebookType string 4053--- 4054---A Uri {@link Uri.scheme scheme}, like `file` or `untitled`. 4055---@field scheme? string 4056--- 4057---A glob pattern. 4058---@field pattern? lsp.GlobPattern 4059 4060---A notebook document filter where `scheme` is required field. 4061--- 4062---@since 3.18.0 4063---@class lsp.NotebookDocumentFilterScheme 4064--- 4065---The type of the enclosing notebook. 4066---@field notebookType? string 4067--- 4068---A Uri {@link Uri.scheme scheme}, like `file` or `untitled`. 4069---@field scheme string 4070--- 4071---A glob pattern. 4072---@field pattern? lsp.GlobPattern 4073 4074---A notebook document filter where `pattern` is required field. 4075--- 4076---@since 3.18.0 4077---@class lsp.NotebookDocumentFilterPattern 4078--- 4079---The type of the enclosing notebook. 4080---@field notebookType? string 4081--- 4082---A Uri {@link Uri.scheme scheme}, like `file` or `untitled`. 4083---@field scheme? string 4084--- 4085---A glob pattern. 4086---@field pattern lsp.GlobPattern 4087 4088---A change describing how to move a `NotebookCell` 4089---array from state S to S'. 4090--- 4091---@since 3.17.0 4092---@class lsp.NotebookCellArrayChange 4093--- 4094---The start oftest of the cell that changed. 4095---@field start uinteger 4096--- 4097---The deleted cells 4098---@field deleteCount uinteger 4099--- 4100---The new cells, if any 4101---@field cells? lsp.NotebookCell[] 4102 4103---@class lsp.WorkspaceEditClientCapabilities 4104--- 4105---The client supports versioned document changes in `WorkspaceEdit`s 4106---@field documentChanges? boolean 4107--- 4108---The resource operations the client supports. Clients should at least 4109---support 'create', 'rename' and 'delete' files and folders. 4110--- 4111---@since 3.13.0 4112---@field resourceOperations? lsp.ResourceOperationKind[] 4113--- 4114---The failure handling strategy of a client if applying the workspace edit 4115---fails. 4116--- 4117---@since 3.13.0 4118---@field failureHandling? lsp.FailureHandlingKind 4119--- 4120---Whether the client normalizes line endings to the client specific 4121---setting. 4122---If set to `true` the client will normalize line ending characters 4123---in a workspace edit to the client-specified new line 4124---character. 4125--- 4126---@since 3.16.0 4127---@field normalizesLineEndings? boolean 4128--- 4129---Whether the client in general supports change annotations on text edits, 4130---create file, rename file and delete file changes. 4131--- 4132---@since 3.16.0 4133---@field changeAnnotationSupport? lsp.ChangeAnnotationsSupportOptions 4134--- 4135---Whether the client supports `WorkspaceEditMetadata` in `WorkspaceEdit`s. 4136--- 4137---@since 3.18.0 4138---@field metadataSupport? boolean 4139--- 4140---Whether the client supports snippets as text edits. 4141--- 4142---@since 3.18.0 4143---@field snippetEditSupport? boolean 4144 4145---@class lsp.DidChangeConfigurationClientCapabilities 4146--- 4147---Did change configuration notification supports dynamic registration. 4148---@field dynamicRegistration? boolean 4149 4150---@class lsp.DidChangeWatchedFilesClientCapabilities 4151--- 4152---Did change watched files notification supports dynamic registration. Please note 4153---that the current protocol doesn't support static configuration for file changes 4154---from the server side. 4155---@field dynamicRegistration? boolean 4156--- 4157---Whether the client has support for {@link RelativePattern relative pattern} 4158---or not. 4159--- 4160---@since 3.17.0 4161---@field relativePatternSupport? boolean 4162 4163---Client capabilities for a {@link WorkspaceSymbolRequest}. 4164---@class lsp.WorkspaceSymbolClientCapabilities 4165--- 4166---Symbol request supports dynamic registration. 4167---@field dynamicRegistration? boolean 4168--- 4169---Specific capabilities for the `SymbolKind` in the `workspace/symbol` request. 4170---@field symbolKind? lsp.ClientSymbolKindOptions 4171--- 4172---The client supports tags on `SymbolInformation`. 4173---Clients supporting tags have to handle unknown tags gracefully. 4174--- 4175---@since 3.16.0 4176---@field tagSupport? lsp.ClientSymbolTagOptions 4177--- 4178---The client support partial workspace symbols. The client will send the 4179---request `workspaceSymbol/resolve` to the server to resolve additional 4180---properties. 4181--- 4182---@since 3.17.0 4183---@field resolveSupport? lsp.ClientSymbolResolveOptions 4184 4185---The client capabilities of a {@link ExecuteCommandRequest}. 4186---@class lsp.ExecuteCommandClientCapabilities 4187--- 4188---Execute command supports dynamic registration. 4189---@field dynamicRegistration? boolean 4190 4191---@since 3.16.0 4192---@class lsp.SemanticTokensWorkspaceClientCapabilities 4193--- 4194---Whether the client implementation supports a refresh request sent from 4195---the server to the client. 4196--- 4197---Note that this event is global and will force the client to refresh all 4198---semantic tokens currently shown. It should be used with absolute care 4199---and is useful for situation where a server for example detects a project 4200---wide change that requires such a calculation. 4201---@field refreshSupport? boolean 4202 4203---@since 3.16.0 4204---@class lsp.CodeLensWorkspaceClientCapabilities 4205--- 4206---Whether the client implementation supports a refresh request sent from the 4207---server to the client. 4208--- 4209---Note that this event is global and will force the client to refresh all 4210---code lenses currently shown. It should be used with absolute care and is 4211---useful for situation where a server for example detect a project wide 4212---change that requires such a calculation. 4213---@field refreshSupport? boolean 4214 4215---Capabilities relating to events from file operations by the user in the client. 4216--- 4217---These events do not come from the file system, they come from user operations 4218---like renaming a file in the UI. 4219--- 4220---@since 3.16.0 4221---@class lsp.FileOperationClientCapabilities 4222--- 4223---Whether the client supports dynamic registration for file requests/notifications. 4224---@field dynamicRegistration? boolean 4225--- 4226---The client has support for sending didCreateFiles notifications. 4227---@field didCreate? boolean 4228--- 4229---The client has support for sending willCreateFiles requests. 4230---@field willCreate? boolean 4231--- 4232---The client has support for sending didRenameFiles notifications. 4233---@field didRename? boolean 4234--- 4235---The client has support for sending willRenameFiles requests. 4236---@field willRename? boolean 4237--- 4238---The client has support for sending didDeleteFiles notifications. 4239---@field didDelete? boolean 4240--- 4241---The client has support for sending willDeleteFiles requests. 4242---@field willDelete? boolean 4243 4244---Client workspace capabilities specific to inline values. 4245--- 4246---@since 3.17.0 4247---@class lsp.InlineValueWorkspaceClientCapabilities 4248--- 4249---Whether the client implementation supports a refresh request sent from the 4250---server to the client. 4251--- 4252---Note that this event is global and will force the client to refresh all 4253---inline values currently shown. It should be used with absolute care and is 4254---useful for situation where a server for example detects a project wide 4255---change that requires such a calculation. 4256---@field refreshSupport? boolean 4257 4258---Client workspace capabilities specific to inlay hints. 4259--- 4260---@since 3.17.0 4261---@class lsp.InlayHintWorkspaceClientCapabilities 4262--- 4263---Whether the client implementation supports a refresh request sent from 4264---the server to the client. 4265--- 4266---Note that this event is global and will force the client to refresh all 4267---inlay hints currently shown. It should be used with absolute care and 4268---is useful for situation where a server for example detects a project wide 4269---change that requires such a calculation. 4270---@field refreshSupport? boolean 4271 4272---Workspace client capabilities specific to diagnostic pull requests. 4273--- 4274---@since 3.17.0 4275---@class lsp.DiagnosticWorkspaceClientCapabilities 4276--- 4277---Whether the client implementation supports a refresh request sent from 4278---the server to the client. 4279--- 4280---Note that this event is global and will force the client to refresh all 4281---pulled diagnostics currently shown. It should be used with absolute care and 4282---is useful for situation where a server for example detects a project wide 4283---change that requires such a calculation. 4284---@field refreshSupport? boolean 4285 4286---Client workspace capabilities specific to folding ranges 4287--- 4288---@since 3.18.0 4289---@class lsp.FoldingRangeWorkspaceClientCapabilities 4290--- 4291---Whether the client implementation supports a refresh request sent from the 4292---server to the client. 4293--- 4294---Note that this event is global and will force the client to refresh all 4295---folding ranges currently shown. It should be used with absolute care and is 4296---useful for situation where a server for example detects a project wide 4297---change that requires such a calculation. 4298--- 4299---@since 3.18.0 4300---@field refreshSupport? boolean 4301 4302---Client capabilities for a text document content provider. 4303--- 4304---@since 3.18.0 4305---@class lsp.TextDocumentContentClientCapabilities 4306--- 4307---Text document content provider supports dynamic registration. 4308---@field dynamicRegistration? boolean 4309 4310---@class lsp.TextDocumentSyncClientCapabilities 4311--- 4312---Whether text document synchronization supports dynamic registration. 4313---@field dynamicRegistration? boolean 4314--- 4315---The client supports sending will save notifications. 4316---@field willSave? boolean 4317--- 4318---The client supports sending a will save request and 4319---waits for a response providing text edits which will 4320---be applied to the document before it is saved. 4321---@field willSaveWaitUntil? boolean 4322--- 4323---The client supports did save notifications. 4324---@field didSave? boolean 4325 4326---@class lsp.TextDocumentFilterClientCapabilities 4327--- 4328---The client supports Relative Patterns. 4329--- 4330---@since 3.18.0 4331---@field relativePatternSupport? boolean 4332 4333---Completion client capabilities 4334---@class lsp.CompletionClientCapabilities 4335--- 4336---Whether completion supports dynamic registration. 4337---@field dynamicRegistration? boolean 4338--- 4339---The client supports the following `CompletionItem` specific 4340---capabilities. 4341---@field completionItem? lsp.ClientCompletionItemOptions 4342--- 4343---The client supports the following completion item kinds. 4344---@field completionItemKind? lsp.ClientCompletionItemOptionsKind 4345--- 4346---Defines how the client handles whitespace and indentation 4347---when accepting a completion item that uses multi line 4348---text in either `insertText` or `textEdit`. 4349--- 4350---@since 3.17.0 4351---@field insertTextMode? lsp.InsertTextMode 4352--- 4353---The client supports to send additional context information for a 4354---`textDocument/completion` request. 4355---@field contextSupport? boolean 4356--- 4357---The client supports the following `CompletionList` specific 4358---capabilities. 4359--- 4360---@since 3.17.0 4361---@field completionList? lsp.CompletionListCapabilities 4362 4363---@class lsp.HoverClientCapabilities 4364--- 4365---Whether hover supports dynamic registration. 4366---@field dynamicRegistration? boolean 4367--- 4368---Client supports the following content formats for the content 4369---property. The order describes the preferred format of the client. 4370---@field contentFormat? lsp.MarkupKind[] 4371 4372---Client Capabilities for a {@link SignatureHelpRequest}. 4373---@class lsp.SignatureHelpClientCapabilities 4374--- 4375---Whether signature help supports dynamic registration. 4376---@field dynamicRegistration? boolean 4377--- 4378---The client supports the following `SignatureInformation` 4379---specific properties. 4380---@field signatureInformation? lsp.ClientSignatureInformationOptions 4381--- 4382---The client supports to send additional context information for a 4383---`textDocument/signatureHelp` request. A client that opts into 4384---contextSupport will also support the `retriggerCharacters` on 4385---`SignatureHelpOptions`. 4386--- 4387---@since 3.15.0 4388---@field contextSupport? boolean 4389 4390---@since 3.14.0 4391---@class lsp.DeclarationClientCapabilities 4392--- 4393---Whether declaration supports dynamic registration. If this is set to `true` 4394---the client supports the new `DeclarationRegistrationOptions` return value 4395---for the corresponding server capability as well. 4396---@field dynamicRegistration? boolean 4397--- 4398---The client supports additional metadata in the form of declaration links. 4399---@field linkSupport? boolean 4400 4401---Client Capabilities for a {@link DefinitionRequest}. 4402---@class lsp.DefinitionClientCapabilities 4403--- 4404---Whether definition supports dynamic registration. 4405---@field dynamicRegistration? boolean 4406--- 4407---The client supports additional metadata in the form of definition links. 4408--- 4409---@since 3.14.0 4410---@field linkSupport? boolean 4411 4412---Since 3.6.0 4413---@class lsp.TypeDefinitionClientCapabilities 4414--- 4415---Whether implementation supports dynamic registration. If this is set to `true` 4416---the client supports the new `TypeDefinitionRegistrationOptions` return value 4417---for the corresponding server capability as well. 4418---@field dynamicRegistration? boolean 4419--- 4420---The client supports additional metadata in the form of definition links. 4421--- 4422---Since 3.14.0 4423---@field linkSupport? boolean 4424 4425---@since 3.6.0 4426---@class lsp.ImplementationClientCapabilities 4427--- 4428---Whether implementation supports dynamic registration. If this is set to `true` 4429---the client supports the new `ImplementationRegistrationOptions` return value 4430---for the corresponding server capability as well. 4431---@field dynamicRegistration? boolean 4432--- 4433---The client supports additional metadata in the form of definition links. 4434--- 4435---@since 3.14.0 4436---@field linkSupport? boolean 4437 4438---Client Capabilities for a {@link ReferencesRequest}. 4439---@class lsp.ReferenceClientCapabilities 4440--- 4441---Whether references supports dynamic registration. 4442---@field dynamicRegistration? boolean 4443 4444---Client Capabilities for a {@link DocumentHighlightRequest}. 4445---@class lsp.DocumentHighlightClientCapabilities 4446--- 4447---Whether document highlight supports dynamic registration. 4448---@field dynamicRegistration? boolean 4449 4450---Client Capabilities for a {@link DocumentSymbolRequest}. 4451---@class lsp.DocumentSymbolClientCapabilities 4452--- 4453---Whether document symbol supports dynamic registration. 4454---@field dynamicRegistration? boolean 4455--- 4456---Specific capabilities for the `SymbolKind` in the 4457---`textDocument/documentSymbol` request. 4458---@field symbolKind? lsp.ClientSymbolKindOptions 4459--- 4460---The client supports hierarchical document symbols. 4461---@field hierarchicalDocumentSymbolSupport? boolean 4462--- 4463---The client supports tags on `SymbolInformation`. Tags are supported on 4464---`DocumentSymbol` if `hierarchicalDocumentSymbolSupport` is set to true. 4465---Clients supporting tags have to handle unknown tags gracefully. 4466--- 4467---@since 3.16.0 4468---@field tagSupport? lsp.ClientSymbolTagOptions 4469--- 4470---The client supports an additional label presented in the UI when 4471---registering a document symbol provider. 4472--- 4473---@since 3.16.0 4474---@field labelSupport? boolean 4475 4476---The Client Capabilities of a {@link CodeActionRequest}. 4477---@class lsp.CodeActionClientCapabilities 4478--- 4479---Whether code action supports dynamic registration. 4480---@field dynamicRegistration? boolean 4481--- 4482---The client support code action literals of type `CodeAction` as a valid 4483---response of the `textDocument/codeAction` request. If the property is not 4484---set the request can only return `Command` literals. 4485--- 4486---@since 3.8.0 4487---@field codeActionLiteralSupport? lsp.ClientCodeActionLiteralOptions 4488--- 4489---Whether code action supports the `isPreferred` property. 4490--- 4491---@since 3.15.0 4492---@field isPreferredSupport? boolean 4493--- 4494---Whether code action supports the `disabled` property. 4495--- 4496---@since 3.16.0 4497---@field disabledSupport? boolean 4498--- 4499---Whether code action supports the `data` property which is 4500---preserved between a `textDocument/codeAction` and a 4501---`codeAction/resolve` request. 4502--- 4503---@since 3.16.0 4504---@field dataSupport? boolean 4505--- 4506---Whether the client supports resolving additional code action 4507---properties via a separate `codeAction/resolve` request. 4508--- 4509---@since 3.16.0 4510---@field resolveSupport? lsp.ClientCodeActionResolveOptions 4511--- 4512---Whether the client honors the change annotations in 4513---text edits and resource operations returned via the 4514---`CodeAction#edit` property by for example presenting 4515---the workspace edit in the user interface and asking 4516---for confirmation. 4517--- 4518---@since 3.16.0 4519---@field honorsChangeAnnotations? boolean 4520--- 4521---Whether the client supports documentation for a class of 4522---code actions. 4523--- 4524---@since 3.18.0 4525---@field documentationSupport? boolean 4526--- 4527---Client supports the tag property on a code action. Clients 4528---supporting tags have to handle unknown tags gracefully. 4529--- 4530---@since 3.18.0 - proposed 4531---@field tagSupport? lsp.CodeActionTagOptions 4532 4533---The client capabilities of a {@link CodeLensRequest}. 4534---@class lsp.CodeLensClientCapabilities 4535--- 4536---Whether code lens supports dynamic registration. 4537---@field dynamicRegistration? boolean 4538--- 4539---Whether the client supports resolving additional code lens 4540---properties via a separate `codeLens/resolve` request. 4541--- 4542---@since 3.18.0 4543---@field resolveSupport? lsp.ClientCodeLensResolveOptions 4544 4545---The client capabilities of a {@link DocumentLinkRequest}. 4546---@class lsp.DocumentLinkClientCapabilities 4547--- 4548---Whether document link supports dynamic registration. 4549---@field dynamicRegistration? boolean 4550--- 4551---Whether the client supports the `tooltip` property on `DocumentLink`. 4552--- 4553---@since 3.15.0 4554---@field tooltipSupport? boolean 4555 4556---@class lsp.DocumentColorClientCapabilities 4557--- 4558---Whether implementation supports dynamic registration. If this is set to `true` 4559---the client supports the new `DocumentColorRegistrationOptions` return value 4560---for the corresponding server capability as well. 4561---@field dynamicRegistration? boolean 4562 4563---Client capabilities of a {@link DocumentFormattingRequest}. 4564---@class lsp.DocumentFormattingClientCapabilities 4565--- 4566---Whether formatting supports dynamic registration. 4567---@field dynamicRegistration? boolean 4568 4569---Client capabilities of a {@link DocumentRangeFormattingRequest}. 4570---@class lsp.DocumentRangeFormattingClientCapabilities 4571--- 4572---Whether range formatting supports dynamic registration. 4573---@field dynamicRegistration? boolean 4574--- 4575---Whether the client supports formatting multiple ranges at once. 4576--- 4577---@since 3.18.0 4578---@field rangesSupport? boolean 4579 4580---Client capabilities of a {@link DocumentOnTypeFormattingRequest}. 4581---@class lsp.DocumentOnTypeFormattingClientCapabilities 4582--- 4583---Whether on type formatting supports dynamic registration. 4584---@field dynamicRegistration? boolean 4585 4586---@class lsp.RenameClientCapabilities 4587--- 4588---Whether rename supports dynamic registration. 4589---@field dynamicRegistration? boolean 4590--- 4591---Client supports testing for validity of rename operations 4592---before execution. 4593--- 4594---@since 3.12.0 4595---@field prepareSupport? boolean 4596--- 4597---Client supports the default behavior result. 4598--- 4599---The value indicates the default behavior used by the 4600---client. 4601--- 4602---@since 3.16.0 4603---@field prepareSupportDefaultBehavior? lsp.PrepareSupportDefaultBehavior 4604--- 4605---Whether the client honors the change annotations in 4606---text edits and resource operations returned via the 4607---rename request's workspace edit by for example presenting 4608---the workspace edit in the user interface and asking 4609---for confirmation. 4610--- 4611---@since 3.16.0 4612---@field honorsChangeAnnotations? boolean 4613 4614---@class lsp.FoldingRangeClientCapabilities 4615--- 4616---Whether implementation supports dynamic registration for folding range 4617---providers. If this is set to `true` the client supports the new 4618---`FoldingRangeRegistrationOptions` return value for the corresponding 4619---server capability as well. 4620---@field dynamicRegistration? boolean 4621--- 4622---The maximum number of folding ranges that the client prefers to receive 4623---per document. The value serves as a hint, servers are free to follow the 4624---limit. 4625---@field rangeLimit? uinteger 4626--- 4627---If set, the client signals that it only supports folding complete lines. 4628---If set, client will ignore specified `startCharacter` and `endCharacter` 4629---properties in a FoldingRange. 4630---@field lineFoldingOnly? boolean 4631--- 4632---Specific options for the folding range kind. 4633--- 4634---@since 3.17.0 4635---@field foldingRangeKind? lsp.ClientFoldingRangeKindOptions 4636--- 4637---Specific options for the folding range. 4638--- 4639---@since 3.17.0 4640---@field foldingRange? lsp.ClientFoldingRangeOptions 4641 4642---@class lsp.SelectionRangeClientCapabilities 4643--- 4644---Whether implementation supports dynamic registration for selection range providers. If this is set to `true` 4645---the client supports the new `SelectionRangeRegistrationOptions` return value for the corresponding server 4646---capability as well. 4647---@field dynamicRegistration? boolean 4648 4649---The publish diagnostic client capabilities. 4650---@class lsp.PublishDiagnosticsClientCapabilities: lsp.DiagnosticsCapabilities 4651--- 4652---Whether the client interprets the version property of the 4653---`textDocument/publishDiagnostics` notification's parameter. 4654--- 4655---@since 3.15.0 4656---@field versionSupport? boolean 4657 4658---@since 3.16.0 4659---@class lsp.CallHierarchyClientCapabilities 4660--- 4661---Whether implementation supports dynamic registration. If this is set to `true` 4662---the client supports the new `(TextDocumentRegistrationOptions & StaticRegistrationOptions)` 4663---return value for the corresponding server capability as well. 4664---@field dynamicRegistration? boolean 4665 4666---@since 3.16.0 4667---@class lsp.SemanticTokensClientCapabilities 4668--- 4669---Whether implementation supports dynamic registration. If this is set to `true` 4670---the client supports the new `(TextDocumentRegistrationOptions & StaticRegistrationOptions)` 4671---return value for the corresponding server capability as well. 4672---@field dynamicRegistration? boolean 4673--- 4674---Which requests the client supports and might send to the server 4675---depending on the server's capability. Please note that clients might not 4676---show semantic tokens or degrade some of the user experience if a range 4677---or full request is advertised by the client but not provided by the 4678---server. If for example the client capability `requests.full` and 4679---`request.range` are both set to true but the server only provides a 4680---range provider the client might not render a minimap correctly or might 4681---even decide to not show any semantic tokens at all. 4682---@field requests lsp.ClientSemanticTokensRequestOptions 4683--- 4684---The token types that the client supports. 4685---@field tokenTypes string[] 4686--- 4687---The token modifiers that the client supports. 4688---@field tokenModifiers string[] 4689--- 4690---The token formats the clients supports. 4691---@field formats lsp.TokenFormat[] 4692--- 4693---Whether the client supports tokens that can overlap each other. 4694---@field overlappingTokenSupport? boolean 4695--- 4696---Whether the client supports tokens that can span multiple lines. 4697---@field multilineTokenSupport? boolean 4698--- 4699---Whether the client allows the server to actively cancel a 4700---semantic token request, e.g. supports returning 4701---LSPErrorCodes.ServerCancelled. If a server does the client 4702---needs to retrigger the request. 4703--- 4704---@since 3.17.0 4705---@field serverCancelSupport? boolean 4706--- 4707---Whether the client uses semantic tokens to augment existing 4708---syntax tokens. If set to `true` client side created syntax 4709---tokens and semantic tokens are both used for colorization. If 4710---set to `false` the client only uses the returned semantic tokens 4711---for colorization. 4712--- 4713---If the value is `undefined` then the client behavior is not 4714---specified. 4715--- 4716---@since 3.17.0 4717---@field augmentsSyntaxTokens? boolean 4718 4719---Client capabilities for the linked editing range request. 4720--- 4721---@since 3.16.0 4722---@class lsp.LinkedEditingRangeClientCapabilities 4723--- 4724---Whether implementation supports dynamic registration. If this is set to `true` 4725---the client supports the new `(TextDocumentRegistrationOptions & StaticRegistrationOptions)` 4726---return value for the corresponding server capability as well. 4727---@field dynamicRegistration? boolean 4728 4729---Client capabilities specific to the moniker request. 4730--- 4731---@since 3.16.0 4732---@class lsp.MonikerClientCapabilities 4733--- 4734---Whether moniker supports dynamic registration. If this is set to `true` 4735---the client supports the new `MonikerRegistrationOptions` return value 4736---for the corresponding server capability as well. 4737---@field dynamicRegistration? boolean 4738 4739---@since 3.17.0 4740---@class lsp.TypeHierarchyClientCapabilities 4741--- 4742---Whether implementation supports dynamic registration. If this is set to `true` 4743---the client supports the new `(TextDocumentRegistrationOptions & StaticRegistrationOptions)` 4744---return value for the corresponding server capability as well. 4745---@field dynamicRegistration? boolean 4746 4747---Client capabilities specific to inline values. 4748--- 4749---@since 3.17.0 4750---@class lsp.InlineValueClientCapabilities 4751--- 4752---Whether implementation supports dynamic registration for inline value providers. 4753---@field dynamicRegistration? boolean 4754 4755---Inlay hint client capabilities. 4756--- 4757---@since 3.17.0 4758---@class lsp.InlayHintClientCapabilities 4759--- 4760---Whether inlay hints support dynamic registration. 4761---@field dynamicRegistration? boolean 4762--- 4763---Indicates which properties a client can resolve lazily on an inlay 4764---hint. 4765---@field resolveSupport? lsp.ClientInlayHintResolveOptions 4766 4767---Client capabilities specific to diagnostic pull requests. 4768--- 4769---@since 3.17.0 4770---@class lsp.DiagnosticClientCapabilities: lsp.DiagnosticsCapabilities 4771--- 4772---Whether implementation supports dynamic registration. If this is set to `true` 4773---the client supports the new `(TextDocumentRegistrationOptions & StaticRegistrationOptions)` 4774---return value for the corresponding server capability as well. 4775---@field dynamicRegistration? boolean 4776--- 4777---Whether the clients supports related documents for document diagnostic pulls. 4778---@field relatedDocumentSupport? boolean 4779--- 4780---Whether the client supports `MarkupContent` in diagnostic messages. 4781--- 4782---@since 3.18.0 4783---@field markupMessageSupport? boolean 4784 4785---Client capabilities specific to inline completions. 4786--- 4787---@since 3.18.0 4788---@class lsp.InlineCompletionClientCapabilities 4789--- 4790---Whether implementation supports dynamic registration for inline completion providers. 4791---@field dynamicRegistration? boolean 4792 4793---Notebook specific client capabilities. 4794--- 4795---@since 3.17.0 4796---@class lsp.NotebookDocumentSyncClientCapabilities 4797--- 4798---Whether implementation supports dynamic registration. If this is 4799---set to `true` the client supports the new 4800---`(TextDocumentRegistrationOptions & StaticRegistrationOptions)` 4801---return value for the corresponding server capability as well. 4802---@field dynamicRegistration? boolean 4803--- 4804---The client supports sending execution summary data per cell. 4805---@field executionSummarySupport? boolean 4806 4807---Show message request client capabilities 4808---@class lsp.ShowMessageRequestClientCapabilities 4809--- 4810---Capabilities specific to the `MessageActionItem` type. 4811---@field messageActionItem? lsp.ClientShowMessageActionItemOptions 4812 4813---Client capabilities for the showDocument request. 4814--- 4815---@since 3.16.0 4816---@class lsp.ShowDocumentClientCapabilities 4817--- 4818---The client has support for the showDocument 4819---request. 4820---@field support boolean 4821 4822---@since 3.18.0 4823---@class lsp.StaleRequestSupportOptions 4824--- 4825---The client will actively cancel the request. 4826---@field cancel boolean 4827--- 4828---The list of requests for which the client 4829---will retry the request if it receives a 4830---response with error code `ContentModified` 4831---@field retryOnContentModified string[] 4832 4833---Client capabilities specific to regular expressions. 4834--- 4835---@since 3.16.0 4836---@class lsp.RegularExpressionsClientCapabilities 4837--- 4838---The engine's name. 4839---@field engine lsp.RegularExpressionEngineKind 4840--- 4841---The engine's version. 4842---@field version? string 4843 4844---Client capabilities specific to the used markdown parser. 4845--- 4846---@since 3.16.0 4847---@class lsp.MarkdownClientCapabilities 4848--- 4849---The name of the parser. 4850---@field parser string 4851--- 4852---The version of the parser. 4853---@field version? string 4854--- 4855---A list of HTML tags that the client allows / supports in 4856---Markdown. 4857--- 4858---@since 3.17.0 4859---@field allowedTags? string[] 4860 4861---@since 3.18.0 4862---@class lsp.ChangeAnnotationsSupportOptions 4863--- 4864---Whether the client groups edits with equal labels into tree nodes, 4865---for instance all edits labelled with "Changes in Strings" would 4866---be a tree node. 4867---@field groupsOnLabel? boolean 4868 4869---@since 3.18.0 4870---@class lsp.ClientSymbolKindOptions 4871--- 4872---The symbol kind values the client supports. When this 4873---property exists the client also guarantees that it will 4874---handle values outside its set gracefully and falls back 4875---to a default value when unknown. 4876--- 4877---If this property is not present the client only supports 4878---the symbol kinds from `File` to `Array` as defined in 4879---the initial version of the protocol. 4880---@field valueSet? lsp.SymbolKind[] 4881 4882---@since 3.18.0 4883---@class lsp.ClientSymbolTagOptions 4884--- 4885---The tags supported by the client. 4886---@field valueSet lsp.SymbolTag[] 4887 4888---@since 3.18.0 4889---@class lsp.ClientSymbolResolveOptions 4890--- 4891---The properties that a client can resolve lazily. Usually 4892---`location.range` 4893---@field properties string[] 4894 4895---@since 3.18.0 4896---@class lsp.ClientCompletionItemOptions 4897--- 4898---Client supports snippets as insert text. 4899--- 4900---A snippet can define tab stops and placeholders with `$1`, `$2` 4901---and `${3:foo}`. `$0` defines the final tab stop, it defaults to 4902---the end of the snippet. Placeholders with equal identifiers are linked, 4903---that is typing in one will update others too. 4904---@field snippetSupport? boolean 4905--- 4906---Client supports commit characters on a completion item. 4907---@field commitCharactersSupport? boolean 4908--- 4909---Client supports the following content formats for the documentation 4910---property. The order describes the preferred format of the client. 4911---@field documentationFormat? lsp.MarkupKind[] 4912--- 4913---Client supports the deprecated property on a completion item. 4914---@field deprecatedSupport? boolean 4915--- 4916---Client supports the preselect property on a completion item. 4917---@field preselectSupport? boolean 4918--- 4919---Client supports the tag property on a completion item. Clients supporting 4920---tags have to handle unknown tags gracefully. Clients especially need to 4921---preserve unknown tags when sending a completion item back to the server in 4922---a resolve call. 4923--- 4924---@since 3.15.0 4925---@field tagSupport? lsp.CompletionItemTagOptions 4926--- 4927---Client support insert replace edit to control different behavior if a 4928---completion item is inserted in the text or should replace text. 4929--- 4930---@since 3.16.0 4931---@field insertReplaceSupport? boolean 4932--- 4933---Indicates which properties a client can resolve lazily on a completion 4934---item. Before version 3.16.0 only the predefined properties `documentation` 4935---and `details` could be resolved lazily. 4936--- 4937---@since 3.16.0 4938---@field resolveSupport? lsp.ClientCompletionItemResolveOptions 4939--- 4940---The client supports the `insertTextMode` property on 4941---a completion item to override the whitespace handling mode 4942---as defined by the client (see `insertTextMode`). 4943--- 4944---@since 3.16.0 4945---@field insertTextModeSupport? lsp.ClientCompletionItemInsertTextModeOptions 4946--- 4947---The client has support for completion item label 4948---details (see also `CompletionItemLabelDetails`). 4949--- 4950---@since 3.17.0 4951---@field labelDetailsSupport? boolean 4952 4953---@since 3.18.0 4954---@class lsp.ClientCompletionItemOptionsKind 4955--- 4956---The completion item kind values the client supports. When this 4957---property exists the client also guarantees that it will 4958---handle values outside its set gracefully and falls back 4959---to a default value when unknown. 4960--- 4961---If this property is not present the client only supports 4962---the completion items kinds from `Text` to `Reference` as defined in 4963---the initial version of the protocol. 4964---@field valueSet? lsp.CompletionItemKind[] 4965 4966---The client supports the following `CompletionList` specific 4967---capabilities. 4968--- 4969---@since 3.17.0 4970---@class lsp.CompletionListCapabilities 4971--- 4972---The client supports the following itemDefaults on 4973---a completion list. 4974--- 4975---The value lists the supported property names of the 4976---`CompletionList.itemDefaults` object. If omitted 4977---no properties are supported. 4978--- 4979---@since 3.17.0 4980---@field itemDefaults? string[] 4981--- 4982---Specifies whether the client supports `CompletionList.applyKind` to 4983---indicate how supported values from `completionList.itemDefaults` 4984---and `completion` will be combined. 4985--- 4986---If a client supports `applyKind` it must support it for all fields 4987---that it supports that are listed in `CompletionList.applyKind`. This 4988---means when clients add support for new/future fields in completion 4989---items the MUST also support merge for them if those fields are 4990---defined in `CompletionList.applyKind`. 4991--- 4992---@since 3.18.0 4993---@field applyKindSupport? boolean 4994 4995---@since 3.18.0 4996---@class lsp.ClientSignatureInformationOptions 4997--- 4998---Client supports the following content formats for the documentation 4999---property. The order describes the preferred format of the client. 5000---@field documentationFormat? lsp.MarkupKind[] 5001--- 5002---Client capabilities specific to parameter information. 5003---@field parameterInformation? lsp.ClientSignatureParameterInformationOptions 5004--- 5005---The client supports the `activeParameter` property on `SignatureInformation` 5006---literal. 5007--- 5008---@since 3.16.0 5009---@field activeParameterSupport? boolean 5010--- 5011---The client supports the `activeParameter` property on 5012---`SignatureHelp`/`SignatureInformation` being set to `null` to 5013---indicate that no parameter should be active. 5014--- 5015---@since 3.18.0 5016---@field noActiveParameterSupport? boolean 5017 5018---@since 3.18.0 5019---@class lsp.ClientCodeActionLiteralOptions 5020--- 5021---The code action kind is support with the following value 5022---set. 5023---@field codeActionKind lsp.ClientCodeActionKindOptions 5024 5025---@since 3.18.0 5026---@class lsp.ClientCodeActionResolveOptions 5027--- 5028---The properties that a client can resolve lazily. 5029---@field properties string[] 5030 5031---@since 3.18.0 - proposed 5032---@class lsp.CodeActionTagOptions 5033--- 5034---The tags supported by the client. 5035---@field valueSet lsp.CodeActionTag[] 5036 5037---@since 3.18.0 5038---@class lsp.ClientCodeLensResolveOptions 5039--- 5040---The properties that a client can resolve lazily. 5041---@field properties string[] 5042 5043---@since 3.18.0 5044---@class lsp.ClientFoldingRangeKindOptions 5045--- 5046---The folding range kind values the client supports. When this 5047---property exists the client also guarantees that it will 5048---handle values outside its set gracefully and falls back 5049---to a default value when unknown. 5050---@field valueSet? lsp.FoldingRangeKind[] 5051 5052---@since 3.18.0 5053---@class lsp.ClientFoldingRangeOptions 5054--- 5055---If set, the client signals that it supports setting collapsedText on 5056---folding ranges to display custom labels instead of the default text. 5057--- 5058---@since 3.17.0 5059---@field collapsedText? boolean 5060 5061---General diagnostics capabilities for pull and push model. 5062---@class lsp.DiagnosticsCapabilities 5063--- 5064---Whether the clients accepts diagnostics with related information. 5065---@field relatedInformation? boolean 5066--- 5067---Client supports the tag property to provide meta data about a diagnostic. 5068---Clients supporting tags have to handle unknown tags gracefully. 5069--- 5070---@since 3.15.0 5071---@field tagSupport? lsp.ClientDiagnosticsTagOptions 5072--- 5073---Client supports a codeDescription property 5074--- 5075---@since 3.16.0 5076---@field codeDescriptionSupport? boolean 5077--- 5078---Whether code action supports the `data` property which is 5079---preserved between a `textDocument/publishDiagnostics` and 5080---`textDocument/codeAction` request. 5081--- 5082---@since 3.16.0 5083---@field dataSupport? boolean 5084 5085---@since 3.18.0 5086---@class lsp.ClientSemanticTokensRequestOptions 5087--- 5088---The client will send the `textDocument/semanticTokens/range` request if 5089---the server provides a corresponding handler. 5090---@field range? boolean|lsp._anonym2.range 5091--- 5092---The client will send the `textDocument/semanticTokens/full` request if 5093---the server provides a corresponding handler. 5094---@field full? boolean|lsp.ClientSemanticTokensRequestFullDelta 5095 5096---@since 3.18.0 5097---@class lsp.ClientInlayHintResolveOptions 5098--- 5099---The properties that a client can resolve lazily. 5100---@field properties string[] 5101 5102---@since 3.18.0 5103---@class lsp.ClientShowMessageActionItemOptions 5104--- 5105---Whether the client supports additional attributes which 5106---are preserved and send back to the server in the 5107---request's response. 5108---@field additionalPropertiesSupport? boolean 5109 5110---@since 3.18.0 5111---@class lsp.CompletionItemTagOptions 5112--- 5113---The tags supported by the client. 5114---@field valueSet lsp.CompletionItemTag[] 5115 5116---@since 3.18.0 5117---@class lsp.ClientCompletionItemResolveOptions 5118--- 5119---The properties that a client can resolve lazily. 5120---@field properties string[] 5121 5122---@since 3.18.0 5123---@class lsp.ClientCompletionItemInsertTextModeOptions 5124--- 5125---@field valueSet lsp.InsertTextMode[] 5126 5127---@since 3.18.0 5128---@class lsp.ClientSignatureParameterInformationOptions 5129--- 5130---The client supports processing label offsets instead of a 5131---simple label string. 5132--- 5133---@since 3.14.0 5134---@field labelOffsetSupport? boolean 5135 5136---@since 3.18.0 5137---@class lsp.ClientCodeActionKindOptions 5138--- 5139---The code action kind values the client supports. When this 5140---property exists the client also guarantees that it will 5141---handle values outside its set gracefully and falls back 5142---to a default value when unknown. 5143---@field valueSet lsp.CodeActionKind[] 5144 5145---@since 3.18.0 5146---@class lsp.ClientDiagnosticsTagOptions 5147--- 5148---The tags supported by the client. 5149---@field valueSet lsp.DiagnosticTag[] 5150 5151---@since 3.18.0 5152---@class lsp.ClientSemanticTokensRequestFullDelta 5153--- 5154---The client will send the `textDocument/semanticTokens/full/delta` request if 5155---the server provides a corresponding handler. 5156---@field delta? boolean 5157 5158---A set of predefined token types. This set is not fixed 5159---an clients can specify additional token types via the 5160---corresponding client capabilities. 5161--- 5162---@since 3.16.0 5163---@alias lsp.SemanticTokenTypes 5164---| "namespace" # namespace 5165---| "type" # type 5166---| "class" # class 5167---| "enum" # enum 5168---| "interface" # interface 5169---| "struct" # struct 5170---| "typeParameter" # typeParameter 5171---| "parameter" # parameter 5172---| "variable" # variable 5173---| "property" # property 5174---| "enumMember" # enumMember 5175---| "event" # event 5176---| "function" # function 5177---| "method" # method 5178---| "macro" # macro 5179---| "keyword" # keyword 5180---| "modifier" # modifier 5181---| "comment" # comment 5182---| "string" # string 5183---| "number" # number 5184---| "regexp" # regexp 5185---| "operator" # operator 5186---| "decorator" # decorator 5187---| "label" # label 5188 5189---A set of predefined token modifiers. This set is not fixed 5190---an clients can specify additional token types via the 5191---corresponding client capabilities. 5192--- 5193---@since 3.16.0 5194---@alias lsp.SemanticTokenModifiers 5195---| "declaration" # declaration 5196---| "definition" # definition 5197---| "readonly" # readonly 5198---| "static" # static 5199---| "deprecated" # deprecated 5200---| "abstract" # abstract 5201---| "async" # async 5202---| "modification" # modification 5203---| "documentation" # documentation 5204---| "defaultLibrary" # defaultLibrary 5205 5206---The document diagnostic report kinds. 5207--- 5208---@since 3.17.0 5209---@alias lsp.DocumentDiagnosticReportKind 5210---| "full" # Full 5211---| "unchanged" # Unchanged 5212 5213---Predefined error codes. 5214---@alias lsp.ErrorCodes 5215---| -32700 # ParseError 5216---| -32600 # InvalidRequest 5217---| -32601 # MethodNotFound 5218---| -32602 # InvalidParams 5219---| -32603 # InternalError 5220---| -32002 # ServerNotInitialized 5221---| -32001 # UnknownErrorCode 5222 5223---@alias lsp.LSPErrorCodes 5224---| -32803 # RequestFailed 5225---| -32802 # ServerCancelled 5226---| -32801 # ContentModified 5227---| -32800 # RequestCancelled 5228 5229---A set of predefined range kinds. 5230---@alias lsp.FoldingRangeKind 5231---| "comment" # Comment 5232---| "imports" # Imports 5233---| "region" # Region 5234 5235---A symbol kind. 5236---@alias lsp.SymbolKind 5237---| 1 # File 5238---| 2 # Module 5239---| 3 # Namespace 5240---| 4 # Package 5241---| 5 # Class 5242---| 6 # Method 5243---| 7 # Property 5244---| 8 # Field 5245---| 9 # Constructor 5246---| 10 # Enum 5247---| 11 # Interface 5248---| 12 # Function 5249---| 13 # Variable 5250---| 14 # Constant 5251---| 15 # String 5252---| 16 # Number 5253---| 17 # Boolean 5254---| 18 # Array 5255---| 19 # Object 5256---| 20 # Key 5257---| 21 # Null 5258---| 22 # EnumMember 5259---| 23 # Struct 5260---| 24 # Event 5261---| 25 # Operator 5262---| 26 # TypeParameter 5263 5264---Symbol tags are extra annotations that tweak the rendering of a symbol. 5265--- 5266---@since 3.16 5267---@alias lsp.SymbolTag 5268---| 1 # Deprecated 5269 5270---Moniker uniqueness level to define scope of the moniker. 5271--- 5272---@since 3.16.0 5273---@alias lsp.UniquenessLevel 5274---| "document" # document 5275---| "project" # project 5276---| "group" # group 5277---| "scheme" # scheme 5278---| "global" # global 5279 5280---The moniker kind. 5281--- 5282---@since 3.16.0 5283---@alias lsp.MonikerKind 5284---| "import" # import 5285---| "export" # export 5286---| "local" # local 5287 5288---Inlay hint kinds. 5289--- 5290---@since 3.17.0 5291---@alias lsp.InlayHintKind 5292---| 1 # Type 5293---| 2 # Parameter 5294 5295---The message type 5296---@alias lsp.MessageType 5297---| 1 # Error 5298---| 2 # Warning 5299---| 3 # Info 5300---| 4 # Log 5301---| 5 # Debug 5302 5303---Defines how the host (editor) should sync 5304---document changes to the language server. 5305---@alias lsp.TextDocumentSyncKind 5306---| 0 # None 5307---| 1 # Full 5308---| 2 # Incremental 5309 5310---Represents reasons why a text document is saved. 5311---@alias lsp.TextDocumentSaveReason 5312---| 1 # Manual 5313---| 2 # AfterDelay 5314---| 3 # FocusOut 5315 5316---The kind of a completion entry. 5317---@alias lsp.CompletionItemKind 5318---| 1 # Text 5319---| 2 # Method 5320---| 3 # Function 5321---| 4 # Constructor 5322---| 5 # Field 5323---| 6 # Variable 5324---| 7 # Class 5325---| 8 # Interface 5326---| 9 # Module 5327---| 10 # Property 5328---| 11 # Unit 5329---| 12 # Value 5330---| 13 # Enum 5331---| 14 # Keyword 5332---| 15 # Snippet 5333---| 16 # Color 5334---| 17 # File 5335---| 18 # Reference 5336---| 19 # Folder 5337---| 20 # EnumMember 5338---| 21 # Constant 5339---| 22 # Struct 5340---| 23 # Event 5341---| 24 # Operator 5342---| 25 # TypeParameter 5343 5344---Completion item tags are extra annotations that tweak the rendering of a completion 5345---item. 5346--- 5347---@since 3.15.0 5348---@alias lsp.CompletionItemTag 5349---| 1 # Deprecated 5350 5351---Defines whether the insert text in a completion item should be interpreted as 5352---plain text or a snippet. 5353---@alias lsp.InsertTextFormat 5354---| 1 # PlainText 5355---| 2 # Snippet 5356 5357---How whitespace and indentation is handled during completion 5358---item insertion. 5359--- 5360---@since 3.16.0 5361---@alias lsp.InsertTextMode 5362---| 1 # asIs 5363---| 2 # adjustIndentation 5364 5365---A document highlight kind. 5366---@alias lsp.DocumentHighlightKind 5367---| 1 # Text 5368---| 2 # Read 5369---| 3 # Write 5370 5371---A set of predefined code action kinds 5372---@alias lsp.CodeActionKind 5373---| "" # Empty 5374---| "quickfix" # QuickFix 5375---| "refactor" # Refactor 5376---| "refactor.extract" # RefactorExtract 5377---| "refactor.inline" # RefactorInline 5378---| "refactor.move" # RefactorMove 5379---| "refactor.rewrite" # RefactorRewrite 5380---| "source" # Source 5381---| "source.organizeImports" # SourceOrganizeImports 5382---| "source.fixAll" # SourceFixAll 5383---| "notebook" # Notebook 5384 5385---Code action tags are extra annotations that tweak the behavior of a code action. 5386--- 5387---@since 3.18.0 - proposed 5388---@alias lsp.CodeActionTag 5389---| 1 # LLMGenerated 5390 5391---@alias lsp.TraceValue 5392---| "off" # Off 5393---| "messages" # Messages 5394---| "verbose" # Verbose 5395 5396---Describes the content type that a client supports in various 5397---result literals like `Hover`, `ParameterInfo` or `CompletionItem`. 5398--- 5399---Please note that `MarkupKinds` must not start with a `$`. This kinds 5400---are reserved for internal usage. 5401---@alias lsp.MarkupKind 5402---| "plaintext" # PlainText 5403---| "markdown" # Markdown 5404 5405---Predefined Language kinds 5406---@since 3.18.0 5407---@alias lsp.LanguageKind 5408---| "abap" # ABAP 5409---| "bat" # WindowsBat 5410---| "bibtex" # BibTeX 5411---| "clojure" # Clojure 5412---| "coffeescript" # Coffeescript 5413---| "c" # C 5414---| "cpp" # CPP 5415---| "csharp" # CSharp 5416---| "css" # CSS 5417---| "d" # D 5418---| "pascal" # Delphi 5419---| "diff" # Diff 5420---| "dart" # Dart 5421---| "dockerfile" # Dockerfile 5422---| "elixir" # Elixir 5423---| "erlang" # Erlang 5424---| "fsharp" # FSharp 5425---| "git-commit" # GitCommit 5426---| "git-rebase" # GitRebase 5427---| "go" # Go 5428---| "groovy" # Groovy 5429---| "handlebars" # Handlebars 5430---| "haskell" # Haskell 5431---| "html" # HTML 5432---| "ini" # Ini 5433---| "java" # Java 5434---| "javascript" # JavaScript 5435---| "javascriptreact" # JavaScriptReact 5436---| "json" # JSON 5437---| "latex" # LaTeX 5438---| "less" # Less 5439---| "lua" # Lua 5440---| "makefile" # Makefile 5441---| "markdown" # Markdown 5442---| "objective-c" # ObjectiveC 5443---| "objective-cpp" # ObjectiveCPP 5444---| "pascal" # Pascal 5445---| "perl" # Perl 5446---| "perl6" # Perl6 5447---| "php" # PHP 5448---| "plaintext" # Plaintext 5449---| "powershell" # Powershell 5450---| "jade" # Pug 5451---| "python" # Python 5452---| "r" # R 5453---| "razor" # Razor 5454---| "ruby" # Ruby 5455---| "rust" # Rust 5456---| "scss" # SCSS 5457---| "sass" # SASS 5458---| "scala" # Scala 5459---| "shaderlab" # ShaderLab 5460---| "shellscript" # ShellScript 5461---| "sql" # SQL 5462---| "swift" # Swift 5463---| "typescript" # TypeScript 5464---| "typescriptreact" # TypeScriptReact 5465---| "tex" # TeX 5466---| "vb" # VisualBasic 5467---| "xml" # XML 5468---| "xsl" # XSL 5469---| "yaml" # YAML 5470 5471---Describes how an {@link InlineCompletionItemProvider inline completion provider} was triggered. 5472--- 5473---@since 3.18.0 5474---@alias lsp.InlineCompletionTriggerKind 5475---| 1 # Invoked 5476---| 2 # Automatic 5477 5478---A set of predefined position encoding kinds. 5479--- 5480---@since 3.17.0 5481---@alias lsp.PositionEncodingKind 5482---| "utf-8" # UTF8 5483---| "utf-16" # UTF16 5484---| "utf-32" # UTF32 5485 5486---The file event type 5487---@alias lsp.FileChangeType 5488---| 1 # Created 5489---| 2 # Changed 5490---| 3 # Deleted 5491 5492---@alias lsp.WatchKind 5493---| 1 # Create 5494---| 2 # Change 5495---| 4 # Delete 5496 5497---The diagnostic's severity. 5498---@alias lsp.DiagnosticSeverity 5499---| 1 # Error 5500---| 2 # Warning 5501---| 3 # Information 5502---| 4 # Hint 5503 5504---The diagnostic tags. 5505--- 5506---@since 3.15.0 5507---@alias lsp.DiagnosticTag 5508---| 1 # Unnecessary 5509---| 2 # Deprecated 5510 5511---How a completion was triggered 5512---@alias lsp.CompletionTriggerKind 5513---| 1 # Invoked 5514---| 2 # TriggerCharacter 5515---| 3 # TriggerForIncompleteCompletions 5516 5517---Defines how values from a set of defaults and an individual item will be 5518---merged. 5519--- 5520---@since 3.18.0 5521---@alias lsp.ApplyKind 5522---| 1 # Replace 5523---| 2 # Merge 5524 5525---How a signature help was triggered. 5526--- 5527---@since 3.15.0 5528---@alias lsp.SignatureHelpTriggerKind 5529---| 1 # Invoked 5530---| 2 # TriggerCharacter 5531---| 3 # ContentChange 5532 5533---The reason why code actions were requested. 5534--- 5535---@since 3.17.0 5536---@alias lsp.CodeActionTriggerKind 5537---| 1 # Invoked 5538---| 2 # Automatic 5539 5540---A pattern kind describing if a glob pattern matches a file a folder or 5541---both. 5542--- 5543---@since 3.16.0 5544---@alias lsp.FileOperationPatternKind 5545---| "file" # file 5546---| "folder" # folder 5547 5548---A notebook cell kind. 5549--- 5550---@since 3.17.0 5551---@alias lsp.NotebookCellKind 5552---| 1 # Markup 5553---| 2 # Code 5554 5555---@alias lsp.ResourceOperationKind 5556---| "create" # Create 5557---| "rename" # Rename 5558---| "delete" # Delete 5559 5560---@alias lsp.FailureHandlingKind 5561---| "abort" # Abort 5562---| "transactional" # Transactional 5563---| "textOnlyTransactional" # TextOnlyTransactional 5564---| "undo" # Undo 5565 5566---@alias lsp.PrepareSupportDefaultBehavior 5567---| 1 # Identifier 5568 5569---@alias lsp.TokenFormat 5570---| "relative" # Relative 5571 5572---The definition of a symbol represented as one or many {@link Location locations}. 5573---For most programming languages there is only one location at which a symbol is 5574---defined. 5575--- 5576---Servers should prefer returning `DefinitionLink` over `Definition` if supported 5577---by the client. 5578---@alias lsp.Definition lsp.Location|lsp.Location[] 5579 5580---Information about where a symbol is defined. 5581--- 5582---Provides additional metadata over normal {@link Location location} definitions, including the range of 5583---the defining symbol 5584---@alias lsp.DefinitionLink lsp.LocationLink 5585 5586---LSP arrays. 5587---@since 3.17.0 5588---@alias lsp.LSPArray lsp.LSPAny[] 5589 5590---The LSP any type. 5591---Please note that strictly speaking a property with the value `undefined` 5592---can't be converted into JSON preserving the property name. However for 5593---convenience it is allowed and assumed that all these properties are 5594---optional as well. 5595---@since 3.17.0 5596---@alias lsp.LSPAny lsp.LSPObject|lsp.LSPArray|string|integer|uinteger|decimal|boolean|lsp.null 5597 5598---The declaration of a symbol representation as one or many {@link Location locations}. 5599---@alias lsp.Declaration lsp.Location|lsp.Location[] 5600 5601---Information about where a symbol is declared. 5602--- 5603---Provides additional metadata over normal {@link Location location} declarations, including the range of 5604---the declaring symbol. 5605--- 5606---Servers should prefer returning `DeclarationLink` over `Declaration` if supported 5607---by the client. 5608---@alias lsp.DeclarationLink lsp.LocationLink 5609 5610---Inline value information can be provided by different means: 5611---- directly as a text value (class InlineValueText). 5612---- as a name to use for a variable lookup (class InlineValueVariableLookup) 5613---- as an evaluatable expression (class InlineValueEvaluatableExpression) 5614---The InlineValue types combines all inline value types into one type. 5615--- 5616---@since 3.17.0 5617---@alias lsp.InlineValue lsp.InlineValueText|lsp.InlineValueVariableLookup|lsp.InlineValueEvaluatableExpression 5618 5619---The result of a document diagnostic pull request. A report can 5620---either be a full report containing all diagnostics for the 5621---requested document or an unchanged report indicating that nothing 5622---has changed in terms of diagnostics in comparison to the last 5623---pull request. 5624--- 5625---@since 3.17.0 5626---@alias lsp.DocumentDiagnosticReport lsp.RelatedFullDocumentDiagnosticReport|lsp.RelatedUnchangedDocumentDiagnosticReport 5627 5628---@alias lsp.PrepareRenameResult lsp.Range|lsp.PrepareRenamePlaceholder|lsp.PrepareRenameDefaultBehavior 5629 5630---A document selector is the combination of one or many document filters. 5631--- 5632---\@sample `let sel:DocumentSelector = [{ language: 'typescript' }, { language: 'json', pattern: '**∕tsconfig.json' }]`; 5633--- 5634---The use of a string as a document filter is deprecated @since 3.16.0. 5635---@alias lsp.DocumentSelector lsp.DocumentFilter[] 5636 5637---@alias lsp.ProgressToken integer|string 5638 5639---An identifier to refer to a change annotation stored with a workspace edit. 5640---@alias lsp.ChangeAnnotationIdentifier string 5641 5642---A workspace diagnostic document report. 5643--- 5644---@since 3.17.0 5645---@alias lsp.WorkspaceDocumentDiagnosticReport lsp.WorkspaceFullDocumentDiagnosticReport|lsp.WorkspaceUnchangedDocumentDiagnosticReport 5646 5647---An event describing a change to a text document. If only a text is provided 5648---it is considered to be the full content of the document. 5649---@alias lsp.TextDocumentContentChangeEvent lsp.TextDocumentContentChangePartial|lsp.TextDocumentContentChangeWholeDocument 5650 5651---MarkedString can be used to render human readable text. It is either a markdown string 5652---or a code-block that provides a language and a code snippet. The language identifier 5653---is semantically equal to the optional language identifier in fenced code blocks in GitHub 5654---issues. See https://help.github.com/articles/creating-and-highlighting-code-blocks/#syntax-highlighting 5655--- 5656---The pair of a language and a value is an equivalent to markdown: 5657---```${language} 5658---${value} 5659---``` 5660--- 5661---Note that markdown strings will be sanitized - that means html will be escaped. 5662---@deprecated use MarkupContent instead. 5663---@alias lsp.MarkedString string|lsp.MarkedStringWithLanguage 5664 5665---A document filter describes a top level text document or 5666---a notebook cell document. 5667--- 5668---@since 3.17.0 - support for NotebookCellTextDocumentFilter. 5669---@alias lsp.DocumentFilter lsp.TextDocumentFilter|lsp.NotebookCellTextDocumentFilter 5670 5671---LSP object definition. 5672---@since 3.17.0 5673---@alias lsp.LSPObject table<string, lsp.LSPAny> 5674 5675---The glob pattern. Either a string pattern or a relative pattern. 5676--- 5677---@since 3.17.0 5678---@alias lsp.GlobPattern lsp.Pattern|lsp.RelativePattern 5679 5680---A document filter denotes a document by different properties like 5681---the {@link TextDocument.languageId language}, the {@link Uri.scheme scheme} of 5682---its resource, or a glob-pattern that is applied to the {@link TextDocument.fileName path}. 5683--- 5684---Glob patterns can have the following syntax: 5685---- `*` to match zero or more characters in a path segment 5686---- `?` to match on one character in a path segment 5687---- `**` to match any number of path segments, including none 5688---- `{}` to group sub patterns into an OR expression. (e.g. `**/*.{ts,js}` matches all TypeScript and JavaScript files) 5689---- `[]` to declare a range of characters to match in a path segment (e.g., `example.[0-9]` to match on `example.0`, `example.1`, …) 5690---- `[!...]` to negate a range of characters to match in a path segment (e.g., `example.[!0-9]` to match on `example.a`, `example.b`, but not `example.0`) 5691--- 5692---\@sample A language filter that applies to typescript files on disk: `{ language: 'typescript', scheme: 'file' }` 5693---\@sample A language filter that applies to all package.json paths: `{ language: 'json', pattern: '**package.json' }` 5694--- 5695---@since 3.17.0 5696---@alias lsp.TextDocumentFilter lsp.TextDocumentFilterLanguage|lsp.TextDocumentFilterScheme|lsp.TextDocumentFilterPattern 5697 5698---A notebook document filter denotes a notebook document by 5699---different properties. The properties will be match 5700---against the notebook's URI (same as with documents) 5701--- 5702---@since 3.17.0 5703---@alias lsp.NotebookDocumentFilter lsp.NotebookDocumentFilterNotebookType|lsp.NotebookDocumentFilterScheme|lsp.NotebookDocumentFilterPattern 5704 5705---The glob pattern to watch relative to the base path. Glob patterns can have the following syntax: 5706---- `*` to match zero or more characters in a path segment 5707---- `?` to match on one character in a path segment 5708---- `**` to match any number of path segments, including none 5709---- `{}` to group conditions (e.g. `**/*.{ts,js}` matches all TypeScript and JavaScript files) 5710---- `[]` to declare a range of characters to match in a path segment (e.g., `example.[0-9]` to match on `example.0`, `example.1`, …) 5711---- `[!...]` to negate a range of characters to match in a path segment (e.g., `example.[!0-9]` to match on `example.a`, `example.b`, but not `example.0`) 5712--- 5713---@since 3.17.0 5714---@alias lsp.Pattern string 5715 5716---@alias lsp.RegularExpressionEngineKind string 5717 5718---@class lsp._anonym1.range 5719 5720---@class lsp._anonym2.range