mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
update comments and name for clarity (#15504)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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[] = [];
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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(); }
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user