Skip to content

Commit 772d06e

Browse files
sestinjashokgelaltgaffJustin Milnersr-tream
committed
Preview (#1644)
* add Msty provider * fix: add Msty logo * Update docs/docs/walkthroughs/codellama.md Co-authored-by: tgaff <[email protected]> * Update docs/static/schemas/config.json Co-authored-by: tgaff <[email protected]> * Update docs/static/schemas/config.json Co-authored-by: tgaff <[email protected]> * Update gui/src/util/modelData.ts Co-authored-by: tgaff <[email protected]> * CON-991-a accept/reject all working here * CON-991-a: Everything working * Testing completed * Add setting to pause Continue, when laptop do not connected to AC * 🔋 Workaround for full battery The `systeminformation` can return false for `BatteryData.acConnected` and `BatteryData.isCharging`, when battery charged to 100% * update main.yaml * better refactoring and error handling for indexing * update jetbrains build scripts * update package.json version * update version * run on macos-latest * button to skip onboarding * docs about rerankers [skip ci] * fileExists in IDE protocol * fixed source retrial when only a line instead of a scope is given (#1545) * ignoreFocusOut on input box * fix: preserve indentation in code blocks (#1554) * fix: autocomplete label after selecting a query type context provider (#1562) * fix: autocomplete label after selecting a query type context * fix: resolved issue causing unintentional changes to editor * Add support for Azure OpenAI Endpoint in OpenAIEmbeddingProvider (#1517) * add method_declaration for java * ✏️ fix typo * update docs with VSCode API example (#1476) * add vscode api docs * update func ref * fix typo * update config_schema * merge pause with new quick pick * 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 <[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]> * update package.json version * 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 <[email protected]> Co-authored-by: Jonah Wagner <[email protected]> * 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 <[email protected]> Co-authored-by: Jonah Wagner <[email protected]> * skip tests on linux * upgrade package.json version * skip new tests for now * Dev (#1643) * 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: 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 * basic tests for VS Code extension * chore: onboarding metrics (#1626) * fix: pageview tracking * feat: add onboarding telemetry * create single `onboardingStatus` type * improved var naming * remove console logs * fix double adding of context providers * fix cross-platform build validation * Update troubleshooting.md (#1637) * add back skip onboarding button * fix free trial embeddings error * Nate/indexing fixes (#1642) * fix pausing of indexing * don't send empty array to openai embeddings * catch embeddings errors without stopping entire indexing process * update version --------- Co-authored-by: Patrick Erichsen <[email protected]> Co-authored-by: Jonah Wagner <[email protected]> * changelog (#1645) * 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: 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 * basic tests for VS Code extension * chore: onboarding metrics (#1626) * fix: pageview tracking * feat: add onboarding telemetry * create single `onboardingStatus` type * improved var naming * remove console logs * fix double adding of context providers * fix cross-platform build validation * Update troubleshooting.md (#1637) * add back skip onboarding button * fix free trial embeddings error * Nate/indexing fixes (#1642) * fix pausing of indexing * don't send empty array to openai embeddings * catch embeddings errors without stopping entire indexing process * update version * changelog --------- Co-authored-by: Patrick Erichsen <[email protected]> Co-authored-by: Jonah Wagner <[email protected]> * update version --------- Co-authored-by: Ashok Gelal <[email protected]> Co-authored-by: Ashok Gelal <[email protected]> Co-authored-by: tgaff <[email protected]> Co-authored-by: Justin Milner <[email protected]> Co-authored-by: SR_team <[email protected]> Co-authored-by: null <[email protected]> Co-authored-by: Jonah Wagner <[email protected]> Co-authored-by: Andrij David <[email protected]> Co-authored-by: Adam Shedivy <[email protected]> Co-authored-by: Patrick Erichsen <[email protected]> Co-authored-by: Priyash <[email protected]> Co-authored-by: YohannZe <[email protected]> Co-authored-by: Dan Dascalescu <[email protected]>
1 parent 5e6a47f commit 772d06e

File tree

7 files changed

+57
-8
lines changed

7 files changed

+57
-8
lines changed

core/util/filesystem.ts

+10
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@ class FileSystemIde implements IDE {
2525
return Promise.resolve(fs.existsSync(filepath));
2626
}
2727

28+
gotoDefinition(location: Location): Promise<RangeInFile[]> {
29+
throw new Error("Method not implemented.");
30+
}
31+
onDidChangeActiveTextEditor(callback: (filepath: string) => void): void {
32+
throw new Error("Method not implemented.");
33+
}
34+
fileExists(filepath: string): Promise<boolean> {
35+
return Promise.resolve(fs.existsSync(filepath));
36+
}
37+
2838
gotoDefinition(location: Location): Promise<RangeInFile[]> {
2939
throw new Error("Method not implemented.");
3040
}

core/util/treeSitter.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ export async function getLanguageForFile(
111111
}
112112
let language = nameToLanguage.get(languageName);
113113
if (!language) {
114-
language = await loadLanguageForFileExt(extension);
115-
nameToLanguage.set(languageName, language);
114+
language = await loadLanguageForFileExt(extension);
115+
nameToLanguage.set(languageName, language);
116116
}
117117
return language;
118118
} catch (e) {
@@ -152,7 +152,9 @@ export async function getQueryForFile(
152152
return query;
153153
}
154154

155-
async function loadLanguageForFileExt(fileExtension: string): Promise<Language> {
155+
async function loadLanguageForFileExt(
156+
fileExtension: string,
157+
): Promise<Language> {
156158
const wasmPath = path.join(
157159
__dirname,
158160
...(process.env.NODE_ENV === "test"

extensions/vscode/.continueignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ media
33
models/**/*
44
builtin-themes/
55
**/textmate-syntaxes/
6-
**/*.scm
6+
**/*.scm

extensions/vscode/package.json

+5
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@
9494
"default": false,
9595
"markdownDescription": "Pause Continue's tab autocomplete feature when your battery is low."
9696
},
97+
"continue.pauseTabAutocompleteOnBattery": {
98+
"type": "boolean",
99+
"default": false,
100+
"markdownDescription": "Pause Continue's tab autocomplete feature when your battery is low."
101+
},
97102
"continue.remoteConfigServerUrl": {
98103
"type": "string",
99104
"default": null,

extensions/vscode/src/commands.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ async function addHighlightedCodeToContext(
9191
if (selection.isEmpty) {
9292
return;
9393
}
94-
9594
// adjust starting position to include indentation
9695
const start = new vscode.Position(selection.start.line, 0);
9796
const range = new vscode.Range(start, selection.end);
@@ -588,8 +587,8 @@ const commandsMap: (
588587
currentStatus === StatusBarStatus.Paused
589588
? StatusBarStatus.Enabled
590589
: currentStatus === StatusBarStatus.Disabled
591-
? StatusBarStatus.Paused
592-
: StatusBarStatus.Disabled;
590+
? StatusBarStatus.Paused
591+
: StatusBarStatus.Disabled;
593592
} else {
594593
// Toggle between Disabled and Enabled
595594
targetStatus =

extensions/vscode/src/extension/VsCodeExtension.ts

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import { Battery } from "../util/battery";
2525
import { TabAutocompleteModel } from "../util/loadAutocompleteModel";
2626
import type { VsCodeWebviewProtocol } from "../webviewProtocol";
2727
import { VsCodeMessenger } from "./VsCodeMessenger";
28-
import { CONTINUE_WORKSPACE_KEY } from "../util/workspaceConfig";
2928

3029
export class VsCodeExtension {
3130
// Currently some of these are public so they can be used in testing (test/test-suites)
+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import styled, { css, keyframes } from "styled-components";
2+
3+
const DEFAULT_DIAMETER = 6;
4+
5+
const blink = keyframes`
6+
0%, 100% {
7+
transform: scale(1);
8+
opacity: 1;
9+
}
10+
50% {
11+
opacity: 0.25;
12+
}
13+
`;
14+
15+
const blinkAnimation = css`
16+
animation: ${blink} 3s infinite;
17+
`;
18+
19+
const BlinkingDot = styled.div<{
20+
color: string;
21+
diameter?: number;
22+
shouldBlink?: boolean;
23+
}>`
24+
background-color: ${(props) => props.color};
25+
box-shadow: 0px 0px 2px 1px ${(props) => props.color};
26+
width: ${(props) => props.diameter ?? DEFAULT_DIAMETER}px;
27+
height: ${(props) => props.diameter ?? DEFAULT_DIAMETER}px;
28+
border-radius: 50%;
29+
border: 1px solid rgba(255, 255, 255, 0.75);
30+
margin: 0 2px;
31+
${(props) => (props.shouldBlink ?? false) && blinkAnimation};
32+
`;
33+
34+
export default BlinkingDot;

0 commit comments

Comments
 (0)