Repository navigation
Commit 7bd5a8b
committed
Replace prompt type and commit message indicators with an explicit inject apply response button flag
- rename 'is for commit message' to 'inject apply response button', also set it to true when prompt type is 'edit files', 'find relevant files' or 'code at cursor'
- don't send 'prompt type' to the browser, 'inject apply response button' is enough
├── apps
│ ├── browser
│ │ └── src
│ │ ├── background
│ │ │ └── message-handler.ts
│ │ └── content-scripts
│ │ └── send-prompt-content-script
│ │ └── send-prompt-content-script.ts
│ └── editor
│ └── src
│ ├── commands
│ │ ├── code-at-cursor-command
│ │ │ └── utils
│ │ │ └── get-code-at-cursor-config.ts
│ │ └── generate-commit-message-commands
│ │ └── actions
│ │ └── run-generate-action.ts
│ ├── constants
│ │ └── state-keys.ts
│ ├── services
│ │ └── websocket-manager.ts
│ ├── utils
│ │ └── changes-integration
│ │ └── diff-processor
│ │ └── test-cases
│ │ └── generic-6
│ │ ├── diff.txt
│ │ ├── expected.txt
│ │ └── original.txt
│ └── views
│ └── prompt
│ ├── backend
│ │ ├── message-handlers
│ │ │ ├── handle-autofill.ts
│ │ │ ├── handle-copy-prompt.ts
│ │ │ ├── handle-get-api-prompt-type.ts
│ │ │ ├── handle-get-web-prompt-type.ts
│ │ │ ├── handle-hash-sign-quick-pick
│ │ │ │ └── handle-hash-sign-quick-pick.ts
│ │ │ ├── handle-make-api-call.ts
│ │ │ ├── handle-preview-web-configuration.ts
│ │ │ ├── handle-prompt-template-quick-pick.ts
│ │ │ ├── handle-save-api-prompt-type.ts
│ │ │ ├── handle-save-history.ts
│ │ │ ├── handle-save-instructions.ts
│ │ │ ├── handle-save-web-prompt-type.ts
│ │ │ ├── handle-update-api-configuration.ts
│ │ │ ├── handle-update-last-used-web-configuration.ts
│ │ │ └── handle-update-web-configuration.ts
│ │ └── prompt-view-provider.ts
│ ├── frontend
│ │ ├── Main
│ │ │ ├── Main.tsx
│ │ │ └── MainView
│ │ │ ├── MainView.tsx
│ │ │ ├── components
│ │ │ │ └── Header
│ │ │ │ ├── Header.tsx
│ │ │ │ └── hooks
│ │ │ │ ├── use-alternate-prompt-type.ts
│ │ │ │ └── use-keyboard-shortcuts.ts
│ │ │ ├── hooks
│ │ │ │ └── use-invocation-counts.ts
│ │ │ └── prompt-type-labels.ts
│ │ ├── Prompt.tsx
│ │ └── hooks
│ │ └── use-prompt
│ │ ├── hooks
│ │ │ └── use-instructions.ts
│ │ └── use-prompt.ts
│ └── types
│ └── messages.ts
└── packages
├── shared
│ └── src
│ └── types
│ └── websocket-message.ts
└── ui
└── src
└── components
└── editor
└── prompt
└── prompts
└── PromptField
├── PromptField.stories.tsx
└── PromptField.tsx1 parent 2b693b8 commit 7bd5a8b
7 files changed
Lines changed: 23 additions & 30 deletions
File tree
- apps
- browser/src
- background
- content-scripts/send-prompt-content-script
- editor/src
- commands/generate-commit-message-commands/actions
- services
- views/prompt/backend/message-handlers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | | - | |
| 81 | + | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
| 191 | + | |
198 | 192 | | |
199 | 193 | | |
200 | 194 | | |
| |||
225 | 219 | | |
226 | 220 | | |
227 | 221 | | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
| 222 | + | |
233 | 223 | | |
234 | 224 | | |
235 | 225 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
298 | | - | |
| 298 | + | |
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| |||
366 | 365 | | |
367 | 366 | | |
368 | 367 | | |
369 | | - | |
370 | 368 | | |
371 | | - | |
| 369 | + | |
372 | 370 | | |
373 | 371 | | |
374 | 372 | | |
| |||
457 | 455 | | |
458 | 456 | | |
459 | 457 | | |
460 | | - | |
461 | 458 | | |
462 | 459 | | |
463 | | - | |
| 460 | + | |
464 | 461 | | |
465 | 462 | | |
466 | 463 | | |
| |||
478 | 475 | | |
479 | 476 | | |
480 | 477 | | |
481 | | - | |
| 478 | + | |
482 | 479 | | |
483 | 480 | | |
484 | 481 | | |
| |||
563 | 560 | | |
564 | 561 | | |
565 | 562 | | |
566 | | - | |
567 | | - | |
| 563 | + | |
| 564 | + | |
568 | 565 | | |
569 | 566 | | |
570 | 567 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
136 | | - | |
| 135 | + | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
206 | 210 | | |
207 | 211 | | |
208 | 212 | | |
209 | 213 | | |
210 | 214 | | |
211 | 215 | | |
212 | | - | |
213 | | - | |
| 216 | + | |
| 217 | + | |
214 | 218 | | |
215 | 219 | | |
216 | 220 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
177 | 180 | | |
178 | 181 | | |
179 | 182 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | 28 | | |
30 | 29 | | |
31 | | - | |
| 30 | + | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
| |||
0 commit comments