mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-17 09:35:37 -05:00
Sql Binding: Add "Check out pane for more details" when nuget package download fails (#17680)
* check output for more details * detail error * wait for result from showerrormessage
This commit is contained in:
@@ -11,9 +11,11 @@ import { ShellCommandOptions } from './shellExecutionHelper';
|
||||
|
||||
export class PackageHelper {
|
||||
private netCoreTool: NetCoreTool;
|
||||
private _outputChannel: vscode.OutputChannel;
|
||||
|
||||
constructor(outputChannel: vscode.OutputChannel) {
|
||||
this.netCoreTool = new NetCoreTool(outputChannel);
|
||||
this._outputChannel = outputChannel;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -72,7 +74,10 @@ export class PackageHelper {
|
||||
});
|
||||
}
|
||||
} catch (e) {
|
||||
void vscode.window.showErrorMessage(e.message);
|
||||
const result = await vscode.window.showErrorMessage(constants.addSqlBindingPackageError, constants.checkoutOutputMessage);
|
||||
if (result === constants.checkoutOutputMessage) {
|
||||
this._outputChannel.show();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user