File tree 1 file changed +1
-6
lines changed
1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -41,17 +41,12 @@ export class GrepCommand extends ExCommand {
41
41
this . arguments = args ;
42
42
}
43
43
44
- async execute ( vimState : VimState ) : Promise < void > {
44
+ async execute ( ) : Promise < void > {
45
45
const { pattern, files } = this . arguments ;
46
46
console . log ( 'GrepCommand' , pattern . patternString , files ) ;
47
47
if ( files . length === 0 ) {
48
48
throw error . VimError . fromCode ( error . ErrorCode . NoFileName ) ;
49
49
}
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 ) ;
55
50
// 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
56
51
// https://code.visualstudio.com/api/references/commands
57
52
// This link on the other hand has the commands and I used this as a reference
You can’t perform that action at this time.
0 commit comments