Skip to content

Commit f654e18

Browse files
committed
adding doc about resolve and not waiting when accepting, microsoft#73311
1 parent 8fc6542 commit f654e18

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/vs/vscode.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3515,6 +3515,10 @@ declare module 'vscode' {
35153515
*
35163516
* The editor will only resolve a completion item once.
35173517
*
3518+
* *Note* that accepting a completion item will not wait for it to be resolved. Because of that [`insertText`](#CompletionItem.insertText),
3519+
* [`additionalTextEdits`](#CompletionItem.additionalTextEdits), and [`command`](#CompletionItem.command) should not
3520+
* be changed when resolving an item.
3521+
*
35183522
* @param item A completion item currently active in the UI.
35193523
* @param token A cancellation token.
35203524
* @return The resolved completion item or a thenable that resolves to of such. It is OK to return the given

0 commit comments

Comments
 (0)