message: Organize api interface
diff: @@ -275,26 +275,15 @@ export type WorkspaceResourceBranchDataProvider<TModel extends WorkspaceResource
  // scope down vscode.TreeDataProvider to exactly what's allowed to be used
  type ResourceGroupsTreeDataProvider = Pick<vscode.TreeDataProvider<unknown>, 'getChildren' | 'getTreeItem'>;
  +export interface AzureResourcesHostApi {
  /**
  * The current (v2) Azure Resources extension API.
  */
  -export interface v2AzureResourcesApi extends AzureExtensionApi {
  + resources: {
  /**
  * {@link vscode.TreeDataProvider} representing the Azure tree view.
  */
  - readonly azureResourceTreeDataProvider: ResourceGroupsTreeDataProvider;
  -
  - /**
  - * {@link vscode.TreeDataProvider} representing the Workspace tree view.
  - */
  - readonly workspaceResourceTreeDataProvider: ResourceGroupsTreeDataProvider;
  -
  - /**
  - * Registers an activity to appear in the activity window.
  - *
  - * @param activity The activity information to show.
  - */
  - registerActivity(activity: Activity): Promise<void>;
  + readonly azureResourcesTreeDataProvider: ResourceGroupsTreeDataProvider;
  /**
  * Registers an Azure resource branch data provider.
  @@ -306,6 +295,11 @@ export interface v2AzureResourcesApi extends AzureExtensionApi {
  */
  registerAzureResourceBranchDataProvider<TModel extends AzureResourceModel>(type: AzExtResourceType, provider: AzureResourceBranchDataProvider<TModel>): vscode.Disposable;
  + /**
  + * {@link vscode.TreeDataProvider} representing the Workspace tree view.
  + */
  + readonly workspaceResourcesTreeDataProvider: ResourceGroupsTreeDataProvider;
  +
  /**
  * Registers a provider of workspace resources.
  *
  @@ -325,7 +319,20 @@ export interface v2AzureResourcesApi extends AzureExtensionApi {
  */
  registerWorkspaceResourceBranchDataProvider<TModel extends WorkspaceResourceModel>(type: WorkspaceResourceType, provider: WorkspaceResourceBranchDataProvider<TModel>): vscode.Disposable;
  }
  +}
  +
  +export interface ActivityApi {
  + activity: {
  + /**
  + * Registers an activity to appear in the activity window.
  + *
  + * @param activity The activity information to show.
  + */
  + registerActivity(activity: Activity): Promise<void>;
  + }
  +}
  +export type AzureResourcesApi = AzureResourcesHostApi & ActivityApi & AzureExtensionApi;
  export declare interface PickSubscriptionWizardContext extends QuickPickWizardContext {
  subscription?: AzureSubscription;
  }
  