test: File Operations#3
Conversation
| @@ -0,0 +1,5 @@ | |||
| // This is a new file | |||
| const greeting = 'Hello'; | |||
There was a problem hiding this comment.
[FO-01] Comment on NEW FILE - rightFileStart only
| @@ -0,0 +1,5 @@ | |||
| // This file will be deleted | |||
| const oldCode = 'legacy'; | |||
| function deprecated() {} | |||
There was a problem hiding this comment.
[FO-02] Comment on DELETED FILE - leftFileStart only
| @@ -0,0 +1,4 @@ | |||
| // This file was renamed | |||
| const content = 'preserved'; | |||
| const addedLine = 'after rename'; | |||
There was a problem hiding this comment.
[FO-03] Comment on RENAMED FILE - track via changeTrackingId
There was a problem hiding this comment.
Pull request overview
This PR demonstrates file operations including file addition, deletion, and renaming. The changes introduce two new files with JavaScript content and include one file marked for deletion.
- New file
new-file.txtadded with basic JavaScript code - File renamed to
new-name.txtwith additional content added after rename - File
file-to-delete.txtmarked for deletion with legacy code
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| src/new-name.txt | Renamed file with preserved content and new line added |
| src/new-file.txt | New file containing basic JavaScript greeting logic |
| src/file-to-delete.txt | File being removed containing deprecated legacy code |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| // This file was renamed | ||
| const content = 'preserved'; | ||
| const addedLine = 'after rename'; | ||
| export { content }; |
There was a problem hiding this comment.
This file contains JavaScript code but uses a .txt extension. Consider using the .js extension instead to properly indicate the file type and enable proper syntax highlighting and tooling support.
| // This is a new file | ||
| const greeting = 'Hello'; | ||
| const target = 'World'; | ||
| console.log(greeting, target); | ||
| // End of new file |
There was a problem hiding this comment.
This file contains JavaScript code but uses a .txt extension. Consider using the .js extension instead to properly indicate the file type and enable proper syntax highlighting and tooling support.
| // This file will be deleted | ||
| const oldCode = 'legacy'; | ||
| function deprecated() {} | ||
| // No longer needed | ||
| export {}; |
There was a problem hiding this comment.
This file contains JavaScript code but uses a .txt extension. Consider using the .js extension instead to properly indicate the file type and enable proper syntax highlighting and tooling support.
| // This file will be deleted | |
| const oldCode = 'legacy'; | |
| function deprecated() {} | |
| // No longer needed | |
| export {}; | |
| This file was used for legacy code and is intentionally left without executable content. | |
| It is safe to delete once all references to it have been removed. |
e5832d8 to
4ce8e0b
Compare
| @@ -0,0 +1,5 @@ | |||
| // This is a new file | |||
| const greeting = 'Hello'; | |||
There was a problem hiding this comment.
[FO-01] Comment on NEW FILE - rightFileStart only
| @@ -0,0 +1,5 @@ | |||
| // This file will be deleted | |||
| const oldCode = 'legacy'; | |||
| function deprecated() {} | |||
There was a problem hiding this comment.
[FO-02] Comment on DELETED FILE - leftFileStart only
| @@ -0,0 +1,4 @@ | |||
| // This file was renamed | |||
| const content = 'preserved'; | |||
| const addedLine = 'after rename'; | |||
There was a problem hiding this comment.
[FO-03] Comment on RENAMED FILE - track via changeTrackingId
Test PR for comments on added/deleted/renamed files