Skip to content

Commit f78d488

Browse files
committed
fix: task name end with space
1 parent 2535c6c commit f78d488

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/npm/src/npmView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class NpmScript extends TreeItem {
8383
: task.task.name;
8484
super(name, TreeItemCollapsibleState.None);
8585
this.taskLocation = task.location;
86-
const command: ExplorerCommands = name === INSTALL_SCRIPT ? 'run' : workspace.getConfiguration('npm').get<ExplorerCommands>('scriptExplorerAction') || 'open';
86+
const command: ExplorerCommands = name === `${INSTALL_SCRIPT} ` ? 'run' : workspace.getConfiguration('npm').get<ExplorerCommands>('scriptExplorerAction') || 'open';
8787

8888
const commandList = {
8989
'open': {

0 commit comments

Comments
 (0)