mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 09:35:39 -05:00
skuRecommendationPage & azdata change (#11863)
* skuRecommendationPage * fix
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
|
||||
import * as azdata from 'azdata';
|
||||
import * as vscode from 'vscode';
|
||||
import { SKURecommendations } from './externalContract';
|
||||
|
||||
export enum State {
|
||||
INIT,
|
||||
@@ -28,6 +29,7 @@ export interface Model {
|
||||
readonly sourceConnection: azdata.connection.Connection;
|
||||
readonly currentState: State;
|
||||
gatheringInformationError: string | undefined;
|
||||
skuRecommendations: SKURecommendations | undefined;
|
||||
}
|
||||
|
||||
export interface StateChangeEvent {
|
||||
@@ -39,6 +41,7 @@ export class MigrationStateModel implements Model, vscode.Disposable {
|
||||
private _stateChangeEventEmitter = new vscode.EventEmitter<StateChangeEvent>();
|
||||
private _currentState: State;
|
||||
private _gatheringInformationError: string | undefined;
|
||||
private _skuRecommendations: SKURecommendations | undefined;
|
||||
|
||||
constructor(private readonly _sourceConnection: azdata.connection.Connection) {
|
||||
this._currentState = State.INIT;
|
||||
@@ -68,6 +71,14 @@ export class MigrationStateModel implements Model, vscode.Disposable {
|
||||
this._gatheringInformationError = error;
|
||||
}
|
||||
|
||||
public get skuRecommendations(): SKURecommendations | undefined {
|
||||
return this._skuRecommendations;
|
||||
}
|
||||
|
||||
public set skuRecommendations(recommendations: SKURecommendations | undefined) {
|
||||
this._skuRecommendations = recommendations;
|
||||
}
|
||||
|
||||
public get stateChangeEvent(): vscode.Event<StateChangeEvent> {
|
||||
return this._stateChangeEventEmitter.event;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user