mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 05:19:39 +00:00
Fixing #48552 specify the protocol
This commit is contained in:
parent
7cf5c292d1
commit
ea40a3e001
|
@ -164,6 +164,11 @@ export class NpmScriptsTreeDataProvider implements TreeDataProvider<TreeItem> {
|
|||
return;
|
||||
}
|
||||
|
||||
let protocol = 'inspector';
|
||||
if (debugArg[0] === 'debug') {
|
||||
protocol = 'legacy';
|
||||
}
|
||||
|
||||
let packageManager = getPackageManager(script.getFolder());
|
||||
const config: DebugConfiguration = {
|
||||
type: 'node',
|
||||
|
@ -174,7 +179,8 @@ export class NpmScriptsTreeDataProvider implements TreeDataProvider<TreeItem> {
|
|||
'run-script',
|
||||
task.name,
|
||||
],
|
||||
port: debugArg[1]
|
||||
port: debugArg[1],
|
||||
protocol: protocol
|
||||
};
|
||||
|
||||
if (isWorkspaceFolder(task.scope)) {
|
||||
|
|
Loading…
Reference in a new issue