mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-06 01:25:38 -05:00
Add a few dacpac extension tests (#10322)
* add controller test * Add a few wizard tests * Addressing comment * fix compile error
This commit is contained in:
@@ -4,20 +4,17 @@
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as azdata from 'azdata';
|
||||
import ControllerBase from './controllerBase';
|
||||
import * as vscode from 'vscode';
|
||||
import { DataTierApplicationWizard } from '../wizard/dataTierApplicationWizard';
|
||||
|
||||
/**
|
||||
* The main controller class that initializes the extension
|
||||
*/
|
||||
export default class MainController extends ControllerBase {
|
||||
export default class MainController implements vscode.Disposable {
|
||||
|
||||
public constructor(context: vscode.ExtensionContext) {
|
||||
super(context);
|
||||
public constructor(private context: vscode.ExtensionContext) {
|
||||
}
|
||||
/**
|
||||
*/
|
||||
|
||||
public deactivate(): void {
|
||||
}
|
||||
|
||||
@@ -29,4 +26,12 @@ export default class MainController extends ControllerBase {
|
||||
private initializeDacFxWizard() {
|
||||
azdata.tasks.registerTask('dacFx.start', (profile: azdata.IConnectionProfile, ...args: any[]) => new DataTierApplicationWizard().start(profile, args));
|
||||
}
|
||||
|
||||
public get extensionContext(): vscode.ExtensionContext {
|
||||
return this.context;
|
||||
}
|
||||
|
||||
public dispose(): void {
|
||||
this.deactivate();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user