Interface PortAttributesSelector

A selector that will be used to filter which PortAttributesProvider should be called for each port.

interface PortAttributesSelector {
    commandPattern?: RegExp;
    portRange?: number | [number, number];
}

Properties

commandPattern?: RegExp

Specifying a command pattern will cause your provider to only be called for processes whose command line matches the pattern.

portRange?: number | [number, number]

Specifying a port range will cause your provider to only be called for ports within the range. The start is inclusive and the end is exclusive.