mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-09 09:42:34 -05:00
add handlers for promise rejections (#8735)
This change adds to handlers to unexpected promise rejection scenarios. This PR fixes #8640 * add handlers for promise rejections * Displaying all tools load errors * Update toolBase.ts - setting errorMessage to be displayed in the additional information field * disable the select button when tools not discovered * PR fixes
This commit is contained in:
@@ -25,13 +25,13 @@ export function setEnvironmentVariablesForInstallPaths(tools: ITool[]): void {
|
||||
// Use Set class to make sure the collection only contains unique values.
|
||||
let installationPaths: Set<string> = new Set<string>();
|
||||
tools.forEach(t => {
|
||||
if (t.installationPath) {
|
||||
if (t.installationPathOrAdditionalInformation) {
|
||||
|
||||
// construct an env variable name with NoteBookEnvironmentVariablePrefix prefix
|
||||
// and tool.name as suffix, making sure of using all uppercase characters and only _ as separator
|
||||
const envVarName = getRuntimeBinaryPathEnvironmentVariableName(t.name);
|
||||
process.env[envVarName] = t.installationPath;
|
||||
installationPaths.add(path.dirname(t.installationPath));
|
||||
process.env[envVarName] = t.installationPathOrAdditionalInformation;
|
||||
installationPaths.add(path.dirname(t.installationPathOrAdditionalInformation));
|
||||
}
|
||||
});
|
||||
if (installationPaths.size > 0) {
|
||||
|
||||
Reference in New Issue
Block a user