Commit graph

139 commits

Author SHA1 Message Date
Dallin Romney
3078cd9280 fix: instant reject all for VS Code 2025-10-28 16:31:04 -07:00
Dallin Romney
d227a571bb fix: instant apply for search and replace - vs code and jetbrains 2025-10-27 18:43:09 -07:00
Nate Sesti
d78fc99087
feat: add Mercury Apply endpoint support to Inception LLM (#7827)
* feat: add Mercury Apply endpoint support to Inception LLM

* refactor: begin to clean up the apply / streamDiff code

* fix: undo commenting out of instant apply

* fix: use underlyingProviderName
2025-09-18 23:44:25 -07:00
Aditya Mitra
5f61d188e3
fix: focus on the selected file for edit/apply when showing diffs (#7722) 2025-09-16 16:04:36 -07:00
Nate Sesti
bcc5600f29
Merge pull request #7660 from continuedev/pe/autoformat-results
feat: add autoformatting detection for edit tools
2025-09-11 10:36:09 -07:00
Nate
a3e6b9b136 chore: format 2025-09-10 21:44:11 -07:00
Nate
fc4828d010 feat: add filepath to apply prompt template vars 2025-09-09 21:59:48 -07:00
Patrick Erichsen
1f5389f070 updates 2025-09-09 14:14:35 -07:00
Patrick Erichsen
ebded1fc67 Add autoformatting detection for edit tools
Implement autoformatting detection similar to Cline's approach to improve reliability of edit operations. When edit tools (multiEdit/editFile) are executed, the system now captures file content before and after save operations to detect editor autoformatting changes.

Key changes:
- Add `createPrettyPatch` utility using existing `myersDiff` function
- Capture pre/post save content in `processDiff.ts`
- Add `autoFormattingDiff` field to `ApplyState` protocol
- Include autoformatting diff in tool responses with guidance for language model
- Help prevent future edit failures due to undetected formatting changes

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-09 11:11:04 -07:00
uinstinct
c7cfc717a1 feat: focus on chat input after apply 2025-08-25 21:02:37 +05:30
Patrick Erichsen
3253c11821 add modelProvider to PromptLog 2025-08-13 22:06:01 -07:00
Patrick Erichsen
1d9a711b4c fix: standardize modelTitle to modelName in VS Code extension
Complete the dev data schema standardization by fixing remaining
references to modelTitle in the VS Code extension:

- VsCodeMessenger.ts: Update editInteraction logging to use modelName
- vertical/manager.ts: Update edit tracking to use modelName
- EditOutcomeTracker.ts: Update interface and logging to use modelName
- QuickEditQuickPick.ts: Fix misleading variable name for consistency

All dev data schemas now consistently use modelName instead of
modelTitle across the entire codebase.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-12 21:26:08 -07:00
Ting-Wai To
4d44234855 feat: add editOutcome logging for Agent Mode
• Add editOutcome.jsonl logging for Agent Mode accept / rejects
• Capture original file content before applying changes to enable proper diff tracking
• Fix newline handling in IntelliJ and VS Code to prevent line count discrepancies, was causing lineChange count to be off by one
2025-07-24 14:38:04 -07:00
Nate
a2817cdf86 autoscroll to the first diff after apply 2025-07-05 11:27:05 -07:00
Dallin Romney
ac17c39620 remove onlyOneInsertion param 2025-07-02 13:56:05 -07:00
Nate
ee3d421db7 use getInstance() only once 2025-06-30 21:28:36 -07:00
Nate
35d9ba55d9 track editOutcome for apply as well 2025-06-30 18:29:44 -07:00
Nate
965e5d554e add editOutcome to schema, and track streamId per file 2025-06-30 18:02:07 -07:00
Nate
6d9f566c4c Add edit outcome tracking to record accept/reject decisions for AI-generated code changes 2025-06-30 16:11:05 -07:00
Dallin Romney
a2879d13de merge main 2025-06-15 13:20:33 -07:00
Nate
1f5715fb52 lint fix again 2025-06-02 13:04:38 -07:00
Dallin Romney
a1dc1f8aa2 change to reject diffs approach rather than cancel apply approach 2025-05-29 16:04:35 -07:00
Nate
d66bdd9989 npx prettier --check "extensions/vscode/**/*.{js,jsx,ts,tsx,json,css,md
}" --ignore-path .gitignore --ignore-path .prettierignore --write
2025-05-25 18:38:44 -07:00
Dallin Romney
b8b893d3d0 merge main 2025-05-19 10:55:54 -07:00
Patrick Erichsen
49d65f69a1 chore: revert ApplyState name 2025-05-16 13:03:38 -07:00
Dallin Romney
d93d665512 cancelable apply 2025-05-15 15:55:15 -07:00
Patrick Erichsen
e5072fcde0 feat [jb]: pull out apply logic into new class 2025-05-13 15:50:28 -07:00
chezsmithy
4268438eac fix(diff-editor)-performance 2025-05-08 16:42:05 -07:00
Nate Sesti
b84d89c464
Merge pull request #5472 from continuedev/dallin/apply-ghost
Ghost text for removed lines in apply
2025-05-02 18:47:58 -07:00
Dallin Romney
b6ec53d769 patrick requested changes - remove in-block function etc 2025-05-02 18:07:15 -07:00
Dallin Romney
f22dd925af
Merge pull request #5465 from continuedev/dallin/edit-rules
include rules in edit requests
2025-05-02 17:05:34 -07:00
Dallin Romney
1c44b2549d let -> const 2025-05-02 16:20:26 -07:00
Dallin Romney
99cc6b8286 Revert accidental changes 2025-05-01 22:30:50 -07:00
Dallin Romney
b6efb9f9d7 handle diff streaming errors 2025-05-01 22:28:53 -07:00
Dallin Romney
50c12984d3 gs 2025-05-01 22:28:33 -07:00
Dallin Romney
71685897a8 myers cleanup 2025-05-01 21:37:52 -07:00
Dallin Romney
61132a9acf working diff lines, clean up 2025-05-01 21:17:59 -07:00
Dallin Romney
678bc7ae4c sensible renames 2025-05-01 21:06:40 -07:00
Dallin Romney
891e8b32ff red ghost text for apply 2025-05-01 16:21:43 -07:00
Dallin Romney
c77491aae8 include rules in edit 2025-05-01 12:33:37 -07:00
Dallin Romney
bba5a72102 fix merge conflicts 2025-04-13 22:13:28 -07:00
Patrick Erichsen
2f12bbdf25 feat: use instant property on diff manager 2025-04-11 12:32:55 -07:00
Dallin Romney
c277890b40 edit prompts 2025-04-10 21:56:04 -07:00
Patrick Erichsen
96863db15c remove default model title 2025-04-08 21:35:45 -07:00
Dallin Romney
2efd3ff03a working and disable input when pending tool call stream 2025-04-04 03:16:18 -07:00
Nate
4c0314ceca Merge branch 'main' into edit-trailing-whitespace 2025-03-15 19:16:43 -07:00
Nate Sesti
58d62fae8a
Merge pull request #4474 from fbricon/pull-ollama-model
Pull missing ollama models
2025-03-08 08:40:10 -08:00
Fred Bricon
d9c3d447b9 Refactor Ollama error management
Signed-off-by: Fred Bricon <fbricon@gmail.com>
2025-03-06 18:25:34 +01:00
aadarshkt
ec891338b1 typo at various locations 2025-03-06 17:54:26 +05:30
Owen W. Taylor
698633815f reapplyWithMyersDiff(): don't skip trailing blank lines
myersDiff inherits the jsdiff behavior for trailing \n, so would
consider "foo\n" => "foo" a changed single line, rather than a change
from "foo", "" to "foo" - this would result in a trailing blank line
in the highlighted region silently vanishing from the buffer.

Adding \n to the inputs so that lines are \n terminated rather than
separated fixes this.

To make myersDiff logically consistent, pass ignoreNewlineAtEof: true
to jsdiff. (This is actually not needed for this bug fix.)
2025-02-25 15:36:40 -05:00