File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
packages/core/src/codewhispererChat/tools Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,21 @@ export class FsRead {
53
53
public queueDescription ( updates : Writable ) : void {
54
54
const fileName = path . basename ( this . fsPath )
55
55
const fileUri = vscode . Uri . file ( this . fsPath )
56
- updates . write ( `Reading: [${ fileName } ](${ fileUri } )` )
56
+ updates . write ( `Reading file: [${ fileName } ](${ fileUri } ), ` )
57
+
58
+ const [ start , end ] = this . readRange ?? [ ]
59
+
60
+ if ( start && end ) {
61
+ updates . write ( `from line ${ start } to ${ end } ` )
62
+ } else if ( start ) {
63
+ if ( start > 0 ) {
64
+ updates . write ( `from line ${ start } to end of file` )
65
+ } else {
66
+ updates . write ( `${ start } line from the end of file to end of file` )
67
+ }
68
+ } else {
69
+ updates . write ( 'all lines' )
70
+ }
57
71
updates . end ( )
58
72
}
59
73
You can’t perform that action at this time.
0 commit comments