diff --git a/.changes/extensions/vscode/0.8.53.md b/.changes/extensions/vscode/0.8.53.md new file mode 100644 index 000000000..575a3b91d --- /dev/null +++ b/.changes/extensions/vscode/0.8.53.md @@ -0,0 +1,12 @@ +## 0.8.53 - 2024-10-11 +### Added +* Improved loading/accept/reject UI for apply +* Polished chat sidebar, especially context dropdown +* Further prompt caching with Anthropic +### Changed +* Updated tutorial file +* Improved styling on "More" page +### Fixed +* Continue for teams auth bug fix +* Fixed a number of apply bugs +* Fixed autoscrolling behavior diff --git a/.changes/extensions/vscode/0.8.54.md b/.changes/extensions/vscode/0.8.54.md new file mode 100644 index 000000000..90466954c --- /dev/null +++ b/.changes/extensions/vscode/0.8.54.md @@ -0,0 +1,3 @@ +## 0.8.54 - 2024-10-15 +### Fixed +* Hotfix: throttle transformers.js embeddings provider diff --git a/.changes/extensions/vscode/0.9.210.md b/.changes/extensions/vscode/0.9.210.md deleted file mode 100644 index 8e255dc2e..000000000 --- a/.changes/extensions/vscode/0.9.210.md +++ /dev/null @@ -1,15 +0,0 @@ -## 0.9.210 - 2024-09-15 - -### Added - -- NVIDIA NIMs embeddings provider -- SambaNova LLM Provider -- Support for OpenAI's new o1-preview and o1-mini models - -### Changed - -- Use Chromium only as a fallback after asking user - -### Fixed - -- Increased default maxTokens, and autodetect for common models diff --git a/.changes/unreleased/Added-20240927-142940.yaml b/.changes/unreleased/Added-20240927-142940.yaml deleted file mode 100644 index 3a2785783..000000000 --- a/.changes/unreleased/Added-20240927-142940.yaml +++ /dev/null @@ -1,4 +0,0 @@ -project: extensions/vscode -kind: Added -body: Improved loading/accept/reject UI for apply -time: 2024-09-27T14:29:40.283176-07:00 diff --git a/.changes/unreleased/Added-20240927-143005.yaml b/.changes/unreleased/Added-20240927-143005.yaml deleted file mode 100644 index 4dafa06cb..000000000 --- a/.changes/unreleased/Added-20240927-143005.yaml +++ /dev/null @@ -1,4 +0,0 @@ -project: extensions/vscode -kind: Added -body: Polished chat sidebar, especially context dropdown -time: 2024-09-27T14:30:05.576347-07:00 diff --git a/.changes/unreleased/Added-20240929-095627.yaml b/.changes/unreleased/Added-20240929-095627.yaml deleted file mode 100644 index ec21be676..000000000 --- a/.changes/unreleased/Added-20240929-095627.yaml +++ /dev/null @@ -1,4 +0,0 @@ -project: extensions/vscode -kind: Added -body: Further prompt caching with Anthropic -time: 2024-09-29T09:56:27.946259-07:00 diff --git a/.changes/unreleased/Changed-20240923-160302.yaml b/.changes/unreleased/Changed-20240923-160302.yaml deleted file mode 100644 index 55cb8a77a..000000000 --- a/.changes/unreleased/Changed-20240923-160302.yaml +++ /dev/null @@ -1,4 +0,0 @@ -project: extensions/vscode -kind: Changed -body: Updated tutorial file -time: 2024-09-23T16:03:02.944462-07:00 diff --git a/.changes/unreleased/Changed-20240929-095407.yaml b/.changes/unreleased/Changed-20240929-095407.yaml deleted file mode 100644 index e6f87aac6..000000000 --- a/.changes/unreleased/Changed-20240929-095407.yaml +++ /dev/null @@ -1,4 +0,0 @@ -project: extensions/vscode -kind: Changed -body: Improved styling on "More" page -time: 2024-09-29T09:54:07.999324-07:00 diff --git a/.changes/unreleased/Fixed-20240919-211112.yaml b/.changes/unreleased/Fixed-20240919-211112.yaml deleted file mode 100644 index 5109006f8..000000000 --- a/.changes/unreleased/Fixed-20240919-211112.yaml +++ /dev/null @@ -1,4 +0,0 @@ -project: extensions/vscode -kind: Fixed -body: Continue for teams auth bug fix -time: 2024-09-19T21:11:12.997946-07:00 diff --git a/.changes/unreleased/Fixed-20240927-142924.yaml b/.changes/unreleased/Fixed-20240927-142924.yaml deleted file mode 100644 index 9a799ee51..000000000 --- a/.changes/unreleased/Fixed-20240927-142924.yaml +++ /dev/null @@ -1,4 +0,0 @@ -project: extensions/vscode -kind: Fixed -body: Fixed a number of apply bugs -time: 2024-09-27T14:29:24.69568-07:00 diff --git a/.changes/unreleased/Fixed-20240929-095525.yaml b/.changes/unreleased/Fixed-20240929-095525.yaml deleted file mode 100644 index 2774af39d..000000000 --- a/.changes/unreleased/Fixed-20240929-095525.yaml +++ /dev/null @@ -1,4 +0,0 @@ -project: extensions/vscode -kind: Fixed -body: Fixed autoscrolling behavior -time: 2024-09-29T09:55:25.835696-07:00 diff --git a/README.md b/README.md index 9751d618d..597256325 100644 --- a/README.md +++ b/README.md @@ -62,4 +62,4 @@ Check out the [contribution ideas board](https://github.com/orgs/continuedev/pro ## License -[Apache 2.0 © 2023-2024 Continue Dev, Inc.](./LICENSE) +[Apache 2.0 © 2023 Continue Dev, Inc.](./LICENSE) diff --git a/core/indexing/embeddings/TransformersJsEmbeddingsProvider.ts b/core/indexing/embeddings/TransformersJsEmbeddingsProvider.ts index 4dcf41141..c5c698efd 100644 --- a/core/indexing/embeddings/TransformersJsEmbeddingsProvider.ts +++ b/core/indexing/embeddings/TransformersJsEmbeddingsProvider.ts @@ -39,7 +39,7 @@ class EmbeddingsPipeline { export class TransformersJsEmbeddingsProvider extends BaseEmbeddingsProvider { static providerName: EmbeddingsProviderName = "transformers.js"; - static maxGroupSize: number = 4; + static maxGroupSize: number = 1; static model: string = "all-MiniLM-L6-v2"; static mockVector: number[] = Array.from({ length: 384 }).fill(2) as number[]; @@ -79,6 +79,8 @@ export class TransformersJsEmbeddingsProvider extends BaseEmbeddingsProvider { pooling: "mean", normalize: true, }); + // To avoid causing the extension host to go unresponsive + await new Promise((resolve) => setTimeout(resolve, 10)); outputs.push(...output.tolist()); } return outputs; diff --git a/core/util/parameters.ts b/core/util/parameters.ts index 88c7d38a6..7661b170a 100644 --- a/core/util/parameters.ts +++ b/core/util/parameters.ts @@ -20,7 +20,7 @@ export const DEFAULT_AUTOCOMPLETE_OPTS: TabAutocompleteOptions = { recentLinePrefixMatchMinLength: 7, disableInFiles: undefined, useImports: true, - useRootPathContext: true, + useRootPathContext: false, }; export const COUNT_COMPLETION_REJECTED_AFTER = 10_000; diff --git a/docs/docs/customize/context-providers.md b/docs/docs/customize/context-providers.md index 2b3224543..2b8779661 100644 --- a/docs/docs/customize/context-providers.md +++ b/docs/docs/customize/context-providers.md @@ -6,7 +6,7 @@ keywords: [context, "@", provider, LLM] Context Providers allow you to type '@' and see a dropdown of content that can all be fed to the LLM as context. Every context provider is a plugin, which means if you want to reference some source of information that you don't see here, you can request (or build!) a new context provider. -As an example, say you are working on solving a new GitHub Issue. You type '@Isse' and select the one you are working on. Continue can now see the issue title and contents. You also know that the issue is related to the files 'readme.md' and 'helloNested.py', so you type '@readme' and '@hello' to find and select them. Now these 3 "Context Items" are displayed inline with the rest of your input. +As an example, say you are working on solving a new GitHub Issue. You type '@Issue' and select the one you are working on. Continue can now see the issue title and contents. You also know that the issue is related to the files 'readme.md' and 'helloNested.py', so you type '@readme' and '@hello' to find and select them. Now these 3 "Context Items" are displayed inline with the rest of your input. ![Context Items](/img/context-provider-example.png) @@ -200,7 +200,7 @@ For example, type "@Google python tutorial" if you want to search and discuss wa Note: You can get an API key for free at [serper.dev](https://serper.dev). -### `@Isse` +### `@Issue` Reference the conversation in a GitHub issue. @@ -451,7 +451,7 @@ The HttpContextProvider makes a POST request to the url passed in the configurat { "name": "http", "params": { - "url": "https://api.example.com/v1/users", + "url": "https://api.example.com/v1/users" } } ] @@ -459,6 +459,7 @@ The HttpContextProvider makes a POST request to the url passed in the configurat ``` The receiving URL should expect to receive the following parameters: + ```json title="POST parameters" { query: string, @@ -467,6 +468,7 @@ The receiving URL should expect to receive the following parameters: ``` The response 200 OK should be a JSON object with the following structure: + ```json title="Response" [ { diff --git a/docs/docs/customize/model-types/reranking.md b/docs/docs/customize/model-types/reranking.md index 5f3fd77a3..2032aaf13 100644 --- a/docs/docs/customize/model-types/reranking.md +++ b/docs/docs/customize/model-types/reranking.md @@ -11,11 +11,11 @@ In Continue, reranking is used by [@Codebase](../deep-dives/codebase.md) in orde ## Recommended reranking models -If you have the ability to use any model, we recommend `rerank-1` by Voyage AI, which is listed below along with the rest of the options for rerankers. +If you have the ability to use any model, we recommend `rerank-2` by Voyage AI, which is listed below along with the rest of the options for rerankers. ### Voyage AI -Voyage AI offers the best reranking model for code with their `rerank-1` model. After obtaining an API key from [here](https://www.voyageai.com/), you can configure like this: +Voyage AI offers the best reranking model for code with their `rerank-2` model. After obtaining an API key from [here](https://www.voyageai.com/), you can configure like this: ```json title="config.json" { diff --git a/docs/docs/troubleshooting.md b/docs/docs/troubleshooting.md index d3933f6f9..d10d2c104 100644 --- a/docs/docs/troubleshooting.md +++ b/docs/docs/troubleshooting.md @@ -40,7 +40,9 @@ If you're getting a response from the LLM that doesn't seem to make sense, you c ### JetBrains -Open `~/.continue/logs/core.log`. The most recent logs are found at the bottom of the file. +Open `~/.continue/logs/core.log` to view the logs for the Continue plugin. The most recent logs are found at the bottom of the file. + +Some JetBrains-related logs may also be found by clicking "Help" > "Show Log in Explorer/Finder". ## Download the latest pre-release @@ -124,7 +126,7 @@ This can be accomplished using the following command: `Continue: Rebuild codebas ### Android Studio - "Nothing to show" in Chat -This can be fixed by selecting `Actions > Choose Boot runtime for the IDE` then selecting the latest version, and then restarting Android Studio. [See this thread](https://github.com/continuedev/continue/issues/2280#issuecomment-2365231567) for details. +This can be fixed by selecting `Actions > Choose Boot runtime for the IDE` then selecting the latest version, and then restarting Android Studio. [See this thread](https://github.com/continuedev/continue/issues/596#issuecomment-1789327178) for details. ## Still having trouble? diff --git a/extensions/vscode/CHANGELOG.md b/extensions/vscode/CHANGELOG.md index 7ea557b25..5aa736e28 100644 --- a/extensions/vscode/CHANGELOG.md +++ b/extensions/vscode/CHANGELOG.md @@ -5,7 +5,11 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html), and is generated by [Changie](https://github.com/miniscruff/changie). -Pre-release Changes +## 0.8.54 - 2024-10-15 +### Fixed +* Hotfix: throttle transformers.js embeddings provider + +## 0.8.53 - 2024-10-11 ### Added * Improved loading/accept/reject UI for apply * Polished chat sidebar, especially context dropdown @@ -18,22 +22,6 @@ Pre-release Changes * Fixed a number of apply bugs * Fixed autoscrolling behavior -## 0.9.210 - 2024-09-15 - -### Added - -- NVIDIA NIMs embeddings provider -- SambaNova LLM Provider -- Support for OpenAI's new o1-preview and o1-mini models - -### Changed - -- Use Chromium only as a fallback after asking user - -### Fixed - -- Increased default maxTokens, and autodetect for common models - ## 0.8.52 - 2024-09-16 ### Changed * Use Chromium only as a fallback after asking user diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index 193546288..10943a9e5 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -2,7 +2,7 @@ "name": "continue", "icon": "media/icon.png", "author": "Continue Dev, Inc", - "version": "0.9.214", + "version": "0.8.54", "repository": { "type": "git", "url": "https://github.com/continuedev/continue" diff --git a/gui/src/components/mainInput/TipTapEditor.tsx b/gui/src/components/mainInput/TipTapEditor.tsx index 984da4e07..ee1b4301f 100644 --- a/gui/src/components/mainInput/TipTapEditor.tsx +++ b/gui/src/components/mainInput/TipTapEditor.tsx @@ -167,8 +167,19 @@ function TipTapEditor(props: TipTapEditorProps) { return; } + // Find the position of the last @ character + // We do this because editor.getText() isn't a correct representation including node views + let startPos = editor.state.selection.anchor; + while ( + startPos > 0 && + editor.state.doc.textBetween(startPos, startPos + 1) !== "@" + ) { + startPos--; + } + startPos++; + editor.commands.deleteRange({ - from: indexOfAt + 2, + from: startPos, to: editor.state.selection.anchor, }); inSubmenuRef.current = providerId; diff --git a/gui/src/components/markdown/CodeBlockToolbar.tsx b/gui/src/components/markdown/CodeBlockToolbar.tsx index d740a8cab..aecaa1b84 100644 --- a/gui/src/components/markdown/CodeBlockToolbar.tsx +++ b/gui/src/components/markdown/CodeBlockToolbar.tsx @@ -245,7 +245,10 @@ function CodeBlockToolBar(props: CodeBlockToolBarProps) { return ( -
+
{getBasename(props.filepath)}
diff --git a/gui/src/components/markdown/PreWithToolbar.tsx b/gui/src/components/markdown/PreWithToolbar.tsx index 3f650740d..ec9297d54 100644 --- a/gui/src/components/markdown/PreWithToolbar.tsx +++ b/gui/src/components/markdown/PreWithToolbar.tsx @@ -2,7 +2,7 @@ import { debounce } from "lodash"; import { useEffect, useState } from "react"; import { useSelector } from "react-redux"; import styled from "styled-components"; -import { defaultBorderRadius } from ".."; +import { defaultBorderRadius, vscEditorBackground } from ".."; import useUIConfig from "../../hooks/useUIConfig"; import { RootState } from "../../redux/store"; import CodeBlockToolBar from "./CodeBlockToolbar"; @@ -12,6 +12,7 @@ const TopDiv = styled.div` outline-offset: -0.5px; border-radius: ${defaultBorderRadius}; margin-bottom: 8px; + background-color: ${vscEditorBackground}; `; function childToText(child: any) {