mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 05:19:39 +00:00
parent
8f5b743a0b
commit
5468607181
|
@ -324,7 +324,7 @@ export async function createTask(packageManager: string, script: NpmTaskDefiniti
|
||||||
}
|
}
|
||||||
|
|
||||||
let relativePackageJson = getRelativePath(packageJsonUri);
|
let relativePackageJson = getRelativePath(packageJsonUri);
|
||||||
if (relativePackageJson.length) {
|
if (relativePackageJson.length && !kind.path) {
|
||||||
kind.path = relativePackageJson.substring(0, relativePackageJson.length - 1);
|
kind.path = relativePackageJson.substring(0, relativePackageJson.length - 1);
|
||||||
}
|
}
|
||||||
let taskName = getTaskName(kind.script, relativePackageJson);
|
let taskName = getTaskName(kind.script, relativePackageJson);
|
||||||
|
|
Loading…
Reference in a new issue