@@ -133,7 +133,7 @@ type CallHierarchyItem struct {
133133 // More detail for this item, e.g. the signature of a function.
134134 Detail string `json:"detail,omitempty"`
135135 // The resource identifier of this item.
136− URI DocumentUri `json:"uri"`
136+ URI DocumentURI `json:"uri"`
137137 // The range enclosing this symbol not including leading/trailing whitespace but everything else, e.g. comments and code.
138138 Range Range `json:"range"`
139139 // 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 {
225225// An identifier to refer to a change annotation stored with a workspace edit.
226226//
227227// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#changeAnnotationIdentifier
228−type ChangeAnnotationIdentifier = string // (alias)
229−// @since 3.18.0
230−//
231−// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#changeAnnotationsSupportOptions
232−type ChangeAnnotationsSupportOptions struct {
233− // Whether the client groups edits with equal labels into tree nodes,
234− // for instance all edits labelled with "Changes in Strings" would
235− // be a tree node.
236− GroupsOnLabel bool `json:"groupsOnLabel,omitempty"`
237−}
228+type (
229+ ChangeAnnotationIdentifier = string // (alias)
230+ // @since 3.18.0
231+ //
232+ // See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#changeAnnotationsSupportOptions
233+ ChangeAnnotationsSupportOptions struct {
234+ // Whether the client groups edits with equal labels into tree nodes,
235+ // for instance all edits labelled with "Changes in Strings" would
236+ // be a tree node.
237+ GroupsOnLabel bool `json:"groupsOnLabel,omitempty"`
238+ }
239+)
238240
239241// Defines the capabilities provided by the client.
240242//
@@ -1249,7 +1251,7 @@ type CreateFile struct {
12491251 // A create
12501252 Kind string `json:"kind"`
12511253 // The resource to create.
1252− URI DocumentUri `json:"uri"`
1254+ URI DocumentURI `json:"uri"`
12531255 // Additional options
12541256 Options *CreateFileOptions `json:"options,omitempty"`
12551257 ResourceOperation
@@ -1279,18 +1281,20 @@ type CreateFilesParams struct {
12791281// The declaration of a symbol representation as one or many {@link Location locations}.
12801282//
12811283// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#declaration
1282−type Declaration = Or_Declaration // (alias)
1283−// @since 3.14.0
1284−//
1285−// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#declarationClientCapabilities
1286−type DeclarationClientCapabilities struct {
1287− // Whether declaration supports dynamic registration. If this is set to `true`
1288− // the client supports the new `DeclarationRegistrationOptions` return value
1289− // for the corresponding server capability as well.
1290− DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
1291− // The client supports additional metadata in the form of declaration links.
1292− LinkSupport bool `json:"linkSupport,omitempty"`
1293−}
1284+type (
1285+ Declaration = Or_Declaration // (alias)
1286+ // @since 3.14.0
1287+ //
1288+ // See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#declarationClientCapabilities
1289+ DeclarationClientCapabilities struct {
1290+ // Whether declaration supports dynamic registration. If this is set to `true`
1291+ // the client supports the new `DeclarationRegistrationOptions` return value
1292+ // for the corresponding server capability as well.
1293+ DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
1294+ // The client supports additional metadata in the form of declaration links.
1295+ LinkSupport bool `json:"linkSupport,omitempty"`
1296+ }
1297+)
12941298
12951299// Information about where a symbol is declared.
12961300//
@@ -1301,11 +1305,13 @@ type DeclarationClientCapabilities struct {
13011305// by the client.
13021306//
13031307// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#declarationLink
1304−type DeclarationLink = LocationLink // (alias)
1305−// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#declarationOptions
1306−type DeclarationOptions struct {
1307− WorkDoneProgressOptions
1308−}
1308+type (
1309+ DeclarationLink = LocationLink // (alias)
1310+ // See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#declarationOptions
1311+ DeclarationOptions struct {
1312+ WorkDoneProgressOptions
1313+ }
1314+)
13091315
13101316// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#declarationParams
13111317type DeclarationParams struct {
@@ -1329,18 +1335,20 @@ type DeclarationRegistrationOptions struct {
13291335// by the client.
13301336//
13311337// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#definition
1332−type Definition = Or_Definition // (alias)
1333−// Client Capabilities for a {@link DefinitionRequest}.
1334−//
1335−// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#definitionClientCapabilities
1336−type DefinitionClientCapabilities struct {
1337− // Whether definition supports dynamic registration.
1338− DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
1339− // The client supports additional metadata in the form of definition links.
1340− //
1341− // @since 3.14.0
1342− LinkSupport bool `json:"linkSupport,omitempty"`
1343−}
1338+type (
1339+ Definition = Or_Definition // (alias)
1340+ // Client Capabilities for a {@link DefinitionRequest}.
1341+ //
1342+ // See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#definitionClientCapabilities
1343+ DefinitionClientCapabilities struct {
1344+ // Whether definition supports dynamic registration.
1345+ DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
1346+ // The client supports additional metadata in the form of definition links.
1347+ //
1348+ // @since 3.14.0
1349+ LinkSupport bool `json:"linkSupport,omitempty"`
1350+ }
1351+)
13441352
13451353// Information about where a symbol is defined.
13461354//
@@ -1348,13 +1356,15 @@ type DefinitionClientCapabilities struct {
13481356// the defining symbol
13491357//
13501358// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#definitionLink
1351−type DefinitionLink = LocationLink // (alias)
1352−// Server Capabilities for a {@link DefinitionRequest}.
1353−//
1354−// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#definitionOptions
1355−type DefinitionOptions struct {
1356− WorkDoneProgressOptions
1357−}
1359+type (
1360+ DefinitionLink = LocationLink // (alias)
1361+ // Server Capabilities for a {@link DefinitionRequest}.
1362+ //
1363+ // See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#definitionOptions
1364+ DefinitionOptions struct {
1365+ WorkDoneProgressOptions
1366+ }
1367+)
13581368
13591369// Parameters for a {@link DefinitionRequest}.
13601370//
@@ -1380,7 +1390,7 @@ type DeleteFile struct {
13801390 // A delete
13811391 Kind string `json:"kind"`
13821392 // The file to delete.
1383− URI DocumentUri `json:"uri"`
1393+ URI DocumentURI `json:"uri"`
13841394 // Delete options.
13851395 Options *DeleteFileOptions `json:"options,omitempty"`
13861396 ResourceOperation
@@ -1783,11 +1793,13 @@ type DocumentDiagnosticParams struct {
17831793// @since 3.17.0
17841794//
17851795// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#documentDiagnosticReport
1786−type DocumentDiagnosticReport = Or_DocumentDiagnosticReport // (alias)
1787−// The document diagnostic report kinds.
1788−//
1789−// @since 3.17.0
1790−type DocumentDiagnosticReportKind string
1796+type (
1797+ DocumentDiagnosticReport = Or_DocumentDiagnosticReport // (alias)
1798+ // The document diagnostic report kinds.
1799+ //
1800+ // @since 3.17.0
1801+ DocumentDiagnosticReportKind string
1802+)
17911803
17921804// A partial result for a document diagnostic report.
17931805//
@@ -1795,7 +1807,7 @@ type DocumentDiagnosticReportKind string
17951807//
17961808// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#documentDiagnosticReportPartialResult
17971809type DocumentDiagnosticReportPartialResult struct {
1798− RelatedDocuments map[DocumentUri]interface{} `json:"relatedDocuments"`
1810+ RelatedDocuments map[DocumentURI]interface{} `json:"relatedDocuments"`
17991811}
18001812
18011813// A document filter describes a top level text document or
@@ -1804,14 +1816,16 @@ type DocumentDiagnosticReportPartialResult struct {
18041816// @since 3.17.0 - proposed support for NotebookCellTextDocumentFilter.
18051817//
18061818// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#documentFilter
1807−type DocumentFilter = Or_DocumentFilter // (alias)
1808−// Client capabilities of a {@link DocumentFormattingRequest}.
1809−//
1810−// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#documentFormattingClientCapabilities
1811−type DocumentFormattingClientCapabilities struct {
1812− // Whether formatting supports dynamic registration.
1813− DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
1814−}
1819+type (
1820+ DocumentFilter = Or_DocumentFilter // (alias)
1821+ // Client capabilities of a {@link DocumentFormattingRequest}.
1822+ //
1823+ // See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#documentFormattingClientCapabilities
1824+ DocumentFormattingClientCapabilities struct {
1825+ // Whether formatting supports dynamic registration.
1826+ DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
1827+ }
1828+)
18151829
18161830// Provider options for a {@link DocumentFormattingRequest}.
18171831//
@@ -2061,39 +2075,41 @@ type DocumentRangesFormattingParams struct {
20612075// The use of a string as a document filter is deprecated @since 3.16.0.
20622076//
20632077// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#documentSelector
2064−type DocumentSelector = []DocumentFilter // (alias)
2065−// Represents programming constructs like variables, classes, interfaces etc.
2066−// 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
2068−// its most interesting range, e.g. the range of an identifier.
2069−//
2070−// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#documentSymbol
2071−type DocumentSymbol struct {
2072− // 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.
2074− Name string `json:"name"`
2075− // More detail for this symbol, e.g the signature of a function.
2076− Detail string `json:"detail,omitempty"`
2077− // The kind of this symbol.
2078− Kind SymbolKind `json:"kind"`
2079− // Tags for this document symbol.
2080− //
2081− // @since 3.16.0
2082− Tags []SymbolTag `json:"tags,omitempty"`
2083− // Indicates if this symbol is deprecated.
2084− //
2085− // @deprecated Use tags instead
2086− Deprecated bool `json:"deprecated,omitempty"`
2087− // 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
2089− // inside the symbol to reveal in the symbol in the UI.
2090− 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.
2092− // Must be contained by the `range`.
2093− SelectionRange Range `json:"selectionRange"`
2094− // Children of this symbol, e.g. properties of a class.
2095− Children []DocumentSymbol `json:"children,omitempty"`
2096−}
2078+type (
2079+ DocumentSelector = []DocumentFilter // (alias)
2080+ // Represents programming constructs like variables, classes, interfaces etc.
2081+ // that appear in a document. Document symbols can be hierarchical and they
2082+ // have two ranges: one that encloses its definition and one that points to
2083+ // its most interesting range, e.g. the range of an identifier.
2084+ //
2085+ // See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#documentSymbol
2086+ DocumentSymbol struct {
2087+ // The name of this symbol. Will be displayed in the user interface and therefore must not be
2088+ // an empty string or a string only consisting of white spaces.
2089+ Name string `json:"name"`
2090+ // More detail for this symbol, e.g the signature of a function.
2091+ Detail string `json:"detail,omitempty"`
2092+ // The kind of this symbol.
2093+ Kind SymbolKind `json:"kind"`
2094+ // Tags for this document symbol.
2095+ //
2096+ // @since 3.16.0
2097+ Tags []SymbolTag `json:"tags,omitempty"`
2098+ // Indicates if this symbol is deprecated.
2099+ //
2100+ // @deprecated Use tags instead
2101+ Deprecated bool `json:"deprecated,omitempty"`
2102+ // The range enclosing this symbol not including leading/trailing whitespace but everything else
2103+ // like comments. This information is typically used to determine if the clients cursor is
2104+ // inside the symbol to reveal in the symbol in the UI.
2105+ Range Range `json:"range"`
2106+ // The range that should be selected and revealed when this symbol is being picked, e.g the name of a function.
2107+ // Must be contained by the `range`.
2108+ SelectionRange Range `json:"selectionRange"`
2109+ // Children of this symbol, e.g. properties of a class.
2110+ Children []DocumentSymbol `json:"children,omitempty"`
2111+ }
2112+)
20972113
20982114// Client Capabilities for a {@link DocumentSymbolRequest}.
20992115//
@@ -2237,7 +2253,7 @@ type FileDelete struct {
22372253// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#fileEvent
22382254type FileEvent struct {
22392255 // The file's uri.
2240− URI DocumentUri `json:"uri"`
2256+ URI DocumentURI `json:"uri"`
22412257 // The change type.
22422258 Type FileChangeType `json:"type"`
22432259}
@@ -2556,17 +2572,19 @@ type GeneralClientCapabilities struct {
25562572// @since 3.17.0
25572573//
25582574// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#globPattern
2559−type GlobPattern = Or_GlobPattern // (alias)
2560−// The result of a hover request.
2561−//
2562−// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#hover
2563−type Hover struct {
2564− // The hover's content
2565− Contents MarkupContent `json:"contents"`
2566− // An optional range inside the text document that is used to
2567− // visualize the hover, e.g. by changing the background color.
2568− Range Range `json:"range,omitempty"`
2569−}
2575+type (
2576+ GlobPattern = Or_GlobPattern // (alias)
2577+ // The result of a hover request.
2578+ //
2579+ // See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#hover
2580+ Hover struct {
2581+ // The hover's content
2582+ Contents MarkupContent `json:"contents"`
2583+ // An optional range inside the text document that is used to
2584+ // visualize the hover, e.g. by changing the background color.
2585+ Range Range `json:"range,omitempty"`
2586+ }
2587+)
25702588
25712589// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#hoverClientCapabilities
25722590type HoverClientCapabilities struct {
@@ -2664,8 +2682,7 @@ type InitializeResult struct {
26642682}
26652683
26662684// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#initializedParams
2667−type InitializedParams struct {
2668−}
2685+type InitializedParams struct{}
26692686
26702687// Inlay hint information.
26712688//
@@ -2918,16 +2935,18 @@ type InlineCompletionTriggerKind uint32
29182935// @since 3.17.0
29192936//
29202937// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#inlineValue
2921−type InlineValue = Or_InlineValue // (alias)
2922−// Client capabilities specific to inline values.
2923−//
2924−// @since 3.17.0
2925−//
2926−// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#inlineValueClientCapabilities
2927−type InlineValueClientCapabilities struct {
2928− // Whether implementation supports dynamic registration for inline value providers.
2929− DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
2930−}
2938+type (
2939+ InlineValue = Or_InlineValue // (alias)
2940+ // Client capabilities specific to inline values.
2941+ //
2942+ // @since 3.17.0
2943+ //
2944+ // See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#inlineValueClientCapabilities
2945+ InlineValueClientCapabilities struct {
2946+ // Whether implementation supports dynamic registration for inline value providers.
2947+ DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
2948+ }
2949+)
29312950
29322951// @since 3.17.0
29332952//
@@ -3058,25 +3077,31 @@ type InsertTextFormat uint32
30583077// item insertion.
30593078//
30603079// @since 3.16.0
3061−type InsertTextMode uint32
3062−type LSPAny = interface{}
3080+type (
3081+ InsertTextMode uint32
3082+ LSPAny = interface{}
3083+)
30633084
30643085// LSP arrays.
30653086// @since 3.17.0
30663087//
30673088// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#lSPArray
3068−type LSPArray = []interface{} // (alias)
3069−type LSPErrorCodes int32
3089+type (
3090+ LSPArray = []interface{} // (alias)
3091+ LSPErrorCodes int32
3092+)
30703093
30713094// LSP object definition.
30723095// @since 3.17.0
30733096//
30743097// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#lSPObject
3075−type LSPObject = map[string]LSPAny // (alias)
3076−// Predefined Language kinds
3077−// @since 3.18.0
3078−// @proposed
3079−type LanguageKind string
3098+type (
3099+ LSPObject = map[string]LSPAny // (alias)
3100+ // Predefined Language kinds
3101+ // @since 3.18.0
3102+ // @proposed
3103+ LanguageKind string
3104+)
30803105
30813106// Client capabilities for the linked editing range request.
30823107//
@@ -3124,19 +3149,17 @@ type LinkedEditingRanges struct {
31243149}
31253150
31263151// created for Literal (Lit_ClientSemanticTokensRequestOptions_range_Item1)
3127−type Lit_ClientSemanticTokensRequestOptions_range_Item1 struct {
3128−}
3152+type Lit_ClientSemanticTokensRequestOptions_range_Item1 struct{}
31293153
31303154// created for Literal (Lit_SemanticTokensOptions_range_Item1)
3131−type Lit_SemanticTokensOptions_range_Item1 struct {
3132−}
3155+type Lit_SemanticTokensOptions_range_Item1 struct{}
31333156
31343157// Represents a location inside a resource, such as a line
31353158// inside a text file.
31363159//
31373160// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#location
31383161type Location struct {
3139− URI DocumentUri `json:"uri"`
3162+ URI DocumentURI `json:"uri"`
31403163 Range Range `json:"range"`
31413164}
31423165
@@ -3151,7 +3174,7 @@ type LocationLink struct {
31513174 // the definition position.
31523175 OriginSelectionRange *Range `json:"originSelectionRange,omitempty"`
31533176 // The target resource identifier of this link.
3154− TargetURI DocumentUri `json:"targetUri"`
3177+ TargetURI DocumentURI `json:"targetUri"`
31553178 // The full target range of this link. If the target for example is a symbol then target range is the
31563179 // range enclosing this symbol not including leading/trailing whitespace but everything else
31573180 // like comments. This information is typically used to highlight the range in the editor.
@@ -3167,7 +3190,7 @@ type LocationLink struct {
31673190//
31683191// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#locationUriOnly
31693192type LocationUriOnly struct {
3170− URI DocumentUri `json:"uri"`
3193+ URI DocumentURI `json:"uri"`
31713194}
31723195
31733196// The log message parameters.
@@ -3217,15 +3240,17 @@ type MarkdownClientCapabilities struct {
32173240// @deprecated use MarkupContent instead.
32183241//
32193242// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#markedString
3220−type MarkedString = Or_MarkedString // (alias)
3221−// @since 3.18.0
3222−// @deprecated use MarkupContent instead.
3223−//
3224−// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#markedStringWithLanguage
3225−type MarkedStringWithLanguage struct {
3226− Language string `json:"language"`
3227− Value string `json:"value"`
3228−}
3243+type (
3244+ MarkedString = Or_MarkedString // (alias)
3245+ // @since 3.18.0
3246+ // @deprecated use MarkupContent instead.
3247+ //
3248+ // See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#markedStringWithLanguage
3249+ MarkedStringWithLanguage struct {
3250+ Language string `json:"language"`
3251+ Value string `json:"value"`
3252+ }
3253+)
32293254
32303255// A `MarkupContent` literal represents a string value which content is interpreted base on its
32313256// kind flag. Currently the protocol supports `plaintext` and `markdown` as markup kinds.
@@ -3342,7 +3367,7 @@ type NotebookCell struct {
33423367 Kind NotebookCellKind `json:"kind"`
33433368 // The URI of the cell's text document
33443369 // content.
3345− Document DocumentUri `json:"document"`
3370+ Document DocumentURI `json:"document"`
33463371 // Additional metadata stored with the cell.
33473372 //
33483373 // Note: should always be an object literal (e.g. LSPObject)
@@ -3493,20 +3518,22 @@ type NotebookDocumentClientCapabilities struct {
34933518// @since 3.17.0
34943519//
34953520// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#notebookDocumentFilter
3496−type NotebookDocumentFilter = Or_NotebookDocumentFilter // (alias)
3497−// A notebook document filter where `notebookType` is required field.
3498−//
3499−// @since 3.18.0
3500−//
3501−// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#notebookDocumentFilterNotebookType
3502−type NotebookDocumentFilterNotebookType struct {
3503− // The type of the enclosing notebook.
3504− NotebookType string `json:"notebookType"`
3505− // A Uri {@link Uri.scheme scheme}, like `file` or `untitled`.
3506− Scheme string `json:"scheme,omitempty"`
3507− // A glob pattern.
3508− Pattern *GlobPattern `json:"pattern,omitempty"`
3509−}
3521+type (
3522+ NotebookDocumentFilter = Or_NotebookDocumentFilter // (alias)
3523+ // A notebook document filter where `notebookType` is required field.
3524+ //
3525+ // @since 3.18.0
3526+ //
3527+ // See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#notebookDocumentFilterNotebookType
3528+ NotebookDocumentFilterNotebookType struct {
3529+ // The type of the enclosing notebook.
3530+ NotebookType string `json:"notebookType"`
3531+ // A Uri {@link Uri.scheme scheme}, like `file` or `untitled`.
3532+ Scheme string `json:"scheme,omitempty"`
3533+ // A glob pattern.
3534+ Pattern *GlobPattern `json:"pattern,omitempty"`
3535+ }
3536+)
35103537
35113538// A notebook document filter where `pattern` is required field.
35123539//
@@ -4101,51 +4128,53 @@ type PartialResultParams struct {
41014128// @since 3.17.0
41024129//
41034130// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#pattern
4104−type Pattern = string // (alias)
4105−// 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
4107−// 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
4109−// 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
4111−// 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).
4113−// 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
4115−// 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
4117−// encodings offered by the client and signals that encoding back to the
4118−// 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
4120−// `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
4122−// omits the position encoding in its initialize result the encoding defaults
4123−// to the string value `utf-16`. Implementation considerations: since the
4124−// 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
4126−// usually on the server side.
4127−//
4128−// 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.
4130−//
4131−// @since 3.17.0 - support for negotiated position encoding.
4132−//
4133−// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#position
4134−type Position struct {
4135− // Line position in a document (zero-based).
4136− //
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.
4138− // If a line number is negative, it defaults to 0.
4139− Line uint32 `json:"line"`
4140− // Character offset on a line in a document (zero-based).
4141− //
4142− // The meaning of this offset is determined by the negotiated
4143− // `PositionEncodingKind`.
4144− //
4145− // If the character value is greater than the line length it defaults back to the
4146− // line length.
4147− Character uint32 `json:"character"`
4148−}
4131+type (
4132+ Pattern = string // (alias)
4133+ // Position in a text document expressed as zero-based line and character
4134+ // offset. Prior to 3.17 the offsets were always based on a UTF-16 string
4135+ // representation. So a string of the form `a𐐀b` the character offset of the
4136+ // character `a` is 0, the character offset of `𐐀` is 1 and the character
4137+ // offset of b is 3 since `𐐀` is represented using two code units in UTF-16.
4138+ // Since 3.17 clients and servers can agree on a different string encoding
4139+ // representation (e.g. UTF-8). The client announces it's supported encoding
4140+ // via the client capability [`general.positionEncodings`](https://microsoft.github.io/language-server-protocol/specifications/specification-current/#clientCapabilities).
4141+ // The value is an array of position encodings the client supports, with
4142+ // decreasing preference (e.g. the encoding at index `0` is the most preferred
4143+ // one). To stay backwards compatible the only mandatory encoding is UTF-16
4144+ // represented via the string `utf-16`. The server can pick one of the
4145+ // encodings offered by the client and signals that encoding back to the
4146+ // client via the initialize result's property
4147+ // [`capabilities.positionEncoding`](https://microsoft.github.io/language-server-protocol/specifications/specification-current/#serverCapabilities). If the string value
4148+ // `utf-16` is missing from the client's capability `general.positionEncodings`
4149+ // servers can safely assume that the client supports UTF-16. If the server
4150+ // omits the position encoding in its initialize result the encoding defaults
4151+ // to the string value `utf-16`. Implementation considerations: since the
4152+ // conversion from one encoding into another requires the content of the
4153+ // file / line the conversion is best done where the file is read which is
4154+ // usually on the server side.
4155+ //
4156+ // Positions are line end character agnostic. So you can not specify a position
4157+ // that denotes `\r|\n` or `\n|` where `|` represents the character offset.
4158+ //
4159+ // @since 3.17.0 - support for negotiated position encoding.
4160+ //
4161+ // See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#position
4162+ Position struct {
4163+ // Line position in a document (zero-based).
4164+ //
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.
4166+ // If a line number is negative, it defaults to 0.
4167+ Line uint32 `json:"line"`
4168+ // Character offset on a line in a document (zero-based).
4169+ //
4170+ // The meaning of this offset is determined by the negotiated
4171+ // `PositionEncodingKind`.
4172+ //
4173+ // If the character value is greater than the line length it defaults back to the
4174+ // line length.
4175+ Character uint32 `json:"character"`
4176+ }
4177+)
41494178
41504179// A set of predefined position encoding kinds.
41514180//
@@ -4174,8 +4203,10 @@ type PrepareRenamePlaceholder struct {
41744203}
41754204
41764205// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#prepareRenameResult
4177−type PrepareRenameResult = Or_PrepareRenameResult // (alias)
4178−type PrepareSupportDefaultBehavior uint32
4206+type (
4207+ PrepareRenameResult = Or_PrepareRenameResult // (alias)
4208+ PrepareSupportDefaultBehavior uint32
4209+)
41794210
41804211// A previous result id in a workspace pull request.
41814212//
@@ -4185,7 +4216,7 @@ type PrepareSupportDefaultBehavior uint32
41854216type PreviousResultID struct {
41864217 // The URI for which the client knowns a
41874218 // result id.
4188− URI DocumentUri `json:"uri"`
4219+ URI DocumentURI `json:"uri"`
41894220 // The value of the previous result id.
41904221 Value string `json:"value"`
41914222}
@@ -4198,7 +4229,7 @@ type PreviousResultID struct {
41984229type PreviousResultId struct {
41994230 // The URI for which the client knowns a
42004231 // result id.
4201− URI DocumentUri `json:"uri"`
4232+ URI DocumentURI `json:"uri"`
42024233 // The value of the previous result id.
42034234 Value string `json:"value"`
42044235}
@@ -4212,25 +4243,27 @@ type ProgressParams struct {
42124243}
42134244
42144245// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#progressToken
4215−type ProgressToken = Or_ProgressToken // (alias)
4216−// The publish diagnostic client capabilities.
4217−//
4218−// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#publishDiagnosticsClientCapabilities
4219−type PublishDiagnosticsClientCapabilities struct {
4220− // Whether the client interprets the version property of the
4221− // `textDocument/publishDiagnostics` notification's parameter.
4222− //
4223− // @since 3.15.0
4224− VersionSupport bool `json:"versionSupport,omitempty"`
4225− DiagnosticsCapabilities
4226−}
4246+type (
4247+ ProgressToken = Or_ProgressToken // (alias)
4248+ // The publish diagnostic client capabilities.
4249+ //
4250+ // See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#publishDiagnosticsClientCapabilities
4251+ PublishDiagnosticsClientCapabilities struct {
4252+ // Whether the client interprets the version property of the
4253+ // `textDocument/publishDiagnostics` notification's parameter.
4254+ //
4255+ // @since 3.15.0
4256+ VersionSupport bool `json:"versionSupport,omitempty"`
4257+ DiagnosticsCapabilities
4258+ }
4259+)
42274260
42284261// The publish diagnostic notification's parameters.
42294262//
42304263// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#publishDiagnosticsParams
42314264type PublishDiagnosticsParams struct {
42324265 // The URI for which diagnostic information is reported.
4233− URI DocumentUri `json:"uri"`
4266+ URI DocumentURI `json:"uri"`
42344267 // Optional the version number of the document the diagnostics are published for.
42354268 //
42364269 // @since 3.15.0
@@ -4322,18 +4355,20 @@ type RegistrationParams struct {
43224355}
43234356
43244357// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#regularExpressionEngineKind
4325−type RegularExpressionEngineKind = string // (alias)
4326−// Client capabilities specific to regular expressions.
4327−//
4328−// @since 3.16.0
4329−//
4330−// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#regularExpressionsClientCapabilities
4331−type RegularExpressionsClientCapabilities struct {
4332− // The engine's name.
4333− Engine RegularExpressionEngineKind `json:"engine"`
4334− // The engine's version.
4335− Version string `json:"version,omitempty"`
4336−}
4358+type (
4359+ RegularExpressionEngineKind = string // (alias)
4360+ // Client capabilities specific to regular expressions.
4361+ //
4362+ // @since 3.16.0
4363+ //
4364+ // See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#regularExpressionsClientCapabilities
4365+ RegularExpressionsClientCapabilities struct {
4366+ // The engine's name.
4367+ Engine RegularExpressionEngineKind `json:"engine"`
4368+ // The engine's version.
4369+ Version string `json:"version,omitempty"`
4370+ }
4371+)
43374372
43384373// A full diagnostic report with a set of related documents.
43394374//
@@ -4348,7 +4383,7 @@ type RelatedFullDocumentDiagnosticReport struct {
43484383 // a.cpp and result in errors in a header file b.hpp.
43494384 //
43504385 // @since 3.17.0
4351− RelatedDocuments map[DocumentUri]interface{} `json:"relatedDocuments,omitempty"`
4386+ RelatedDocuments map[DocumentURI]interface{} `json:"relatedDocuments,omitempty"`
43524387 FullDocumentDiagnosticReport
43534388}
43544389
@@ -4365,7 +4400,7 @@ type RelatedUnchangedDocumentDiagnosticReport struct {
43654400 // a.cpp and result in errors in a header file b.hpp.
43664401 //
43674402 // @since 3.17.0
4368− RelatedDocuments map[DocumentUri]interface{} `json:"relatedDocuments,omitempty"`
4403+ RelatedDocuments map[DocumentURI]interface{} `json:"relatedDocuments,omitempty"`
43694404 UnchangedDocumentDiagnosticReport
43704405}
43714406
@@ -4417,9 +4452,9 @@ type RenameFile struct {
44174452 // A rename
44184453 Kind string `json:"kind"`
44194454 // The old (existing) location.
4420− OldURI DocumentUri `json:"oldUri"`
4455+ OldURI DocumentURI `json:"oldUri"`
44214456 // The new location.
4422− NewURI DocumentUri `json:"newUri"`
4457+ NewURI DocumentURI `json:"newUri"`
44234458 // Rename options.
44244459 Options *RenameFileOptions `json:"options,omitempty"`
44254460 ResourceOperation
@@ -5337,20 +5372,22 @@ type TextDocumentClientCapabilities struct {
53375372// it is considered to be the full content of the document.
53385373//
53395374// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#textDocumentContentChangeEvent
5340−type TextDocumentContentChangeEvent = Or_TextDocumentContentChangeEvent // (alias)
5341−// @since 3.18.0
5342−//
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.
5375+type (
5376+ TextDocumentContentChangeEvent = Or_TextDocumentContentChangeEvent // (alias)
5377+ // @since 3.18.0
53485378 //
5349− // @deprecated use range instead.
5350− RangeLength uint32 `json:"rangeLength,omitempty"`
5351− // The new text for the provided range.
5352− Text string `json:"text"`
5353−}
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.
5384+ //
5385+ // @deprecated use range instead.
5386+ RangeLength uint32 `json:"rangeLength,omitempty"`
5387+ // The new text for the provided range.
5388+ Text string `json:"text"`
5389+ }
5390+)
53545391
53555392// @since 3.18.0
53565393//
@@ -5390,7 +5427,7 @@ type TextDocumentContentOptions struct {
53905427// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#textDocumentContentParams
53915428type TextDocumentContentParams struct {
53925429 // The uri of the text document.
5393− URI DocumentUri `json:"uri"`
5430+ URI DocumentURI `json:"uri"`
53945431}
53955432
53965433// Parameters for the `workspace/textDocumentContent/refresh` request.
@@ -5401,7 +5438,7 @@ type TextDocumentContentParams struct {
54015438// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#textDocumentContentRefreshParams
54025439type TextDocumentContentRefreshParams struct {
54035440 // The uri of the text document to refresh.
5404− URI DocumentUri `json:"uri"`
5441+ URI DocumentURI `json:"uri"`
54055442}
54065443
54075444// Text document content provider registration options.
@@ -5453,22 +5490,24 @@ type TextDocumentEdit struct {
54535490// @since 3.17.0
54545491//
54555492// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#textDocumentFilter
5456−type TextDocumentFilter = Or_TextDocumentFilter // (alias)
5457−// A document filter where `language` is required field.
5458−//
5459−// @since 3.18.0
5460−//
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.
5493+type (
5494+ TextDocumentFilter = Or_TextDocumentFilter // (alias)
5495+ // A document filter where `language` is required field.
54685496 //
5469− // @since 3.18.0 - support for relative patterns.
5470− Pattern *GlobPattern `json:"pattern,omitempty"`
5471−}
5497+ // @since 3.18.0
5498+ //
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.
5506+ //
5507+ // @since 3.18.0 - support for relative patterns.
5508+ Pattern *GlobPattern `json:"pattern,omitempty"`
5509+ }
5510+)
54725511
54735512// A document filter where `pattern` is required field.
54745513//
@@ -5507,7 +5546,7 @@ type TextDocumentFilterScheme struct {
55075546// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#textDocumentIdentifier
55085547type TextDocumentIdentifier struct {
55095548 // The text document's uri.
5510− URI DocumentUri `json:"uri"`
5549+ URI DocumentURI `json:"uri"`
55115550}
55125551
55135552// An item to transfer a text document from the client to the
@@ -5516,7 +5555,7 @@ type TextDocumentIdentifier struct {
55165555// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#textDocumentItem
55175556type TextDocumentItem struct {
55185557 // The text document's uri.
5519− URI DocumentUri `json:"uri"`
5558+ URI DocumentURI `json:"uri"`
55205559 // The text document's language identifier.
55215560 LanguageID LanguageKind `json:"languageId"`
55225561 // The version number of this document (it will increase after each
@@ -5605,8 +5644,10 @@ type TextEdit struct {
56055644 // empty string.
56065645 NewText string `json:"newText"`
56075646}
5608−type TokenFormat string
5609−type TraceValue string
5647+type (
5648+ TokenFormat string
5649+ TraceValue string
5650+)
56105651
56115652// created for Tuple
56125653type Tuple_ParameterInformation_label_Item1 struct {
@@ -5670,7 +5711,7 @@ type TypeHierarchyItem struct {
56705711 // More detail for this item, e.g. the signature of a function.
56715712 Detail string `json:"detail,omitempty"`
56725713 // The resource identifier of this item.
5673− URI DocumentUri `json:"uri"`
5714+ URI DocumentURI `json:"uri"`
56745715 // The range enclosing this symbol not including leading/trailing whitespace
56755716 // but everything else, e.g. comments and code.
56765717 Range Range `json:"range"`
@@ -5795,14 +5836,16 @@ type VersionedTextDocumentIdentifier struct {
57955836 Version int32 `json:"version"`
57965837 TextDocumentIdentifier
57975838}
5798−type 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
5800−type WillSaveTextDocumentParams struct {
5801− // The document that will be saved.
5802− TextDocument TextDocumentIdentifier `json:"textDocument"`
5803− // The 'TextDocumentSaveReason'.
5804− Reason TextDocumentSaveReason `json:"reason"`
5805−}
5839+type (
5840+ WatchKind = uint32 // The parameters sent in a will save text document notification.
5841+ // See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#willSaveTextDocumentParams
5842+ WillSaveTextDocumentParams struct {
5843+ // The document that will be saved.
5844+ TextDocument TextDocumentIdentifier `json:"textDocument"`
5845+ // The 'TextDocumentSaveReason'.
5846+ Reason TextDocumentSaveReason `json:"reason"`
5847+ }
5848+)
58065849
58075850// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#windowClientCapabilities
58085851type WindowClientCapabilities struct {
@@ -6012,43 +6055,45 @@ type WorkspaceDiagnosticReportPartialResult struct {
60126055// @since 3.17.0
60136056//
60146057// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#workspaceDocumentDiagnosticReport
6015−type WorkspaceDocumentDiagnosticReport = Or_WorkspaceDocumentDiagnosticReport // (alias)
6016−// 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
6018−// they are preferred over `changes` if the client can handle versioned document edits.
6019−//
6020−// 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
6022−// 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.
6024−//
6025−// 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
6027−// the client capability: `workspace.workspaceEdit.failureHandling`
6028−//
6029−// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#workspaceEdit
6030−type WorkspaceEdit struct {
6031− // Holds changes to existing resources.
6032− Changes map[DocumentUri][]TextEdit `json:"changes,omitempty"`
6033− // 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
6035− // 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.
6037− //
6038− // Whether a client supports versioned document edits is expressed via
6039− // `workspace.workspaceEdit.documentChanges` client capability.
6040− //
6041− // If a client neither supports `documentChanges` nor `workspace.workspaceEdit.resourceOperations` then
6042− // only plain `TextEdit`s using the `changes` property are supported.
6043− DocumentChanges []DocumentChange `json:"documentChanges,omitempty"`
6044− // A map of change annotations that can be referenced in `AnnotatedTextEdit`s or create, rename and
6045− // delete file / folder operations.
6046− //
6047− // Whether clients honor this property depends on the client capability `workspace.changeAnnotationSupport`.
6048− //
6049− // @since 3.16.0
6050− ChangeAnnotations map[ChangeAnnotationIdentifier]ChangeAnnotation `json:"changeAnnotations,omitempty"`
6051−}
6058+type (
6059+ WorkspaceDocumentDiagnosticReport = Or_WorkspaceDocumentDiagnosticReport // (alias)
6060+ // A workspace edit represents changes to many resources managed in the workspace. The edit
6061+ // should either provide `changes` or `documentChanges`. If documentChanges are present
6062+ // they are preferred over `changes` if the client can handle versioned document edits.
6063+ //
6064+ // Since version 3.13.0 a workspace edit can contain resource operations as well. If resource
6065+ // operations are present clients need to execute the operations in the order in which they
6066+ // are provided. So a workspace edit for example can consist of the following two changes:
6067+ // (1) a create file a.txt and (2) a text document edit which insert text into file a.txt.
6068+ //
6069+ // An invalid sequence (e.g. (1) delete file a.txt and (2) insert text into file a.txt) will
6070+ // cause failure of the operation. How the client recovers from the failure is described by
6071+ // the client capability: `workspace.workspaceEdit.failureHandling`
6072+ //
6073+ // See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#workspaceEdit
6074+ WorkspaceEdit struct {
6075+ // Holds changes to existing resources.
6076+ Changes map[DocumentURI][]TextEdit `json:"changes,omitempty"`
6077+ // Depending on the client capability `workspace.workspaceEdit.resourceOperations` document changes
6078+ // are either an array of `TextDocumentEdit`s to express changes to n different text documents
6079+ // where each text document edit addresses a specific version of a text document. Or it can contain
6080+ // above `TextDocumentEdit`s mixed with create, rename and delete file / folder operations.
6081+ //
6082+ // Whether a client supports versioned document edits is expressed via
6083+ // `workspace.workspaceEdit.documentChanges` client capability.
6084+ //
6085+ // If a client neither supports `documentChanges` nor `workspace.workspaceEdit.resourceOperations` then
6086+ // only plain `TextEdit`s using the `changes` property are supported.
6087+ DocumentChanges []DocumentChange `json:"documentChanges,omitempty"`
6088+ // A map of change annotations that can be referenced in `AnnotatedTextEdit`s or create, rename and
6089+ // delete file / folder operations.
6090+ //
6091+ // Whether clients honor this property depends on the client capability `workspace.changeAnnotationSupport`.
6092+ //
6093+ // @since 3.16.0
6094+ ChangeAnnotations map[ChangeAnnotationIdentifier]ChangeAnnotation `json:"changeAnnotations,omitempty"`
6095+ }
6096+)
60526097
60536098// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#workspaceEditClientCapabilities
60546099type WorkspaceEditClientCapabilities struct {
@@ -6154,7 +6199,7 @@ type WorkspaceFoldersServerCapabilities struct {
61546199// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#workspaceFullDocumentDiagnosticReport
61556200type WorkspaceFullDocumentDiagnosticReport struct {
61566201 // The URI for which diagnostic information is reported.
6157− URI DocumentUri `json:"uri"`
6202+ URI DocumentURI `json:"uri"`
61586203 // The version number for which the diagnostics are reported.
61596204 // If the document is not marked as open `null` can be provided.
61606205 Version int32 `json:"version"`
@@ -6266,7 +6311,7 @@ type WorkspaceSymbolRegistrationOptions struct {
62666311// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification#workspaceUnchangedDocumentDiagnosticReport
62676312type WorkspaceUnchangedDocumentDiagnosticReport struct {
62686313 // The URI for which diagnostic information is reported.
6269− URI DocumentUri `json:"uri"`
6314+ URI DocumentURI `json:"uri"`
62706315 // The version number for which the diagnostics are reported.
62716316 // If the document is not marked as open `null` can be provided.
62726317 Version int32 `json:"version"`
@@ -6306,7 +6351,7 @@ type XInitializeParams struct {
63066351 // `rootUri` wins.
63076352 //
63086353 // @deprecated in favour of workspaceFolders.
6309− RootURI DocumentUri `json:"rootUri"`
6354+ RootURI DocumentURI `json:"rootUri"`
63106355 // The capabilities provided by the client (editor or tool)
63116356 Capabilities ClientCapabilities `json:"capabilities"`
63126357 // User provided initialization options.
@@ -6349,7 +6394,7 @@ type _InitializeParams struct {
63496394 // `rootUri` wins.
63506395 //
63516396 // @deprecated in favour of workspaceFolders.
6352− RootURI DocumentUri `json:"rootUri"`
6397+ RootURI DocumentURI `json:"rootUri"`
63536398 // The capabilities provided by the client (editor or tool)
63546399 Capabilities ClientCapabilities `json:"capabilities"`
63556400 // User provided initialization options.