Commit graph

1064 commits

Author SHA1 Message Date
Rob Leidle
331cdb768c
Change treeSitter to cache the Language objects it loads from wasm (#1672)
Without this change, for a repository with 600 typescript files, the
indexer would fail to finish correctly and there would be many of the
following errors in the webview console log:

'Unable to load language for file ${path} RuntimeError: table index is out of bounds'

The following bash will create a repo that reproduces the problem:

current_path="."

for ((i=1; i<=20; i++)); do
    new_folder="folder-$i"
    mkdir -p "$current_path/$new_folder"
    current_path="$current_path/$new_folder"

    for ((a=1; a<=30; a++)); do
      head -c 10000 /dev/urandom | base64 > "$current_path/file-$a.ts"
    done
done

Co-authored-by: Rob Leidle <rleidle@tesla.com>
2024-07-05 09:56:16 -07:00
Nate Sesti
188f4da2f1 quick fix for walk dir 2024-07-04 15:59:07 -07:00
Nate Sesti
b8b8da842e each stop sequence must contain non-whitespace, Bedrock Anthropic 2024-07-04 09:13:04 -07:00
Nate Sesti
45c2ec7eee upsert instead of insert to fts_metadata 2024-07-04 08:46:58 -07:00
Rob Leidle
57af4d03cf
Add support for the HuggingFace Text Embeddings Inference server (#1657)
Co-authored-by: Rob Leidle <rleidle@tesla.com>
2024-07-03 23:50:04 -07:00
Ten
136bf9e0f0
feat: Client Certificate Options Support (#1658)
* feat: support client certificate authentication options

* docs: support client certificate authentication options

* chore: update package.json

* docs: move clientCertificate to it's own example
2024-07-03 23:44:06 -07:00
Nate Sesti
74020b1052
Tests for indexing + follow all .gitignore syntax (#1661)
* cleaner indexing progress updates messages

* chunking tests

* first round of testing for walkDir in .ts

* few more tests

* swap fs with ide

* clean up dead code

* replace traverseDirectory

* fix listFolders

* smoother indexing updates for chunking

* ide pathSetp

* absolute paths test

* fix path sep error with abs paths on windows

* clean up tests
2024-07-03 23:41:43 -07:00
Nate Sesti
cc900ed9d8 support legacy OpenAI formatted servers 2024-07-03 14:44:59 -07:00
Nate Sesti
aa37f8cbde add content-type header to ollama /api/show req 2024-07-03 14:31:02 -07:00
Nate Sesti
2d892fab7d Nate/indexing fixes (#1642)
* fix pausing of indexing

* don't send empty array to openai embeddings

* catch embeddings errors without stopping entire indexing process
2024-07-02 18:40:21 -07:00
Nate Sesti
932a51bf44 fix free trial embeddings error 2024-07-02 18:40:21 -07:00
Nate Sesti
4ca689acf8 fix double adding of context providers 2024-07-02 18:40:21 -07:00
Nate Sesti
c8f028249c rerank-lite-1 2024-07-02 18:36:40 -07:00
Patrick Erichsen
9bae5a254d feat: add free trial card to onboarding (#1600)
* feat: add free trial card to onboarding

* add import
2024-07-02 18:36:30 -07:00
Nate Sesti
b9dc9ce23c small fixes 2024-07-02 18:36:30 -07:00
Patrick Erichsen
8b305046ef feat: add best experience onboarding 2024-07-02 18:36:30 -07:00
Nate Sesti
0050d7c34e import Handlebars 2024-07-02 18:35:48 -07:00
Nate Sesti
10b2001edf add voyage rerank-1 2024-07-02 18:35:48 -07:00
Nate Sesti
78488da7f2 ✨ use and cache imports for autocomplete (#1456)
* ✨ use and cache imports for autocomplete

* fix tsc
2024-07-02 18:35:47 -07:00
Nate Sesti
f602d86b58
Dev (#1629)
* docs: add docs and schema for "OS" provider (#1536)

* ignore .env

* ✨ use and cache imports for autocomplete (#1456)

* ✨ use and cache imports for autocomplete

* fix tsc

* add voyage rerank-1

* import Handlebars

* feat: open pane on install (#1564)

* feat: open pane on activation

* comment out testing code

* chore: add telemetry for pageviews (#1576)

* feat: update onboarding w/ embeddings model (#1570)

* chore(gui): remove unused pages

* feat: add embeddings step

* feat: update styles

* feat: copy button updates

* fix: correct pull command for embed model

* fix: remove commented code

* fix: remove commented code

* feat: simplify copy btn props

* chore: rename onboarding selection event

* feat: add provider config

* fix: undo msg name

* remove dead code

* fix: invalid mode check

* fix: remove testing logic

* fix: fullscreen gui retains context when hidden, fixed fullscreen focusing (#1582)

* small UI tweaks

* media query

* feat: add best experience onboarding

* small fixes

* feat: add free trial card to onboarding (#1600)

* feat: add free trial card to onboarding

* add import

* chore: add telemetry for full screen toggle (#1618)

* rerank-lite-1

* remove doccs

* basic tests for VS Code extension

* improved testing of VS Code extension

* manually implement stop tokens for hf inference api

* chore: onboarding metrics (#1626)

* fix: pageview tracking

* feat: add onboarding telemetry

* create single `onboardingStatus` type

* improved var naming

* remove console logs

* fix windows performance issue

* rename vscodeExtension.ts

* migration of onboarding variables

* "stash" instead of "delete" in indexing progress

* fix preview.yaml

* also fix main.yaml

---------

Co-authored-by: Patrick Erichsen <patrick.a.erichsen@gmail.com>
Co-authored-by: Jonah Wagner <jonahwagner231@gmail.com>
2024-07-01 21:40:59 -07:00
Nate Sesti
34b40f4f53
Dev (#1627)
* docs: add docs and schema for "OS" provider (#1536)

* ignore .env

* ✨ use and cache imports for autocomplete (#1456)

* ✨ use and cache imports for autocomplete

* fix tsc

* add voyage rerank-1

* import Handlebars

* feat: open pane on install (#1564)

* feat: open pane on activation

* comment out testing code

* chore: add telemetry for pageviews (#1576)

* feat: update onboarding w/ embeddings model (#1570)

* chore(gui): remove unused pages

* feat: add embeddings step

* feat: update styles

* feat: copy button updates

* fix: correct pull command for embed model

* fix: remove commented code

* fix: remove commented code

* feat: simplify copy btn props

* chore: rename onboarding selection event

* feat: add provider config

* fix: undo msg name

* remove dead code

* fix: invalid mode check

* fix: remove testing logic

* fix: fullscreen gui retains context when hidden, fixed fullscreen focusing (#1582)

* small UI tweaks

* media query

* feat: add best experience onboarding

* small fixes

* feat: add free trial card to onboarding (#1600)

* feat: add free trial card to onboarding

* add import

* chore: add telemetry for full screen toggle (#1618)

* rerank-lite-1

* remove doccs

* basic tests for VS Code extension

* improved testing of VS Code extension

* manually implement stop tokens for hf inference api

* chore: onboarding metrics (#1626)

* fix: pageview tracking

* feat: add onboarding telemetry

* create single `onboardingStatus` type

* improved var naming

* remove console logs

* fix windows performance issue

* rename vscodeExtension.ts

* migration of onboarding variables

---------

Co-authored-by: Patrick Erichsen <patrick.a.erichsen@gmail.com>
Co-authored-by: Jonah Wagner <jonahwagner231@gmail.com>
2024-07-01 21:34:06 -07:00
Nate Sesti
04c08c7159
dev (#1542)
* docs: add docs and schema for "OS" provider (#1536)

* ignore .env

* fix(gui): ctx rendering w/ renderInlineAs: "" (#1541)

* ✨ use and cache imports for autocomplete (#1456)

* ✨ use and cache imports for autocomplete

* fix tsc

* fix codeqwen autocomplete leading space

* add voyage rerank-1

* feat: `--noEmit` for tsc checks in CI (#1559)

* docs: update CustomContextProvider docs (#1557)

* add stop tokens to qwen prompt

* update docs to reflect 3.5 sonnet being best

* docs: comment out unused providers (#1561)

* import Handlebars

* feat: toast notification for config updates (#1560)

* feat: toast notification for config updates

* feat: only trigger toast on config.json save

* displayRawMarkdown option

* feat: open pane on install (#1564)

* feat: open pane on activation

* comment out testing code

* update to reflect 16 stop words limit for deepseek

* feat: only trigger config update toast in vscode (#1571)

* docs(prompt-files): fix typos + clarify (#1575)

* doc: prompt file typo + clarifications

* fix: add back correct docs

* chore: add telemetry for pageviews (#1576)

* feat: update onboarding w/ embeddings model (#1570)

* chore(gui): remove unused pages

* feat: add embeddings step

* feat: update styles

* feat: copy button updates

* fix: correct pull command for embed model

* fix: remove commented code

* fix: remove commented code

* feat: simplify copy btn props

* chore: rename onboarding selection event

* feat: add provider config

* fix: undo msg name

* remove dead code

* fix: invalid mode check

* fix: remove testing logic

* docs(telemetry): add pageviews to tracking list (#1581)

* Add reranker configuration options to codebase embedding docs (#1584)

- Introduce reranker concept
- List available reranker options
- Provide configuration instructions
- Update keywords to include "reranker"

* chore: update pr template with screenshots (#1590)

* Refactor ConfirmationDialog to use SecondaryButton for cancel action (#1586)

* Added instructions for running docs server locally (#1578)

- Added NPM script method
- Added VS Code task method
- Update contributing guidelines

* Update branch policy (#1577)

- Change PR target to `dev` branch
- Update `CONTRIBUTING.md` instructions

* Consolidate example configurations into the main configuration guide (#1579)

- Moved examples to configuration.md
- Deleted the separate examples.md file
- Updated sidebar order and links
- Improved readability and structure in configuration.md

* fix: fullscreen gui retains context when hidden, fixed fullscreen focusing (#1582)

* Update completionProvider.ts (warning tab-autocomplete models) (#1566)

* feat: enhanced IndexingProgressBar with blinking dot feature

- Integrated BlinkingDot component
- Added STATUS_COLORS for various states
- Replaced CircleDiv with BlinkingDot in UI
- Updated status messages and layout

* small UI tweaks

* feat(gui): enhance ModelCard, ModelProviderTag, and Toggle components (#1595)

- add styling and adjustments to ModelCard
- update ModelProviderTag font size
- remove box shadow from Toggle component
- tweak icon styles in ModelCard
- improve alignment and spacing

* media query

* feat: add best experience onboarding

* fix: file rename

* stop movement on button hover by keeping same border thickness

* fix mistake in setting cursor: pointer

* fix when free trial option is shown

* Support Node.js versions below 20 for streaming response handling (#1591)

- Add fallback for Node < 20
- Implement toAsyncIterable for streaming
- Use TextDecoder for manual decoding
- Maintain existing streaming for Node 20+

* small fixes

* feat: add free trial card to onboarding (#1600)

* feat: add free trial card to onboarding

* add import

* fix hasPassedFTL

* fix /edit cancellation from UI

* feat: add `applyCodeBlock` experimental prop (#1601)

* feat: add new model styling improvements (#1609)

* feat: add new model styling improvements

* better gap size

* feat: update bug_report.yml (#1610)

* chore: update bug_report.yml

* typo fix

* feat: add labels to "Add docs" dialog (#1612)

* feat: add labels to "Add docs" dialog

* remove autofocus

* don't double load config

* small fixes

* speed up directory traversal, and use correct native path module

* option not to show config update toast

* merge air-gapped and recommended setup pages

* chore: add telemetry for full screen toggle (#1618)

* Fix headings in codebase-embeddings.md (#1617)

* mention jetbrains

* docs: update changie  (#1619)

* feat: updated changie config

* hide toc and autogenerate

* Update changelog.mdx

* link to deeper explanation of embeddings models

* ensure target="_blank" for all links in sidebar

* fix gif links in intellij README.md

* don't require rust in dependency installation

* chore: fix padding on gh button (#1620)

* chore: adjust button padding

* Update tasks.json

* escape colons in diff path

* smoother lancedb indexing reporting

* smooth progress updates for indexing

* fix tsc err

* rerank-lite-1

---------

Co-authored-by: Patrick Erichsen <patrick.a.erichsen@gmail.com>
Co-authored-by: Priyash <38959321+priyashpatil@users.noreply.github.com>
Co-authored-by: Jonah Wagner <jonahwagner231@gmail.com>
Co-authored-by: YohannZe <99359799+YohannZe@users.noreply.github.com>
Co-authored-by: Dan Dascalescu <ddascalescu+github@gmail.com>
2024-06-28 16:21:36 -07:00
Nate Sesti
1c68b72621 Merge branch 'main' of https://github.com/ashokgelal/continue into ashokgelal-main 2024-06-27 17:47:52 -07:00
Nate Sesti
a60a8d5701 ✏️ fix typo 2024-06-27 08:25:19 -07:00
Nate Sesti
71ae746d53 Merge branch 'preview' of https://github.com/continuedev/continue into preview 2024-06-27 08:25:07 -07:00
Nate Sesti
61ec1f727d add method_declaration for java 2024-06-27 08:25:02 -07:00
Andrij David
02784804ab
Add support for Azure OpenAI Endpoint in OpenAIEmbeddingProvider (#1517) 2024-06-27 08:24:06 -07:00
Nate Sesti
13a81ad8d1 fileExists in IDE protocol 2024-06-23 20:36:47 -07:00
Nate Sesti
c94b104180 better refactoring and error handling for indexing 2024-06-23 15:43:03 -07:00
Nate Sesti
d392a0fb43 fix merge mistake 2024-06-23 12:49:35 -07:00
Nate Sesti
d8ce2279fb Merge branch 'main' into preview 2024-06-23 12:44:14 -07:00
Nate Sesti
777a4e273b 🐛 fix regression in /edit slash command 2024-06-21 15:58:34 -07:00
Nate Sesti
8edee2c3ad cross-platform NODE_OPTIONS env var 2024-06-21 13:09:25 -07:00
Nate Sesti
ca884b8212
fix ollama onboarding (#1539)
* allow setting apiBase for bedrock provider

* ⚡️ better linking

* ✨ new prompt file action

* ⚡️ strip <COMPLETION> from GPT-4 completion

* continue proxy FIM support

* warn user if potentially dangerous command is generated

* tab autocomplete docs

* docs: update PR template (#1531)

* chore: add docs to install script (#1533)

* fix(extensions): schema for db ctx provider (#1534)

* fix(extensions): schema for db ctx provider

* fix: invalid enum

* prettierignore

* docs: add docs and schema for "OS" provider (#1536)

* tests (#1501)

* 👷 CI for jetbrains

* default working dir

* changelog

* build binaries

* binary testing setup

* idesettings

* core binary testing

* run binary tests in ci

* remove unused targets

* needs build

* console.log bin contents

* fix ci

* fix win32 binary download

* test

* no linux arm64

* macos latest

* macos-12

* binary permissions

* upload logs

* fix

* upload full folder as binary artifact

* test

* test macos only

* set full execute permissions

* copy sqlite binary

* cd

* it worked!

* build again in test job

* debug

* remove timeout

* info

* log

* log2

* more logs

* catch

* fewer logs

* test all platforms

* test downloaded artifact

* needs build

* updates

* build

* false

* release

* add tag and upload binaryes

* change tag name

* proper artifact upload

* jest updates

* ✅ generate a few unit tests with Continue

* fix imports related to IdeSettings

* run tsc on PRs

* remove shareSession command (unused)

* update release process

* update plugin version

* don't show ghost text when jetbrains completion visible

* run jetbrains ci in main

* check ts in dev

* ignore .env

* 🚑 fix constant warnings when onboarding with Ollama

---------

Co-authored-by: Patrick Erichsen <patrick.a.erichsen@gmail.com>
2024-06-21 11:09:03 -07:00
Nate Sesti
a5f3a4d75b tweak claude3.5 display 2024-06-20 17:45:49 -07:00
Nate Sesti
c0705b3631 ✨ claude 3.5 sonnet 2024-06-20 17:41:58 -07:00
Nate Sesti
5fe26de771 use a default apiVersion 2024-06-20 17:18:28 -07:00
Nate Sesti
d3f99fbcd9 Merge branch 'pe/azure-gui-selection' of https://github.com/Patrick-Erichsen/continue into Patrick-Erichsen-pe/azure-gui-selection 2024-06-20 16:36:51 -07:00
Nate Sesti
e1e6687d57 Merge branch 'preview' of https://github.com/continuedev/continue into preview 2024-06-20 16:36:45 -07:00
Nate Sesti
110cb42988 truncate api.deepseek.com stop tokens list 2024-06-20 16:36:13 -07:00
casscarpendale
a3f351a584
Update preIndexedDocs.ts (#1527)
Added Godot documentation to preIndexedDocs.ts
2024-06-20 12:30:10 -07:00
Patrick Erichsen
d39fd552d1 Merge branch 'preview' into pe/azure-gui-selection 2024-06-20 11:35:33 -05:00
Patrick Erichsen
b7c0623ac6 feat(gui): Add Azure as a provider 2024-06-19 22:20:20 -05:00
Nate Sesti
8bcfcd439d request description of cmd to be generated if not provided 2024-06-19 14:40:44 -07:00
Nate Sesti
58a04caa94
Dev (#1521)
* allow setting apiBase for bedrock provider

* ⚡️ better linking

* ✨ new prompt file action

* ⚡️ strip <COMPLETION> from GPT-4 completion

* continue proxy FIM support

* warn user if potentially dangerous command is generated

* tab autocomplete docs
2024-06-19 14:39:23 -07:00
Peter Zaback
6a01616700
Add stable versions of latest gemini models (#1520) 2024-06-19 11:11:48 -07:00
Nate Sesti
7fc43c1aa4 Merge branch 'preview' of https://github.com/continuedev/continue into preview 2024-06-18 21:30:51 -07:00
Nate Sesti
c56ccc23f4 🐛 deepseek max stop words 2024-06-18 21:30:44 -07:00
maxxrdrgz
a3b5146374
Bugfix for /comment slash command which does nothing. (#1512)
* - fixed a bug where /comment doesn't actually do anything unless prompted to.
- if the user doesn't provide input after /comment, replace it with default /comment input found in comment.ts

* added comment for clarity
2024-06-18 18:43:20 -07:00
Peter Zaback
0e605857cd
Feat/gemini error handling (#1511)
* Verify response content exists before parsing

* Streamline response validation logic
2024-06-18 18:40:33 -07:00