mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
ESlint: enable no-async-promise-executor (#134873)
This commit is contained in:
@@ -24,6 +24,7 @@ let outputChannel: vscode.OutputChannel;
|
||||
export function activate(context: vscode.ExtensionContext) {
|
||||
|
||||
function doResolve(_authority: string, progress: vscode.Progress<{ message?: string; increment?: number }>): Promise<vscode.ResolvedAuthority> {
|
||||
// eslint-disable-next-line no-async-promise-executor
|
||||
const serverPromise = new Promise<vscode.ResolvedAuthority>(async (res, rej) => {
|
||||
progress.report({ message: 'Starting Test Resolver' });
|
||||
outputChannel = vscode.window.createOutputChannel('TestResolver');
|
||||
@@ -129,6 +130,7 @@ export function activate(context: vscode.ExtensionContext) {
|
||||
});
|
||||
});
|
||||
return serverPromise.then(serverAddr => {
|
||||
// eslint-disable-next-line no-async-promise-executor
|
||||
return new Promise<vscode.ResolvedAuthority>(async (res, _rej) => {
|
||||
const proxyServer = net.createServer(proxySocket => {
|
||||
outputChannel.appendLine(`Proxy connection accepted`);
|
||||
|
||||
Reference in New Issue
Block a user