We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44bd327 commit d13a934Copy full SHA for d13a934
1 file changed
packages/vscode/src/commands/apply-chat-response-command/utils/preview/vscode-ui.ts
@@ -34,15 +34,17 @@ export const show_diff_with_actions = async (
34
35
const title = path.basename(prepared_file.reviewable_file.file_path)
36
37
- await vscode.commands.executeCommand(
38
- 'vscode.diff',
39
- left_doc_uri,
40
- right_doc_uri,
41
- title,
42
- {
43
- preview: false
44
- }
45
- )
+ if (!prepared_file.reviewable_file.is_deleted) {
+ await vscode.commands.executeCommand(
+ 'vscode.diff',
+ left_doc_uri,
+ right_doc_uri,
+ title,
+ {
+ preview: false
+ }
46
+ )
47
48
49
return new Promise<CodeReviewResult>((resolve) => {
50
response_preview_promise_resolve = async (decision) => {
0 commit comments