Skip to content

Commit ff57b00

Browse files
sestinjPatrick-ErichsenpriyashpatildevbyjonahYohannZe
authored
🪄 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]>
1 parent 875ab4c commit ff57b00

File tree

72 files changed

+2393
-473
lines changed

Some content is hidden

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

72 files changed

+2393
-473
lines changed

‎.github/workflows/main.yaml‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -125,19 +125,19 @@ jobs:
125125
126126
# 4. Run tests for the extension
127127
# - name: Install Xvfb for Linux and run tests
128-
# run: |
129-
# sudo apt-get install -y xvfb # Install Xvfb
130-
# Xvfb :99 & # Start Xvfb
131-
# export DISPLAY=:99 # Export the display number to the environment
132-
# cd extensions/vscode
133-
# npm run test
134-
# if: matrix.os == 'ubuntu-latest'
135-
136-
# - name: Run extension tests
137-
# run: |
138-
# cd extensions/vscode
139-
# npm run test
140-
# if: matrix.os != 'ubuntu-latest'
128+
run: |
129+
sudo apt-get install -y xvfb # Install Xvfb
130+
Xvfb :99 & # Start Xvfb
131+
export DISPLAY=:99 # Export the display number to the environment
132+
cd extensions/vscode
133+
npm run test
134+
if: matrix.os == 'ubuntu-latest'
135+
136+
- name: Run extension tests
137+
run: |
138+
cd extensions/vscode
139+
npm run test
140+
if: matrix.os != 'ubuntu-latest'
141141

142142
# 5. Package the extension
143143
- name: Package the extension

‎.github/workflows/preview.yaml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@ jobs:
124124
# npm run test
125125
# if: matrix.os == 'ubuntu-latest'
126126

127-
# - name: Run extension tests
128-
# run: |
129-
# cd extensions/vscode
130-
# npm run test
131-
# if: matrix.os != 'ubuntu-latest'
127+
- name: Run extension tests
128+
run: |
129+
cd extensions/vscode
130+
npm run test
131+
if: matrix.os != 'ubuntu-latest'
132132

133133
# 5. Package the extension
134134
- name: Package the extension

‎.vscode/tasks.json‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
// To bundle the code the same way we do for publishing
1313
"vscode-extension:esbuild",
1414
// Start the React app that is used in the extension
15-
"gui:dev"
15+
"gui:dev",
16+
// Start the docs site, without opening the browser
17+
"docs:start"
1618
],
1719
"group": {
1820
"kind": "build",

‎binary/test/binary.test.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ describe("Test Suite", () => {
107107

108108
// Many of the files are only created when trying to load the config
109109
const config = await messenger.request(
110-
"config/getBrowserSerialized",
110+
"config/getSerializedProfileInfo",
111111
undefined,
112112
);
113113

@@ -128,8 +128,8 @@ describe("Test Suite", () => {
128128
});
129129

130130
it("should properly edit config", async () => {
131-
const config = await messenger.request(
132-
"config/getBrowserSerialized",
131+
const { config } = await messenger.request(
132+
"config/getSerializedProfileInfo",
133133
undefined,
134134
);
135135
expect(config).toHaveProperty("models");

‎core/autocomplete/completionProvider.ts‎

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
import Handlebars from "handlebars";
21
import ignore from "ignore";
32
import OpenAI from "openai";
43
import path from "path";
54
import { v4 as uuidv4 } from "uuid";
65
import { RangeInFileWithContents } from "../commands/util.js";
7-
import { IConfigHandler } from "../config/IConfigHandler.js";
6+
import { ConfigHandler } from "../config/ConfigHandler.js";
87
import { TRIAL_FIM_MODEL } from "../config/onboarding.js";
98
import { streamLines } from "../diff/util.js";
109
import {
@@ -145,7 +144,7 @@ export class CompletionProvider {
145144
private static lastUUID: string | undefined = undefined;
146145

147146
constructor(
148-
private readonly configHandler: IConfigHandler,
147+
private readonly configHandler: ConfigHandler,
149148
private readonly ide: IDE,
150149
private readonly getLlm: () => Promise<ILLM | undefined>,
151150
private readonly _onError: (e: any) => void,
@@ -201,13 +200,17 @@ export class CompletionProvider {
201200
const outcome = this._outcomes.get(completionId)!;
202201
outcome.accepted = true;
203202
logDevData("autocomplete", outcome);
204-
Telemetry.capture("autocomplete", {
205-
accepted: outcome.accepted,
206-
modelName: outcome.modelName,
207-
modelProvider: outcome.modelProvider,
208-
time: outcome.time,
209-
cacheHit: outcome.cacheHit,
210-
});
203+
Telemetry.capture(
204+
"autocomplete",
205+
{
206+
accepted: outcome.accepted,
207+
modelName: outcome.modelName,
208+
modelProvider: outcome.modelProvider,
209+
time: outcome.time,
210+
cacheHit: outcome.cacheHit,
211+
},
212+
true,
213+
);
211214
this._outcomes.delete(completionId);
212215

213216
this.bracketMatchingService.handleAcceptedCompletion(
@@ -358,9 +361,13 @@ export class CompletionProvider {
358361
outcome.accepted = false;
359362
logDevData("autocomplete", outcome);
360363
const { prompt, completion, ...restOfOutcome } = outcome;
361-
Telemetry.capture("autocomplete", {
362-
...restOfOutcome,
363-
});
364+
Telemetry.capture(
365+
"autocomplete",
366+
{
367+
...restOfOutcome,
368+
},
369+
true,
370+
);
364371
this._logRejectionTimeouts.delete(completionId);
365372
}, COUNT_COMPLETION_REJECTED_AFTER);
366373
this._outcomes.set(completionId, outcome);

0 commit comments

Comments
 (0)