mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 02:58:56 +01:00
ESlint: enable no-async-promise-executor (#134873)
This commit is contained in:
@@ -716,6 +716,7 @@ export abstract class BaseExtHostTerminalService extends Disposable implements I
|
||||
const promises: vscode.ProviderResult<{ provider: vscode.TerminalLinkProvider, links: vscode.TerminalLink[] }>[] = [];
|
||||
|
||||
for (const provider of this._linkProviders) {
|
||||
// eslint-disable-next-line no-async-promise-executor
|
||||
promises.push(new Promise(async r => {
|
||||
cancellationSource.token.onCancellationRequested(() => r({ provider, links: [] }));
|
||||
const links = (await provider.provideTerminalLinks(context, cancellationSource.token)) || [];
|
||||
|
||||
Reference in New Issue
Block a user