Skip to content

Commit ed37dcf

Browse files
sestinjPatrick-ErichsenpriyashpatildevbyjonahYohannZe
authored
cmd+I improvements (#1728)
* Nate/control plane client (#1691) * 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 * remove doccs * basic tests for VS Code extension * improved testing of VS Code extension * docs: add docs and schema for "OS" provider (#1536) * ignore .env * 🚑 fix constant warnings when onboarding with Ollama * ✨ use and cache imports for autocomplete (#1456) * ✨ use and cache imports for autocomplete * fix tsc * team analytics * apply control plane settings * workos auth * ide protocol get session info * UI for auth * profile switching * small fixes * updates * refresh tokens * updates * fix tsc errs * model select in toolbar to make room for profile selector * prod client id * link to prod URL * internal beta option * profiles change listener --------- Co-authored-by: Patrick Erichsen <[email protected]> Co-authored-by: Priyash <[email protected]> Co-authored-by: Jonah Wagner <[email protected]> Co-authored-by: YohannZe <[email protected]> Co-authored-by: Dan Dascalescu <[email protected]> * temporary patch for type errs * Dev (#1689) * Fix an issue where CMD+K does not clear the terminal when the terminal has focus (#1671) On MacOS, ⌘+K is bound, by default, to Terminal:Clear. Without this change ⌘+K does not clear the terminal but instead iniates a chord sequence and waits for the next stroke of the chord. Co-authored-by: Rob Leidle <[email protected]> * 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 <[email protected]> * acknowledge sourcemap flag in esbuild.js * don't run jetbrains-release.yaml on vscode releases * further testing for walkDir * chore: add telemetry to commands (#1673) * test: Add basic unit test to baseLLM (#1668) * update version * test: Add basic unit test to baseLLM --------- Co-authored-by: Nate Sesti <[email protected]> Co-authored-by: inimaz <[email protected]> * feat: add Quick Actions CodeLens feature (#1674) * 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 * Update troubleshooting.md (#1637) * feat: add quick actions * Update index.d.ts * quick actions mvp * update docs * subscribe to vscode change settings * Update commands.ts * cleanup * Update quick-actions.md * Update VerticalPerLineCodeLensProvider.ts * resolve feedback --------- Co-authored-by: Nate Sesti <[email protected]> Co-authored-by: Nate Sesti <[email protected]> Co-authored-by: Jonah Wagner <[email protected]> * chore: add `isCommandEvent` to command telemetry (#1675) * chore: add `isCommandEvent` to command telemetry * Update commands.ts * Nate/better retrieval (#1677) * deduplicatearray tests * break out separate retrieval pipelines * IConfigHandler * tests for codebase indexer * better .continueignore for continue * indexing fixes * ignore .gitignore and .continueignore when indexing * retrieval pipeline improvements * fix formatting err in out .continueignore * add necessary filter to lance_db_cache * update package.json version * skip unused tests * don't ignore .prompt files * update version * Update pull_request_template.md * don't use multi-media format when there are multiple text items * add free trial experience (#1685) * fix: add code range for quick actions/fixes (#1687) * fix: add code range for quick actions/fixes * Update test.js * add pathSep message type * docs improvements * jetbrains fix * update package.json version --------- Co-authored-by: Rob Leidle <[email protected]> Co-authored-by: Rob Leidle <[email protected]> Co-authored-by: Patrick Erichsen <[email protected]> Co-authored-by: inimaz <[email protected]> Co-authored-by: inimaz <[email protected]> Co-authored-by: Jonah Wagner <[email protected]> Co-authored-by: Priyash <[email protected]> * update package.json version * skip extension tests * update package.json version * handlebars import * don't push package.json version change from CI * fix: scroll issues w/ code blocks (#1688) * fix: scroll issues w/ code blocks * chore: name offset * chore: remove docs start * chore: update headings on troubleshooting.md (#1696) * ignore .svn folder for indexing (#1699) * chore: clearer naming for `useSuffix` (#1702) * chore: clearer naming for `useSuffix` * schema updates * fix: cmd+shft+l closes sidebar if focused (#1638) * 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 * Update troubleshooting.md (#1637) * feat: close panel if main input is focused * add skip param * Update TipTapEditor.tsx * merge dev * Update commands.ts --------- Co-authored-by: Nate Sesti <[email protected]> Co-authored-by: Nate Sesti <[email protected]> Co-authored-by: Jonah Wagner <[email protected]> * bugfix: quick actions undefined array (#1704) * feat: add rich quick pick for quick edit (#1706) * feat: multistep quick pick * fix: multi step for context provider * Update test.js * Create deepseek.md (#1708) * style: add max height to model selector (#1712) * update styling * remove testing code * remove comments * feat: add tutorial card (#1716) * feat: create tutorial card * Update TutorialCard.tsx * feat: add file search to quick edit (#1714) * feat: multistep quick pick * fix: multi step for context provider * Update test.js * add file search * complete file search * remove unused import * add comments * Update utils.ts * update naming * chore: move quick pick instantiation (#1723) * Break out into NPM modules (#1726) * config.json types * export all schemas * break out request logic into packages * update openai adapters to export body types * update packaging of npm modules * update packages * continue proxy * mistral * Fix typo in documentation (#1722) In set-up-codestral.md "Trobleshooting" -> "Troubleshooting" * update package.json version * 🪄 model dropdown, control plane (#1692) * Nate/control plane client (#1691) * 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 * remove doccs * basic tests for VS Code extension * improved testing of VS Code extension * docs: add docs and schema for "OS" provider (#1536) * ignore .env * 🚑 fix constant warnings when onboarding with Ollama * ✨ use and cache imports for autocomplete (#1456) * ✨ use and cache imports for autocomplete * fix tsc * team analytics * apply control plane settings * workos auth * ide protocol get session info * UI for auth * profile switching * small fixes * updates * refresh tokens * updates * fix tsc errs * model select in toolbar to make room for profile selector * prod client id * link to prod URL * internal beta option * profiles change listener --------- Co-authored-by: Patrick Erichsen <[email protected]> Co-authored-by: Priyash <[email protected]> Co-authored-by: Jonah Wagner <[email protected]> Co-authored-by: YohannZe <[email protected]> Co-authored-by: Dan Dascalescu <[email protected]> * temporary patch for type errs --------- Co-authored-by: Patrick Erichsen <[email protected]> Co-authored-by: Priyash <[email protected]> Co-authored-by: Jonah Wagner <[email protected]> Co-authored-by: YohannZe <[email protected]> Co-authored-by: Dan Dascalescu <[email protected]> * skip extension tests --------- Co-authored-by: Patrick Erichsen <[email protected]> Co-authored-by: Priyash <[email protected]> Co-authored-by: Jonah Wagner <[email protected]> Co-authored-by: YohannZe <[email protected]> Co-authored-by: Dan Dascalescu <[email protected]> Co-authored-by: Rob Leidle <[email protected]> Co-authored-by: Rob Leidle <[email protected]> Co-authored-by: inimaz <[email protected]> Co-authored-by: inimaz <[email protected]> Co-authored-by: Anaël Bonnafous <[email protected]> Co-authored-by: Huy Tran <[email protected]>
1 parent 3ebd337 commit ed37dcf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+8845
-641
lines changed

.github/workflows/main.yaml

+16-16
Original file line numberDiff line numberDiff line change
@@ -231,22 +231,22 @@ jobs:
231231
npx ovsx publish -p ${{ secrets.VSX_REGISTRY_TOKEN }} --packagePath ../../alpine-x64/*.vsix ../../darwin-arm64/*.vsix ../../darwin-x64/*.vsix ../../linux-arm64/*.vsix ../../linux-armhf/*.vsix ../../linux-x64/*.vsix ../../win32-x64/*.vsix ../../win32-arm64/*.vsix
232232
233233
# 4. Update the package.json version and push changes
234-
- name: Update version in package.json
235-
run: |
236-
cd extensions/vscode
237-
npm version patch
238-
239-
- name: Commit changes
240-
run: |
241-
git config --local user.email "[email protected]"
242-
git config --local user.name "GitHub Action"
243-
git commit -am "💚 Update package.json version [skip ci]"
244-
245-
- name: Push changes
246-
uses: ad-m/github-push-action@master
247-
with:
248-
github_token: ${{ secrets.GITHUB_TOKEN }}
249-
branch: ${{ github.ref }}
234+
# - name: Update version in package.json
235+
# run: |
236+
# cd extensions/vscode
237+
# npm version patch
238+
239+
# - name: Commit changes
240+
# run: |
241+
# git config --local user.email "[email protected]"
242+
# git config --local user.name "GitHub Action"
243+
# git commit -am "💚 Update package.json version [skip ci]"
244+
245+
# - name: Push changes
246+
# uses: ad-m/github-push-action@master
247+
# with:
248+
# github_token: ${{ secrets.GITHUB_TOKEN }}
249+
# branch: ${{ github.ref }}
250250

251251
# 5 Send to Discord Webhook
252252
- name: Discord Commits

.github/workflows/preview.yaml

+15-15
Original file line numberDiff line numberDiff line change
@@ -223,19 +223,19 @@ jobs:
223223
npx ovsx publish --pre-release -p ${{ secrets.VSX_REGISTRY_TOKEN }} --packagePath ../../alpine-x64/*.vsix ../../darwin-arm64/*.vsix ../../darwin-x64/*.vsix ../../linux-arm64/*.vsix ../../linux-armhf/*.vsix ../../linux-x64/*.vsix ../../win32-x64/*.vsix ../../win32-arm64/*.vsix
224224
225225
# 4. Update the package.json version and push changes
226-
- name: Update version in package.json
227-
run: |
228-
cd extensions/vscode
229-
npm version patch
230-
231-
- name: Commit changes
232-
run: |
233-
git config --local user.email "[email protected]"
234-
git config --local user.name "GitHub Action"
235-
git commit -am "💚 Update package.json version [skip ci]"
226+
# - name: Update version in package.json
227+
# run: |
228+
# cd extensions/vscode
229+
# npm version patch
236230

237-
- name: Push changes
238-
uses: ad-m/github-push-action@master
239-
with:
240-
github_token: ${{ secrets.GITHUB_TOKEN }}
241-
branch: ${{ github.ref }}
231+
# - name: Commit changes
232+
# run: |
233+
# git config --local user.email "[email protected]"
234+
# git config --local user.name "GitHub Action"
235+
# git commit -am "💚 Update package.json version [skip ci]"
236+
237+
# - name: Push changes
238+
# uses: ad-m/github-push-action@master
239+
# with:
240+
# github_token: ${{ secrets.GITHUB_TOKEN }}
241+
# branch: ${{ github.ref }}

core/autocomplete/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ This is just another object like the ones in the `"models"` array of `config.jso
9090
This object allows you to customize the behavior of tab-autocomplete. The available options are:
9191

9292
- `useCopyBuffer`: Determines whether the copy buffer will be considered when constructing the prompt. (Boolean)
93-
- `useSuffix`: Determines whether to use the file suffix in the prompt. (Boolean)
93+
- `useFileSuffix`: Determines whether to use the file suffix in the prompt. (Boolean)
9494
- `maxPromptTokens`: The maximum number of prompt tokens to use. A smaller number will yield faster completions, but less context. (Number)
9595
- `debounceDelay`: The delay in milliseconds before triggering autocomplete after a keystroke. (Number)
9696
- `maxSuffixPercentage`: The maximum percentage of the prompt that can be dedicated to the suffix. (Number)

core/config/profile/ControlPlaneProfileLoader.ts

+15-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1+
import { ConfigJson } from "@continuedev/config-types";
12
import {
23
ContinueConfig,
34
IDE,
45
IdeSettings,
56
SerializedContinueConfig,
67
} from "../..";
78
import { ControlPlaneClient } from "../../control-plane/client";
8-
import { ControlPlaneSettings } from "../../control-plane/schema";
99
import { TeamAnalytics } from "../../control-plane/TeamAnalytics";
10+
import ContinueProxy from "../../llm/llms/stubs/ContinueProxy";
1011
import { Telemetry } from "../../util/posthog";
1112
import {
1213
defaultContextProvidersJetBrains,
@@ -26,7 +27,7 @@ export default class ControlPlaneProfileLoader implements IProfileLoader {
2627
readonly profileId: string;
2728
profileTitle: string;
2829

29-
workspaceSettings: ControlPlaneSettings | undefined;
30+
workspaceSettings: ConfigJson | undefined;
3031

3132
constructor(
3233
private readonly workspaceId: string,
@@ -55,13 +56,8 @@ export default class ControlPlaneProfileLoader implements IProfileLoader {
5556
this.profileId,
5657
)) as any);
5758

58-
// First construct a SerializedContinueConfig from the ControlPlaneSettings
59-
const serializedConfig: SerializedContinueConfig = {
60-
models: settings.models,
61-
tabAutocompleteModel: settings.tabAutocompleteModel,
62-
embeddingsProvider: settings.embeddingsModel,
63-
reranker: settings.reranker,
64-
};
59+
// First construct a SerializedContinueConfig from the ControlPlaneSettings (TODO)
60+
const serializedConfig: SerializedContinueConfig = settings;
6561

6662
serializedConfig.contextProviders ??=
6763
ideInfo.ideType === "vscode"
@@ -94,6 +90,16 @@ export default class ControlPlaneProfileLoader implements IProfileLoader {
9490
ideInfo.extensionVersion,
9591
);
9692

93+
[
94+
...finalConfig.models,
95+
...(finalConfig.tabAutocompleteModels ?? []),
96+
].forEach(async (model) => {
97+
if (model.providerName === "continue-proxy") {
98+
const accessToken = await this.controlPlaneClient.getAccessToken();
99+
(model as ContinueProxy).workOsAccessToken = accessToken;
100+
}
101+
});
102+
97103
return finalConfig;
98104
}
99105

core/config/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ declare global {
676676
export interface TabAutocompleteOptions {
677677
disable: boolean;
678678
useCopyBuffer: boolean;
679-
useSuffix: boolean;
679+
useFileSuffix: boolean;
680680
maxPromptTokens: number;
681681
debounceDelay: number;
682682
maxSuffixPercentage: number;

core/control-plane/TeamAnalytics.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { Analytics } from "@continuedev/config-types";
12
import os from "node:os";
2-
import { ControlPlaneAnalytics } from "./schema";
33

44
export class TeamAnalytics {
55
static client: any = undefined;
@@ -24,7 +24,7 @@ export class TeamAnalytics {
2424
}
2525

2626
static async setup(
27-
config: ControlPlaneAnalytics,
27+
config: Analytics,
2828
uniqueId: string,
2929
extensionVersion: string,
3030
) {

core/control-plane/client.ts

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import { ConfigJson } from "@continuedev/config-types";
12
import fetch, { RequestInit, Response } from "node-fetch";
23
import { ModelDescription } from "..";
3-
import { ControlPlaneSettings } from "./schema";
44

55
export interface ControlPlaneSessionInfo {
66
accessToken: string;
@@ -13,7 +13,7 @@ export interface ControlPlaneSessionInfo {
1313
export interface ControlPlaneWorkspace {
1414
id: string;
1515
name: string;
16-
settings: ControlPlaneSettings;
16+
settings: ConfigJson;
1717
}
1818

1919
export interface ControlPlaneModelDescription extends ModelDescription {}
@@ -40,7 +40,7 @@ export class ControlPlaneClient {
4040
);
4141
}
4242

43-
private async getAccessToken(): Promise<string | undefined> {
43+
async getAccessToken(): Promise<string | undefined> {
4444
return (await this.sessionInfoPromise)?.accessToken;
4545
}
4646

@@ -78,9 +78,7 @@ export class ControlPlaneClient {
7878
return (await resp.json()) as any;
7979
}
8080

81-
async getSettingsForWorkspace(
82-
workspaceId: string,
83-
): Promise<ControlPlaneSettings> {
81+
async getSettingsForWorkspace(workspaceId: string): Promise<ConfigJson> {
8482
const userId = await this.userId;
8583
if (!userId) {
8684
throw new Error("No user id");

core/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ export interface Reranker {
769769
export interface TabAutocompleteOptions {
770770
disable: boolean;
771771
useCopyBuffer: boolean;
772-
useSuffix: boolean;
772+
useFileSuffix: boolean;
773773
maxPromptTokens: number;
774774
debounceDelay: number;
775775
maxSuffixPercentage: number;

core/indexing/LanceDbIndex.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export class LanceDbIndex implements CodebaseIndex {
6565
"lancedb_sqlite_artifact_id_column",
6666
async () => {
6767
await db.exec(
68-
`ALTER TABLE lance_db_cache ADD COLUMN artifact_id TEXT NOT NULL DEFAULT 'UNDEFINED'`,
68+
"ALTER TABLE lance_db_cache ADD COLUMN artifact_id TEXT NOT NULL DEFAULT 'UNDEFINED'",
6969
);
7070
resolve(undefined);
7171
},

core/indexing/ignore.ts

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export const DEFAULT_IGNORE_FILETYPES = [
6969
export const defaultIgnoreFile = ignore().add(DEFAULT_IGNORE_FILETYPES);
7070
export const DEFAULT_IGNORE_DIRS = [
7171
".git",
72+
".svn",
7273
".vscode",
7374
".idea",
7475
".vs",

core/llm/llms/stubs/ContinueProxy.ts

+14-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,22 @@ import type { LLMOptions, ModelProvider } from "../../..";
22
import OpenAI from "../OpenAI.js";
33

44
class ContinueProxy extends OpenAI {
5+
private _workOsAccessToken: string | undefined = undefined;
6+
7+
get workOsAccessToken(): string | undefined {
8+
return this._workOsAccessToken;
9+
}
10+
11+
set workOsAccessToken(value: string | undefined) {
12+
if (this._workOsAccessToken !== value) {
13+
this._workOsAccessToken = value;
14+
this.apiKey = value;
15+
}
16+
}
517
static providerName: ModelProvider = "continue-proxy";
618
static defaultOptions: Partial<LLMOptions> = {
7-
apiBase: "http://localhost:3000/proxy/v1",
19+
apiBase:
20+
"https://control-plane-api-service-i3dqylpbqa-uc.a.run.app/model-proxy/v1",
821
};
922

1023
supportsFim(): boolean {

core/package-lock.json

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"dependencies": {
3232
"@aws-sdk/client-bedrock-runtime": "^3.574.0",
3333
"@aws-sdk/credential-providers": "^3.596.0",
34+
"@continuedev/config-types": "^1.0.6",
3435
"@mozilla/readability": "^0.5.0",
3536
"@octokit/rest": "^20.0.2",
3637
"@types/jsdom": "^21.1.6",

core/protocol/core.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/naming-convention */
12
import type {
23
BrowserSerializedContinueConfig,
34
ChatMessage,

core/protocol/passThrough.ts

+1
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,6 @@ export const CORE_TO_WEBVIEW_PASS_THROUGH: (keyof ToWebviewFromCoreProtocol)[] =
5454
"indexProgress",
5555
"addContextItem",
5656
"refreshSubmenuItems",
57+
"isContinueInputFocused",
5758
"didChangeAvailableProfiles",
5859
];

core/protocol/webview.ts

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export type ToWebviewFromIdeOrCoreProtocol = {
55
getDefaultModelTitle: [undefined, string];
66
indexProgress: [IndexingProgressUpdate, void];
77
refreshSubmenuItems: [undefined, void];
8+
isContinueInputFocused: [undefined, boolean];
89
addContextItem: [
910
{
1011
historyIndex: number;

core/util/parameters.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { TabAutocompleteOptions } from "../index.js";
33
export const DEFAULT_AUTOCOMPLETE_OPTS: TabAutocompleteOptions = {
44
disable: false,
55
useCopyBuffer: false,
6-
useSuffix: true,
6+
useFileSuffix: true,
77
maxPromptTokens: 1024,
88
prefixPercentage: 0.85,
99
maxSuffixPercentage: 0.25,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# DeepSeek
2+
3+
To setup DeepSeek, obtain an API key from [here](https://www.deepseek.com/) and add the following to your `config.json` file:
4+
5+
```json title="~/.continue/config.json"
6+
{
7+
"models": [
8+
{
9+
"title": "Deepseek",
10+
"provider": "deepseek",
11+
"model": "deepseek-code", // Or any other DeepSeek model
12+
"apiKey": "YOUR_API_KEY"
13+
}
14+
]
15+
}
16+
```

docs/docs/troubleshooting.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ If your keyboard shortcuts are not resolving, you may have other commands that a
6767
- [VSCode keyboard shortcuts docs](https://code.visualstudio.com/docs/getstarted/keybindings)
6868
- [IntelliJ keyboard shortcut docs](https://www.jetbrains.com/help/idea/configuring-keyboard-and-mouse-shortcuts.html)
6969

70-
# FAQs
70+
## FAQs
7171

72-
## Networking Issues
72+
### Networking Issues
7373

74-
### Configure Certificates
74+
#### Configure Certificates
7575

7676
If you're seeing a `fetch failed` error and your network requires custom certificates, you will need to configure them in `config.json`. In each of the objects in the `"models"` array, add `requestOptions.caBundlePath` like this:
7777

@@ -92,22 +92,22 @@ If you're seeing a `fetch failed` error and your network requires custom certifi
9292

9393
You may also set `requestOptions.caBundlePath` to an array of paths to multiple certificates.
9494

95-
### VS Code Proxy Settings
95+
#### VS Code Proxy Settings
9696

9797
If you are using VS Code and require requests to be made through a proxy, you are likely already set up through VS Code's [Proxy Server Support](https://code.visualstudio.com/docs/setup/network#_proxy-server-support). To double-check that this is enabled, use cmd/ctrl+, to open settings and search for "Proxy Support". Unless it is set to "off", then VS Code is responsible for making the request to the proxy.
9898

99-
### code-server
99+
#### code-server
100100

101101
Continue can be used in [code-server](https://coder.com/), but if you are running across an error in the logs that includes "This is likely because the editor is not running in a secure context", please see [their documentation on securely exposing code-server](https://coder.com/docs/code-server/latest/guide#expose-code-server).
102102

103-
## I installed Continue, but don't see the sidebar window
103+
### I installed Continue, but don't see the sidebar window
104104

105105
By default the Continue window is on the left side of VS Code, but it can be dragged to right side as well, which we recommend in our tutorial. In the situation where you have previously installed Continue and moved it to the right side, it may still be there. You can reveal Continue either by using cmd/ctrl+L or by clicking the button in the top right of VS Code to open the right sidebar.
106106

107-
## I'm getting a 404 error from OpenAI
107+
### I'm getting a 404 error from OpenAI
108108

109109
If you have entered a valid API key and model, but are still getting a 404 error from OpenAI, this may be because you need to add credits to your billing account. You can do so from the [billing console](https://platform.openai.com/settings/organization/billing/overview). If you just want to check that this is in fact the cause of the error, you can try adding $1 to your account and checking whether the error persists.
110110

111-
# Still having trouble?
111+
## Still having trouble?
112112

113113
Create a GitHub issue [here](https://github.com/continuedev/continue/issues/new?assignees=&labels=bug&projects=&template=bug-report-%F0%9F%90%9B.md&title=), leaving the details of your problem, and we'll be able to more quickly help you out.

docs/docs/walkthroughs/set-up-codestral.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ keywords: [codestral, mistral, model setup]
3939

4040
5. If you run into any issues or have any questions, please join our Discord and post in the `#help` channel [here](https://discord.gg/EfJEfdFnDQ)
4141

42-
## Trobleshooting
42+
## Troubleshooting
4343

4444
### Temporary workaround for JetBrains
4545

@@ -68,4 +68,4 @@ Mistral AI recently changed the API endpoint to `codestral.mistral.ai` instead o
6868

6969
### Ask for help on Discord
7070

71-
Please join our Discord and post in the `#help` channel [here](https://discord.gg/EfJEfdFnDQ) if you are having problems using Codestral
71+
Please join our Discord and post in the `#help` channel [here](https://discord.gg/EfJEfdFnDQ) if you are having problems using Codestral

docs/docs/walkthroughs/tab-autocomplete.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ This object allows you to customize the behavior of tab-autocomplete. The availa
9494
- `disable`: Disable autocomplete (can also be done from IDE settings)
9595
- `template`: An optional template string to be used for autocomplete. It will be rendered with the Mustache templating language, and is passed the 'prefix' and 'suffix' variables. (String)
9696
- `useCopyBuffer`: Determines whether the copy buffer will be considered when constructing the prompt. (Boolean)
97-
- `useSuffix`: Determines whether to use the file suffix in the prompt. (Boolean)
97+
- `useFileSuffix`: Determines whether to use the file suffix in the prompt. (Boolean)
9898
- `maxPromptTokens`: The maximum number of prompt tokens to use. A smaller number will yield faster completions, but less context. (Number)
9999
- `prefixPercentage`: The percentage of the input that should be dedicated to the prefix. (Number)
100100
- `maxSuffixPercentage`: The maximum percentage of the prompt that can be dedicated to the suffix. (Number)

0 commit comments

Comments
 (0)