@@ -327,6 +327,25 @@ type ILspServer =
327327 /// registers for the `textDocument/prepareCallHierarchy` request.
328328 abstract member CallHierarchyOutgoingCalls: CallHierarchyOutgoingCallsParams -> AsyncLspResult < CallHierarchyOutgoingCall [] option >
329329
330+ /// The type hierarchy request is sent from the client to the server to return a type hierarchy for the
331+ /// language element of given text document positions. Will return `null` if the server couldn't infer a
332+ /// valid type from the position. The type hierarchy requests are executed in two steps:
333+ /// 1. first a type hierarchy item is prepared for the given text document position.
334+ /// 2. for a type hierarchy item the supertype or subtype type hierarchy items are resolved.
335+ abstract member TextDocumentPrepareTypeHierarchy: TypeHierarchyPrepareParams -> AsyncLspResult < TypeHierarchyItem [] option >
336+
337+ /// The request is sent from the client to the server to resolve the supertype for a given type hierarchy
338+ /// item. Will return `null` is the serve couldn't infer a valid type from `item` in the params. The request
339+ /// doesn't defines its own client and server capabilities. It is only issued if a server registers for the
340+ /// `textDocument/prepareTypeHierarchy` request.
341+ abstract member TypeHierarchySupertypes: TypeHierarchySupertypesParams -> AsyncLspResult < TypeHierarchyItem [] option >
342+
343+ /// The request is sent from the client to the server to resolve the supertype for a given type hierarchy
344+ /// item. Will return `null` is the serve couldn't infer a valid type from `item` in the params. The request
345+ /// doesn't defines its own client and server capabilities. It is only issued if a server registers for the
346+ /// `textDocument/prepareTypeHierarchy` request.
347+ abstract member TypeHierarchySubtypes: TypeHierarchySubtypesParams -> AsyncLspResult < TypeHierarchyItem [] option >
348+
330349[<AbstractClass>]
331350type LspServer () =
332351 abstract member Dispose: unit -> unit
@@ -706,6 +725,28 @@ type LspServer() =
706725 abstract member CallHierarchyOutgoingCalls: CallHierarchyOutgoingCallsParams -> AsyncLspResult < CallHierarchyOutgoingCall [] option >
707726 default __.CallHierarchyOutgoingCalls ( _ ) = notImplemented
708727
728+ /// The type hierarchy request is sent from the client to the server to return a type hierarchy for the
729+ /// language element of given text document positions. Will return `null` if the server couldn't infer a
730+ /// valid type from the position. The type hierarchy requests are executed in two steps:
731+ /// 1. first a type hierarchy item is prepared for the given text document position.
732+ /// 2. for a type hierarchy item the supertype or subtype type hierarchy items are resolved.
733+ abstract member TextDocumentPrepareTypeHierarchy: TypeHierarchyPrepareParams -> AsyncLspResult < TypeHierarchyItem [] option >
734+ default __.TextDocumentPrepareTypeHierarchy ( _ ) = notImplemented
735+
736+ /// The request is sent from the client to the server to resolve the supertype for a given type hierarchy
737+ /// item. Will return `null` is the serve couldn't infer a valid type from `item` in the params. The request
738+ /// doesn't defines its own client and server capabilities. It is only issued if a server registers for the
739+ /// `textDocument/prepareTypeHierarchy` request.
740+ abstract member TypeHierarchySupertypes: TypeHierarchySupertypesParams -> AsyncLspResult < TypeHierarchyItem [] option >
741+ default __.TypeHierarchySupertypes ( _ ) = notImplemented
742+
743+ /// The request is sent from the client to the server to resolve the supertype for a given type hierarchy
744+ /// item. Will return `null` is the serve couldn't infer a valid type from `item` in the params. The request
745+ /// doesn't defines its own client and server capabilities. It is only issued if a server registers for the
746+ /// `textDocument/prepareTypeHierarchy` request.
747+ abstract member TypeHierarchySubtypes: TypeHierarchySubtypesParams -> AsyncLspResult < TypeHierarchyItem [] option >
748+ default __.TypeHierarchySubtypes ( _ ) = notImplemented
749+
709750 interface ILspServer with
710751 member this.Dispose () = this.Dispose()
711752 member this.Initialize ( p : InitializeParams ) = this.Initialize( p)
@@ -773,3 +814,7 @@ type LspServer() =
773814 member this.TextDocumentPrepareCallHierarchy ( p : CallHierarchyPrepareParams ) = this.TextDocumentPrepareCallHierarchy( p)
774815 member this.CallHierarchyIncomingCalls ( p : CallHierarchyIncomingCallsParams ) = this.CallHierarchyIncomingCalls( p)
775816 member this.CallHierarchyOutgoingCalls ( p : CallHierarchyOutgoingCallsParams ) = this.CallHierarchyOutgoingCalls( p)
817+
818+ member this.TextDocumentPrepareTypeHierarchy ( p : TypeHierarchyPrepareParams ) = this.TextDocumentPrepareTypeHierarchy( p)
819+ member this.TypeHierarchySupertypes ( p : TypeHierarchySupertypesParams ) = this.TypeHierarchySupertypes( p)
820+ member this.TypeHierarchySubtypes ( p : TypeHierarchySubtypesParams ) = this.TypeHierarchySubtypes( p)
0 commit comments