diff --git a/src/kernels/portAttributeProvider.node.ts b/src/kernels/portAttributeProvider.node.ts index 195a4849f5b..2eefec07e16 100644 --- a/src/kernels/portAttributeProvider.node.ts +++ b/src/kernels/portAttributeProvider.node.ts @@ -31,7 +31,7 @@ export class PortAttributesProviders implements PortAttributesProvider, IExtensi ): PortAttributes | undefined { try { if (UsedPorts.has(port)) { - return new PortAttributes(port, PortAutoForwardAction.Ignore); + return new PortAttributes(PortAutoForwardAction.Ignore); } } catch (ex) { // In case proposed API changes. diff --git a/src/test/mocks/vsc/extHostedTypes.ts b/src/test/mocks/vsc/extHostedTypes.ts index 5cc004df905..b031e343009 100644 --- a/src/test/mocks/vsc/extHostedTypes.ts +++ b/src/test/mocks/vsc/extHostedTypes.ts @@ -2398,23 +2398,16 @@ export namespace vscMockExtHostedTypes { } export class PortAttributes { - /** - * The port number associated with this this set of attributes. - */ - port: number; - /** * The action to be taken when this port is detected for auto forwarding. */ autoForwardAction: PortAutoForwardAction; - /** * Creates a new PortAttributes object * @param port the port number * @param autoForwardAction the action to take when this port is detected */ - constructor(port: number, autoForwardAction: PortAutoForwardAction) { - this.port = port; + constructor(autoForwardAction: PortAutoForwardAction) { this.autoForwardAction = autoForwardAction; } }