resolveDocumentPasteEdit

abstract var resolveDocumentPasteEdit: (pasteEdit: T, token: CancellationToken) -> ProviderResult<T>?(source)

Optional method which fills in the {@linkcode DocumentPasteEdit.additionalEdit} before the edit is applied.

This is called once per edit and should be used if generating the complete edit may take a long time. Resolve can only be used to change {@linkcode DocumentPasteEdit.insertText} or {@linkcode DocumentPasteEdit.additionalEdit}.

Parameters

pasteEdit

The {@linkcode DocumentPasteEdit} to resolve.

token

A cancellation token.