Repository navigation
Commit dda9160
committed
Select the first non-deleted file by default in response preview
- the problem: in response preview, when first file is deleted, and there is some created/modified below, we should focus on first such created/modified file with the diff preview.
├── apps
│ └── editor
│ └── src
│ ├── commands
│ │ └── apply-response-command
│ │ ├── types
│ │ │ └── original-file-state.ts
│ │ └── utils
│ │ ├── file-operations
│ │ │ └── handle-deleted-file-item.ts
│ │ └── preview
│ │ ├── file-preparer.ts
│ │ ├── index.ts
│ │ ├── preview.ts
│ │ ├── types.ts
│ │ └── vscode-ui.ts
│ └── views
│ └── prompt
│ ├── backend
│ │ ├── message-handlers
│ │ │ └── handle-focus-on-file-in-preview.ts
│ │ └── prompt-view-provider.ts
│ ├── frontend
│ │ ├── Prompt.tsx
│ │ └── hooks
│ │ └── use-preview-manager.ts
│ └── types
│ └── messages.ts
└── packages
├── shared
│ └── src
│ └── types
│ └── file-in-preview.ts
└── ui
└── src
└── components
└── editor
└── prompt-view
└── ResponsePreview
├── ResponsePreview.tsx
├── components
│ ├── FileItem
│ │ ├── FileItem.tsx
│ │ └── index.ts
│ └── index.ts
└── index.ts1 parent 7f67d8c commit dda9160
2 files changed
Lines changed: 28 additions & 3 deletions
File tree
- apps/editor/src/commands/apply-response-command/utils/preview
- packages/ui/src/components/editor/prompt-view/ResponsePreview
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
167 | 174 | | |
168 | 175 | | |
169 | 176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
56 | 63 | | |
57 | 64 | | |
58 | 65 | | |
| |||
144 | 151 | | |
145 | 152 | | |
146 | 153 | | |
147 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
148 | 160 | | |
149 | 161 | | |
150 | 162 | | |
| |||
158 | 170 | | |
159 | 171 | | |
160 | 172 | | |
161 | | - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
162 | 180 | | |
163 | 181 | | |
164 | 182 | | |
| |||
0 commit comments