Use classes for drop/paste edit types (#151980)

This commit is contained in:
Matt Bierner
2022-06-13 13:10:07 -07:00
committed by GitHub
parent 48cf67d528
commit 7284c3e4c1
6 changed files with 39 additions and 12 deletions

View File

@@ -32,10 +32,7 @@ export function registerDropIntoEditor(selector: vscode.DocumentSelector) {
}
const snippet = await tryGetUriListSnippet(document, dataTransfer, token);
if (snippet) {
return { insertText: snippet };
}
return undefined;
return snippet ? new vscode.DocumentDropEdit(snippet) : undefined;
}
});
}