@@ -318,6 +318,17 @@ type SemanticTokensWorkspaceClientCapabilities =
318318 /// wide change that requires such a calculation.
319319 RefreshSupport: bool option }
320320
321+ /// Client workspace capabilities specific to inlay hints.
322+ type InlayHintWorkspaceClientCapabilities =
323+ { /// Whether the client implementation supports a refresh request sent from
324+ /// the server to the client.
325+ ///
326+ /// Note that this event is global and will force the client to refresh all
327+ /// inlay hints currently shown. It should be used with absolute care and
328+ /// is useful for situation where a server for example detects a project wide
329+ /// change that requires such a calculation.
330+ RefreshSupport: bool option }
331+
321332/// Workspace specific client capabilities.
322333type WorkspaceClientCapabilities =
323334 { /// The client supports applying batch edits to the workspace by supporting
@@ -336,7 +347,16 @@ type WorkspaceClientCapabilities =
336347 /// Capabilities specific to the `workspace/symbol` request.
337348 Symbol: SymbolCapabilities option
338349
339- SemanticTokens: SemanticTokensWorkspaceClientCapabilities option }
350+ /// Capabilities specific to the semantic token requests scoped to the
351+ /// workspace.
352+ ///
353+ /// @since 3.16.0
354+ SemanticTokens: SemanticTokensWorkspaceClientCapabilities option
355+
356+ /// Client workspace capabilities specific to inlay hints.
357+ ///
358+ /// @since 3.17.0
359+ InlayHint: InlayHintWorkspaceClientCapabilities option }
340360
341361type SynchronizationCapabilities =
342362 { /// Whether text document synchronization supports dynamic registration.
@@ -687,17 +707,6 @@ type InlayHintClientCapabilities =
687707 /// hint.
688708 ResolveSupport: InlayHintClientCapabilitiesResolveSupport option }
689709
690- /// Client workspace capabilities specific to inlay hints.
691- type InlayHintWorkspaceClientCapabilities =
692- { /// Whether the client implementation supports a refresh request sent from
693- /// the server to the client.
694- ///
695- /// Note that this event is global and will force the client to refresh all
696- /// inlay hints currently shown. It should be used with absolute care and
697- /// is useful for situation where a server for example detects a project wide
698- /// change that requires such a calculation.
699- RefreshSupport: bool option }
700-
701710/// Text document specific client capabilities.
702711type TextDocumentClientCapabilities =
703712 { Synchronization: SynchronizationCapabilities option
@@ -769,11 +778,6 @@ type ClientCapabilities =
769778 /// Text document specific client capabilities.
770779 TextDocument: TextDocumentClientCapabilities option
771780
772- /// Client workspace capabilities specific to inlay hints.
773- ///
774- /// @since 3.17.0
775- InlayHint: InlayHintWorkspaceClientCapabilities option
776-
777781 /// Experimental client capabilities.
778782 Experimental: JToken option }
779783
0 commit comments