From cffc9a803d52180e90335a70610d867751a26524 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Sun, 18 Aug 2024 22:20:26 -0700 Subject: [PATCH 1/8] test tests --- .github/workflows/preview.yaml | 57 ++++++++++++++++++---------------- 1 file changed, 30 insertions(+), 27 deletions(-) diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index aea470286..7d3e6f23f 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -1,11 +1,14 @@ name: Publish Preview Extension on: - create: - tags: - - "v0.9.*-vscode" + push: branches: - - dev + - nate/fix-ci-tests + # create: + # tags: + # - "v0.9.*-vscode" + # branches: + # - dev jobs: build: @@ -52,8 +55,8 @@ jobs: with: fetch-depth: 0 # This ensures all tags are fetched - - name: Checkout tag - run: git checkout ${GITHUB_REF#refs/tags/} + # - name: Checkout tag + # run: git checkout ${GITHUB_REF#refs/tags/} # 2. Install npm dependencies - name: Use Node.js from .nvmrc @@ -61,11 +64,11 @@ jobs: with: node-version-file: ".nvmrc" - - name: Cache extension node_modules - uses: actions/cache@v3 - with: - path: extensions/vscode/node_modules - key: ${{ runner.os }}-node-${{ hashFiles('extensions/vscode/package-lock.json') }} + # - name: Cache extension node_modules + # uses: actions/cache@v3 + # with: + # path: extensions/vscode/node_modules + # key: ${{ runner.os }}-node-${{ hashFiles('extensions/vscode/package-lock.json') }} - name: Cache core node_modules uses: actions/cache@v3 @@ -73,24 +76,24 @@ jobs: path: core/node_modules key: ${{ runner.os }}-node-${{ hashFiles('core/package-lock.json') }} - - name: Cache gui node_modules - uses: actions/cache@v3 - with: - path: gui/node_modules - key: ${{ runner.os }}-node-${{ hashFiles('gui/package-lock.json') }} + # - name: Cache gui node_modules + # uses: actions/cache@v3 + # with: + # path: gui/node_modules + # key: ${{ runner.os }}-node-${{ hashFiles('gui/package-lock.json') }} - - name: Install extension Dependencies - run: | - cd extensions/vscode - npm ci - env: - # https://github.com/microsoft/vscode-ripgrep/issues/9#issuecomment-643965333 - GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }} + # - name: Install extension Dependencies + # run: | + # cd extensions/vscode + # npm ci + # env: + # # https://github.com/microsoft/vscode-ripgrep/issues/9#issuecomment-643965333 + # GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }} - - name: Install gui Dependencies - run: | - cd gui - npm ci + # - name: Install gui Dependencies + # run: | + # cd gui + # npm ci - name: Install Core Dependencies run: | From 9db4ad886a9d9febe79b930406bc2e4eb87cbe7a Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Mon, 19 Aug 2024 07:46:38 -0700 Subject: [PATCH 2/8] test --- .github/workflows/preview.yaml | 9 ++++++++- core/indexing/CodebaseIndexer.test.ts | 14 +++++++------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index 7d3e6f23f..6263c6bbd 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -99,11 +99,18 @@ jobs: run: | cd core npm ci + npm install @lancedb/vectordb-linux-x64-gnu + + - name: Install lance + run: | + cd core + npm install @lancedb/vectordb-linux-x64-gnu + if: matrix.os == 'ubuntu-latest' - name: Run core tests run: | cd core - npm run test + npm run test -- ./indexing/CodebaseIndexer.test.ts env: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} diff --git a/core/indexing/CodebaseIndexer.test.ts b/core/indexing/CodebaseIndexer.test.ts index 221035737..cce5d61d8 100644 --- a/core/indexing/CodebaseIndexer.test.ts +++ b/core/indexing/CodebaseIndexer.test.ts @@ -3,12 +3,6 @@ import { execSync } from "node:child_process"; import fs from "node:fs"; import path from "node:path"; import { ContinueServerClient } from "../continueServer/stubs/client.js"; -import { CodebaseIndexer, PauseToken } from "./CodebaseIndexer.js"; -import { getComputeDeleteAddRemove } from "./refreshIndex.js"; -import { TestCodebaseIndex } from "./TestCodebaseIndex.js"; -import { CodebaseIndex } from "./types.js"; -import { walkDir } from "./walkDir.js"; -import { getIndexSqlitePath } from "../util/paths.js"; import { testConfigHandler, testIde } from "../test/util/fixtures.js"; import { addToTestDir, @@ -16,6 +10,12 @@ import { tearDownTestDir, TEST_DIR, } from "../test/util/testDir.js"; +import { getIndexSqlitePath } from "../util/paths.js"; +import { CodebaseIndexer, PauseToken } from "./CodebaseIndexer.js"; +import { getComputeDeleteAddRemove } from "./refreshIndex.js"; +import { TestCodebaseIndex } from "./TestCodebaseIndex.js"; +import { CodebaseIndex } from "./types.js"; +import { walkDir } from "./walkDir.js"; jest.useFakeTimers(); @@ -57,7 +57,7 @@ class TestCodebaseIndexer extends CodebaseIndexer { // These are more like integration tests, whereas we should separately test // the individual CodebaseIndex classes -describe.skip("CodebaseIndexer", () => { +describe("CodebaseIndexer", () => { const pauseToken = new PauseToken(false); const continueServerClient = new ContinueServerClient(undefined, undefined); const codebaseIndexer = new TestCodebaseIndexer( From e852c965e22fb6f1ed06a7d55b9f174441f5ef44 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Mon, 19 Aug 2024 07:49:47 -0700 Subject: [PATCH 3/8] fix git error --- core/indexing/CodebaseIndexer.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/indexing/CodebaseIndexer.test.ts b/core/indexing/CodebaseIndexer.test.ts index cce5d61d8..f05acfc16 100644 --- a/core/indexing/CodebaseIndexer.test.ts +++ b/core/indexing/CodebaseIndexer.test.ts @@ -71,6 +71,9 @@ describe("CodebaseIndexer", () => { beforeAll(async () => { tearDownTestDir(); setUpTestDir(); + + execSync('git config --global user.email "test@example.com"'); + execSync('git config --global user.name "Test"'); }); afterAll(async () => { From f618f9d64639995054260cc90e722f5190c2681e Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Mon, 19 Aug 2024 07:52:43 -0700 Subject: [PATCH 4/8] try something else --- .github/workflows/preview.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index 6263c6bbd..5f3fa5ec9 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -95,11 +95,12 @@ jobs: # cd gui # npm ci + # npm ci doesn't end up capturing the @lancedb/... dep because it's not in the package-lock.json - name: Install Core Dependencies run: | cd core npm ci - npm install @lancedb/vectordb-linux-x64-gnu + npm i vectordb - name: Install lance run: | From d4e7372cc8c788b18717e36e6ce21ad24647a65a Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Mon, 19 Aug 2024 09:44:24 -0700 Subject: [PATCH 5/8] rename intellij to jetbrains --- .github/workflows/README.md | 4 +-- CHANGELOG.md | 2 +- CONTRIBUTING.md | 2 +- docs/docs/changelog.mdx | 4 +-- docs/docs/troubleshooting.md | 2 +- extensions/vscode/scripts/prepackage.js | 11 ++++++--- extensions/vscode/scripts/utils.js | 33 +++++++++++-------------- 7 files changed, 29 insertions(+), 29 deletions(-) diff --git a/.github/workflows/README.md b/.github/workflows/README.md index f22d06955..ff1b7bd22 100644 --- a/.github/workflows/README.md +++ b/.github/workflows/README.md @@ -7,7 +7,7 @@ When merging to `preview`: - the VS Code extension along with Rust extension is built and uploaded as an artifact - all of the artifacts are downloaded and pushed to the store/registry all at once, as full releases. - the version is bumped and this change is commited to preview -- in the future, the Intellij extension will be built and uploaded to the marketplace here +- in the future, the JetBrains extension will be built and uploaded to the marketplace here ## main @@ -16,4 +16,4 @@ When merging to `main`: - the VS Code extension along with Rust extension is built and uploaded as an artifact - all of the artifacts are downloaded and pushed to the store/registry all at once, as full releases. - the version is bumped and this change is commited to main -- in the future, the Intellij extension will be built and uploaded to the marketplace here +- in the future, the JetBrains extension will be built and uploaded to the marketplace here diff --git a/CHANGELOG.md b/CHANGELOG.md index 010e9d1e3..268bbe613 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,4 +3,4 @@ Separate changelogs are kept for each extension: - [VS Code Extension](./extensions/vscode/CHANGELOG.md) -- [Intellij Extension](./extensions/intellij/CHANGELOG.md) +- [JetBrains Extension](./extensions/intellij/CHANGELOG.md) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2192b2b8d..0a998802a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -152,7 +152,7 @@ Pre-requisite: You should use the Intellij IDE, which can be downloaded [here](h ##### Debugging -Continue's JetBrains extension shares much of the code with the VS Code extension by utilizing shared code in the `core` directory and packaging it in a binary in the `binary` directory. The Intellij extension (written in Kotlin) is then able to communicate over stdin/stdout in the [CoreMessenger.kt](./extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/CoreMessenger.kt) file. +Continue's JetBrains extension shares much of the code with the VS Code extension by utilizing shared code in the `core` directory and packaging it in a binary in the `binary` directory. The JetBrains extension (written in Kotlin) is then able to communicate over stdin/stdout in the [CoreMessenger.kt](./extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/CoreMessenger.kt) file. For the sake of rapid development, it is also possible to configure this communication to happen over local TCP sockets: diff --git a/docs/docs/changelog.mdx b/docs/docs/changelog.mdx index 990953abe..3b703ce52 100644 --- a/docs/docs/changelog.mdx +++ b/docs/docs/changelog.mdx @@ -1,6 +1,6 @@ --- title: 📝 Changelog -description: Changelogs for the latest releases of the VSCode and IntelliJ extensions +description: Changelogs for the latest releases of the VSCode and JetBrains extensions keywords: [changelog] hide_table_of_contents: true --- @@ -8,7 +8,7 @@ hide_table_of_contents: true import VSCodeChangelog from "../../extensions/vscode/CHANGELOG.md"; import IntelliJChangelog from "../../extensions/intellij/CHANGELOG.md"; -Below are the changelogs for the latest releases of the VSCode and IntelliJ extensions. Prior to 2024-07-02, the changelogs do not reflect all updates. +Below are the changelogs for the latest releases of the VSCode and JetBrains extensions. Prior to 2024-07-02, the changelogs do not reflect all updates. import TOCInline from "@theme/TOCInline"; diff --git a/docs/docs/troubleshooting.md b/docs/docs/troubleshooting.md index 459271d47..44742c0de 100644 --- a/docs/docs/troubleshooting.md +++ b/docs/docs/troubleshooting.md @@ -4,7 +4,7 @@ description: Troubleshooting while waiting for help during beta / alpha testing keywords: [reload, delete, manually, logs, server, console] --- -The Continue VS Code extension is currently in beta, and the Intellij extension is in Alpha. If you are having trouble, please follow the steps below. +The Continue VS Code extension is currently in beta, and the JetBrains extension is in Alpha. If you are having trouble, please follow the steps below. 1. [Check the logs](#check-the-logs) 2. [Try the latest pre-release](#download-the-latest-pre-release) diff --git a/extensions/vscode/scripts/prepackage.js b/extensions/vscode/scripts/prepackage.js index f7ca0e5d7..ad2ba5773 100644 --- a/extensions/vscode/scripts/prepackage.js +++ b/extensions/vscode/scripts/prepackage.js @@ -94,7 +94,7 @@ const exe = os === "win32" ? ".exe" : ""; execCmdSync("npm run build"); } - // Copy over the dist folder to the Intellij extension // + // Copy over the dist folder to the JetBrains extension // const intellijExtensionWebviewPath = path.join( "..", "extensions", @@ -114,7 +114,7 @@ const exe = os === "win32" ? ".exe" : ""; ncp("dist", intellijExtensionWebviewPath, (error) => { if (error) { console.warn( - "[error] Error copying React app build to Intellij extension: ", + "[error] Error copying React app build to JetBrains extension: ", error, ); reject(error); @@ -136,7 +136,7 @@ const exe = os === "win32" ? ".exe" : ""; path.join(intellijExtensionWebviewPath, "onigasm.wasm"), ); - console.log("[info] Copied gui build to Intellij extension"); + console.log("[info] Copied gui build to JetBrains extension"); // Then copy over the dist folder to the VSCode extension // const vscodeGuiPath = path.join("../extensions/vscode/gui"); @@ -248,7 +248,10 @@ const exe = os === "win32" ? ".exe" : ""; "../../../core/llm/tiktokenWorkerPool.mjs", ]; for (const f of filesToCopy) { - fs.copyFileSync(path.join(__dirname, f), path.join(__dirname, "..", "out", path.basename(f))); + fs.copyFileSync( + path.join(__dirname, f), + path.join(__dirname, "..", "out", path.basename(f)), + ); console.log(`[info] Copied ${path.basename(f)}`); } diff --git a/extensions/vscode/scripts/utils.js b/extensions/vscode/scripts/utils.js index 6a129bc61..93c1928ce 100644 --- a/extensions/vscode/scripts/utils.js +++ b/extensions/vscode/scripts/utils.js @@ -78,7 +78,7 @@ async function buildGui(isGhAction) { execCmdSync("npm run build"); } - // Copy over the dist folder to the Intellij extension // + // Copy over the dist folder to the JetBrains extension // const intellijExtensionWebviewPath = path.join( "..", "extensions", @@ -98,7 +98,7 @@ async function buildGui(isGhAction) { ncp("dist", intellijExtensionWebviewPath, (error) => { if (error) { console.warn( - "[error] Error copying React app build to Intellij extension: ", + "[error] Error copying React app build to JetBrains extension: ", error, ); reject(error); @@ -120,7 +120,7 @@ async function buildGui(isGhAction) { path.join(intellijExtensionWebviewPath, "onigasm.wasm"), ); - console.log("[info] Copied gui build to Intellij extension"); + console.log("[info] Copied gui build to JetBrains extension"); // Then copy over the dist folder to the VSCode extension // const vscodeGuiPath = path.join("../extensions/vscode/gui"); @@ -256,7 +256,7 @@ async function copyNodeModules() { "@esbuild", "@lancedb", "@vscode/ripgrep", - "workerpool" + "workerpool", ]; fs.mkdirSync("out/node_modules", { recursive: true }); @@ -328,15 +328,13 @@ async function downloadEsbuildBinary(target) { "win32-x64": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.17.19.tgz", }[target]; - execCmdSync( - `curl -L -o out/tmp/esbuild.tgz ${downloadUrl}`, - ); + execCmdSync(`curl -L -o out/tmp/esbuild.tgz ${downloadUrl}`); execCmdSync("cd out/tmp && tar -xvzf esbuild.tgz"); // Copy the installed package back to the current directory let tmpPath = "out/tmp/package/bin"; let outPath = `out/node_modules/@esbuild/${target}/bin`; if (target.startsWith("win")) { - tmpPath = 'out/tmp/package'; + tmpPath = "out/tmp/package"; outPath = `out/node_modules/@esbuild/${target}`; } @@ -347,10 +345,7 @@ async function downloadEsbuildBinary(target) { { dereference: true }, (error) => { if (error) { - console.error( - `[error] Error copying esbuild package`, - error, - ); + console.error(`[error] Error copying esbuild package`, error); reject(error); } else { resolve(); @@ -358,7 +353,7 @@ async function downloadEsbuildBinary(target) { }, ); }); - rimrafSync("out/tmp") + rimrafSync("out/tmp"); } async function downloadSqliteBinary(target) { @@ -408,7 +403,8 @@ async function copySqliteBinary() { async function downloadRipgrepBinary(target) { console.log("[info] Downloading pre-built ripgrep binary"); rimrafSync("node_modules/@vscode/ripgrep/bin"); - fs.mkdirSync("node_modules/@vscode/ripgrep/bin", { recursive: true });4 + fs.mkdirSync("node_modules/@vscode/ripgrep/bin", { recursive: true }); + 4; const downloadUrl = { "darwin-arm64": "https://github.com/microsoft/ripgrep-prebuilt/releases/download/v13.0.0-10/ripgrep-v13.0.0-10-aarch64-apple-darwin.tar.gz", @@ -424,8 +420,7 @@ async function downloadRipgrepBinary(target) { "https://github.com/microsoft/ripgrep-prebuilt/releases/download/v13.0.0-10/ripgrep-v13.0.0-10-x86_64-pc-windows-msvc.zip", }[target]; - - if(target.startsWith("win")) { + if (target.startsWith("win")) { execCmdSync( `curl -L -o node_modules/@vscode/ripgrep/bin/build.zip ${downloadUrl}`, ); @@ -435,7 +430,9 @@ async function downloadRipgrepBinary(target) { execCmdSync( `curl -L -o node_modules/@vscode/ripgrep/bin/build.tar.gz ${downloadUrl}`, ); - execCmdSync("cd node_modules/@vscode/ripgrep/bin && tar -xvzf build.tar.gz"); + execCmdSync( + "cd node_modules/@vscode/ripgrep/bin && tar -xvzf build.tar.gz", + ); fs.unlinkSync("node_modules/@vscode/ripgrep/bin/build.tar.gz"); } } @@ -512,5 +509,5 @@ module.exports = { installNodeModuleInTempDirAndCopyToCurrent, downloadSqliteBinary, downloadRipgrepBinary, - copyTokenizers + copyTokenizers, }; From e703e8094208a7bc8503f3131a974530cc7aa7c0 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Mon, 19 Aug 2024 09:44:41 -0700 Subject: [PATCH 6/8] include vscode/jetbrains in telemetry --- core/config/profile/doLoadConfig.ts | 2 +- core/util/posthog.ts | 15 +++++++-------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/core/config/profile/doLoadConfig.ts b/core/config/profile/doLoadConfig.ts index 16f72d40e..b4556f826 100644 --- a/core/config/profile/doLoadConfig.ts +++ b/core/config/profile/doLoadConfig.ts @@ -48,7 +48,7 @@ export default async function doLoadConfig( await Telemetry.setup( newConfig.allowAnonymousTelemetry ?? true, await ide.getUniqueId(), - ideInfo.extensionVersion, + ideInfo, ); if (newConfig.analytics) { diff --git a/core/util/posthog.ts b/core/util/posthog.ts index 3a79814d0..be62977fc 100644 --- a/core/util/posthog.ts +++ b/core/util/posthog.ts @@ -1,12 +1,13 @@ import os from "node:os"; import { TeamAnalytics } from "../control-plane/TeamAnalytics.js"; +import { IdeInfo } from "../index.js"; export class Telemetry { // Set to undefined whenever telemetry is disabled static client: any = undefined; static uniqueId = "NOT_UNIQUE"; static os: string | undefined = undefined; - static extensionVersion: string | undefined = undefined; + static ideInfo: IdeInfo | undefined = undefined; static async capture( event: string, @@ -19,7 +20,9 @@ export class Telemetry { properties: { ...properties, os: Telemetry.os, - extensionVersion: Telemetry.extensionVersion, + extensionVersion: Telemetry.ideInfo?.extensionVersion, + ideName: Telemetry.ideInfo?.name, + ideType: Telemetry.ideInfo?.ideType, }, }); @@ -32,14 +35,10 @@ export class Telemetry { Telemetry.client?.shutdown(); } - static async setup( - allow: boolean, - uniqueId: string, - extensionVersion: string, - ) { + static async setup(allow: boolean, uniqueId: string, ideInfo: IdeInfo) { Telemetry.uniqueId = uniqueId; Telemetry.os = os.platform(); - Telemetry.extensionVersion = extensionVersion; + Telemetry.ideInfo = ideInfo; if (!allow) { Telemetry.client = undefined; From d56cf555e819a4e96656c1b14b8afa6526484d0e Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Mon, 19 Aug 2024 16:47:14 -0700 Subject: [PATCH 7/8] remove testing changes --- .github/workflows/main.yaml | 2 ++ .github/workflows/preview.yaml | 65 +++++++++++++++------------------- 2 files changed, 30 insertions(+), 37 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 3591d3e23..dc5f1019f 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -97,10 +97,12 @@ jobs: cd gui npm ci + # npm ci doesn't end up capturing the @lancedb/... dep because it's not in the package-lock.json - name: Install Core Dependencies run: | cd core npm ci + npm i vectordb - name: Run core tests run: | diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index 5f3fa5ec9..c2abeb9cb 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -1,14 +1,11 @@ name: Publish Preview Extension on: - push: + create: + tags: + - "v0.9.*-vscode" branches: - - nate/fix-ci-tests - # create: - # tags: - # - "v0.9.*-vscode" - # branches: - # - dev + - dev jobs: build: @@ -55,8 +52,8 @@ jobs: with: fetch-depth: 0 # This ensures all tags are fetched - # - name: Checkout tag - # run: git checkout ${GITHUB_REF#refs/tags/} + - name: Checkout tag + run: git checkout ${GITHUB_REF#refs/tags/} # 2. Install npm dependencies - name: Use Node.js from .nvmrc @@ -64,11 +61,11 @@ jobs: with: node-version-file: ".nvmrc" - # - name: Cache extension node_modules - # uses: actions/cache@v3 - # with: - # path: extensions/vscode/node_modules - # key: ${{ runner.os }}-node-${{ hashFiles('extensions/vscode/package-lock.json') }} + - name: Cache extension node_modules + uses: actions/cache@v3 + with: + path: extensions/vscode/node_modules + key: ${{ runner.os }}-node-${{ hashFiles('extensions/vscode/package-lock.json') }} - name: Cache core node_modules uses: actions/cache@v3 @@ -76,24 +73,24 @@ jobs: path: core/node_modules key: ${{ runner.os }}-node-${{ hashFiles('core/package-lock.json') }} - # - name: Cache gui node_modules - # uses: actions/cache@v3 - # with: - # path: gui/node_modules - # key: ${{ runner.os }}-node-${{ hashFiles('gui/package-lock.json') }} + - name: Cache gui node_modules + uses: actions/cache@v3 + with: + path: gui/node_modules + key: ${{ runner.os }}-node-${{ hashFiles('gui/package-lock.json') }} - # - name: Install extension Dependencies - # run: | - # cd extensions/vscode - # npm ci - # env: - # # https://github.com/microsoft/vscode-ripgrep/issues/9#issuecomment-643965333 - # GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }} + - name: Install extension Dependencies + run: | + cd extensions/vscode + npm ci + env: + # https://github.com/microsoft/vscode-ripgrep/issues/9#issuecomment-643965333 + GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }} - # - name: Install gui Dependencies - # run: | - # cd gui - # npm ci + - name: Install gui Dependencies + run: | + cd gui + npm ci # npm ci doesn't end up capturing the @lancedb/... dep because it's not in the package-lock.json - name: Install Core Dependencies @@ -102,16 +99,10 @@ jobs: npm ci npm i vectordb - - name: Install lance - run: | - cd core - npm install @lancedb/vectordb-linux-x64-gnu - if: matrix.os == 'ubuntu-latest' - - name: Run core tests run: | cd core - npm run test -- ./indexing/CodebaseIndexer.test.ts + npm run test env: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} From 4da47907f00e08f5de87c2ea940c81c567e865a9 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Mon, 19 Aug 2024 16:49:39 -0700 Subject: [PATCH 8/8] fix type error --- core/continueServer/stubs/headers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/continueServer/stubs/headers.ts b/core/continueServer/stubs/headers.ts index e6a864230..ca1e0df9d 100644 --- a/core/continueServer/stubs/headers.ts +++ b/core/continueServer/stubs/headers.ts @@ -6,7 +6,7 @@ export async function getHeaders() { key: constants.c, timestamp: getTimestamp(), v: "1", - extensionVersion: Telemetry.extensionVersion ?? "0.0.0", + extensionVersion: Telemetry.ideInfo?.extensionVersion ?? "0.0.0", os: Telemetry.os ?? "Unknown", uniqueId: Telemetry.uniqueId ?? "None", };