vscode-languageserver-protocol 3.17.0-next.16 → 3.17.0-next.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
1
  import { ProgressToken } from 'vscode-jsonrpc';
2
2
  import { ProtocolRequestType, ProtocolRequestType0, ProtocolNotificationType, ProtocolNotificationType0 } from './messages';
3
- import { Position, Range, Location, LocationLink, Diagnostic, Command, TextEdit, WorkspaceEdit, DocumentUri, TextDocumentIdentifier, VersionedTextDocumentIdentifier, TextDocumentItem, CompletionItem, CompletionList, Hover, SignatureHelp, Definition, ReferenceContext, DocumentHighlight, SymbolInformation, CodeLens, CodeActionContext, FormattingOptions, DocumentLink, MarkupKind, SymbolKind, CompletionItemKind, CodeAction, CodeActionKind, DocumentSymbol, CompletionItemTag, DiagnosticTag, SymbolTag, uinteger, integer, InsertTextMode, LSPAny, WorkspaceSymbol } from 'vscode-languageserver-types';
3
+ import { Position, Range, Location, LocationLink, Diagnostic, Command, TextEdit, WorkspaceEdit, DocumentUri, TextDocumentIdentifier, VersionedTextDocumentIdentifier, TextDocumentItem, CompletionItem, CompletionList, Hover, SignatureHelp, Definition, ReferenceContext, DocumentHighlight, SymbolInformation, CodeLens, CodeActionContext, FormattingOptions, DocumentLink, MarkupKind, SymbolKind, CompletionItemKind, CodeAction, CodeActionKind, DocumentSymbol, CompletionItemTag, DiagnosticTag, SymbolTag, uinteger, integer, InsertTextMode, LSPAny, WorkspaceSymbol, URI, WorkspaceFolder } from 'vscode-languageserver-types';
4
4
  import { ImplementationRequest, ImplementationClientCapabilities, ImplementationOptions, ImplementationRegistrationOptions, ImplementationParams } from './protocol.implementation';
5
5
  import { TypeDefinitionRequest, TypeDefinitionClientCapabilities, TypeDefinitionOptions, TypeDefinitionRegistrationOptions, TypeDefinitionParams } from './protocol.typeDefinition';
6
- import { WorkspaceFoldersRequest, DidChangeWorkspaceFoldersNotification, DidChangeWorkspaceFoldersParams, WorkspaceFolder, WorkspaceFoldersChangeEvent, WorkspaceFoldersInitializeParams, WorkspaceFoldersServerCapabilities } from './protocol.workspaceFolder';
6
+ import { WorkspaceFoldersRequest, DidChangeWorkspaceFoldersNotification, DidChangeWorkspaceFoldersParams, WorkspaceFoldersChangeEvent, WorkspaceFoldersInitializeParams, WorkspaceFoldersServerCapabilities } from './protocol.workspaceFolder';
7
7
  import { ConfigurationRequest, ConfigurationParams, ConfigurationItem } from './protocol.configuration';
8
8
  import { DocumentColorRequest, ColorPresentationRequest, DocumentColorOptions, DocumentColorParams, ColorPresentationParams, DocumentColorClientCapabilities, DocumentColorRegistrationOptions } from './protocol.colorProvider';
9
9
  import { FoldingRangeClientCapabilities, FoldingRangeOptions, FoldingRangeRequest, FoldingRangeParams, FoldingRangeRegistrationOptions } from './protocol.foldingRange';
