Commit graph

650 commits

Author SHA1 Message Date
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
Dallin Romney
55068dc622 fix: update ignore package, rearrange for imports 2025-08-21 15:29:23 -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
lwang2070
5c9362b732
Add second check for prompt length before autocomplete (#6451)
* Add second check for prompt length before autocomplete

* Add new renderPromptWithLimit to avoid conflicting with other modules

* Fix format issue

* Refactor to remove repetitive logic

* Add tests

* Fix type error

---------

Co-authored-by: Jacob Kim <jacob@continue.dev>
2025-07-29 15:32:54 -07:00
Dallin Romney
a19cf7036b
Merge pull request #6331 from chezsmithy/fix-nested-bare-codeblocks
fix: 🐛 Fix bare markdown fences and premature code generation stops
2025-07-24 14:33:41 +02:00
Nate Sesti
fe6fa7ddec
Merge pull request #6581 from continuedev/jacob/feature/static
feat: Test static contextualization
2025-07-21 21:53:21 -07:00
chezsmithy
948246dc44 prettier and code cleanup 2025-07-13 14:47:54 -07:00
chezsmithy
1bd49276c0 fix re-exports 2025-07-13 12:15:45 -07:00
chezsmithy
f6d6c4fb81 deduplicate code 2025-07-13 11:40:50 -07:00
chezsmithy
938b7506cf Optimize for more tests and nova 2025-07-13 11:40:47 -07:00
chezsmithy
0a29810ee0 add checks to avoid stopping prematurely on stop constants 2025-07-13 11:39:56 -07:00
chezsmithy
49cf77997c performance enhancements 2025-07-13 11:39:56 -07:00
chezsmithy
370b68ca1a linting fixes 2025-07-13 11:39:56 -07:00
chezsmithy
9cd2f8b34b enhancing the solution 2025-07-13 11:39:55 -07:00
NGC13009
dc7caf9411 add qwen3-ollama support in autocomplete 2025-07-13 00:48:34 +08:00
Jacob Kim
b3e4d368bd feat: remove logging code to telemetry 2025-07-10 16:57:47 -07:00
Jacob Kim
d937a448cd Merge branch 'main' of github.com:continuedev/continue into jacob/feature/static 2025-07-09 21:08:43 -07:00
uinstinct
330fa09aab fix: autocomplete dev data timestamp as iso string 2025-07-08 21:57:28 +05:30
Jacob Kim
367e6672ca refactor: 🎨 format snippets so that it's more model prefix-friendly 2025-07-07 19:20:17 -07:00
Jacob Kim
53b28146eb log static contextualization 2025-07-05 20:32:06 -07:00
Jacob Kim
e7a75a5903 check for any return type for quick optimization 2025-07-05 17:29:45 -07:00
Jacob Kim
0f7a002377 check for config enable 2025-07-05 17:29:27 -07:00
Jacob Kim
f1cdd5fb75 prettier check 2025-07-05 17:29:14 -07:00
Jacob Kim
8b03b9a67d improve usability 2025-07-05 17:28:53 -07:00
Jacob Kim
f04260a7ef enable static contextualization when needed 2025-07-05 17:28:32 -07:00
Jacob Kim
482ed61a5e resolve merge conflicts 2025-07-05 08:49:59 -07:00
Jacob Kim
31c3bccd88 Merge branch 'main' of github.com:continuedev/continue into jacob/feature/static 2025-07-05 08:46:16 -07:00
Nate Sesti
cabc0da4e6
Merge pull request #6194 from hayden-cardwell/main
fix(autocomplete): trim trailing <|file_separator|> for Gemini/Gemma
2025-07-03 18:10:11 -07:00
Jacob Kim
61b389e5fb prettier 2025-06-28 20:14:49 -07:00
Jacob Kim
29f9c726dd static contextualization works 2025-06-28 19:56:02 -07:00
Jacob Kim
a2c1c6312e conform to interface 2025-06-28 19:55:53 -07:00
Jacob Kim
4e9690e058 move types from snippets to static 2025-06-28 19:55:42 -07:00
Jacob Kim
408038275d update types 2025-06-28 19:55:28 -07:00
Jacob Kim
97788f2b9d fix path to query 2025-06-28 19:54:53 -07:00
Jacob Kim
4e97c922d5 move queries to extensions/vscode 2025-06-28 19:54:19 -07:00
Jacob Kim
1717fca231 add method to extract relevant types 2025-06-28 16:05:01 -07:00
Jacob Kim
e4b412acfe export types 2025-06-28 16:01:00 -07:00
Jacob Kim
a70c0b7841 add treesitter utility functions that are exclusively used for static context retrieval 2025-06-28 16:00:33 -07:00
Jacob Kim
be46653d1e pull in static context 2025-06-28 15:37:51 -07:00
Jacob Kim
30bfaa0904 add initial fplab static contextualization code 2025-06-28 15:37:07 -07:00
Jacob Kim
cc3b8d9008 add JavaScript as language info 2025-06-26 16:55:32 -07:00
Adarsh Iyer
917fad3412
Merge branch 'main' into feature/nextEdit 2025-06-23 15:53:50 -07:00
Hayden Cardwell
16d3145702 fix(autocomplete): trim trailing <|file_separator|> for Gemini/Gemma models
Google Gemini/Gemma models sometimes append "<|file_separator|>" at the end of autocomplete completions, forcing users to remove it manually. Update postprocessCompletion to detect when llm.model includes "gemini" or "gemma" and the completion ends with "<|file_separator|>", then slice off the trailing 18 characters.

See #6067
2025-06-23 07:40:17 -05:00
adarshramiyer
26c501e9a1 can get autocomplete context now after HUGE debugging sesh 2025-06-20 00:51:54 -07:00
adarshramiyer
3202b2d34d improved edit logging behavior, working on optimizing performance now 2025-06-17 15:43:37 -07:00
Tomasz Stefaniak
fd3b19b295
Merge pull request #6063 from uinstinct/core-vitest/autocomplete
chore: migrate core (autocomplete) tests to vitest
2025-06-17 10:19:25 -07:00
uinstinct
fce7a5d788 rename all files to .vitest.ts 2025-06-17 10:35:25 +05:30
Jacob Kim
651f10a97e Merge branch 'main' of github.com:continuedev/continue into jacob/feature/next-edit-mvp 2025-06-16 09:07:12 -07:00
Jacob Kim
065ac51838 add a function to extract snippets without race 2025-06-14 16:26:32 -07:00