Adding inline actions to OE (#23101)

This commit is contained in:
Aasim Khan
2023-05-13 09:24:49 -07:00
committed by GitHub
parent 31a88cc9eb
commit 2beba9ac08
18 changed files with 279 additions and 66 deletions

View File

@@ -88,6 +88,8 @@ export class ConnectionManagementService extends Disposable implements IConnecti
private _onConnectionProfileGroupEdited = new Emitter<ConnectionProfileGroup>();
private _onConnectionProfileGroupMoved = new Emitter<ConnectionElementMovedParams>();
private _onRecentConnectionProfileDeleted = new Emitter<ConnectionProfile>();
private _mementoContext: Memento;
private _mementoObj: MementoObject;
private _connectionStore: ConnectionStore;
@@ -246,6 +248,10 @@ export class ConnectionManagementService extends Disposable implements IConnecti
return this._onConnectionProfileGroupMoved.event;
}
public get onRecentConnectionProfileDeleted(): Event<ConnectionProfile> {
return this._onRecentConnectionProfileDeleted.event;
}
public get providerNameToDisplayNameMap(): { readonly [providerDisplayName: string]: string } {
return this._providerNameToDisplayNameMap;
}
@@ -829,6 +835,7 @@ export class ConnectionManagementService extends Disposable implements IConnecti
public clearRecentConnection(connectionProfile: interfaces.IConnectionProfile): void {
this._connectionStore.removeRecentConnection(connectionProfile);
this._onRecentConnectionProfileDeleted.fire(<ConnectionProfile>connectionProfile);
}
public getActiveConnections(providers?: string[]): ConnectionProfile[] {