Skip to content

Commit eedb5e6

Browse files
feat: add ideDiagnostic type (#586)
* feat: add ideDiagnostic type * feat: diagnostic - update comments for the field
1 parent aed6187 commit eedb5e6

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

types/inlineCompletionWithReferences.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,28 @@ export interface InlineCompletionStates {
7676
discarded: boolean
7777
}
7878

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+
79101
export interface LogInlineCompletionSessionResultsParams {
80102
/**
81103
* Session Id attached to get completion items response.
@@ -114,4 +136,12 @@ export interface LogInlineCompletionSessionResultsParams {
114136
* Flag to indicate this is an edit suggestion rather than a standard inline completion.
115137
*/
116138
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[]
117147
}

0 commit comments

Comments
 (0)