Repository navigation
Commit 8841703
committed
Add context-aware apply prompts for clipboard responses and agentic CLI terminals while validating applicability
- rename 'ResponsePreview' to 'CodeReview'
- should refer to 'preview'/'response preview' as 'code review'. you're allowed to change fodler, file, identifiers etc. names
└── apps
└── editor
└── src
├── commands
│ ├── apply-from-clipboard-command.ts
│ └── apply-from-terminal-command.ts
├── extension.ts
├── features
│ └── apply-response
│ ├── apply-response.ts
│ ├── index.ts
│ ├── response-processor
│ │ ├── handlers
│ │ │ ├── diff-handler.ts
│ │ │ ├── fast-replace-handler.ts
│ │ │ ├── search-replace-handler.ts
│ │ │ └── truncated-handler.ts
│ │ ├── index.ts
│ │ └── response-processor.ts
│ ├── types
│ │ └── original-file-state.ts
│ └── utils
│ ├── file-checks.ts
│ ├── file-operations
│ │ ├── apply-file-content.ts
│ │ ├── apply-file-relocations.ts
│ │ ├── cleanup-rename-source.ts
│ │ ├── close-file-tabs.ts
│ │ ├── create-file-if-needed.ts
│ │ ├── ensure-directory.ts
│ │ ├── get-rename-source-info.ts
│ │ ├── handle-deleted-file-item.ts
│ │ ├── index.ts
│ │ ├── prepare-rename-operation.ts
│ │ ├── preserve-newline.ts
│ │ ├── read-rename-source-file.ts
│ │ ├── relocate-file.ts
│ │ ├── remove-directory-if-empty.ts
│ │ ├── undo-files.ts
│ │ └── uri-exists.ts
│ ├── state-manager.ts
│ ├── tab-group-manager.ts
│ └── workspace.ts
├── i18n
│ └── translations
│ └── commands
│ └── apply-from-terminal-command.ts
├── services
│ └── websocket-manager.ts
└── views
└── prompt
├── backend
│ ├── message-handlers
│ │ ├── handle-apply-response-from-history.ts
│ │ ├── handle-invoke-agentic-cli.ts
│ │ ├── handle-make-api-call.ts
│ │ ├── handle-request-can-undo.ts
│ │ └── handle-undo.ts
│ └── prompt-view-provider.ts
├── frontend
│ └── Prompt.tsx
└── types
└── messages.ts1 parent 6d8f4b9 commit 8841703
201 files changed
Lines changed: 345 additions & 1434 deletions
File tree
- apps/editor/src
- commands
- apply-response-command/utils/response-parser/parsers
- code-at-cursor-parser/test/cases
- standard
- with-text
- diff-parser/test/cases
- deletion-via-header
- deletion-via-redundant-header
- file-deletion
- git-and-hunk-header-same-line
- git-broken-hunk-header
- git-two-header-types
- ignore-ellipsis
- inner-backticks
- inner-triple-backticks
- markdown-missing-ending
- markdown-path-above-no-hunk-header
- markdown-path-above-with-text-containing-path
- markdown-path-above
- markdown-redundant-closing-backticks
- markdown-repeated-path-above
- markdown-unnecessary-empty-lines
- mix-delete-and-new-file
- mix-new-file-from-heading-and-diff
- mix-new-file-from-xml-tag-heading-and-diff
- mix-new-file-xml-and-diff-variant-1
- mix-new-file-xml-and-diff-variant-2
- mix-rename-and-update
- mix-rename-one-liner-and-diff
- multiple-edits-for-the-same-file
- multiple-files-git-and-hunk-header-same-line
- multiple-files-no-markdown-block
- multiple-files-no-prefix-single-markdown-block
- multiple-files-same-line-backticks
- multiple-files-separate-markdown-blocks
- multiple-files-single-markdown-block
- multiple-files-text-between
- multiple-files-with-git-headers-no-file-lines
- multiple-files-with-git-headers-separate-markdown-blocks
- multiple-files-with-quoted-paths
- multiple-files-with-timestamps
- multiple-new-files-separate-markdown-blocks
- new-file-based-on-empty-file
- new-file-with-git-header
- no-markdown-or-git-header
- no-prefix
- non-diff-code-blocks
- rename
- with-empty-lines-between
- with-git-header-no-file-lines
- with-git-header-no-markdown
- with-quoted-paths
- with-timestamps
- with-xml-file-path
- within-xml-tags-unquoted-path
- within-xml-tags-with-cdata
- within-xml-tags
- standard-parser/test/cases
- code-block-without-newlines
- conflict-with-inline-file
- delete-file-header
- merge-conflicts-file-path-as-bold-text
- merge-conflicts-in-separate-code-blocks
- merge-conflicts-merge-the-same-file
- merge-conflicts-three-dots
- multiple-markdowns-with-headings
- path-above-code-block-bold
- path-above-code-block-raw
- path-above-code-block-renaming
- path-above-code-block
- path-in-backticks-comment-with-intermediate-text
- path-in-backticks-no-intermediate-empty-lines
- text-below-code-block
- features/apply-response
- response-processor
- i18n/translations
- commands
- views/prompt/handlers
- utils
- agentic-cli-invocation
- views/prompt
- backend
- message-handlers
- frontend
- Main
- MainView
- contexts
- i18n/translations
- types
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 | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
4 | 7 | | |
5 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
6 | 11 | | |
7 | 12 | | |
8 | 13 | | |
| |||
17 | 22 | | |
18 | 23 | | |
19 | 24 | | |
20 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
21 | 48 | | |
22 | 49 | | |
23 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
100 | 101 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
| 102 | + | |
113 | 103 | | |
114 | 104 | | |
115 | 105 | | |
| |||
0 commit comments