mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 17:48:56 +01:00
priority -> yieldTo for drop/paste API proposals (#189881)
Move await from `priority` for drop/paste API proposals For #179430, #30066 Switching to use `yieldTo` instead of `priority` to let an extension de-rank itself in the list of edits. `priority` was an arbitrary number while `yieldTo` gives more control over how the ranking takes place
This commit is contained in:
@@ -83,7 +83,7 @@ export enum PasteUrlAsFormattedLink {
|
||||
Never = 'never'
|
||||
}
|
||||
|
||||
export async function getPasteUrlAsFormattedLinkSetting(document: vscode.TextDocument): Promise<PasteUrlAsFormattedLink> {
|
||||
export function getPasteUrlAsFormattedLinkSetting(document: vscode.TextDocument): PasteUrlAsFormattedLink {
|
||||
return vscode.workspace.getConfiguration('markdown', document).get<PasteUrlAsFormattedLink>('editor.pasteUrlAsFormattedLink.enabled', PasteUrlAsFormattedLink.Smart);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user