File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,6 @@ export function gitGrep(): Curator<Detail> {
55
55
. pipeThrough ( new TextDecoderStream ( ) )
56
56
. pipeThrough ( new TextLineStream ( ) ) ;
57
57
58
- let id = 0 ;
59
58
for await ( const record of stream ) {
60
59
// Abort if the signal is triggered
61
60
signal ?. throwIfAborted ( ) ;
@@ -70,7 +69,7 @@ export function gitGrep(): Curator<Detail> {
70
69
71
70
// Yield a structured item for each matched line
72
71
yield {
73
- id : id ++ ,
72
+ id : ` ${ abspath } : ${ line } : ${ column } ` ,
74
73
value : `${ abspath } :${ line } :${ column } :${ context } ` ,
75
74
detail : {
76
75
path : abspath ,
Original file line number Diff line number Diff line change @@ -57,7 +57,6 @@ export function grep(): Curator<Detail> {
57
57
. pipeThrough ( new TextDecoderStream ( ) )
58
58
. pipeThrough ( new TextLineStream ( ) ) ;
59
59
60
- let id = 0 ;
61
60
for await ( const record of stream ) {
62
61
// Abort if the signal is triggered
63
62
signal ?. throwIfAborted ( ) ;
@@ -71,7 +70,7 @@ export function grep(): Curator<Detail> {
71
70
72
71
// Yield a structured item for each matched line
73
72
yield {
74
- id : id ++ ,
73
+ id : ` ${ path } : ${ line } ` ,
75
74
value : `${ path } :${ line } :${ context } ` ,
76
75
detail : {
77
76
path,
Original file line number Diff line number Diff line change @@ -57,7 +57,6 @@ export function rg(): Curator<Detail> {
57
57
. pipeThrough ( new TextDecoderStream ( ) )
58
58
. pipeThrough ( new TextLineStream ( ) ) ;
59
59
60
- let id = 0 ;
61
60
for await ( const record of stream ) {
62
61
// Abort if the signal is triggered
63
62
signal ?. throwIfAborted ( ) ;
@@ -71,7 +70,7 @@ export function rg(): Curator<Detail> {
71
70
72
71
// Yield a structured item for each matched line
73
72
yield {
74
- id : id ++ ,
73
+ id : ` ${ path } : ${ line } : ${ column } ` ,
75
74
value : `${ path } :${ line } :${ column } :${ context } ` ,
76
75
detail : {
77
76
path,
You can’t perform that action at this time.
0 commit comments