Commit graph

1625 commits

Author SHA1 Message Date
Dallin Romney
26193d18cd
Merge pull request #7785 from continuedev/dallin/glob-ignores
feat: grep and glob ignores for vscode/jetbrains
2025-09-17 11:10:52 -07:00
Dallin Romney
b842a21708
feat: global req (#7414)
* feat: yaml global requestOptions schema

* feat: merge request options

* fix: config yaml request options cleanup

* fix: mcp request options logic and tests

* feat: inject request options from unroll options

* fix: tests and new tests for merge

* feat: inject request options

* fix: prettier

* chore: package-lock

* chore: package lock

* fix: package lock

* fix: package lock
2025-09-17 10:57:40 -07:00
Tomasz Iniewicz
ca2a5d7f29
Lemonade Integration (#7749) 2025-09-17 10:15:33 -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
Dallin Romney
b7afeb2a52 fix: ignores for grep 2025-09-16 13:52:05 -07:00
Dallin Romney
b18061b126 fix: glob ignores for vscode 2025-09-16 13:38:39 -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
Dallin Romney
580fc938de
Merge pull request #6711 from fbricon/empty-selection-selects-line
feat: allow Cmd+L / Cmd+I on empty selection to select the entire file
2025-09-10 18:49:06 -07:00
Nate
8c18e8acc3 fix: don't stream apply for fast models 2025-09-09 23:53:46 -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
Patrick Erichsen
ef77787ef7 prettier fixes 2025-09-09 09:43:04 -07:00
Fred Bricon
fe8eb5dcbc feat: allow Cmd+L / Cmd+I on empty selection to select the entire file
Signed-off-by: Fred Bricon <fbricon@gmail.com>
2025-09-09 18:19:37 +02:00
Patrick Erichsen
b4dbb32b7f dallins feedback 2025-09-09 00:54:09 -07:00
Dallin Romney
1e51398c61
Merge pull request #7406 from uinstinct/reshape-actions
refactor: reshape vscode actions
2025-09-03 10:51:45 -07:00
Jacob Kim
a8e08ee266 docs: add comments to vscodeextension 2025-08-29 16:19:01 -07:00
Jacob Kim
5992555568 docs: add comment to selection change manager 2025-08-29 16:18:50 -07:00
Jacob Kim
2baa9a3725 docs: add comments to window manager 2025-08-29 16:18:38 -07:00
Jacob Kim
2007d0a410 docs: add comments on jump manager 2025-08-29 16:18:25 -07:00
Jacob Kim
4d35ec435d docs: add docs 2025-08-29 14:35:17 -07:00
uinstinct
945b31b634 revert contextmenuprompts 2025-08-29 16:52:36 +05:30
uinstinct
6271c131d5 Merge branch 'main' into reshape-actions 2025-08-29 16:32:11 +05:30
Jacob Kim
f27e7c71de
feat: add user-friendly way to toggle between FIM and next edit (#7355)
* feat: don't format when model is not mercury

* chore: bump

* fix: remove mercury-coder-nextedit

* refactor: remove refs to mercury-coder-nextedit

* feat: add util function for converting model name to enum

* refactor: add new types

* refactor: create an abstract base class for providers

* refactor: add child provider for instinct

* refactor: add provider for mercury coder

* refactor: provider factory

* refactor: use factory to create model providers based on helper.modelName

* refactor: clean up redundant logic to be more provider-friendly

* add buildPromptMetadata as an abstract method

* refactor: use handlebars and provider-specific template renderers

* refactor: use this.modelProvider instead of prompt engine

* refactor: remove redundant helper

* fix: update vitest after refactor

* feat: add test for convertNextEditModelNameToEnum

* fix: add isSecurityConcern imports

* feat: add functions to return next edit menu items and update config

* fix: get rid of callbacks

* feat: render next edit menu items

* fix: get rid of redundant completion request

* feat: update next edit status on vscode workspace config update, refactor out common logic

* feat: add continue.enableNextEdit

* feat: add aborted field to check for false positives

* fix: remove zetaDataset suffix

* feat: make sure that we are tracking completions

* feat: log aborts and move id generation to the top

* feat: all requests are tracked. when request is aborted, log as aborted with zero-value data. else, graduate it from pending completion and set aborted to false

* feat: add aborted to schema

* feat: add a toggleNextEditEnabled command

* feat: show (NE) in the status bar when next edit is enabled, add keymap

* feat: add command definitions for toggleNextEditEnabled

* refactor: handle validation in VsCodeExtension

* feat: check if model does not support next edit

* feat: use better menu item labels

* fix: casing

* chore: bump

* feat: add a function to disable next edit

* feat: disable next edit before e2e tests

* chore: bump

* fix: add a small delay to wait for UI loading

* fix: NE is shown for all statuses

* fix: wait for the NE to pop up

* fix: wait longer for disableNextEdit, clear potential next edit notifications

* fix: roll back clearAllNotifications

* fix: try disabling next edit before each

* fix: revert

* feat: add sane defaults when no workspace settings are set

* fix: fall back to false

* fix: debugging

* chore: change name

* fix: try waiting for text

* debug: more debug logs

* fix: clear notifs

* fix: suppress warning

* fix: string matching

* fix: jump label overlapping with the inline tip label (#7399)

* feat: add methods to temporarily hide and show tooltip

* feat: hide the inline tooltip when the jumpmanager's tooltip is shown

* feat: focus on chat input after apply

* revert

* fix: HOTFIX local assistant loading (#7354)

* fix: local assistant loading

* fix: no need for excluding .continue/.continue

* test: cases for config.yml and config.yaml names

* feat: remove hide/show logic for creating a new svgbuilder instance

* feat: use a new svgBuilder istance

* chore: update package-lock.json

---------

Co-authored-by: uinstinct <61635505+uinstinct@users.noreply.github.com>
Co-authored-by: Dallin Romney <dallinromney@gmail.com>
Co-authored-by: Ting-Wai <40179554+tingwai@users.noreply.github.com>

---------

Co-authored-by: uinstinct <61635505+uinstinct@users.noreply.github.com>
Co-authored-by: Dallin Romney <dallinromney@gmail.com>
Co-authored-by: Ting-Wai <40179554+tingwai@users.noreply.github.com>
2025-08-26 21:54:29 -04:00
uinstinct
469d29dc0e remove contextmenuprompts experimental config
- also remove json reference docs
2025-08-26 17:14:40 +05:30
uinstinct
fb6a80433c remove vscode quick actions 2025-08-26 16:40:07 +05:30
uinstinct
c7cfc717a1 feat: focus on chat input after apply 2025-08-25 21:02:37 +05:30
Dallin Romney
fa9eb17e84 merge: main 2025-08-22 12:26:37 -07:00
Dallin Romney
837f4dd149
Merge pull request #7268 from continuedev/jacob/con-3594
fix: tab and esc are properly reserved
2025-08-22 11:48:40 -07:00
Dallin Romney
540ac7815e Merge branch 'main' of https://github.com/continuedev/continue into dallin/fix-yolo-mode-apply 2025-08-21 17:35:46 -07:00
Dallin Romney
400fefc1e3 fix: prevent security file reads cleanup 2025-08-21 14:18:53 -07:00
Dallin Romney
30c4cc1469 feat: prevent unsafe file reads 2025-08-21 13:40:03 -07:00
Jacob Kim
ee221a4be5 feat: add test 2025-08-21 10:04:32 -07:00
Jacob Kim
6cb3260092 feat: use last-write-wins instead of handling every request sequentially 2025-08-21 10:04:25 -07:00
Dallin Romney
7fabd2995e fix: remove expected error 2025-08-20 23:20:43 -07:00
Dallin Romney
28565e6044 fix: handle apply errors 2025-08-20 23:14:20 -07:00
Dallin Romney
281ed6aeee fix: handle apply errors for tools 2025-08-20 22:22:05 -07:00
Jacob Kim
b17c8295cc fix: address review 2025-08-20 17:15:41 -07:00
Jacob Kim
5b3d5ea032 fix: tab and esc are properly reserved 2025-08-20 17:03:39 -07:00
Jacob Kim
c37c8111f7
feat: check for model before using full file diffs (#7222)
* fix: Excerpts -> Excerpt

* fix: test for Excerpt instead of Excerpts

* feat: add a public method to update usingFullFIleDiff

* feat: use full file diff for mercury only

* chore: remove console.log

* docs: add jsdocs

* refactor: use enums and const
2025-08-19 14:35:54 -04:00
uinstinct
e26b47e96c chore: show windows unsupported warning only once 2025-08-19 16:02:23 +05:30
Qian
92c1852234
fix: vscodoe apply error2 (#7196) 2025-08-18 14:19:09 -07:00
Qian
74287e8ca4
fix: vscode apply error (#7168)
fix: vscode apply
2025-08-15 13:39:36 -07:00
Jacob Kim
6430a84c5c
fix: next edit renders that should render decorations will render them properly (#7160)
* fix: passing next edit requests will render things

* chore: remove comment

* feat: skip whitespace only deletions

* feat: add a utility function for checking if a diff is a whitespace only deletion

* feat: add test for next edit utils

* feat: move filtering to NextEditProvider

* fix: escape newline properly

* feat: make jump decoration more visible

* feat: remove redundant escapes

* fix: undo the escapeSVG

* fix: update tests

* fix: use proper line heights

* fix: place the SVG at the end of the line

* fix: handle cases where the completion is a single line

* feat: improve next edit UI (#7167)

* fix: use proper line heights

* fix: place the SVG at the end of the line

* fix: handle cases where the completion is a single line

* fix: allocate more memory for the GUI build step

* fix: set flag as node options

* fix: jump scrolls only after accepting

* fix: update jump manager vitest
2025-08-15 15:18:17 -04:00
Patrick Erichsen
85994118e8
feat: implement Sentry error tracking with privacy-first anonymization (#6881)
* feat: add sentry to core

* feat: implement comprehensive Sentry error tracking with privacy-first anonymization

- Add Sentry ErrorBoundary components following React best practices
- Implement shared anonymization logic between core and GUI environments
- Create organized sentry directory structure with clean exports
- Add Continue team member access control (@continue.dev email check)
- Preserve node_modules package names for debugging while anonymizing user paths
- Include comprehensive test coverage for all anonymization scenarios
- Set up source maps for readable production error stack traces
- Add browser-compatible hashing without crypto module dependency

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

Co-Authored-By: Claude <noreply@anthropic.com>

* feat: complete Sentry integration with GUI components and tests

- Add GUI TelemetryProviders with Sentry ErrorBoundary
- Create shared isContinueTeamMember utilities for both core and GUI
- Update all imports and dependencies for new sentry structure
- Add comprehensive test coverage and fix all TypeScript issues

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

Co-Authored-By: Claude <noreply@anthropic.com>

* prettier

* fix: resolve GUI build errors by removing sentry index.ts and using specific imports

- Remove problematic index.ts that was pulling Node.js-specific Sentry code into browser bundle
- Update GUI to import specifically from anonymization.ts and constants.ts files
- Update core imports to use specific SentryLogger.ts import path
- GUI build now succeeds with proper source map upload to Sentry

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

Co-Authored-By: Claude <noreply@anthropic.com>

* fix: move TelemetryProviders inside AuthProvider to fix test failures

- Move TelemetryProviders from main.tsx to Layout.tsx inside AuthProvider
- Fixes "useAuth must be used within an AuthProvider" error in tests
- TelemetryProviders now has access to auth context for Continue team member check
- GUI build and functionality remain working correctly

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

Co-Authored-By: Claude <noreply@anthropic.com>

* prettier

* merge main

* Update package.json

* fix tests

* fix errors

* Update extension.ts

* disable sentry in tests/local dev

* add additional error handling

* Update SentryLogger.ts

* remove global try/catch

* remove test code

* linting

* Update SentryLogger.ts

* more logs

* Update core.ts

* lower sampling rate

* fix tests

* feat: use `Logger`

* Update logger.ts

* Update logger.ts

Co-Authored-By: Claude <noreply@anthropic.com>

* lint fixes

Co-Authored-By: Claude <noreply@anthropic.com>

* fix: rename logger.ts to Logger.ts for case sensitivity

This fixes TypeScript compilation errors in CI where the file
was tracked as lowercase logger.ts but referenced as Logger.ts
in imports.

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

Co-Authored-By: Claude <noreply@anthropic.com>

* address ting-wai's feedback

* Update core.ts

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-08-14 16:54:21 -07:00
Aditya Mitra
190a1d1365
fix: remove clipboard buffer action (#7117)
* deprecate clipboard context provider

* remove registercopybufferservice

- use vscode clipboard text

* remove clipboardcache from core protocol

---------

Co-authored-by: Patrick Erichsen <patrick.a.erichsen@gmail.com>
Co-authored-by: Claude <noreply@anthropic.com>
2025-08-14 15:22:12 -07:00
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
Dallin Romney
08842da68b
Merge pull request #6800 from uinstinct/mcp-oauth
feat: mcp oauth
2025-08-12 19:36:00 -07:00