Skip to content

Commit 09cbf5f

Browse files
committed
removed the console log and unneeded argument
1 parent f0b441b commit 09cbf5f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/cmd_line/commands/grep.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,12 @@ export class GrepCommand extends ExCommand {
4141
this.arguments = args;
4242
}
4343

44-
async execute(vimState: VimState): Promise<void> {
44+
async execute(): Promise<void> {
4545
const { pattern, files } = this.arguments;
4646
console.log('GrepCommand', pattern.patternString, files);
4747
if (files.length === 0) {
4848
throw error.VimError.fromCode(error.ErrorCode.NoFileName);
4949
}
50-
const listOfCommands = await vscode.commands.getCommands();
51-
const filteredCommands = listOfCommands.filter(
52-
(cmd) => cmd.toLowerCase().includes('search') || cmd.toLowerCase().includes('find'),
53-
);
54-
console.log('Filtered commands:', filteredCommands);
5550
// There are other arguments that can be passed, but probably need to dig into the VSCode source code, since they are not listed in the API reference
5651
// https://code.visualstudio.com/api/references/commands
5752
// This link on the other hand has the commands and I used this as a reference

0 commit comments

Comments
 (0)