Skip to content

Commit 565e0ad

Browse files
committed
Remove GetAllCommands.
Refactor into a single command. If nothing is passed, it will return all objects.
1 parent c225770 commit 565e0ad

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/features/GetCommands.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { IFeature } from "../feature";
77

88
// TODO: Document this export: https://github.com/PowerShell/vscode-powershell/pull/1406#discussion_r209325655
99
// TODO: Also use something other than any if possible... We may have already addressed this with a previous attempt.
10-
export const GetAllCommandsRequestType = new RequestType<any, any, void, void>("powerShell/getAllCommands");
10+
export const GetAllCommandsRequestType = new RequestType<any, any, void, void>("powerShell/getCommand");
1111

1212
export class GetCommandsFeature implements IFeature {
1313
private command: vscode.Disposable;
@@ -104,6 +104,8 @@ class Command extends vscode.TreeItem {
104104

105105
public async getChildren(element): Promise<Command[]> {
106106
return [];
107-
// TODO: Determine why we're returning an empty array... I think it's because we have to return something and we're not actually using the tree view part just yet...
107+
// TODO: Determine why we're returning an empty array...
108+
// I think it's because we have to return something and
109+
// we're not actually using the tree view part just yet...
108110
}
109111
}

0 commit comments

Comments
 (0)