Open script on single click

This commit is contained in:
Erich Gamma 2018-04-17 09:18:02 -07:00
parent ee2ed2f200
commit bb1119e0b1
2 changed files with 4 additions and 4 deletions

View file

@ -80,17 +80,17 @@
"group": "navigation"
},
{
"command": "npm.runScript",
"command": "npm.openScript",
"when": "view == npm && viewItem == script",
"group": "navigation@1"
},
{
"command": "npm.debugScript",
"command": "npm.runScript",
"when": "view == npm && viewItem == script",
"group": "navigation@2"
},
{
"command": "npm.openScript",
"command": "npm.debugScript",
"when": "view == npm && viewItem == script",
"group": "navigation@3"
}

View file

@ -73,7 +73,7 @@ class NpmScript extends TreeItem {
this.task = task;
this.command = {
title: 'Run Script',
command: 'npm.runScript',
command: 'npm.openScript',
arguments: [this]
};
this.iconPath = {