@@ -35,7 +35,8 @@ import { InlayHintClientCapabilities, InlayHintOptions, InlayHintRegistrationOpt
35
35
  * @sample A language filter that applies to typescript files on disk: `{ language: 'typescript', scheme: 'file' }`
36
36
  * @sample A language filter that applies to all package.json paths: `{ language: 'json', pattern: '**package.json' }`
37
37
  *
38
- * @since 3.17.0 - proposed state.
38
+ * @since 3.17.0
39
+ * @proposed
39
40
  */
40
41
  export declare type TextDocumentFilter = {
41
42
  /** A language id, like `typescript`. */
@@ -63,7 +64,8 @@ export declare type TextDocumentFilter = {
63
64
  * The TextDocumentFilter namespace provides helper functions to work with
64
65
  * [TextDocumentFilter](#TextDocumentFilter) literals.
65
66
  *
66
- * @since 3.17.0 - proposed state.
67
+ * @since 3.17.0
68
+ * @proposed
67
69
  */
68
70
  export declare namespace TextDocumentFilter {
69
71
  function is(value: any): value is TextDocumentFilter;
@@ -73,7 +75,8 @@ export declare namespace TextDocumentFilter {
73
75
  * different properties. The properties will be match
74
76
  * against the notebook's URI (same as with documents)
75
77
  *
76
- * @since 3.17.0 - proposed state.
78
+ * @since 3.17.0
79
+ * @proposed
77
80
  */
78
81
  export declare type NotebookDocumentFilter = {
79
82
  /** The type of the enclosing notebook. */
@@ -101,7 +104,8 @@ export declare type NotebookDocumentFilter = {
101
104
  * The NotebookDocumentFilter namespace provides helper functions to work with
102
105
  * [NotebookDocumentFilter](#NotebookDocumentFilter) literals.
103
106
  *
104
- * @since 3.17.0 - proposed state.
107
+ * @since 3.17.0
108
+ * @proposed
105
109
  */
106
110
  export declare namespace NotebookDocumentFilter {
107
111
  function is(value: any): value is NotebookDocumentFilter;
@@ -110,7 +114,8 @@ export declare namespace NotebookDocumentFilter {
110
114
  * A notebook cell text document filter denotes a cell text
111
115
  * document by different properties.
112
116
  *
113
- * @since 3.17.0 - proposed state.
117
+ * @since 3.17.0
118
+ * @proposed
114
119
  */
115
120
  export declare type NotebookCellTextDocumentFilter = {
116
121
  /**
@@ -132,7 +137,8 @@ export declare type NotebookCellTextDocumentFilter = {
132
137
  * The NotebookCellTextDocumentFilter namespace provides helper functions to work with
133
138
  * [NotebookCellTextDocumentFilter](#NotebookCellTextDocumentFilter) literals.
134
139
  *
135
- * @since 3.17.0 - proposed state.
140
+ * @since 3.17.0
141
+ * @proposed
136
142
  */
137
143
  export declare namespace NotebookCellTextDocumentFilter {
138
144
  function is(value: any): value is NotebookCellTextDocumentFilter;
@@ -486,19 +492,22 @@ export interface TextDocumentClientCapabilities {
486
492
  /**
487
493
  * Capabilities specific to the various type hierarchy requests.
488
494
  *
489
- * @since 3.17.0 - proposed state
495
+ * @since 3.17.0
496
+ * @proposed
490
497
  */
491
498
  typeHierarchy?: TypeHierarchyClientCapabilities;
492
499
  /**
493
500
  * Capabilities specific to the `textDocument/inlineValue` request.
494
501
  *
495
- * @since 3.17.0 - proposed state
502
+ * @since 3.17.0
503
+ * @proposed
496
504
  */
497
505
  inlineValue?: InlineValueClientCapabilities;
498
506
  /**
499
507
  * Capabilities specific to the `textDocument/inlayHint` request.
500
508
  *
501
- * @since 3.17.0 - proposed state
509
+ * @since 3.17.0
510
+ * @proposed
502
511
  */
503
512
  inlayHint?: InlayHintClientCapabilities;
504
513
  }
@@ -565,6 +574,41 @@ export interface MarkdownClientCapabilities {
565
574
  */
566
575
  allowedTags?: string[];
567
576
  }
577
+ /**
578
+ * A set of predefined position encoding kinds.
579
+ *
580
+ * @since 3.17.0
581
+ * @proposed
582
+ */
583
+ export declare namespace PositionEncodingKind {
584
+ /**
585
+ * Character offsets count UTF-8 code units.
586
+ */
587
+ const UTF8: PositionEncodingKind;
588
+ /**
589
+ * Character offsets count UTF-16 code units.
590
+ *
591
+ * This is the default and must always be supported
592
+ * by servers
593
+ */
594
+ const UTF16: PositionEncodingKind;
595
+ /**
596
+ * Character offsets count UTF-32 code units.
597
+ *
598
+ * Implementation note: these are the same as Unicode code points,
599
+ * so this `PositionEncodingKind` may also be used for an
600
+ * encoding-agnostic representation of character offsets.
601
+ */
602
+ const UTF32: PositionEncodingKind;
603
+ }
604
+ /**
605
+ * A type indicating how positions are encoded,
606
+ * specifically what column offsets mean.
607
+ *
608
+ * @since 3.17.0
609
+ * @proposed
610
+ */
611
+ export declare type PositionEncodingKind = string;
568
612
  /**
569
613
  * General client capabilities.
570
614
  *
@@ -578,6 +622,7 @@ export interface GeneralClientCapabilities {
578
622
  * anymore since the information is outdated).
579
623
  *
580
624
  * @since 3.17.0
625
+ * @proposed
581
626
  */
582
627
  staleRequestSupport?: {
583
628
  /**
@@ -603,6 +648,28 @@ export interface GeneralClientCapabilities {
603
648
  * @since 3.16.0
604
649
  */
605
650
  markdown?: MarkdownClientCapabilities;
651
+ /**
652
+ * The position encodings supported by the client. Client and server
653
+ * have to agree on the same position encoding to ensure that offsets
654
+ * (e.g. character position in a line) are interpreted the same on both
655
+ * side.
656
+ *
657
+ * To keep the protocol backwards compatible the following applies: if
658
+ * the value 'utf-16' is missing from the array of position encodings
659
+ * servers can assume that the client supports UTF-16. UTF-16 is
660
+ * therefore a mandatory encoding.
661
+ *
662
+ * If omitted it defaults to ['utf-16'].
663
+ *
664
+ * Implementation considerations: since the conversion from one encoding
665
+ * into another requires the content of the file / line the conversion
666
+ * is best done where the file is read which is usually on the server
667
+ * side.
668
+ *
669
+ * @since 3.17.0
670
+ * @proposed
671
+ */
672
+ positionEncodings?: PositionEncodingKind[];
606
673
  }
607
674
  /**
608
675
  * Defines the capabilities provided by the client.
@@ -695,6 +762,21 @@ export declare namespace WorkDoneProgressOptions {
695
762
  * server.
696
763
  */
697
764
  export interface ServerCapabilities<T = any> {
765
+ /**
766
+ * The position encoding the server picked from the encodings offered
767
+ * by the client via the client capability `general.positionEncodings`.
768
+ *
769
+ * If the client didn't provide any position encodings the only valid
770
+ * value that a server can return is 'utf-16'.
771
+ *
772
+ * If omitted it defaults to 'utf-16'.
773
+ *
774
+ * If for some reason
775
+ *
776
+ * @since 3.17.0
777
+ * @proposed
778
+ */
779
+ positionEncoding?: PositionEncodingKind;
698
780
  /**
699
781
  * Defines how text documents are synced. Is either a detailed structure defining each notification or
700
782
  * for backwards compatibility the TextDocumentSyncKind number.
@@ -819,19 +901,22 @@ export interface ServerCapabilities<T = any> {
819
901
  /**
820
902
  * The server provides type hierarchy support.
821
903
  *
822
- * @since 3.17.0 - proposed state
904
+ * @since 3.17.0
905
+ * @proposed
823
906
  */
824
907
  typeHierarchyProvider?: boolean | TypeHierarchyOptions | TypeHierarchyRegistrationOptions;
825
908
  /**
826
909
  * The server provides inline values.
827
910
  *
828
- * @since 3.17.0 - proposed state
911
+ * @since 3.17.0
912
+ * @proposed
829
913
  */
830
914
  inlineValueProvider?: boolean | InlineValueOptions | InlineValueRegistrationOptions;
831
915
  /**
832
916
  * The server provides inlay hints.
833
917
  *
834
- * @since 3.17.0 - proposed state
918
+ * @since 3.17.0
919
+ * @proposed
835
920
  */
836
921
  inlayHintProvider?: boolean | InlayHintOptions | InlayHintRegistrationOptions;
837
922
  /**
@@ -864,7 +949,7 @@ export interface ServerCapabilities<T = any> {
864
949
  * resolves to such.
865
950
  */
866
951
  export declare namespace InitializeRequest {
867
- const type: ProtocolRequestType<_InitializeParams & WorkspaceFoldersInitializeParams & WorkDoneProgressParams, InitializeResult<any>, never, InitializeError, void>;
952
+ const type: ProtocolRequestType<InitializeParams, InitializeResult<any>, never, InitializeError, void>;
868
953
  }
869
954
  /**
870
955
  * The initialize parameters
@@ -959,16 +1044,18 @@ export interface InitializeResult<T = any> {
959
1044
  [custom: string]: LSPAny | ServerCapabilities<T> | undefined; /** undefined is needed since serverInfo is optional */
960
1045
  }
961
1046
  /**
962
- * Known error codes for an `InitializeError`;
1047
+ * Known error codes for an `InitializeErrorCodes`;
963
1048
  */
964
- export declare namespace InitializeError {
1049
+ export declare namespace InitializeErrorCodes {
965
1050
  /**
966
1051
  * If the protocol version provided by the client can't be handled by the server.
1052
+ *
967
1053
  * @deprecated This initialize error got replaced by client capabilities. There is
968
1054
  * no version handshake in version 3.0x
969
1055
  */
970
1056
  const unknownProtocolVersion: 1;
971
1057
  }
1058
+ export declare type InitializeErrorCodes = 1;
972
1059
  /**
973
1060
  * The data type of the ResponseError if the
974
1061
  * initialize request fails.
@@ -1150,7 +1237,7 @@ export interface LogMessageParams {
1150
1237
  * the client to log telemetry data.
1151
1238
  */
1152
1239
  export declare namespace TelemetryEventNotification {
1153
- const type: ProtocolNotificationType<any, void>;
1240
+ const type: ProtocolNotificationType<LSPAny, void>;
1154
1241
  }
1155
1242
  export interface TextDocumentSyncClientCapabilities {
1156
1243
  /**
@@ -1435,6 +1522,13 @@ export interface DidChangeWatchedFilesClientCapabilities {
1435
1522
  * from the server side.
1436
1523
  */
1437
1524
  dynamicRegistration?: boolean;
1525
+ /**
1526
+ * Whether the client has support for {@link RelativePattern relative pattern}
1527
+ * or not.
1528
+ *
1529
+ * @since 3.17.0
1530
+ */
1531
+ relativePatternSupport?: boolean;
1438
1532
  }
1439
1533
  /**
1440
1534
  * The watched files notification is sent from the client to the server when
@@ -1492,17 +1586,52 @@ export interface DidChangeWatchedFilesRegistrationOptions {
1492
1586
  */
1493
1587
  watchers: FileSystemWatcher[];
1494
1588
  }
1589
+ /**
1590
+ * The glob pattern to watch relative to the base path. Glob patterns can have the following syntax:
1591
+ * - `*` to match one or more characters in a path segment
1592
+ * - `?` to match on one character in a path segment
1593
+ * - `**` to match any number of path segments, including none
1594
+ * - `{}` to group conditions (e.g. `**​/*.{ts,js}` matches all TypeScript and JavaScript files)
1595
+ * - `[]` to declare a range of characters to match in a path segment (e.g., `example.[0-9]` to match on `example.0`, `example.1`, …)
1596
+ * - `[!...]` to negate a range of characters to match in a path segment (e.g., `example.[!0-9]` to match on `example.a`, `example.b`, but not `example.0`)
1597
+ *
1598
+ * @since 3.17.0
1599
+ */
1600
+ export declare type Pattern = string;
1601
+ /**
1602
+ * A relative pattern is a helper to construct glob patterns that are matched
1603
+ * relatively to a base URI. The common value for a `baseUri` is a workspace
1604
+ * folder root, but it can be another absolute URI as well.
1605
+ *
1606
+ * @since 3.17.0
1607
+ */
1608
+ export interface RelativePattern {
1609
+ /**
1610
+ * A workspace folder or a base URI to which this pattern will be matched
1611
+ * against relatively.
1612
+ */
1613
+ baseUri: WorkspaceFolder | URI;
1614
+ /**
1615
+ * The actual glob pattern;
1616
+ */
1617
+ pattern: Pattern;
1618
+ }
1619
+ export declare namespace RelativePattern {
1620
+ function is(value: any): value is RelativePattern;
1621
+ }
1622
+ /**
1623
+ * The glob pattern. Either a string pattern or a relative pattern.
1624
+ *
1625
+ * @since 3.17.0
1626
+ */
1627
+ export declare type GlobPattern = Pattern | RelativePattern;
1495
1628
  export interface FileSystemWatcher {
1496
1629
  /**
1497
- * The glob pattern to watch. Glob patterns can have the following syntax:
1498
- * - `*` to match one or more characters in a path segment
1499
- * - `?` to match on one character in a path segment
1500
- * - `**` to match any number of path segments, including none
1501
- * - `{}` to group conditions (e.g. `**​/*.{ts,js}` matches all TypeScript and JavaScript files)
1502
- * - `[]` to declare a range of characters to match in a path segment (e.g., `example.[0-9]` to match on `example.0`, `example.1`, …)
1503
- * - `[!...]` to negate a range of characters to match in a path segment (e.g., `example.[!0-9]` to match on `example.a`, `example.b`, but not `example.0`)
1630
+ * The glob pattern to watch. See {@link GlobPattern glob pattern} for more detail.
1631
+ *
1632
+ * @since 3.17.0 support for relative patterns.
1504
1633
  */
1505
- globPattern: string;
1634
+ globPattern: GlobPattern;
1506
1635
  /**
1507
1636
  * The kind of events of interest. If omitted it defaults
1508
1637
  * to WatchKind.Create | WatchKind.Change | WatchKind.Delete
@@ -1679,7 +1808,8 @@ export interface CompletionClientCapabilities {
1679
1808
  * The client has support for completion item label
1680
1809
  * details (see also `CompletionItemLabelDetails`).
1681
1810
  *
1682
- * @since 3.17.0 - proposed state
1811
+ * @since 3.17.0
1812
+ * @proposed
1683
1813
  */
1684
1814
  labelDetailsSupport?: boolean;
1685
1815
  };
@@ -1701,7 +1831,8 @@ export interface CompletionClientCapabilities {
1701
1831
  * when accepting a completion item that uses multi line
1702
1832
  * text in either `insertText` or `textEdit`.
1703
1833
  *
1704
- * @since 3.17.0 - proposed state
1834
+ * @since 3.17.0
1835
+ * @proposed
1705
1836
  */
1706
1837
  insertTextMode?: InsertTextMode;
1707
1838
  /**
@@ -1713,7 +1844,8 @@ export interface CompletionClientCapabilities {
1713
1844
  * The client supports the following `CompletionList` specific
1714
1845
  * capabilities.
1715
1846
  *
1716
- * @since 3.17.0 - proposed state
1847
+ * @since 3.17.0
1848
+ * @proposed
1717
1849
  */
1718
1850
  completionList?: {
1719
1851
  /**
@@ -1724,7 +1856,8 @@ export interface CompletionClientCapabilities {
1724
1856
  * `CompletionList.itemDefaults` object. If omitted
1725
1857
  * no properties are supported.
1726
1858
  *
1727
- * @since 3.17.0 - proposed state
1859
+ * @since 3.17.0
1860
+ * @proposed
1728
1861
  */
1729
1862
  itemDefaults?: string[];
1730
1863
  };
@@ -1808,7 +1941,8 @@ export interface CompletionOptions extends WorkDoneProgressOptions {
1808
1941
  * The server supports the following `CompletionItem` specific
1809
1942
  * capabilities.
1810
1943
  *
1811
- * @since 3.17.0 - proposed state
1944
+ * @since 3.17.0
1945
+ * @proposed
1812
1946
  */
1813
1947
  completionItem?: {
1814
1948
  /**
@@ -1816,7 +1950,8 @@ export interface CompletionOptions extends WorkDoneProgressOptions {
1816
1950
  * details (see also `CompletionItemLabelDetails`) when
1817
1951
  * receiving a completion item in a resolve call.
1818
1952
  *
1819
- * @since 3.17.0 - proposed state
1953
+ * @since 3.17.0
1954
+ * @proposed
1820
1955
  */
1821
1956
  labelDetailsSupport?: boolean;
1822
1957
  };
@@ -2417,7 +2552,8 @@ export interface WorkspaceSymbolOptions extends WorkDoneProgressOptions {
2417
2552
  * The server provides support to resolve additional
2418
2553
  * information for a workspace symbol.
2419
2554
  *
2420
- * @since 3.17.0 - proposed state
2555
+ * @since 3.17.0
2556
+ * @proposed
2421
2557
  */
2422
2558
  resolveProvider?: boolean;
2423
2559
  }
@@ -2445,7 +2581,8 @@ export declare namespace WorkspaceSymbolRequest {
2445
2581
  * A request to resolve the range inside the workspace
2446
2582
  * symbol's location.
2447
2583
  *
2448
- * @since 3.17.0 - proposed state
2584
+ * @since 3.17.0
2585
+ * @proposed
2449
2586
  */
2450
2587
  export declare namespace WorkspaceSymbolResolveRequest {
2451
2588
  const method: 'workspaceSymbol/resolve';
@@ -2675,11 +2812,16 @@ export interface DocumentOnTypeFormattingParams {
2675
2812
  */
2676
2813
  textDocument: TextDocumentIdentifier;
2677
2814
  /**
2678
- * The position at which this request was send.
2815
+ * The position around which the on type formatting should happen.
2816
+ * This is not necessarily the exact position where the character denoted
2817
+ * by the property `ch` got typed.
2679
2818
  */
2680
2819
  position: Position;
2681
2820
  /**
2682
- * The character that has been typed.
2821
+ * The character that has been typed that triggered the formatting
2822
+ * on type request. That is not necessarily the last character that
2823
+ * got inserted into the document since the client could auto insert
2824
+ * characters as well (e.g. like automatic brace completion).
2683
2825
  */
2684
2826
  ch: string;
2685
2827
  /**
@@ -2692,7 +2834,7 @@ export interface DocumentOnTypeFormattingParams {
2692
2834
  */
2693
2835
  export interface DocumentOnTypeFormattingOptions {
2694
2836
  /**
2695
- * A character on which formatting should be triggered, like `}`.
2837
+ * A character on which formatting should be triggered, like `{}`.
2696
2838
  */
2697
2839
  firstTriggerCharacter: string;
2698
2840
  /**
@@ -2796,6 +2938,12 @@ export declare namespace RenameRequest {
2796
2938
  }
2797
2939
  export interface PrepareRenameParams extends TextDocumentPositionParams, WorkDoneProgressParams {
2798
2940
  }
2941
+ export declare type PrepareRenameResult = Range | {
2942
+ range: Range;
2943
+ placeholder: string;
2944
+ } | {
2945
+ defaultBehavior: boolean;
2946
+ };
2799
2947
  /**
2800
2948
  * A request to test and perform the setup necessary for a rename.
2801
2949
  *
@@ -2803,12 +2951,7 @@ export interface PrepareRenameParams extends TextDocumentPositionParams, WorkDon
2803
2951
  */
2804
2952
  export declare namespace PrepareRenameRequest {
2805
2953
  const method: 'textDocument/prepareRename';
2806
- const type: ProtocolRequestType<PrepareRenameParams, Range | {
2807
- range: Range;
2808
- placeholder: string;
2809
- } | {
2810
- defaultBehavior: boolean;
2811
- } | null, never, void, void>;
2954
+ const type: ProtocolRequestType<PrepareRenameParams, PrepareRenameResult | null, never, void, void>;
2812
2955
  }
2813
2956
  /**
2814
2957
  * The client capabilities of a [ExecuteCommandRequest](#ExecuteCommandRequest).
@@ -2851,7 +2994,7 @@ export interface ExecuteCommandRegistrationOptions extends ExecuteCommandOptions
2851
2994
  * a workspace edit which the client will apply to the workspace.
2852
2995
  */
2853
2996
  export declare namespace ExecuteCommandRequest {
2854
- const type: ProtocolRequestType<ExecuteCommandParams, void | LSPAny, never, void, ExecuteCommandRegistrationOptions>;
2997
+ const type: ProtocolRequestType<ExecuteCommandParams, LSPAny, never, void, ExecuteCommandRegistrationOptions>;
2855
2998
  }
2856
2999
  export interface WorkspaceEditClientCapabilities {
2857
3000
  /**
@@ -2945,5 +3088,5 @@ export declare type ApplyWorkspaceEditResponse = ApplyWorkspaceEditResult;
2945
3088
  export declare namespace ApplyWorkspaceEditRequest {
2946
3089
  const type: ProtocolRequestType<ApplyWorkspaceEditParams, ApplyWorkspaceEditResult, never, void, void>;
2947
3090
  }
2948
- export { ImplementationRequest, ImplementationParams, ImplementationRegistrationOptions, ImplementationOptions, TypeDefinitionRequest, TypeDefinitionParams, TypeDefinitionRegistrationOptions, TypeDefinitionOptions, WorkspaceFoldersRequest, DidChangeWorkspaceFoldersNotification, DidChangeWorkspaceFoldersParams, WorkspaceFolder, WorkspaceFoldersChangeEvent, ConfigurationRequest, ConfigurationParams, ConfigurationItem, DocumentColorRequest, ColorPresentationRequest, DocumentColorOptions, DocumentColorParams, ColorPresentationParams, DocumentColorRegistrationOptions, FoldingRangeClientCapabilities, FoldingRangeOptions, FoldingRangeRequest, FoldingRangeParams, FoldingRangeRegistrationOptions, DeclarationClientCapabilities, DeclarationRequest, DeclarationParams, DeclarationRegistrationOptions, DeclarationOptions, SelectionRangeClientCapabilities, SelectionRangeOptions, SelectionRangeParams, SelectionRangeRequest, SelectionRangeRegistrationOptions, WorkDoneProgressBegin, WorkDoneProgressReport, WorkDoneProgressEnd, WorkDoneProgress, WorkDoneProgressCreateParams, WorkDoneProgressCreateRequest, WorkDoneProgressCancelParams, WorkDoneProgressCancelNotification, CallHierarchyClientCapabilities, CallHierarchyOptions, CallHierarchyRegistrationOptions, CallHierarchyIncomingCallsParams, CallHierarchyIncomingCallsRequest, CallHierarchyOutgoingCallsParams, CallHierarchyOutgoingCallsRequest, CallHierarchyPrepareParams, CallHierarchyPrepareRequest, SemanticTokensPartialResult, SemanticTokensDeltaPartialResult, TokenFormat, SemanticTokensClientCapabilities, SemanticTokensOptions, SemanticTokensRegistrationOptions, SemanticTokensParams, SemanticTokensRequest, SemanticTokensDeltaParams, SemanticTokensDeltaRequest, SemanticTokensRangeParams, SemanticTokensRangeRequest, SemanticTokensRefreshRequest, SemanticTokensRegistrationType, ShowDocumentParams, ShowDocumentRequest, ShowDocumentResult, ShowDocumentClientCapabilities, LinkedEditingRangeClientCapabilities, LinkedEditingRanges, LinkedEditingRangeOptions, LinkedEditingRangeParams, LinkedEditingRangeRegistrationOptions, LinkedEditingRangeRequest, FileOperationOptions, FileOperationClientCapabilities, FileOperationRegistrationOptions, FileOperationPatternOptions, FileOperationPatternKind, DidCreateFilesNotification, CreateFilesParams, FileCreate, WillCreateFilesRequest, DidRenameFilesNotification, RenameFilesParams, FileRename, WillRenameFilesRequest, DidDeleteFilesNotification, DeleteFilesParams, FileDelete, WillDeleteFilesRequest, UniquenessLevel, MonikerKind, Moniker, MonikerClientCapabilities, MonikerOptions, MonikerRegistrationOptions, MonikerParams, MonikerRequest, TypeHierarchyClientCapabilities, TypeHierarchyOptions, TypeHierarchyRegistrationOptions, TypeHierarchyPrepareParams, TypeHierarchyPrepareRequest, TypeHierarchySubtypesParams, TypeHierarchySubtypesRequest, TypeHierarchySupertypesParams, TypeHierarchySupertypesRequest, InlineValueClientCapabilities, InlineValueOptions, InlineValueRegistrationOptions, InlineValueWorkspaceClientCapabilities, InlineValueParams, InlineValueRequest, InlineValueRefreshRequest, InlayHintClientCapabilities, InlayHintOptions, InlayHintRegistrationOptions, InlayHintWorkspaceClientCapabilities, InlayHintParams, InlayHintRequest, InlayHintResolveRequest, InlayHintRefreshRequest, };
3091
+ export { ImplementationRequest, ImplementationParams, ImplementationRegistrationOptions, ImplementationOptions, TypeDefinitionRequest, TypeDefinitionParams, TypeDefinitionRegistrationOptions, TypeDefinitionOptions, WorkspaceFoldersRequest, DidChangeWorkspaceFoldersNotification, DidChangeWorkspaceFoldersParams, WorkspaceFoldersChangeEvent, ConfigurationRequest, ConfigurationParams, ConfigurationItem, DocumentColorRequest, ColorPresentationRequest, DocumentColorOptions, DocumentColorParams, ColorPresentationParams, DocumentColorRegistrationOptions, FoldingRangeClientCapabilities, FoldingRangeOptions, FoldingRangeRequest, FoldingRangeParams, FoldingRangeRegistrationOptions, DeclarationClientCapabilities, DeclarationRequest, DeclarationParams, DeclarationRegistrationOptions, DeclarationOptions, SelectionRangeClientCapabilities, SelectionRangeOptions, SelectionRangeParams, SelectionRangeRequest, SelectionRangeRegistrationOptions, WorkDoneProgressBegin, WorkDoneProgressReport, WorkDoneProgressEnd, WorkDoneProgress, WorkDoneProgressCreateParams, WorkDoneProgressCreateRequest, WorkDoneProgressCancelParams, WorkDoneProgressCancelNotification, CallHierarchyClientCapabilities, CallHierarchyOptions, CallHierarchyRegistrationOptions, CallHierarchyIncomingCallsParams, CallHierarchyIncomingCallsRequest, CallHierarchyOutgoingCallsParams, CallHierarchyOutgoingCallsRequest, CallHierarchyPrepareParams, CallHierarchyPrepareRequest, SemanticTokensPartialResult, SemanticTokensDeltaPartialResult, TokenFormat, SemanticTokensClientCapabilities, SemanticTokensOptions, SemanticTokensRegistrationOptions, SemanticTokensParams, SemanticTokensRequest, SemanticTokensDeltaParams, SemanticTokensDeltaRequest, SemanticTokensRangeParams, SemanticTokensRangeRequest, SemanticTokensRefreshRequest, SemanticTokensRegistrationType, ShowDocumentParams, ShowDocumentRequest, ShowDocumentResult, ShowDocumentClientCapabilities, LinkedEditingRangeClientCapabilities, LinkedEditingRanges, LinkedEditingRangeOptions, LinkedEditingRangeParams, LinkedEditingRangeRegistrationOptions, LinkedEditingRangeRequest, FileOperationOptions, FileOperationClientCapabilities, FileOperationRegistrationOptions, FileOperationPatternOptions, FileOperationPatternKind, DidCreateFilesNotification, CreateFilesParams, FileCreate, WillCreateFilesRequest, DidRenameFilesNotification, RenameFilesParams, FileRename, WillRenameFilesRequest, DidDeleteFilesNotification, DeleteFilesParams, FileDelete, WillDeleteFilesRequest, UniquenessLevel, MonikerKind, Moniker, MonikerClientCapabilities, MonikerOptions, MonikerRegistrationOptions, MonikerParams, MonikerRequest, TypeHierarchyClientCapabilities, TypeHierarchyOptions, TypeHierarchyRegistrationOptions, TypeHierarchyPrepareParams, TypeHierarchyPrepareRequest, TypeHierarchySubtypesParams, TypeHierarchySubtypesRequest, TypeHierarchySupertypesParams, TypeHierarchySupertypesRequest, InlineValueClientCapabilities, InlineValueOptions, InlineValueRegistrationOptions, InlineValueWorkspaceClientCapabilities, InlineValueParams, InlineValueRequest, InlineValueRefreshRequest, InlayHintClientCapabilities, InlayHintOptions, InlayHintRegistrationOptions, InlayHintWorkspaceClientCapabilities, InlayHintParams, InlayHintRequest, InlayHintResolveRequest, InlayHintRefreshRequest, };
2949
3092
  export { DocumentColorOptions as ColorProviderOptions, DocumentColorOptions as ColorOptions, FoldingRangeOptions as FoldingRangeProviderOptions, SelectionRangeOptions as SelectionRangeProviderOptions, DocumentColorRegistrationOptions as ColorRegistrationOptions };
@@ -24,23 +24,6 @@ export interface FoldingRangeOptions extends WorkDoneProgressOptions {
24
24
  }
25
25
  export interface FoldingRangeRegistrationOptions extends TextDocumentRegistrationOptions, FoldingRangeOptions, StaticRegistrationOptions {
26
26
  }
27
- /**
28
- * Enum of known range kinds
29
- */
30
- export declare enum FoldingRangeKind {
31
- /**
32
- * Folding range for a comment
33
- */
34
- Comment = "comment",
35
- /**
36
- * Folding range for a imports or includes
37
- */
38
- Imports = "imports",
39
- /**
40
- * Folding range for a region (e.g. `#region`)
41
- */
42
- Region = "region"
43
- }
44
27
  /**
45
28
  * Parameters for a [FoldingRangeRequest](#FoldingRangeRequest).
46
29
  */
@@ -58,6 +41,6 @@ export interface FoldingRangeParams extends WorkDoneProgressParams, PartialResul
58
41
  */
59
42
  export declare namespace FoldingRangeRequest {
60
43
  const method: 'textDocument/foldingRange';
61
- const type: ProtocolRequestType<FoldingRangeParams, FoldingRange[] | null, FoldingRange[], any, FoldingRangeRegistrationOptions>;
44
+ const type: ProtocolRequestType<FoldingRangeParams, FoldingRange[] | null, FoldingRange[], void, FoldingRangeRegistrationOptions>;
62
45
  type HandlerSignature = RequestHandler<FoldingRangeParams, FoldingRange[] | null, void>;
63
46
  }
@@ -4,26 +4,8 @@
4
4
  * Licensed under the MIT License. See License.txt in the project root for license information.
5
5
  *--------------------------------------------------------------------------------------------*/
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.FoldingRangeRequest = exports.FoldingRangeKind = void 0;
7
+ exports.FoldingRangeRequest = void 0;
8
8
  const messages_1 = require("./messages");
9
- /**
10
- * Enum of known range kinds
11
- */
12
- var FoldingRangeKind;
13
- (function (FoldingRangeKind) {
14
- /**
15
- * Folding range for a comment
16
- */
17
- FoldingRangeKind["Comment"] = "comment";
18
- /**
19
- * Folding range for a imports or includes
20
- */
21
- FoldingRangeKind["Imports"] = "imports";
22
- /**
23
- * Folding range for a region (e.g. `#region`)
24
- */
25
- FoldingRangeKind["Region"] = "region";
26
- })(FoldingRangeKind = exports.FoldingRangeKind || (exports.FoldingRangeKind = {}));
27
9
  /**
28
10
  * A request to provide folding ranges in a document. The request's
29
11
  * parameter is of type [FoldingRangeParams](#FoldingRangeParams), the
@@ -27,7 +27,7 @@ export interface ImplementationParams extends TextDocumentPositionParams, WorkDo
27
27
  }
28
28
  /**
29
29
  * A request to resolve the implementation locations of a symbol at a given text
30
- * document position. The request's parameter is of type [TextDocumentPositioParams]
30
+ * document position. The request's parameter is of type [TextDocumentPositionParams]
31
31
  * (#TextDocumentPositionParams) the response is of type [Definition](#Definition) or a
32
32
  * Thenable that resolves to such.
33
33
  */
@@ -6,11 +6,11 @@
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.ImplementationRequest = void 0;
8
8
  const messages_1 = require("./messages");
9
- // @ts-ignore: to avoid inlining LocatioLink as dynamic import
9
+ // @ts-ignore: to avoid inlining LocationLink as dynamic import
10
10
  let __noDynamicImport;
11
11
  /**
12
12
  * A request to resolve the implementation locations of a symbol at a given text
13
- * document position. The request's parameter is of type [TextDocumentPositioParams]
13
+ * document position. The request's parameter is of type [TextDocumentPositionParams]
14
14
  * (#TextDocumentPositionParams) the response is of type [Definition](#Definition) or a
15
15
  * Thenable that resolves to such.
16
16
  */
@@ -5,7 +5,8 @@ import type { StaticRegistrationOptions, TextDocumentRegistrationOptions, WorkDo
5
5
  /**
6
6
  * Inlay hint client capabilities
7
7
  *
8
- * @since 3.17.0 - proposed state
8
+ * @since 3.17.0
9
+ * @proposed
9
10
  */
10
11
  export declare type InlayHintClientCapabilities = {
11
12
  /**
@@ -26,7 +27,8 @@ export declare type InlayHintClientCapabilities = {
26
27
  /**
27
28
  * Client workspace capabilities specific to inlay hints.
28
29
  *
29
- * @since 3.17.0 - proposed state
30
+ * @since 3.17.0
31
+ * @proposed
30
32
  */
31
33
  export declare type InlayHintWorkspaceClientCapabilities = {
32
34
  /**
@@ -43,7 +45,8 @@ export declare type InlayHintWorkspaceClientCapabilities = {
43
45
  /**
44
46
  * Inlay hint options used during static registration.
45
47
  *
46
- * @since 3.17.0 - proposed state
48
+ * @since 3.17.0
49
+ * @proposed
47
50
  */
48
51
  export declare type InlayHintOptions = WorkDoneProgressOptions & {
49
52
  /**
@@ -55,13 +58,15 @@ export declare type InlayHintOptions = WorkDoneProgressOptions & {
55
58
  /**
56
59
  * Inlay hint options used during static or dynamic registration.
57
60
  *
58
- * @since 3.17.0 - proposed state
61
+ * @since 3.17.0
62
+ * @proposed
59
63
  */
60
64
  export declare type InlayHintRegistrationOptions = InlayHintOptions & TextDocumentRegistrationOptions & StaticRegistrationOptions;
61
65
  /**
62
66
  * A parameter literal used in inlay hints requests.
63
67
  *
64
- * @since 3.17.0 - proposed state
68
+ * @since 3.17.0
69
+ * @proposed
65
70
  */
66
71
  export declare type InlayHintParams = WorkDoneProgressParams & {
67
72
  /**
@@ -78,11 +83,12 @@ export declare type InlayHintParams = WorkDoneProgressParams & {
78
83
  * type [InlayHintsParams](#InlayHintsParams), the response is of type
79
84
  * [InlayHint[]](#InlayHint[]) or a Thenable that resolves to such.
80
85
  *
81
- * @since 3.17.0 - proposed state
86
+ * @since 3.17.0
87
+ * @proposed
82
88
  */
83
89
  export declare namespace InlayHintRequest {
84
90
  const method: 'textDocument/inlayHint';
85
- const type: ProtocolRequestType<InlayHintParams, InlayHint[] | null, InlayHint[], any, InlayHintRegistrationOptions>;
91
+ const type: ProtocolRequestType<InlayHintParams, InlayHint[] | null, InlayHint[], void, InlayHintRegistrationOptions>;
86
92
  type HandlerSignature = RequestHandler<InlayHintParams, InlayHint[] | null, void>;
87
93
  }
88
94
  /**
@@ -90,7 +96,8 @@ export declare namespace InlayHintRequest {
90
96
  * The request's parameter is of type [InlayHint](#InlayHint), the response is
91
97
  * of type [InlayHint](#InlayHint) or a Thenable that resolves to such.
92
98
  *
93
- * @since 3.17.0 - proposed state
99
+ * @since 3.17.0
100
+ * @proposed
94
101
  */
95
102
  export declare namespace InlayHintResolveRequest {
96
103
  const method: 'inlayHint/resolve';
@@ -98,7 +105,8 @@ export declare namespace InlayHintResolveRequest {
98
105
  type HandlerSignature = RequestHandler<InlayHint, InlayHint, void>;
99
106
  }
100
107
  /**
101
- * @since 3.17.0 - proposed state
108
+ * @since 3.17.0
109
+ * @proposed
102
110
  */
103
111
  export declare namespace InlayHintRefreshRequest {
104
112
  const method: `workspace/inlayHint/refresh`;