[css/html/json] Randomize inspect ports to avoid conflicts

This commit is contained in:
Martin Aeschlimann
2020-11-04 16:03:27 +01:00
parent 4cd46e32b2
commit e3a79e9e44
4 changed files with 4 additions and 27 deletions

View File

@@ -24,7 +24,7 @@ export function activate(context: ExtensionContext) {
const serverModule = context.asAbsolutePath(serverMain);
// The debug options for the server
const debugOptions = { execArgv: ['--nolazy', '--inspect=6044'] };
const debugOptions = { execArgv: ['--nolazy', '--inspect=' + (8000 + Math.round(Math.random() * 999))] };
// If the extension is launch in debug mode the debug server options are use
// Otherwise the run options are used