File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -496,7 +496,15 @@ export default class AutocompleteAdapter {
496
496
suggestion . text = textEdit . newText
497
497
}
498
498
499
- /** Handle additional text edits after a suggestion insert, e.g. `additionalTextEdits`. */
499
+ /**
500
+ * Handle additional text edits after a suggestion insert, e.g. `additionalTextEdits`.
501
+ *
502
+ * `additionalTextEdits` are An optional array of additional text edits that are applied when selecting this
503
+ * completion. Edits must not overlap (including the same insert position) with the main edit nor with themselves.
504
+ *
505
+ * Additional text edits should be used to change text unrelated to the current cursor position (for example adding an
506
+ * import statement at the top of the file if the completion item will insert an unqualified type).
507
+ */
500
508
public static applyAdditionalTextEdits ( event : ac . SuggestionInsertedEvent ) : void {
501
509
const suggestion = event . suggestion as SuggestionBase
502
510
const additionalEdits = suggestion . completionItem ?. additionalTextEdits
You can’t perform that action at this time.
0 commit comments