File tree Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -86,14 +86,20 @@ export interface Runnable {
86
86
export const runnables = request < RunnablesParams , Vec < Runnable > > ( "runnables" ) ;
87
87
88
88
89
- export const enum InlayKind {
90
- TypeHint = "TypeHint" ,
91
- ParameterHint = "ParameterHint" ,
92
- }
93
- export interface InlayHint {
94
- range : lc . Range ;
95
- kind : InlayKind ;
96
- label : string ;
89
+
90
+ export type InlayHint = InlayHint . TypeHint | InlayHint . ParamHint ;
91
+
92
+ export namespace InlayHint {
93
+ export const enum Kind {
94
+ TypeHint = "TypeHint" ,
95
+ ParamHint = "ParameterHint" ,
96
+ }
97
+ interface Common {
98
+ range : lc . Range ;
99
+ label : string ;
100
+ }
101
+ export type TypeHint = Common & { kind : Kind . TypeHint ; }
102
+ export type ParamHint = Common & { kind : Kind . ParamHint ; }
97
103
}
98
104
export interface InlayHintsParams {
99
105
textDocument : lc . TextDocumentIdentifier ;
You can’t perform that action at this time.
0 commit comments