delete progress notification not needed (#20060)

This commit is contained in:
Vasu Bhog
2022-07-19 09:43:55 -07:00
committed by GitHub
parent bfbb78827f
commit 9e8b80f12f
2 changed files with 1 additions and 12 deletions

View File

@@ -617,19 +617,9 @@ export async function promptSelectDatabase(connectionURI: string): Promise<strin
export async function getConnectionURI(connectionInfo: IConnectionInfo): Promise<string | undefined> {
const vscodeMssqlApi = await utils.getVscodeMssqlApi();
let connectionURI: string = '';
try {
await vscode.window.withProgress(
{
location: vscode.ProgressLocation.Notification,
title: constants.connectionProgressTitle,
cancellable: false
}, async (_progress, _token) => {
// show progress bar while connecting to the users selected connection profile
connectionURI = await vscodeMssqlApi.connect(connectionInfo!);
}
);
connectionURI = await vscodeMssqlApi.connect(connectionInfo);
} catch (e) {
// mssql connection error will be shown to the user
return undefined;