We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 406d1d7 commit 9c23eb0Copy full SHA for 9c23eb0
extensions/typescript-language-features/src/languageFeatures/copyPaste.ts
@@ -97,13 +97,13 @@ class DocumentPasteProvider implements vscode.DocumentPasteEditProvider {
97
return;
98
}
99
100
- const response = await this._client.execute('getPasteEdits', {
+ const response = await this._client.interruptGetErr(() => this._client.execute('getPasteEdits', {
101
file,
102
// TODO: only supports a single paste for now
103
pastedText: [text],
104
pasteLocations: ranges.map(typeConverters.Range.toTextSpan),
105
copiedFrom
106
- }, token);
+ }, token));
107
if (response.type !== 'response' || !response.body || token.isCancellationRequested) {
108
109
0 commit comments