update comments and name for clarity (#15504)

This commit is contained in:
Kim Santiago
2021-05-19 11:03:53 -07:00
committed by GitHub
parent b3d3906f76
commit 6b189be781
5 changed files with 6 additions and 6 deletions

View File

@@ -80,7 +80,7 @@ declare module 'dataworkspace' {
/** /**
* Gets the project actions to be placed on the dashboard toolbar * Gets the project actions to be placed on the dashboard toolbar
*/ */
readonly projectActions: (IProjectAction | IProjectActionGroup)[]; readonly projectToolbarActions: (IProjectAction | IProjectActionGroup)[];
/** /**
* Gets the project image to be used as background in dashboard container * Gets the project image to be used as background in dashboard container

View File

@@ -62,7 +62,7 @@ export class ProjectDashboard {
} }
private createToolbarContainer(projectFilePath: string): azdata.ToolbarContainer { private createToolbarContainer(projectFilePath: string): azdata.ToolbarContainer {
const projectActions: (IProjectAction | IProjectActionGroup)[] = this.projectProvider!.projectActions; const projectActions: (IProjectAction | IProjectActionGroup)[] = this.projectProvider!.projectToolbarActions;
// Add actions as buttons // Add actions as buttons
const buttons: azdata.ToolbarComponent[] = []; const buttons: azdata.ToolbarComponent[] = [];

View File

@@ -32,7 +32,7 @@ export function createProjectProvider(projectTypes: IProjectType[], projectActio
createProject: (name: string, location: vscode.Uri, projectTypeId: string): Promise<vscode.Uri> => { createProject: (name: string, location: vscode.Uri, projectTypeId: string): Promise<vscode.Uri> => {
return Promise.resolve(location); return Promise.resolve(location);
}, },
projectActions: projectActions, projectToolbarActions: projectActions,
getDashboardComponents: (projectFile: string): IDashboardTable[] => { getDashboardComponents: (projectFile: string): IDashboardTable[] => {
return dashboardComponents; return dashboardComponents;
} }

View File

@@ -91,7 +91,7 @@ suite('workspaceTreeDataProvider Tests', function (): void {
createProject: (name: string, location: vscode.Uri): Promise<vscode.Uri> => { createProject: (name: string, location: vscode.Uri): Promise<vscode.Uri> => {
return Promise.resolve(location); return Promise.resolve(location);
}, },
projectActions: [{ projectToolbarActions: [{
id: 'Add', id: 'Add',
run: async (): Promise<any> => { return Promise.resolve(); } run: async (): Promise<any> => { return Promise.resolve(); }
}, },

View File

@@ -85,9 +85,9 @@ export class SqlDatabaseProjectProvider implements dataworkspace.IProjectProvide
} }
/** /**
* Gets the supported project types * Gets the project actions to be placed on the dashboard toolbar
*/ */
get projectActions(): (dataworkspace.IProjectAction | dataworkspace.IProjectActionGroup)[] { get projectToolbarActions(): (dataworkspace.IProjectAction | dataworkspace.IProjectActionGroup)[] {
const addItemAction: dataworkspace.IProjectAction = { const addItemAction: dataworkspace.IProjectAction = {
id: constants.addItemAction, id: constants.addItemAction,
icon: IconPathHelper.add, icon: IconPathHelper.add,