mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
give extension host some time to leave the event loop before disposing command results, #79805
This commit is contained in:
parent
5dbbdd83a0
commit
4b0a83d581
|
@ -143,6 +143,6 @@ registerLanguageCommand('_executeCodeActionProvider', async function (accessor,
|
|||
{ type: 'manual', filter: { includeSourceActions: true, kind: kind && kind.value ? new CodeActionKind(kind.value) : undefined } },
|
||||
CancellationToken.None);
|
||||
|
||||
setTimeout(() => codeActionSet.dispose(), 0);
|
||||
setTimeout(() => codeActionSet.dispose(), 100);
|
||||
return codeActionSet.actions;
|
||||
});
|
||||
|
|
|
@ -110,6 +110,6 @@ registerLanguageCommand('_executeCodeLensProvider', function (accessor, args) {
|
|||
}).finally(() => {
|
||||
// make sure to return results, then (on next tick)
|
||||
// dispose the results
|
||||
setTimeout(() => disposables.dispose(), 0);
|
||||
setTimeout(() => disposables.dispose(), 100);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -278,7 +278,7 @@ registerDefaultLanguageCommand('_executeCompletionItemProvider', async (model, p
|
|||
await Promise.all(resolving);
|
||||
return result;
|
||||
} finally {
|
||||
setTimeout(() => disposables.dispose(), 0);
|
||||
setTimeout(() => disposables.dispose(), 100);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue