diff --git a/src/vs/workbench/api/common/extHostTunnelService.ts b/src/vs/workbench/api/common/extHostTunnelService.ts index fbebe3ba9ed6d..e8f3addfb9790 100644 --- a/src/vs/workbench/api/common/extHostTunnelService.ts +++ b/src/vs/workbench/api/common/extHostTunnelService.ts @@ -113,7 +113,7 @@ export class ExtHostTunnelService extends Disposable implements IExtHostTunnelSe }); } - async $providePortAttributes(handles: number[], ports: number[], pid: number | undefined, commandline: string | undefined, cancellationToken: vscode.CancellationToken): Promise { + async $providePortAttributes(handles: number[], ports: number[], pid: number | undefined, commandLine: string | undefined, cancellationToken: vscode.CancellationToken): Promise { const providedAttributes: { providedAttributes: vscode.PortAttributes | null | undefined; port: number }[] = []; for (const handle of handles) { const provider = this._portAttributesProviders.get(handle); @@ -121,7 +121,7 @@ export class ExtHostTunnelService extends Disposable implements IExtHostTunnelSe return []; } providedAttributes.push(...(await Promise.all(ports.map(async (port) => { - return { providedAttributes: (await provider.provider.providePortAttributes(port, pid, commandline, cancellationToken)), port }; + return { providedAttributes: (await provider.provider.providePortAttributes({ port, pid, commandLine }, cancellationToken)), port }; })))); } diff --git a/src/vscode-dts/vscode.proposed.portsAttributes.d.ts b/src/vscode-dts/vscode.proposed.portsAttributes.d.ts index 35626315373b7..e3cb4b617f96a 100644 --- a/src/vscode-dts/vscode.proposed.portsAttributes.d.ts +++ b/src/vscode-dts/vscode.proposed.portsAttributes.d.ts @@ -63,7 +63,7 @@ declare module 'vscode' { * @param commandLine The command line of the process that is listening on the port. If the command line is unknown, undefined will be passed. * @param token A cancellation token that indicates the result is no longer needed. */ - providePortAttributes(port: number, pid: number | undefined, commandLine: string | undefined, token: CancellationToken): ProviderResult; + providePortAttributes(attributes: { port: number; pid?: number; commandLine?: string }, token: CancellationToken): ProviderResult; } /**