mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -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> {
|
export async function getConnectionURI(connectionInfo: IConnectionInfo): Promise<string | undefined> {
|
||||||
const vscodeMssqlApi = await utils.getVscodeMssqlApi();
|
const vscodeMssqlApi = await utils.getVscodeMssqlApi();
|
||||||
|
|
||||||
let connectionURI: string = '';
|
let connectionURI: string = '';
|
||||||
try {
|
try {
|
||||||
await vscode.window.withProgress(
|
connectionURI = await vscodeMssqlApi.connect(connectionInfo);
|
||||||
{
|
|
||||||
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!);
|
|
||||||
}
|
|
||||||
);
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// mssql connection error will be shown to the user
|
// mssql connection error will be shown to the user
|
||||||
return undefined;
|
return undefined;
|
||||||
|
|||||||
@@ -73,7 +73,6 @@ export const userPasswordLater = localize('userPasswordLater', 'In order to user
|
|||||||
export const openFile = localize('openFile', "Open File");
|
export const openFile = localize('openFile', "Open File");
|
||||||
export const closeButton = localize('closeButton', "Close");
|
export const closeButton = localize('closeButton', "Close");
|
||||||
export const enterPasswordPrompt = localize('enterPasswordPrompt', '(Optional) Enter connection password to save in local.settings.json');
|
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 enterTableName = localize('enterTableName', 'Enter SQL table to query');
|
||||||
export const enterViewName = localize('enterViewName', 'Enter SQL view to query');
|
export const enterViewName = localize('enterViewName', 'Enter SQL view to query');
|
||||||
export const enterTableNameToUpsert = localize('enterTableNameToUpsert', 'Enter SQL table to upsert into');
|
export const enterTableNameToUpsert = localize('enterTableNameToUpsert', 'Enter SQL table to upsert into');
|
||||||
|
|||||||
Reference in New Issue
Block a user