@@ -20,6 +20,6 @@ export default class EnvironmentsTreeItem extends TreeItem implements GithubLoca
|
|||||||
items.push(new EnvironmentTreeItem(this.workspaceFolder, environment));
|
items.push(new EnvironmentTreeItem(this.workspaceFolder, environment));
|
||||||
}
|
}
|
||||||
|
|
||||||
return items;
|
return items.sort((a, b) => a.label!.toString().localeCompare(b.label!.toString()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -21,6 +21,6 @@ export default class InputsTreeItem extends TreeItem implements GithubLocalActio
|
|||||||
items.push(new InputTreeItem(this.workspaceFolder, input));
|
items.push(new InputTreeItem(this.workspaceFolder, input));
|
||||||
}
|
}
|
||||||
|
|
||||||
return items;
|
return items.sort((a, b) => a.label!.toString().localeCompare(b.label!.toString()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -21,6 +21,6 @@ export default class SecretsTreeItem extends TreeItem implements GithubLocalActi
|
|||||||
items.push(new SecretTreeItem(this.workspaceFolder, secret));
|
items.push(new SecretTreeItem(this.workspaceFolder, secret));
|
||||||
}
|
}
|
||||||
|
|
||||||
return items;
|
return items.sort((a, b) => a.label!.toString().localeCompare(b.label!.toString()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
import { ThemeIcon, TreeItem, TreeItemCollapsibleState, WorkspaceFolder } from "vscode";
|
import { ThemeIcon, TreeItem, TreeItemCollapsibleState, WorkspaceFolder } from "vscode";
|
||||||
import { act } from "../../extension";
|
import { act } from "../../extension";
|
||||||
|
import { StorageKey } from "../../storageManager";
|
||||||
import { GithubLocalActionsTreeItem } from "../githubLocalActionsTreeItem";
|
import { GithubLocalActionsTreeItem } from "../githubLocalActionsTreeItem";
|
||||||
import VariableTreeItem from "./variable";
|
import VariableTreeItem from "./variable";
|
||||||
import { StorageKey } from "../../storageManager";
|
|
||||||
|
|
||||||
export default class VariablesTreeItem extends TreeItem implements GithubLocalActionsTreeItem {
|
export default class VariablesTreeItem extends TreeItem implements GithubLocalActionsTreeItem {
|
||||||
static contextValue = 'githubLocalActions.variables';
|
static contextValue = 'githubLocalActions.variables';
|
||||||
@@ -21,6 +21,6 @@ export default class VariablesTreeItem extends TreeItem implements GithubLocalAc
|
|||||||
items.push(new VariableTreeItem(this.workspaceFolder, variable));
|
items.push(new VariableTreeItem(this.workspaceFolder, variable));
|
||||||
}
|
}
|
||||||
|
|
||||||
return items;
|
return items.sort((a, b) => a.label!.toString().localeCompare(b.label!.toString()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -14,12 +14,12 @@ export default class WorkspaceFolderWorkflowsTreeItem extends TreeItem implement
|
|||||||
|
|
||||||
async getChildren(): Promise<GithubLocalActionsTreeItem[]> {
|
async getChildren(): Promise<GithubLocalActionsTreeItem[]> {
|
||||||
const items: GithubLocalActionsTreeItem[] = [];
|
const items: GithubLocalActionsTreeItem[] = [];
|
||||||
|
|
||||||
const workflows = await act.workflowsManager.getWorkflows(this.workspaceFolder);
|
const workflows = await act.workflowsManager.getWorkflows(this.workspaceFolder);
|
||||||
for (const workflow of workflows) {
|
for (const workflow of workflows) {
|
||||||
items.push(new WorkflowTreeItem(this.workspaceFolder, workflow));
|
items.push(new WorkflowTreeItem(this.workspaceFolder, workflow));
|
||||||
}
|
}
|
||||||
|
|
||||||
return items;
|
return items.sort((a, b) => a.label!.toString().localeCompare(b.label!.toString()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user