in src/edgeChromiumDebugAdapter.ts [163:176]
private getWebViewPort(args: ILaunchRequestArgs, connectionInfo: IWebViewConnectionInfo) {
let port = 0;
if (args.port === 0 && connectionInfo.devtoolsActivePort) {
const lines = connectionInfo.devtoolsActivePort.split('\n');
if (lines.length > 0) {
const filePort = parseInt(lines[0], 10);
port = isNaN(filePort) ? args.port : filePort;
}
} else {
port = args.port;
}
return port || 2015;
}