@@ -638,9 +638,11 @@ export namespace Method {
638
638
639
639
/** Client requests */
640
640
export enum ClientRequest {
641
+ CODE_ACTION = 'textDocument/codeAction' ,
641
642
COMPLETION = 'textDocument/completion' ,
642
643
COMPLETION_ITEM_RESOLVE = 'completionItem/resolve' ,
643
644
DEFINITION = 'textDocument/definition' ,
645
+ DOCUMENT_COLOR = 'textDocument/documentColor' ,
644
646
DOCUMENT_HIGHLIGHT = 'textDocument/documentHighlight' ,
645
647
DOCUMENT_SYMBOL = 'textDocument/documentSymbol' ,
646
648
HOVER = 'textDocument/hover' ,
@@ -649,7 +651,14 @@ export namespace Method {
649
651
REFERENCES = 'textDocument/references' ,
650
652
RENAME = 'textDocument/rename' ,
651
653
SIGNATURE_HELP = 'textDocument/signatureHelp' ,
652
- TYPE_DEFINITION = 'textDocument/typeDefinition'
654
+ TYPE_DEFINITION = 'textDocument/typeDefinition' ,
655
+ LINKED_EDITING_RANGE = 'textDocument/linkedEditingRange' ,
656
+ INLINE_VALUE = 'textDocument/inlineValue' ,
657
+ INLAY_HINT = 'textDocument/inlayHint' ,
658
+ WORKSPACE_SYMBOL = 'workspace/symbol' ,
659
+ WORKSPACE_SYMBOL_RESOLVE = 'workspaceSymbol/resolve' ,
660
+ FORMATTING = 'textDocument/formatting' ,
661
+ RANGE_FORMATTING = 'textDocument/rangeFormatting'
653
662
}
654
663
}
655
664
@@ -700,9 +709,11 @@ export interface IServerResult {
700
709
* Interface describing the request sent to the client.
701
710
*/
702
711
export interface IClientRequestParams {
712
+ [ Method . ClientRequest . CODE_ACTION ] : lsp . CodeActionParams ;
703
713
[ Method . ClientRequest . COMPLETION_ITEM_RESOLVE ] : lsp . CompletionItem ;
704
714
[ Method . ClientRequest . COMPLETION ] : lsp . CompletionParams ;
705
715
[ Method . ClientRequest . DEFINITION ] : lsp . TextDocumentPositionParams ;
716
+ [ Method . ClientRequest . DOCUMENT_COLOR ] : lsp . DocumentColorParams ;
706
717
[ Method . ClientRequest . DOCUMENT_HIGHLIGHT ] : lsp . TextDocumentPositionParams ;
707
718
[ Method . ClientRequest . DOCUMENT_SYMBOL ] : lsp . DocumentSymbolParams ;
708
719
[ Method . ClientRequest . HOVER ] : lsp . TextDocumentPositionParams ;
@@ -712,15 +723,23 @@ export interface IClientRequestParams {
712
723
[ Method . ClientRequest . RENAME ] : lsp . RenameParams ;
713
724
[ Method . ClientRequest . SIGNATURE_HELP ] : lsp . TextDocumentPositionParams ;
714
725
[ Method . ClientRequest . TYPE_DEFINITION ] : lsp . TextDocumentPositionParams ;
726
+ [ Method . ClientRequest . INLINE_VALUE ] : lsp . InlineValueParams ;
727
+ [ Method . ClientRequest . INLAY_HINT ] : lsp . InlayHintParams ;
728
+ [ Method . ClientRequest . WORKSPACE_SYMBOL ] : lsp . WorkspaceSymbolParams ;
729
+ [ Method . ClientRequest . WORKSPACE_SYMBOL_RESOLVE ] : lsp . WorkspaceSymbol ;
730
+ [ Method . ClientRequest . FORMATTING ] : lsp . DocumentFormattingParams ;
731
+ [ Method . ClientRequest . RANGE_FORMATTING ] : lsp . DocumentRangeFormattingParams ;
715
732
}
716
733
717
734
/**
718
735
* Interface describing the responses received from the client.
719
736
*/
720
737
export interface IClientResult {
738
+ [ Method . ClientRequest . CODE_ACTION ] : ( lsp . Command | lsp . CodeAction ) [ ] | null ;
721
739
[ Method . ClientRequest . COMPLETION_ITEM_RESOLVE ] : lsp . CompletionItem ;
722
740
[ Method . ClientRequest . COMPLETION ] : AnyCompletion ;
723
741
[ Method . ClientRequest . DEFINITION ] : AnyLocation ;
742
+ [ Method . ClientRequest . DOCUMENT_COLOR ] : lsp . ColorInformation [ ] ;
724
743
[ Method . ClientRequest . DOCUMENT_HIGHLIGHT ] : lsp . DocumentHighlight [ ] ;
725
744
[ Method . ClientRequest . DOCUMENT_SYMBOL ] : lsp . DocumentSymbol [ ] ;
726
745
[ Method . ClientRequest . HOVER ] : lsp . Hover | null ;
@@ -730,6 +749,15 @@ export interface IClientResult {
730
749
[ Method . ClientRequest . RENAME ] : lsp . WorkspaceEdit ;
731
750
[ Method . ClientRequest . SIGNATURE_HELP ] : lsp . SignatureHelp ;
732
751
[ Method . ClientRequest . TYPE_DEFINITION ] : AnyLocation ;
752
+ [ Method . ClientRequest . INLINE_VALUE ] : lsp . InlineValue [ ] | null ;
753
+ [ Method . ClientRequest . INLAY_HINT ] : lsp . InlayHint [ ] | null ;
754
+ [ Method . ClientRequest . WORKSPACE_SYMBOL ] :
755
+ | lsp . SymbolInformation [ ]
756
+ | lsp . WorkspaceSymbol [ ]
757
+ | null ;
758
+ [ Method . ClientRequest . WORKSPACE_SYMBOL_RESOLVE ] : lsp . WorkspaceSymbol [ ] ;
759
+ [ Method . ClientRequest . FORMATTING ] : lsp . TextEdit [ ] | null ;
760
+ [ Method . ClientRequest . RANGE_FORMATTING ] : lsp . TextEdit [ ] | null ;
733
761
}
734
762
735
763
/**
0 commit comments