update intellij build for new workers

This commit is contained in:
Nate Sesti 2024-08-08 10:46:42 -04:00
parent 5d5d4eb73d
commit 85b3d211a6
4 changed files with 24 additions and 12 deletions

View file

@ -184,7 +184,14 @@ async function installNodeModuleInTempDirAndCopyToCurrent(packageName, toCopy) {
entryPoints: ["src/index.ts"],
bundle: true,
outfile: esbuildOutputFile,
external: ["esbuild", "./xhr-sync-worker.js", "vscode", "./index.node"],
external: [
"esbuild",
"./xhr-sync-worker.js",
"llamaTokenizerWorkerPool.mjs",
"tiktokenWorkerPool.mjs",
"vscode",
"./index.node",
],
format: "cjs",
platform: "node",
sourcemap: true,
@ -204,6 +211,11 @@ async function installNodeModuleInTempDirAndCopyToCurrent(packageName, toCopy) {
"../core/node_modules/jsdom/lib/jsdom/living/xhr/xhr-sync-worker.js",
"out/xhr-sync-worker.js",
);
fs.cpSync("../core/llm/tiktokenWorkerPool.mjs", "out/tiktokenWorkerPool.mjs");
fs.cpSync(
"../core/llm/llamaTokenizerWorkerPool.mjs",
"out/llamaTokenizerWorkerPool.mjs",
);
if (esbuildOnly) {
return;

View file

@ -45,8 +45,8 @@
"license": "Apache-2.0",
"dependencies": {
"@aws-sdk/client-bedrock-runtime": "^3.620.1",
"@aws-sdk/credential-providers": "^3.620.1",
"@aws-sdk/client-sagemaker-runtime": "^3.621.0",
"@aws-sdk/credential-providers": "^3.620.1",
"@continuedev/config-types": "^1.0.10",
"@continuedev/llm-info": "^1.0.1",
"@mozilla/readability": "^0.5.0",

View file

@ -684,6 +684,16 @@ export class Core {
)) {
this.messenger.request("indexProgress", update);
this.indexingState = update;
if (update.status === "failed") {
Telemetry.capture(
"indexing_error",
{
error: update.desc,
},
false,
);
}
}
this.messenger.send("refreshSubmenuItems", undefined);

View file

@ -1,7 +1,5 @@
<!-- Plugin description -->
![readme](media/readme.png)
<h1 align="center">Continue</h1>
<div align="center">
@ -14,26 +12,18 @@
## Easily understand code sections
![understand](docs/static/img/understand.gif)
`cmd+J` (MacOS) / `ctrl+J` (Windows)
## Tab to autocomplete code suggestions
![autocomplete](docs/static/img/autocomplete.gif)
`tab` (MacOS) / `tab` (Windows)
## Refactor functions where you are coding
![inline](docs/static/img/inline.gif)
`cmd+I` (MacOS) / `ctrl+I` (Windows)
## Quickly use documentation as context
![docs](docs/static/img/docs.gif)
`@docs` (MacOS) / `@docs` (Windows)
</div>