Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions builtin/curator/grep.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,10 @@
* @returns A Curator that yields search results in the form of `GrepDetail`.
*/
export function grep(options: GrepOptions = {}): Curator<Detail> {
let base: string;
return defineCurator(
async function* (denops, { args, query }, { signal }) {
// Determine the root directory for the grep command
base ??= await getAbsolutePathOf(denops, args[0] ?? ".", signal);
const base = await getAbsolutePathOf(denops, args[0] ?? ".", signal);

Check warning on line 46 in builtin/curator/grep.ts

View check run for this annotation

Codecov / codecov/patch

builtin/curator/grep.ts#L46

Added line #L46 was not covered by tests

// Configure the `grep` command with the provided query
const cmd = new Deno.Command("grep", {
Expand Down
3 changes: 1 addition & 2 deletions builtin/curator/rg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,10 @@
* @returns A Curator that yields search results in the form of `RgDetail`.
*/
export function rg(options: RgOptions = {}): Curator<Detail> {
let base: string;
return defineCurator(
async function* (denops, { args, query }, { signal }) {
// Determine the root directory for the rg command
base ??= await getAbsolutePathOf(denops, args[0] ?? ".", signal);
const base = await getAbsolutePathOf(denops, args[0] ?? ".", signal);

Check warning on line 44 in builtin/curator/rg.ts

View check run for this annotation

Codecov / codecov/patch

builtin/curator/rg.ts#L44

Added line #L44 was not covered by tests

// Configure the `rg` command with the provided query
const cmd = new Deno.Command("rg", {
Expand Down