mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Remove azdata toast startup notifications (#11582)
This commit is contained in:
@@ -4,9 +4,7 @@
|
|||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
import * as vscode from 'vscode';
|
import * as vscode from 'vscode';
|
||||||
import { findAzdata, downloadAndInstallAzdata } from './azdata';
|
import { findAzdata } from './azdata';
|
||||||
import * as loc from './localizedConstants';
|
|
||||||
import { ExitCodeError } from './common/childProcess';
|
|
||||||
|
|
||||||
export async function activate(): Promise<void> {
|
export async function activate(): Promise<void> {
|
||||||
const outputChannel = vscode.window.createOutputChannel('azdata');
|
const outputChannel = vscode.window.createOutputChannel('azdata');
|
||||||
@@ -15,8 +13,7 @@ export async function activate(): Promise<void> {
|
|||||||
|
|
||||||
async function checkForAzdata(outputChannel: vscode.OutputChannel): Promise<void> {
|
async function checkForAzdata(outputChannel: vscode.OutputChannel): Promise<void> {
|
||||||
try {
|
try {
|
||||||
const azdata = await findAzdata(outputChannel);
|
await findAzdata(outputChannel);
|
||||||
vscode.window.showInformationMessage(loc.foundExistingAzdata(azdata.path, azdata.version));
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
// Don't block on this since we want the extension to finish activating without needing user input.
|
// Don't block on this since we want the extension to finish activating without needing user input.
|
||||||
// Calls will be made to handle azdata not being installed
|
// Calls will be made to handle azdata not being installed
|
||||||
@@ -24,7 +21,9 @@ async function checkForAzdata(outputChannel: vscode.OutputChannel): Promise<void
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function promptToInstallAzdata(outputChannel: vscode.OutputChannel): Promise<void> {
|
async function promptToInstallAzdata(_outputChannel: vscode.OutputChannel): Promise<void> {
|
||||||
|
//TODO: Figure out better way to display/prompt
|
||||||
|
/*
|
||||||
const response = await vscode.window.showErrorMessage(loc.couldNotFindAzdataWithPrompt, loc.install, loc.cancel);
|
const response = await vscode.window.showErrorMessage(loc.couldNotFindAzdataWithPrompt, loc.install, loc.cancel);
|
||||||
if (response === loc.install) {
|
if (response === loc.install) {
|
||||||
try {
|
try {
|
||||||
@@ -37,6 +36,7 @@ async function promptToInstallAzdata(outputChannel: vscode.OutputChannel): Promi
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
export function deactivate(): void { }
|
export function deactivate(): void { }
|
||||||
|
|||||||
Reference in New Issue
Block a user