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 @@ -50,7 +50,21 @@ export class FsRead {
50
50
public queueDescription ( updates : Writable ) : void {
51
51
const fileName = path . basename ( this . fsPath )
52
52
const fileUri = vscode . Uri . file ( this . fsPath )
53
- updates . write ( `Reading: [${ fileName } ](${ fileUri } )` )
53
+ updates . write ( `Reading file: [${ fileName } ](${ fileUri } ), ` )
54
+
55
+ const [ start , end ] = this . readRange ?? [ ]
56
+
57
+ if ( start && end ) {
58
+ updates . write ( `from line ${ start } to ${ end } ` )
59
+ } else if ( start ) {
60
+ if ( start > 0 ) {
61
+ updates . write ( `from line ${ start } to end of file` )
62
+ } else {
63
+ updates . write ( `${ start } line from the end of file to end of file` )
64
+ }
65
+ } else {
66
+ updates . write ( 'all lines' )
67
+ }
54
68
updates . end ( )
55
69
}
56
70
You can’t perform that action at this time.
0 commit comments