Repository navigation
Commit bb8f2f1
committed
Rename mode to target across extension components
- sometimes we have such code blocks which use 'diff' markdown code block but in fact contain search/replace [Pasted text]
- in `apps/editor/src/commands/apply-response-command/utils/response-parser/parsers/multiple-files-parser/test/cases/merge-conflicts-in-separate-code-blocks/merge-conflicts-in-separate-code-blocks.txt` changing [Fragment] to "### File: `src\index.ts`", breaks the parser
- rename to 'target button'
├── apps
│ └── editor
│ └── src
│ ├── commands
│ │ └── apply-response-command
│ │ ├── apply-response-command.ts
│ │ ├── handlers
│ │ │ ├── diff-handler.ts
│ │ │ ├── fast-replace-handler.ts
│ │ │ ├── restore-preview-handler.ts
│ │ │ ├── search-replace-handler.ts
│ │ │ └── truncated-handler.ts
│ │ ├── response-processor.ts
│ │ └── utils
│ │ └── response-parser
│ │ ├── parsers
│ │ │ ├── diff-parser
│ │ │ │ └── diff-parser.ts
│ │ │ └── multiple-files-parser
│ │ │ ├── helpers
│ │ │ │ ├── create-or-update-file-item.ts
│ │ │ │ ├── extract-and-set-workspace-path.ts
│ │ │ │ ├── flush-text-block.ts
│ │ │ │ └── process-conflict-markers.ts
│ │ │ ├── index.ts
│ │ │ ├── multiple-files-parser.ts
│ │ │ └── test
│ │ │ ├── cases
│ │ │ │ ├── conflict-with-inline-file
│ │ │ │ │ ├── 1-file.txt
│ │ │ │ │ ├── 2-conflict-with-inline-file.txt
│ │ │ │ │ └── conflict-with-inline-file.txt
│ │ │ │ ├── delete-file-header
│ │ │ │ │ ├── 1-text.txt
│ │ │ │ │ ├── 2-file.txt
│ │ │ │ │ ├── 3-text.txt
│ │ │ │ │ └── delete-file-header.txt
│ │ │ │ ├── merge-conflicts-in-separate-code-blocks
│ │ │ │ │ ├── 1-file.txt
│ │ │ │ │ └── merge-conflicts-in-separate-code-blocks.txt
│ │ │ │ ├── merge-conflicts-merge-the-same-file
│ │ │ │ │ ├── 1-text.txt
│ │ │ │ │ ├── 2-file.txt
│ │ │ │ │ └── merge-conflicts-merge-the-same-file.txt
│ │ │ │ ├── merge-conflicts-three-dots
│ │ │ │ │ ├── 1-file.txt
│ │ │ │ │ └── merge-conflicts-three-dots.txt
│ │ │ │ ├── multiple-markdowns-with-headings
│ │ │ │ │ ├── 1-file.txt
│ │ │ │ │ ├── 2-file.txt
│ │ │ │ │ └── multiple-markdowns-with-headings.txt
│ │ │ │ ├── path-above-code-block
│ │ │ │ │ ├── 1-text.txt
│ │ │ │ │ ├── 2-file.txt
│ │ │ │ │ └── path-above-code-block.txt
│ │ │ │ ├── path-above-code-block-bold
│ │ │ │ │ ├── 1-file.txt
│ │ │ │ │ └── path-above-code-block-bold.txt
│ │ │ │ ├── path-above-code-block-raw
│ │ │ │ │ ├── 1-file.txt
│ │ │ │ │ └── path-above-code-block-raw.txt
│ │ │ │ ├── path-above-code-block-renaming
│ │ │ │ │ ├── 1-file.txt
│ │ │ │ │ └── path-above-code-block-renaming.txt
│ │ │ │ ├── path-in-backticks-comment-with-intermediate-text
│ │ │ │ │ ├── 1-text.txt
│ │ │ │ │ ├── 2-file.txt
│ │ │ │ │ └── path-in-backticks-comment-with-intermediate-text.txt
│ │ │ │ ├── path-in-backticks-no-intermediate-empty-lines
│ │ │ │ │ ├── 1-file.txt
│ │ │ │ │ └── path-in-backticks-no-intermediate-empty-lines.txt
│ │ │ │ └── text-below-code-block
│ │ │ │ ├── 1-file.txt
│ │ │ │ ├── 2-text.txt
│ │ │ │ └── text-below-code-block.txt
│ │ │ └── multiple-files-parser.spec.ts
│ │ └── response-parser.ts
│ └── views
│ └── prompt
│ └── frontend
│ └── Home
│ └── Home.tsx
└── packages
└── ui
└── src
└── components
└── editor
└── prompt
└── TargetButton
├── TargetButton.module.scss
├── TargetButton.stories.tsx
├── TargetButton.tsx
└── index.ts1 parent 2c6b0d6 commit bb8f2f1
49 files changed
Lines changed: 430 additions & 401 deletions
File tree
- apps/editor
- src
- commands/apply-response-command/utils/response-parser
- parsers/multiple-files-parser
- constants
- views
- prompt
- backend
- message-handlers
- frontend
- Home
- hooks
- Main
- MainView
- components/Header
- hooks
- hooks
- hooks/use-prompt
- hooks
- i18n/translations
- types
- settings
- backend
- message-handlers
- frontend
- Home
- sections
- hooks
- i18n/translations
- types
- packages
- ui/src/components/editor
- common/prompts
- PromptField
- hooks
- prompt
- ModeButton
- TargetButton
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
965 | 965 | | |
966 | 966 | | |
967 | 967 | | |
968 | | - | |
| 968 | + | |
969 | 969 | | |
970 | 970 | | |
971 | 971 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
288 | 294 | | |
289 | 295 | | |
290 | 296 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
117 | 122 | | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
123 | 129 | | |
124 | 130 | | |
125 | 131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
0 commit comments