mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-13 01:04:23 +01:00
Add priority to paste / drop apis (#182109)
* Add priority to paste / drop apis Fixes #181886 Replacement for #181453 * Make notebooks prefer text over creating attachments
This commit is contained in:
@@ -974,10 +974,7 @@ class MainThreadPasteEditProvider implements languages.DocumentPasteEditProvider
|
||||
}
|
||||
|
||||
return {
|
||||
id: result.id,
|
||||
label: result.label,
|
||||
detail: result.detail,
|
||||
insertText: result.insertText,
|
||||
...result,
|
||||
additionalEdit: result.additionalEdit ? reviveWorkspaceEditDto(result.additionalEdit, this._uriIdentService, dataId => this.resolveFileData(request.id, dataId)) : undefined,
|
||||
};
|
||||
} finally {
|
||||
@@ -1014,9 +1011,7 @@ class MainThreadDocumentOnDropEditProvider implements languages.DocumentOnDropEd
|
||||
return undefined;
|
||||
}
|
||||
return {
|
||||
id: edit.id,
|
||||
label: edit.label,
|
||||
insertText: edit.insertText,
|
||||
...edit,
|
||||
additionalEdit: reviveWorkspaceEditDto(edit.additionalEdit, this._uriIdentService, dataId => this.resolveDocumentOnDropFileData(request.id, dataId)),
|
||||
};
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user