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;

View File

@@ -73,7 +73,6 @@ export const userPasswordLater = localize('userPasswordLater', 'In order to user
export const openFile = localize('openFile', "Open File");
export const closeButton = localize('closeButton', "Close");
export const enterPasswordPrompt = localize('enterPasswordPrompt', '(Optional) Enter connection password to save in local.settings.json');
export const connectionProgressTitle = localize('connectionProgressTitle', "Testing SQL Server connection...");
export const enterTableName = localize('enterTableName', 'Enter SQL table to query');
export const enterViewName = localize('enterViewName', 'Enter SQL view to query');
export const enterTableNameToUpsert = localize('enterTableNameToUpsert', 'Enter SQL table to upsert into');