File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,28 @@ export interface InlineCompletionStates {
76
76
discarded : boolean
77
77
}
78
78
79
+ export interface IdeDiagnostic {
80
+ /**
81
+ * The range at which the message applies.
82
+ */
83
+ range ?: {
84
+ start : { line : number ; character : number }
85
+ end : { line : number ; character : number }
86
+ }
87
+ /**
88
+ * A human-readable string describing the source of the diagnostic
89
+ */
90
+ source ?: string
91
+ /**
92
+ * Diagnostic Error type
93
+ */
94
+ severity ?: string
95
+ /**
96
+ * Type of the diagnostic
97
+ */
98
+ ideDiagnosticType : string
99
+ }
100
+
79
101
export interface LogInlineCompletionSessionResultsParams {
80
102
/**
81
103
* Session Id attached to get completion items response.
@@ -114,4 +136,12 @@ export interface LogInlineCompletionSessionResultsParams {
114
136
* Flag to indicate this is an edit suggestion rather than a standard inline completion.
115
137
*/
116
138
isInlineEdit ?: boolean
139
+ /**
140
+ * List of diagnostic added after inline completion completion acceptence.
141
+ */
142
+ addedDiagnostics ?: IdeDiagnostic [ ]
143
+ /**
144
+ * List of diagnostic removed after inline completion completion acceptence.
145
+ */
146
+ removedDiagnostics ?: IdeDiagnostic [ ]
117
147
}
You can’t perform that action at this time.
0 commit comments