mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-04 15:25:47 +01:00
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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user