提交 a05e3d99 编写于 作者: D Dániel Tar 提交者: Erich Gamma

Fix different error message in source and package.nls for npm package (#37096)

* Fix package.nls.json for npm

Error message was different in main.ts.

* Fix language string key in npm/src/main.ts
上级 cabf4b29
{
"config.npm.autoDetect": "Controls whether auto detection of npm scripts is on or off. Default is on.",
"config.npm.runSilent": "Run npm commands with the `--silent` option",
"npm.parseError": "Npm task detection could not parse the {0}"
}
\ No newline at end of file
"npm.parseError": "Npm task detection: failed to parse the file {0}"
}
......@@ -143,7 +143,7 @@ async function provideNpmScriptsForFolder(folder: vscode.WorkspaceFolder): Promi
// result.push(createTask('install', 'install', rootPath, folder, []));
return result;
} catch (e) {
let localizedParseError = localize('npm.parseerror', 'Npm task detection: failed to parse the file {0}', packageJson);
let localizedParseError = localize('npm.parseError', 'Npm task detection: failed to parse the file {0}', packageJson);
throw new Error(localizedParseError);
}
}
......@@ -168,4 +168,4 @@ function createTask(script: string, cmd: string, rootPath: string, folder: vscod
};
let taskName = getTaskName(script);
return new vscode.Task(kind, folder, taskName, 'npm', new vscode.ShellExecution(getCommandLine(folder, cmd), { cwd: rootPath }), matcher);
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册