mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-14 01:25:37 -05:00
delete progress notification not needed (#20060)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user