@@ -133,7 +133,7 @@ type CallHierarchyItem struct {
133 // More detail for this item, e.g. the signature of a function.
133 // More detail for this item, e.g. the signature of a function.
134 Detail string `json:"detail,omitempty"`
134 Detail string `json:"detail,omitempty"`
135 // The resource identifier of this item.
135 // The resource identifier of this item.
136− URI DocumentUri `json:"uri"`
136+ URI DocumentURI `json:"uri"`
137 // The range enclosing this symbol not including leading/trailing whitespace but everything else, e.g. comments and code.
137 // The range enclosing this symbol not including leading/trailing whitespace but everything else, e.g. comments and code.
138 Range Range `json:"range"`
138 Range Range `json:"range"`
139 // The range that should be selected and revealed when this symbol is being picked, e.g. the name of a function.
139 // The range that should be selected and revealed when this symbol is being picked, e.g. the name of a function.
@@ -225,16 +225,18 @@ type ChangeAnnotation struct {
225// An identifier to refer to a change annotation stored with a workspace edit.
225// An identifier to refer to a change annotation stored with a workspace edit.
227// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#changeAnnotationIdentifier
227// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#changeAnnotationIdentifier
228−type ChangeAnnotationIdentifier = string // (alias)
229+ ChangeAnnotationIdentifier = string // (alias)
229−// @since 3.18.0
230+ // @since 3.18.0
231−// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#changeAnnotationsSupportOptions
232+ // See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#changeAnnotationsSupportOptions
232−type ChangeAnnotationsSupportOptions struct {
233+ ChangeAnnotationsSupportOptions struct {
233− // Whether the client groups edits with equal labels into tree nodes,
234+ // Whether the client groups edits with equal labels into tree nodes,
234− // for instance all edits labelled with "Changes in Strings" would
235+ // for instance all edits labelled with "Changes in Strings" would
235− // be a tree node.
236+ // be a tree node.
236− GroupsOnLabel bool `json:"groupsOnLabel,omitempty"`
237+ GroupsOnLabel bool `json:"groupsOnLabel,omitempty"`
239// Defines the capabilities provided by the client.
241// Defines the capabilities provided by the client.
@@ -1249,7 +1251,7 @@ type CreateFile struct {
1249 // A create
1251 // A create
1250 Kind string `json:"kind"`
1252 Kind string `json:"kind"`
1251 // The resource to create.
1253 // The resource to create.
1252− URI DocumentUri `json:"uri"`
1254+ URI DocumentURI `json:"uri"`
1253 // Additional options
1255 // Additional options
1254 Options *CreateFileOptions `json:"options,omitempty"`
1256 Options *CreateFileOptions `json:"options,omitempty"`
1255 ResourceOperation
1257 ResourceOperation
@@ -1279,18 +1281,20 @@ type CreateFilesParams struct {
1279// The declaration of a symbol representation as one or many {@link Location locations}.
1281// The declaration of a symbol representation as one or many {@link Location locations}.
1281// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#declaration
1283// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#declaration
1282−type Declaration = Or_Declaration // (alias)
1285+ Declaration = Or_Declaration // (alias)
1283−// @since 3.14.0
1286+ // @since 3.14.0
1285−// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#declarationClientCapabilities
1288+ // See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#declarationClientCapabilities
1286−type DeclarationClientCapabilities struct {
1289+ DeclarationClientCapabilities struct {
1287− // Whether declaration supports dynamic registration. If this is set to `true`
1290+ // Whether declaration supports dynamic registration. If this is set to `true`
1288− // the client supports the new `DeclarationRegistrationOptions` return value
1291+ // the client supports the new `DeclarationRegistrationOptions` return value
1289− // for the corresponding server capability as well.
1292+ // for the corresponding server capability as well.
1290− DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
1293+ DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
1291− // The client supports additional metadata in the form of declaration links.
1294+ // The client supports additional metadata in the form of declaration links.
1292− LinkSupport bool `json:"linkSupport,omitempty"`
1295+ LinkSupport bool `json:"linkSupport,omitempty"`
1295// Information about where a symbol is declared.
1299// Information about where a symbol is declared.
@@ -1301,11 +1305,13 @@ type DeclarationClientCapabilities struct {
1301// by the client.
1305// by the client.
1303// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#declarationLink
1307// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#declarationLink
1304−type DeclarationLink = LocationLink // (alias)
1309+ DeclarationLink = LocationLink // (alias)
1305−// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#declarationOptions
1310+ // See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#declarationOptions
1306−type DeclarationOptions struct {
1311+ DeclarationOptions struct {
1307− WorkDoneProgressOptions
1312+ WorkDoneProgressOptions
1310// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#declarationParams
1316// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#declarationParams
1311type DeclarationParams struct {
1317type DeclarationParams struct {
@@ -1329,18 +1335,20 @@ type DeclarationRegistrationOptions struct {
1329// by the client.
1335// by the client.
1331// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#definition
1337// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#definition
1332−type Definition = Or_Definition // (alias)
1339+ Definition = Or_Definition // (alias)
1333−// Client Capabilities for a {@link DefinitionRequest}.
1340+ // Client Capabilities for a {@link DefinitionRequest}.
1335−// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#definitionClientCapabilities
1342+ // See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#definitionClientCapabilities
1336−type DefinitionClientCapabilities struct {
1343+ DefinitionClientCapabilities struct {
1337− // Whether definition supports dynamic registration.
1344+ // Whether definition supports dynamic registration.
1338− DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
1345+ DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
1339− // The client supports additional metadata in the form of definition links.
1346+ // The client supports additional metadata in the form of definition links.
1341− // @since 3.14.0
1348+ // @since 3.14.0
1342− LinkSupport bool `json:"linkSupport,omitempty"`
1349+ LinkSupport bool `json:"linkSupport,omitempty"`
1345// Information about where a symbol is defined.
1353// Information about where a symbol is defined.
@@ -1348,13 +1356,15 @@ type DefinitionClientCapabilities struct {
1348// the defining symbol
1356// the defining symbol
1350// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#definitionLink
1358// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#definitionLink
1351−type DefinitionLink = LocationLink // (alias)
1360+ DefinitionLink = LocationLink // (alias)
1352−// Server Capabilities for a {@link DefinitionRequest}.
1361+ // Server Capabilities for a {@link DefinitionRequest}.
1354−// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#definitionOptions
1363+ // See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#definitionOptions
1355−type DefinitionOptions struct {
1364+ DefinitionOptions struct {
1356− WorkDoneProgressOptions
1365+ WorkDoneProgressOptions
1359// Parameters for a {@link DefinitionRequest}.
1369// Parameters for a {@link DefinitionRequest}.
@@ -1380,7 +1390,7 @@ type DeleteFile struct {
1380 // A delete
1390 // A delete
1381 Kind string `json:"kind"`
1391 Kind string `json:"kind"`
1382 // The file to delete.
1392 // The file to delete.
1383− URI DocumentUri `json:"uri"`
1393+ URI DocumentURI `json:"uri"`
1384 // Delete options.
1394 // Delete options.
1385 Options *DeleteFileOptions `json:"options,omitempty"`
1395 Options *DeleteFileOptions `json:"options,omitempty"`
1386 ResourceOperation
1396 ResourceOperation
@@ -1783,11 +1793,13 @@ type DocumentDiagnosticParams struct {
1783// @since 3.17.0
1793// @since 3.17.0
1785// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#documentDiagnosticReport
1795// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#documentDiagnosticReport
1786−type DocumentDiagnosticReport = Or_DocumentDiagnosticReport // (alias)
1797+ DocumentDiagnosticReport = Or_DocumentDiagnosticReport // (alias)
1787−// The document diagnostic report kinds.
1798+ // The document diagnostic report kinds.
1789−// @since 3.17.0
1800+ // @since 3.17.0
1790−type DocumentDiagnosticReportKind string
1801+ DocumentDiagnosticReportKind string
1792// A partial result for a document diagnostic report.
1804// A partial result for a document diagnostic report.
@@ -1795,7 +1807,7 @@ type DocumentDiagnosticReportKind string
1796// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#documentDiagnosticReportPartialResult
1808// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#documentDiagnosticReportPartialResult
1797type DocumentDiagnosticReportPartialResult struct {
1809type DocumentDiagnosticReportPartialResult struct {
1798− RelatedDocuments map[DocumentUri]interface{} `json:"relatedDocuments"`
1810+ RelatedDocuments map[DocumentURI]interface{} `json:"relatedDocuments"`
1801// A document filter describes a top level text document or
1813// A document filter describes a top level text document or
@@ -1804,14 +1816,16 @@ type DocumentDiagnosticReportPartialResult struct {
1804// @since 3.17.0 - proposed support for NotebookCellTextDocumentFilter.
1816// @since 3.17.0 - proposed support for NotebookCellTextDocumentFilter.
1806// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#documentFilter
1818// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#documentFilter
1807−type DocumentFilter = Or_DocumentFilter // (alias)
1820+ DocumentFilter = Or_DocumentFilter // (alias)
1808−// Client capabilities of a {@link DocumentFormattingRequest}.
1821+ // Client capabilities of a {@link DocumentFormattingRequest}.
1810−// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#documentFormattingClientCapabilities
1823+ // See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#documentFormattingClientCapabilities
1811−type DocumentFormattingClientCapabilities struct {
1824+ DocumentFormattingClientCapabilities struct {
1812− // Whether formatting supports dynamic registration.
1825+ // Whether formatting supports dynamic registration.
1813− DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
1826+ DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
1816// Provider options for a {@link DocumentFormattingRequest}.
1830// Provider options for a {@link DocumentFormattingRequest}.
@@ -2061,39 +2075,41 @@ type DocumentRangesFormattingParams struct {
2061// The use of a string as a document filter is deprecated @since 3.16.0.
2075// The use of a string as a document filter is deprecated @since 3.16.0.
2063// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#documentSelector
2077// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#documentSelector
2064−type DocumentSelector = []DocumentFilter // (alias)
2079+ DocumentSelector = []DocumentFilter // (alias)
2065−// Represents programming constructs like variables, classes, interfaces etc.
2080+ // Represents programming constructs like variables, classes, interfaces etc.
2066−// that appear in a document. Document symbols can be hierarchical and they
2081+ // that appear in a document. Document symbols can be hierarchical and they
2067−// have two ranges: one that encloses its definition and one that points to
2082+ // have two ranges: one that encloses its definition and one that points to
2068−// its most interesting range, e.g. the range of an identifier.
2083+ // its most interesting range, e.g. the range of an identifier.
2070−// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#documentSymbol
2085+ // See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#documentSymbol
2071−type DocumentSymbol struct {
2086+ DocumentSymbol struct {
2072− // The name of this symbol. Will be displayed in the user interface and therefore must not be
2087+ // The name of this symbol. Will be displayed in the user interface and therefore must not be
2073− // an empty string or a string only consisting of white spaces.
2088+ // an empty string or a string only consisting of white spaces.
2074− Name string `json:"name"`
2089+ Name string `json:"name"`
2075− // More detail for this symbol, e.g the signature of a function.
2090+ // More detail for this symbol, e.g the signature of a function.
2076− Detail string `json:"detail,omitempty"`
2091+ Detail string `json:"detail,omitempty"`
2077− // The kind of this symbol.
2092+ // The kind of this symbol.
2078− Kind SymbolKind `json:"kind"`
2093+ Kind SymbolKind `json:"kind"`
2079− // Tags for this document symbol.
2094+ // Tags for this document symbol.
2081− // @since 3.16.0
2096+ // @since 3.16.0
2082− Tags []SymbolTag `json:"tags,omitempty"`
2097+ Tags []SymbolTag `json:"tags,omitempty"`
2083− // Indicates if this symbol is deprecated.
2098+ // Indicates if this symbol is deprecated.
2085− // @deprecated Use tags instead
2100+ // @deprecated Use tags instead
2086− Deprecated bool `json:"deprecated,omitempty"`
2101+ Deprecated bool `json:"deprecated,omitempty"`
2087− // The range enclosing this symbol not including leading/trailing whitespace but everything else
2102+ // The range enclosing this symbol not including leading/trailing whitespace but everything else
2088− // like comments. This information is typically used to determine if the clients cursor is
2103+ // like comments. This information is typically used to determine if the clients cursor is
2089− // inside the symbol to reveal in the symbol in the UI.
2104+ // inside the symbol to reveal in the symbol in the UI.
2090− Range Range `json:"range"`
2105+ Range Range `json:"range"`
2091− // The range that should be selected and revealed when this symbol is being picked, e.g the name of a function.
2106+ // The range that should be selected and revealed when this symbol is being picked, e.g the name of a function.
2092− // Must be contained by the `range`.
2107+ // Must be contained by the `range`.
2093− SelectionRange Range `json:"selectionRange"`
2108+ SelectionRange Range `json:"selectionRange"`
2094− // Children of this symbol, e.g. properties of a class.
2109+ // Children of this symbol, e.g. properties of a class.
2095− Children []DocumentSymbol `json:"children,omitempty"`
2110+ Children []DocumentSymbol `json:"children,omitempty"`
2098// Client Capabilities for a {@link DocumentSymbolRequest}.
2114// Client Capabilities for a {@link DocumentSymbolRequest}.
@@ -2237,7 +2253,7 @@ type FileDelete struct {
2237// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#fileEvent
2253// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#fileEvent
2238type FileEvent struct {
2254type FileEvent struct {
2239 // The file's uri.
2255 // The file's uri.
2240− URI DocumentUri `json:"uri"`
2256+ URI DocumentURI `json:"uri"`
2241 // The change type.
2257 // The change type.
2242 Type FileChangeType `json:"type"`
2258 Type FileChangeType `json:"type"`
@@ -2556,17 +2572,19 @@ type GeneralClientCapabilities struct {
2556// @since 3.17.0
2572// @since 3.17.0
2558// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#globPattern
2574// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#globPattern
2559−type GlobPattern = Or_GlobPattern // (alias)
2576+ GlobPattern = Or_GlobPattern // (alias)
2560−// The result of a hover request.
2577+ // The result of a hover request.
2562−// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#hover
2579+ // See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#hover
2563−type Hover struct {
2580+ Hover struct {
2564− // The hover's content
2581+ // The hover's content
2565− Contents MarkupContent `json:"contents"`
2582+ Contents MarkupContent `json:"contents"`
2566− // An optional range inside the text document that is used to
2583+ // An optional range inside the text document that is used to
2567− // visualize the hover, e.g. by changing the background color.
2584+ // visualize the hover, e.g. by changing the background color.
2568− Range Range `json:"range,omitempty"`
2585+ Range Range `json:"range,omitempty"`
2571// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#hoverClientCapabilities
2589// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#hoverClientCapabilities
2572type HoverClientCapabilities struct {
2590type HoverClientCapabilities struct {
@@ -2664,8 +2682,7 @@ type InitializeResult struct {
2666// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#initializedParams
2684// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#initializedParams
2667−type InitializedParams struct {
2685+type InitializedParams struct{}
2670// Inlay hint information.
2687// Inlay hint information.
@@ -2918,16 +2935,18 @@ type InlineCompletionTriggerKind uint32
2918// @since 3.17.0
2935// @since 3.17.0
2920// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#inlineValue
2937// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#inlineValue
2921−type InlineValue = Or_InlineValue // (alias)
2939+ InlineValue = Or_InlineValue // (alias)
2922−// Client capabilities specific to inline values.
2940+ // Client capabilities specific to inline values.
2924−// @since 3.17.0
2942+ // @since 3.17.0
2926−// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#inlineValueClientCapabilities
2944+ // See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#inlineValueClientCapabilities
2927−type InlineValueClientCapabilities struct {
2945+ InlineValueClientCapabilities struct {
2928− // Whether implementation supports dynamic registration for inline value providers.
2946+ // Whether implementation supports dynamic registration for inline value providers.
2929− DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
2947+ DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
2932// @since 3.17.0
2951// @since 3.17.0
@@ -3058,25 +3077,31 @@ type InsertTextFormat uint32
3058// item insertion.
3077// item insertion.
3060// @since 3.16.0
3079// @since 3.16.0
3061−type InsertTextMode uint32
3081+ InsertTextMode uint32
3062−type LSPAny = interface{}
3082+ LSPAny = interface{}
3064// LSP arrays.
3085// LSP arrays.
3065// @since 3.17.0
3086// @since 3.17.0
3067// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#lSPArray
3088// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#lSPArray
3068−type LSPArray = []interface{} // (alias)
3090+ LSPArray = []interface{} // (alias)
3069−type LSPErrorCodes int32
3091+ LSPErrorCodes int32
3071// LSP object definition.
3094// LSP object definition.
3072// @since 3.17.0
3095// @since 3.17.0
3074// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#lSPObject
3097// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#lSPObject
3075−type LSPObject = map[string]LSPAny // (alias)
3099+ LSPObject = map[string]LSPAny // (alias)
3076−// Predefined Language kinds
3100+ // Predefined Language kinds
3077−// @since 3.18.0
3101+ // @since 3.18.0
3078−// @proposed
3102+ // @proposed
3079−type LanguageKind string
3103+ LanguageKind string
3081// Client capabilities for the linked editing range request.
3106// Client capabilities for the linked editing range request.
@@ -3124,19 +3149,17 @@ type LinkedEditingRanges struct {
3126// created for Literal (Lit_ClientSemanticTokensRequestOptions_range_Item1)
3151// created for Literal (Lit_ClientSemanticTokensRequestOptions_range_Item1)
3127−type Lit_ClientSemanticTokensRequestOptions_range_Item1 struct {
3152+type Lit_ClientSemanticTokensRequestOptions_range_Item1 struct{}
3130// created for Literal (Lit_SemanticTokensOptions_range_Item1)
3154// created for Literal (Lit_SemanticTokensOptions_range_Item1)
3131−type Lit_SemanticTokensOptions_range_Item1 struct {
3155+type Lit_SemanticTokensOptions_range_Item1 struct{}
3134// Represents a location inside a resource, such as a line
3157// Represents a location inside a resource, such as a line
3135// inside a text file.
3158// inside a text file.
3137// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#location
3160// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#location
3138type Location struct {
3161type Location struct {
3139− URI DocumentUri `json:"uri"`
3162+ URI DocumentURI `json:"uri"`
3140 Range Range `json:"range"`
3163 Range Range `json:"range"`
@@ -3151,7 +3174,7 @@ type LocationLink struct {
3151 // the definition position.
3174 // the definition position.
3152 OriginSelectionRange *Range `json:"originSelectionRange,omitempty"`
3175 OriginSelectionRange *Range `json:"originSelectionRange,omitempty"`
3153 // The target resource identifier of this link.
3176 // The target resource identifier of this link.
3154− TargetURI DocumentUri `json:"targetUri"`
3177+ TargetURI DocumentURI `json:"targetUri"`
3155 // The full target range of this link. If the target for example is a symbol then target range is the
3178 // The full target range of this link. If the target for example is a symbol then target range is the
3156 // range enclosing this symbol not including leading/trailing whitespace but everything else
3179 // range enclosing this symbol not including leading/trailing whitespace but everything else
3157 // like comments. This information is typically used to highlight the range in the editor.
3180 // like comments. This information is typically used to highlight the range in the editor.
@@ -3167,7 +3190,7 @@ type LocationLink struct {
3168// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#locationUriOnly
3191// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#locationUriOnly
3169type LocationUriOnly struct {
3192type LocationUriOnly struct {
3170− URI DocumentUri `json:"uri"`
3193+ URI DocumentURI `json:"uri"`
3173// The log message parameters.
3196// The log message parameters.
@@ -3217,15 +3240,17 @@ type MarkdownClientCapabilities struct {
3217// @deprecated use MarkupContent instead.
3240// @deprecated use MarkupContent instead.
3219// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#markedString
3242// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#markedString
3220−type MarkedString = Or_MarkedString // (alias)
3244+ MarkedString = Or_MarkedString // (alias)
3221−// @since 3.18.0
3245+ // @since 3.18.0
3222−// @deprecated use MarkupContent instead.
3246+ // @deprecated use MarkupContent instead.
3224−// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#markedStringWithLanguage
3248+ // See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#markedStringWithLanguage
3225−type MarkedStringWithLanguage struct {
3249+ MarkedStringWithLanguage struct {
3226− Language string `json:"language"`
3250+ Language string `json:"language"`
3227− Value string `json:"value"`
3251+ Value string `json:"value"`
3230// A `MarkupContent` literal represents a string value which content is interpreted base on its
3255// A `MarkupContent` literal represents a string value which content is interpreted base on its
3231// kind flag. Currently the protocol supports `plaintext` and `markdown` as markup kinds.
3256// kind flag. Currently the protocol supports `plaintext` and `markdown` as markup kinds.
@@ -3342,7 +3367,7 @@ type NotebookCell struct {
3342 Kind NotebookCellKind `json:"kind"`
3367 Kind NotebookCellKind `json:"kind"`
3343 // The URI of the cell's text document
3368 // The URI of the cell's text document
3344 // content.
3369 // content.
3345− Document DocumentUri `json:"document"`
3370+ Document DocumentURI `json:"document"`
3346 // Additional metadata stored with the cell.
3371 // Additional metadata stored with the cell.
3348 // Note: should always be an object literal (e.g. LSPObject)
3373 // Note: should always be an object literal (e.g. LSPObject)
@@ -3493,20 +3518,22 @@ type NotebookDocumentClientCapabilities struct {
3493// @since 3.17.0
3518// @since 3.17.0
3495// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#notebookDocumentFilter
3520// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#notebookDocumentFilter
3496−type NotebookDocumentFilter = Or_NotebookDocumentFilter // (alias)
3522+ NotebookDocumentFilter = Or_NotebookDocumentFilter // (alias)
3497−// A notebook document filter where `notebookType` is required field.
3523+ // A notebook document filter where `notebookType` is required field.
3499−// @since 3.18.0
3525+ // @since 3.18.0
3501−// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#notebookDocumentFilterNotebookType
3527+ // See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#notebookDocumentFilterNotebookType
3502−type NotebookDocumentFilterNotebookType struct {
3528+ NotebookDocumentFilterNotebookType struct {
3503− // The type of the enclosing notebook.
3529+ // The type of the enclosing notebook.
3504− NotebookType string `json:"notebookType"`
3530+ NotebookType string `json:"notebookType"`
3505− // A Uri {@link Uri.scheme scheme}, like `file` or `untitled`.
3531+ // A Uri {@link Uri.scheme scheme}, like `file` or `untitled`.
3506− Scheme string `json:"scheme,omitempty"`
3532+ Scheme string `json:"scheme,omitempty"`
3507− // A glob pattern.
3533+ // A glob pattern.
3508− Pattern *GlobPattern `json:"pattern,omitempty"`
3534+ Pattern *GlobPattern `json:"pattern,omitempty"`
3511// A notebook document filter where `pattern` is required field.
3538// A notebook document filter where `pattern` is required field.
@@ -4101,51 +4128,53 @@ type PartialResultParams struct {
4101// @since 3.17.0
4128// @since 3.17.0
4103// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#pattern
4130// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#pattern
4104−type Pattern = string // (alias)
4132+ Pattern = string // (alias)
4105−// Position in a text document expressed as zero-based line and character
4133+ // Position in a text document expressed as zero-based line and character
4106−// offset. Prior to 3.17 the offsets were always based on a UTF-16 string
4134+ // offset. Prior to 3.17 the offsets were always based on a UTF-16 string
4107−// representation. So a string of the form `a𐐀b` the character offset of the
4135+ // representation. So a string of the form `a𐐀b` the character offset of the
4108−// character `a` is 0, the character offset of `𐐀` is 1 and the character
4136+ // character `a` is 0, the character offset of `𐐀` is 1 and the character
4109−// offset of b is 3 since `𐐀` is represented using two code units in UTF-16.
4137+ // offset of b is 3 since `𐐀` is represented using two code units in UTF-16.
4110−// Since 3.17 clients and servers can agree on a different string encoding
4138+ // Since 3.17 clients and servers can agree on a different string encoding
4111−// representation (e.g. UTF-8). The client announces it's supported encoding
4139+ // representation (e.g. UTF-8). The client announces it's supported encoding
4112−// via the client capability [`general.positionEncodings`](https://microsoft.github.io/language-server-protocol/specifications/specification-current/#clientCapabilities).
4140+ // via the client capability [`general.positionEncodings`](https://microsoft.github.io/language-server-protocol/specifications/specification-current/#clientCapabilities).
4113−// The value is an array of position encodings the client supports, with
4141+ // The value is an array of position encodings the client supports, with
4114−// decreasing preference (e.g. the encoding at index `0` is the most preferred
4142+ // decreasing preference (e.g. the encoding at index `0` is the most preferred
4115−// one). To stay backwards compatible the only mandatory encoding is UTF-16
4143+ // one). To stay backwards compatible the only mandatory encoding is UTF-16
4116−// represented via the string `utf-16`. The server can pick one of the
4144+ // represented via the string `utf-16`. The server can pick one of the
4117−// encodings offered by the client and signals that encoding back to the
4145+ // encodings offered by the client and signals that encoding back to the
4118−// client via the initialize result's property
4146+ // client via the initialize result's property
4119−// [`capabilities.positionEncoding`](https://microsoft.github.io/language-server-protocol/specifications/specification-current/#serverCapabilities). If the string value
4147+ // [`capabilities.positionEncoding`](https://microsoft.github.io/language-server-protocol/specifications/specification-current/#serverCapabilities). If the string value
4120−// `utf-16` is missing from the client's capability `general.positionEncodings`
4148+ // `utf-16` is missing from the client's capability `general.positionEncodings`
4121−// servers can safely assume that the client supports UTF-16. If the server
4149+ // servers can safely assume that the client supports UTF-16. If the server
4122−// omits the position encoding in its initialize result the encoding defaults
4150+ // omits the position encoding in its initialize result the encoding defaults
4123−// to the string value `utf-16`. Implementation considerations: since the
4151+ // to the string value `utf-16`. Implementation considerations: since the
4124−// conversion from one encoding into another requires the content of the
4152+ // conversion from one encoding into another requires the content of the
4125−// file / line the conversion is best done where the file is read which is
4153+ // file / line the conversion is best done where the file is read which is
4126−// usually on the server side.
4154+ // usually on the server side.
4128−// Positions are line end character agnostic. So you can not specify a position
4156+ // Positions are line end character agnostic. So you can not specify a position
4129−// that denotes `\r|\n` or `\n|` where `|` represents the character offset.
4157+ // that denotes `\r|\n` or `\n|` where `|` represents the character offset.
4131−// @since 3.17.0 - support for negotiated position encoding.
4159+ // @since 3.17.0 - support for negotiated position encoding.
4133−// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#position
4161+ // See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#position
4134−type Position struct {
4162+ Position struct {
4135− // Line position in a document (zero-based).
4163+ // Line position in a document (zero-based).
4137− // If a line number is greater than the number of lines in a document, it defaults back to the number of lines in the document.
4165+ // If a line number is greater than the number of lines in a document, it defaults back to the number of lines in the document.
4138− // If a line number is negative, it defaults to 0.
4166+ // If a line number is negative, it defaults to 0.
4139− Line uint32 `json:"line"`
4167+ Line uint32 `json:"line"`
4140− // Character offset on a line in a document (zero-based).
4168+ // Character offset on a line in a document (zero-based).
4142− // The meaning of this offset is determined by the negotiated
4170+ // The meaning of this offset is determined by the negotiated
4143− // `PositionEncodingKind`.
4171+ // `PositionEncodingKind`.
4145− // If the character value is greater than the line length it defaults back to the
4173+ // If the character value is greater than the line length it defaults back to the
4146− // line length.
4174+ // line length.
4147− Character uint32 `json:"character"`
4175+ Character uint32 `json:"character"`
4150// A set of predefined position encoding kinds.
4179// A set of predefined position encoding kinds.
@@ -4174,8 +4203,10 @@ type PrepareRenamePlaceholder struct {
4176// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#prepareRenameResult
4205// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#prepareRenameResult
4177−type PrepareRenameResult = Or_PrepareRenameResult // (alias)
4207+ PrepareRenameResult = Or_PrepareRenameResult // (alias)
4178−type PrepareSupportDefaultBehavior uint32
4208+ PrepareSupportDefaultBehavior uint32
4180// A previous result id in a workspace pull request.
4211// A previous result id in a workspace pull request.
@@ -4185,7 +4216,7 @@ type PrepareSupportDefaultBehavior uint32
4185type PreviousResultID struct {
4216type PreviousResultID struct {
4186 // The URI for which the client knowns a
4217 // The URI for which the client knowns a
4187 // result id.
4218 // result id.
4188− URI DocumentUri `json:"uri"`
4219+ URI DocumentURI `json:"uri"`
4189 // The value of the previous result id.
4220 // The value of the previous result id.
4190 Value string `json:"value"`
4221 Value string `json:"value"`
@@ -4198,7 +4229,7 @@ type PreviousResultID struct {
4198type PreviousResultId struct {
4229type PreviousResultId struct {
4199 // The URI for which the client knowns a
4230 // The URI for which the client knowns a
4200 // result id.
4231 // result id.
4201− URI DocumentUri `json:"uri"`
4232+ URI DocumentURI `json:"uri"`
4202 // The value of the previous result id.
4233 // The value of the previous result id.
4203 Value string `json:"value"`
4234 Value string `json:"value"`
@@ -4212,25 +4243,27 @@ type ProgressParams struct {
4214// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#progressToken
4245// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#progressToken
4215−type ProgressToken = Or_ProgressToken // (alias)
4247+ ProgressToken = Or_ProgressToken // (alias)
4216−// The publish diagnostic client capabilities.
4248+ // The publish diagnostic client capabilities.
4218−// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#publishDiagnosticsClientCapabilities
4250+ // See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#publishDiagnosticsClientCapabilities
4219−type PublishDiagnosticsClientCapabilities struct {
4251+ PublishDiagnosticsClientCapabilities struct {
4220− // Whether the client interprets the version property of the
4252+ // Whether the client interprets the version property of the
4221− // `textDocument/publishDiagnostics` notification's parameter.
4253+ // `textDocument/publishDiagnostics` notification's parameter.
4223− // @since 3.15.0
4255+ // @since 3.15.0
4224− VersionSupport bool `json:"versionSupport,omitempty"`
4256+ VersionSupport bool `json:"versionSupport,omitempty"`
4225− DiagnosticsCapabilities
4257+ DiagnosticsCapabilities
4228// The publish diagnostic notification's parameters.
4261// The publish diagnostic notification's parameters.
4230// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#publishDiagnosticsParams
4263// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#publishDiagnosticsParams
4231type PublishDiagnosticsParams struct {
4264type PublishDiagnosticsParams struct {
4232 // The URI for which diagnostic information is reported.
4265 // The URI for which diagnostic information is reported.
4233− URI DocumentUri `json:"uri"`
4266+ URI DocumentURI `json:"uri"`
4234 // Optional the version number of the document the diagnostics are published for.
4267 // Optional the version number of the document the diagnostics are published for.
4236 // @since 3.15.0
4269 // @since 3.15.0
@@ -4322,18 +4355,20 @@ type RegistrationParams struct {
4324// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#regularExpressionEngineKind
4357// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#regularExpressionEngineKind
4325−type RegularExpressionEngineKind = string // (alias)
4359+ RegularExpressionEngineKind = string // (alias)
4326−// Client capabilities specific to regular expressions.
4360+ // Client capabilities specific to regular expressions.
4328−// @since 3.16.0
4362+ // @since 3.16.0
4330−// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#regularExpressionsClientCapabilities
4364+ // See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#regularExpressionsClientCapabilities
4331−type RegularExpressionsClientCapabilities struct {
4365+ RegularExpressionsClientCapabilities struct {
4332− // The engine's name.
4366+ // The engine's name.
4333− Engine RegularExpressionEngineKind `json:"engine"`
4367+ Engine RegularExpressionEngineKind `json:"engine"`
4334− // The engine's version.
4368+ // The engine's version.
4335− Version string `json:"version,omitempty"`
4369+ Version string `json:"version,omitempty"`
4338// A full diagnostic report with a set of related documents.
4373// A full diagnostic report with a set of related documents.
@@ -4348,7 +4383,7 @@ type RelatedFullDocumentDiagnosticReport struct {
4348 // a.cpp and result in errors in a header file b.hpp.
4383 // a.cpp and result in errors in a header file b.hpp.
4350 // @since 3.17.0
4385 // @since 3.17.0
4351− RelatedDocuments map[DocumentUri]interface{} `json:"relatedDocuments,omitempty"`
4386+ RelatedDocuments map[DocumentURI]interface{} `json:"relatedDocuments,omitempty"`
4352 FullDocumentDiagnosticReport
4387 FullDocumentDiagnosticReport
@@ -4365,7 +4400,7 @@ type RelatedUnchangedDocumentDiagnosticReport struct {
4365 // a.cpp and result in errors in a header file b.hpp.
4400 // a.cpp and result in errors in a header file b.hpp.
4367 // @since 3.17.0
4402 // @since 3.17.0
4368− RelatedDocuments map[DocumentUri]interface{} `json:"relatedDocuments,omitempty"`
4403+ RelatedDocuments map[DocumentURI]interface{} `json:"relatedDocuments,omitempty"`
4369 UnchangedDocumentDiagnosticReport
4404 UnchangedDocumentDiagnosticReport
@@ -4417,9 +4452,9 @@ type RenameFile struct {
4417 // A rename
4452 // A rename
4418 Kind string `json:"kind"`
4453 Kind string `json:"kind"`
4419 // The old (existing) location.
4454 // The old (existing) location.
4420− OldURI DocumentUri `json:"oldUri"`
4455+ OldURI DocumentURI `json:"oldUri"`
4421 // The new location.
4456 // The new location.
4422− NewURI DocumentUri `json:"newUri"`
4457+ NewURI DocumentURI `json:"newUri"`
4423 // Rename options.
4458 // Rename options.
4424 Options *RenameFileOptions `json:"options,omitempty"`
4459 Options *RenameFileOptions `json:"options,omitempty"`
4425 ResourceOperation
4460 ResourceOperation
@@ -5337,20 +5372,22 @@ type TextDocumentClientCapabilities struct {
5337// it is considered to be the full content of the document.
5372// it is considered to be the full content of the document.
5339// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#textDocumentContentChangeEvent
5374// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#textDocumentContentChangeEvent
5340−type TextDocumentContentChangeEvent = Or_TextDocumentContentChangeEvent // (alias)
5376+ TextDocumentContentChangeEvent = Or_TextDocumentContentChangeEvent // (alias)
5341−// @since 3.18.0
5377+ // @since 3.18.0
5343−// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#textDocumentContentChangePartial
5344−type TextDocumentContentChangePartial struct {
5345− // The range of the document that changed.
5346− Range *Range `json:"range,omitempty"`
5347− // The optional length of the range that got replaced.
5379+ // See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#textDocumentContentChangePartial
5380+ TextDocumentContentChangePartial struct {
5381+ // The range of the document that changed.
5382+ Range *Range `json:"range,omitempty"`
5383+ // The optional length of the range that got replaced.
5349− // @deprecated use range instead.
5385+ // @deprecated use range instead.
5350− RangeLength uint32 `json:"rangeLength,omitempty"`
5386+ RangeLength uint32 `json:"rangeLength,omitempty"`
5351− // The new text for the provided range.
5387+ // The new text for the provided range.
5352− Text string `json:"text"`
5388+ Text string `json:"text"`
5355// @since 3.18.0
5392// @since 3.18.0
@@ -5390,7 +5427,7 @@ type TextDocumentContentOptions struct {
5390// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#textDocumentContentParams
5427// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#textDocumentContentParams
5391type TextDocumentContentParams struct {
5428type TextDocumentContentParams struct {
5392 // The uri of the text document.
5429 // The uri of the text document.
5393− URI DocumentUri `json:"uri"`
5430+ URI DocumentURI `json:"uri"`
5396// Parameters for the `workspace/textDocumentContent/refresh` request.
5433// Parameters for the `workspace/textDocumentContent/refresh` request.
@@ -5401,7 +5438,7 @@ type TextDocumentContentParams struct {
5401// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#textDocumentContentRefreshParams
5438// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#textDocumentContentRefreshParams
5402type TextDocumentContentRefreshParams struct {
5439type TextDocumentContentRefreshParams struct {
5403 // The uri of the text document to refresh.
5440 // The uri of the text document to refresh.
5404− URI DocumentUri `json:"uri"`
5441+ URI DocumentURI `json:"uri"`
5407// Text document content provider registration options.
5444// Text document content provider registration options.
@@ -5453,22 +5490,24 @@ type TextDocumentEdit struct {
5453// @since 3.17.0
5490// @since 3.17.0
5455// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#textDocumentFilter
5492// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#textDocumentFilter
5456−type TextDocumentFilter = Or_TextDocumentFilter // (alias)
5494+ TextDocumentFilter = Or_TextDocumentFilter // (alias)
5457−// A document filter where `language` is required field.
5495+ // A document filter where `language` is required field.
5461−// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#textDocumentFilterLanguage
5462−type TextDocumentFilterLanguage struct {
5463− // A language id, like `typescript`.
5464− Language string `json:"language"`
5465− // A Uri {@link Uri.scheme scheme}, like `file` or `untitled`.
5466− Scheme string `json:"scheme,omitempty"`
5467− // A glob pattern, like **/*.{ts,js}. See TextDocumentFilter for examples.
5499+ // See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#textDocumentFilterLanguage
5500+ TextDocumentFilterLanguage struct {
5501+ // A language id, like `typescript`.
5502+ Language string `json:"language"`
5503+ // A Uri {@link Uri.scheme scheme}, like `file` or `untitled`.
5504+ Scheme string `json:"scheme,omitempty"`
5505+ // A glob pattern, like **/*.{ts,js}. See TextDocumentFilter for examples.
5469− // @since 3.18.0 - support for relative patterns.
5507+ // @since 3.18.0 - support for relative patterns.
5470− Pattern *GlobPattern `json:"pattern,omitempty"`
5508+ Pattern *GlobPattern `json:"pattern,omitempty"`
5473// A document filter where `pattern` is required field.
5512// A document filter where `pattern` is required field.
@@ -5507,7 +5546,7 @@ type TextDocumentFilterScheme struct {
5507// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#textDocumentIdentifier
5546// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#textDocumentIdentifier
5508type TextDocumentIdentifier struct {
5547type TextDocumentIdentifier struct {
5509 // The text document's uri.
5548 // The text document's uri.
5510− URI DocumentUri `json:"uri"`
5549+ URI DocumentURI `json:"uri"`
5513// An item to transfer a text document from the client to the
5552// An item to transfer a text document from the client to the
@@ -5516,7 +5555,7 @@ type TextDocumentIdentifier struct {
5516// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#textDocumentItem
5555// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#textDocumentItem
5517type TextDocumentItem struct {
5556type TextDocumentItem struct {
5518 // The text document's uri.
5557 // The text document's uri.
5519− URI DocumentUri `json:"uri"`
5558+ URI DocumentURI `json:"uri"`
5520 // The text document's language identifier.
5559 // The text document's language identifier.
5521 LanguageID LanguageKind `json:"languageId"`
5560 LanguageID LanguageKind `json:"languageId"`
5522 // The version number of this document (it will increase after each
5561 // The version number of this document (it will increase after each
@@ -5605,8 +5644,10 @@ type TextEdit struct {
5605 // empty string.
5644 // empty string.
5606 NewText string `json:"newText"`
5645 NewText string `json:"newText"`
5608−type TokenFormat string
5648+ TokenFormat string
5609−type TraceValue string
5649+ TraceValue string
5611// created for Tuple
5652// created for Tuple
5612type Tuple_ParameterInformation_label_Item1 struct {
5653type Tuple_ParameterInformation_label_Item1 struct {
@@ -5670,7 +5711,7 @@ type TypeHierarchyItem struct {
5670 // More detail for this item, e.g. the signature of a function.
5711 // More detail for this item, e.g. the signature of a function.
5671 Detail string `json:"detail,omitempty"`
5712 Detail string `json:"detail,omitempty"`
5672 // The resource identifier of this item.
5713 // The resource identifier of this item.
5673− URI DocumentUri `json:"uri"`
5714+ URI DocumentURI `json:"uri"`
5674 // The range enclosing this symbol not including leading/trailing whitespace
5715 // The range enclosing this symbol not including leading/trailing whitespace
5675 // but everything else, e.g. comments and code.
5716 // but everything else, e.g. comments and code.
5676 Range Range `json:"range"`
5717 Range Range `json:"range"`
@@ -5795,14 +5836,16 @@ type VersionedTextDocumentIdentifier struct {
5795 Version int32 `json:"version"`
5836 Version int32 `json:"version"`
5796 TextDocumentIdentifier
5837 TextDocumentIdentifier
5798−type WatchKind = uint32 // The parameters sent in a will save text document notification.
5840+ WatchKind = uint32 // The parameters sent in a will save text document notification.
5799−// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#willSaveTextDocumentParams
5841+ // See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#willSaveTextDocumentParams
5800−type WillSaveTextDocumentParams struct {
5842+ WillSaveTextDocumentParams struct {
5801− // The document that will be saved.
5843+ // The document that will be saved.
5802− TextDocument TextDocumentIdentifier `json:"textDocument"`
5844+ TextDocument TextDocumentIdentifier `json:"textDocument"`
5803− // The 'TextDocumentSaveReason'.
5845+ // The 'TextDocumentSaveReason'.
5804− Reason TextDocumentSaveReason `json:"reason"`
5846+ Reason TextDocumentSaveReason `json:"reason"`
5807// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#windowClientCapabilities
5850// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#windowClientCapabilities
5808type WindowClientCapabilities struct {
5851type WindowClientCapabilities struct {
@@ -6012,43 +6055,45 @@ type WorkspaceDiagnosticReportPartialResult struct {
6012// @since 3.17.0
6055// @since 3.17.0
6014// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#workspaceDocumentDiagnosticReport
6057// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#workspaceDocumentDiagnosticReport
6015−type WorkspaceDocumentDiagnosticReport = Or_WorkspaceDocumentDiagnosticReport // (alias)
6059+ WorkspaceDocumentDiagnosticReport = Or_WorkspaceDocumentDiagnosticReport // (alias)
6016−// A workspace edit represents changes to many resources managed in the workspace. The edit
6060+ // A workspace edit represents changes to many resources managed in the workspace. The edit
6017−// should either provide `changes` or `documentChanges`. If documentChanges are present
6061+ // should either provide `changes` or `documentChanges`. If documentChanges are present
6018−// they are preferred over `changes` if the client can handle versioned document edits.
6062+ // they are preferred over `changes` if the client can handle versioned document edits.
6020−// Since version 3.13.0 a workspace edit can contain resource operations as well. If resource
6064+ // Since version 3.13.0 a workspace edit can contain resource operations as well. If resource
6021−// operations are present clients need to execute the operations in the order in which they
6065+ // operations are present clients need to execute the operations in the order in which they
6022−// are provided. So a workspace edit for example can consist of the following two changes:
6066+ // are provided. So a workspace edit for example can consist of the following two changes:
6023−// (1) a create file a.txt and (2) a text document edit which insert text into file a.txt.
6067+ // (1) a create file a.txt and (2) a text document edit which insert text into file a.txt.
6025−// An invalid sequence (e.g. (1) delete file a.txt and (2) insert text into file a.txt) will
6069+ // An invalid sequence (e.g. (1) delete file a.txt and (2) insert text into file a.txt) will
6026−// cause failure of the operation. How the client recovers from the failure is described by
6070+ // cause failure of the operation. How the client recovers from the failure is described by
6027−// the client capability: `workspace.workspaceEdit.failureHandling`
6071+ // the client capability: `workspace.workspaceEdit.failureHandling`
6029−// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#workspaceEdit
6073+ // See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#workspaceEdit
6030−type WorkspaceEdit struct {
6074+ WorkspaceEdit struct {
6031− // Holds changes to existing resources.
6075+ // Holds changes to existing resources.
6032− Changes map[DocumentUri][]TextEdit `json:"changes,omitempty"`
6076+ Changes map[DocumentURI][]TextEdit `json:"changes,omitempty"`
6033− // Depending on the client capability `workspace.workspaceEdit.resourceOperations` document changes
6077+ // Depending on the client capability `workspace.workspaceEdit.resourceOperations` document changes
6034− // are either an array of `TextDocumentEdit`s to express changes to n different text documents
6078+ // are either an array of `TextDocumentEdit`s to express changes to n different text documents
6035− // where each text document edit addresses a specific version of a text document. Or it can contain
6079+ // where each text document edit addresses a specific version of a text document. Or it can contain
6036− // above `TextDocumentEdit`s mixed with create, rename and delete file / folder operations.
6080+ // above `TextDocumentEdit`s mixed with create, rename and delete file / folder operations.
6038− // Whether a client supports versioned document edits is expressed via
6082+ // Whether a client supports versioned document edits is expressed via
6039− // `workspace.workspaceEdit.documentChanges` client capability.
6083+ // `workspace.workspaceEdit.documentChanges` client capability.
6041− // If a client neither supports `documentChanges` nor `workspace.workspaceEdit.resourceOperations` then
6085+ // If a client neither supports `documentChanges` nor `workspace.workspaceEdit.resourceOperations` then
6042− // only plain `TextEdit`s using the `changes` property are supported.
6086+ // only plain `TextEdit`s using the `changes` property are supported.
6043− DocumentChanges []DocumentChange `json:"documentChanges,omitempty"`
6087+ DocumentChanges []DocumentChange `json:"documentChanges,omitempty"`
6044− // A map of change annotations that can be referenced in `AnnotatedTextEdit`s or create, rename and
6088+ // A map of change annotations that can be referenced in `AnnotatedTextEdit`s or create, rename and
6045− // delete file / folder operations.
6089+ // delete file / folder operations.
6047− // Whether clients honor this property depends on the client capability `workspace.changeAnnotationSupport`.
6091+ // Whether clients honor this property depends on the client capability `workspace.changeAnnotationSupport`.
6049− // @since 3.16.0
6093+ // @since 3.16.0
6050− ChangeAnnotations map[ChangeAnnotationIdentifier]ChangeAnnotation `json:"changeAnnotations,omitempty"`
6094+ ChangeAnnotations map[ChangeAnnotationIdentifier]ChangeAnnotation `json:"changeAnnotations,omitempty"`
6053// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#workspaceEditClientCapabilities
6098// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#workspaceEditClientCapabilities
6054type WorkspaceEditClientCapabilities struct {
6099type WorkspaceEditClientCapabilities struct {
@@ -6154,7 +6199,7 @@ type WorkspaceFoldersServerCapabilities struct {
6154// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#workspaceFullDocumentDiagnosticReport
6199// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#workspaceFullDocumentDiagnosticReport
6155type WorkspaceFullDocumentDiagnosticReport struct {
6200type WorkspaceFullDocumentDiagnosticReport struct {
6156 // The URI for which diagnostic information is reported.
6201 // The URI for which diagnostic information is reported.
6157− URI DocumentUri `json:"uri"`
6202+ URI DocumentURI `json:"uri"`
6158 // The version number for which the diagnostics are reported.
6203 // The version number for which the diagnostics are reported.
6159 // If the document is not marked as open `null` can be provided.
6204 // If the document is not marked as open `null` can be provided.
6160 Version int32 `json:"version"`
6205 Version int32 `json:"version"`
@@ -6266,7 +6311,7 @@ type WorkspaceSymbolRegistrationOptions struct {
6266// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#workspaceUnchangedDocumentDiagnosticReport
6311// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#workspaceUnchangedDocumentDiagnosticReport
6267type WorkspaceUnchangedDocumentDiagnosticReport struct {
6312type WorkspaceUnchangedDocumentDiagnosticReport struct {
6268 // The URI for which diagnostic information is reported.
6313 // The URI for which diagnostic information is reported.
6269− URI DocumentUri `json:"uri"`
6314+ URI DocumentURI `json:"uri"`
6270 // The version number for which the diagnostics are reported.
6315 // The version number for which the diagnostics are reported.
6271 // If the document is not marked as open `null` can be provided.
6316 // If the document is not marked as open `null` can be provided.
6272 Version int32 `json:"version"`
6317 Version int32 `json:"version"`
@@ -6306,7 +6351,7 @@ type XInitializeParams struct {
6306 // `rootUri` wins.
6351 // `rootUri` wins.
6308 // @deprecated in favour of workspaceFolders.
6353 // @deprecated in favour of workspaceFolders.
6309− RootURI DocumentUri `json:"rootUri"`
6354+ RootURI DocumentURI `json:"rootUri"`
6310 // The capabilities provided by the client (editor or tool)
6355 // The capabilities provided by the client (editor or tool)
6311 Capabilities ClientCapabilities `json:"capabilities"`
6356 Capabilities ClientCapabilities `json:"capabilities"`
6312 // User provided initialization options.
6357 // User provided initialization options.
@@ -6349,7 +6394,7 @@ type _InitializeParams struct {
6349 // `rootUri` wins.
6394 // `rootUri` wins.
6351 // @deprecated in favour of workspaceFolders.
6396 // @deprecated in favour of workspaceFolders.
6352− RootURI DocumentUri `json:"rootUri"`
6397+ RootURI DocumentURI `json:"rootUri"`
6353 // The capabilities provided by the client (editor or tool)
6398 // The capabilities provided by the client (editor or tool)
6354 Capabilities ClientCapabilities `json:"capabilities"`
6399 Capabilities ClientCapabilities `json:"capabilities"`
6355 // User provided initialization options.
6400 // User provided initialization options.