mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-01 17:23:35 -05:00
Modifying the migration extension to use its own service. (#21781)
* Adding migration service to sql migrations * enabling auto flush log * Adding support for env variable * Adding TDE Migration service * code cleanup * updating service downloader * Removing custom output channel * remove unnecessary await * Updated service version to get latest code * Consolidate TDE into migration service * Sync to latest main * Update sql-migration package version * Fix merge conflict error * Fixing all merge conflicts * Fixing stuff * removing extra whitespace * Cleaning up --------- Co-authored-by: Akshay Mata <akma@microsoft.com>
This commit is contained in:
@@ -5,10 +5,23 @@
|
||||
|
||||
import * as vscode from 'vscode';
|
||||
import { DashboardWidget } from './dashboard/sqlServerDashboard';
|
||||
import * as constants from './constants/strings';
|
||||
import { ServiceClient } from './service/serviceClient';
|
||||
import { migrationServiceProvider } from './service/provider';
|
||||
import { TelemetryReporter } from './telemetry';
|
||||
|
||||
let widget: DashboardWidget;
|
||||
export async function activate(context: vscode.ExtensionContext): Promise<DashboardWidget> {
|
||||
if (!migrationServiceProvider) {
|
||||
await vscode.window.showErrorMessage(constants.serviceProviderInitializationError);
|
||||
}
|
||||
// asynchronously starting the service
|
||||
const outputChannel = vscode.window.createOutputChannel(constants.serviceName);
|
||||
const serviceClient = new ServiceClient(outputChannel);
|
||||
serviceClient.startService(context).catch((e) => {
|
||||
console.error(e);
|
||||
});
|
||||
|
||||
widget = new DashboardWidget(context);
|
||||
await widget.register();
|
||||
context.subscriptions.push(TelemetryReporter);
|
||||
|
||||
Reference in New Issue
Block a user