From b5c07654df41ff1bb1a2e42f1e369aa58a128b4a Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Fri, 14 Feb 2025 19:42:57 -0800 Subject: [PATCH 1/2] remove onigasm --- extensions/vscode/.gitignore | 1 - extensions/vscode/scripts/prepackage.js | 6 ------ extensions/vscode/scripts/utils.js | 14 +++++--------- gui/package.json | 1 - 4 files changed, 5 insertions(+), 17 deletions(-) diff --git a/extensions/vscode/.gitignore b/extensions/vscode/.gitignore index 05afd11d4..29ad0b023 100644 --- a/extensions/vscode/.gitignore +++ b/extensions/vscode/.gitignore @@ -11,7 +11,6 @@ bin assets gui/** -!gui/onigasm.wasm .devcontainer .github diff --git a/extensions/vscode/scripts/prepackage.js b/extensions/vscode/scripts/prepackage.js index 8ba77dbf1..8332383ae 100644 --- a/extensions/vscode/scripts/prepackage.js +++ b/extensions/vscode/scripts/prepackage.js @@ -120,12 +120,6 @@ const isMacTarget = target?.startsWith("darwin"); fs.copyFileSync("tmp_index.html", indexHtmlPath); fs.unlinkSync("tmp_index.html"); - // Copy over other misc. files - fs.copyFileSync( - "../extensions/vscode/gui/onigasm.wasm", - path.join(intellijExtensionWebviewPath, "onigasm.wasm"), - ); - console.log("[info] Copied gui build to JetBrains extension"); // Then copy over the dist folder to the VSCode extension // diff --git a/extensions/vscode/scripts/utils.js b/extensions/vscode/scripts/utils.js index 4f9ce187c..2254bb1f3 100644 --- a/extensions/vscode/scripts/utils.js +++ b/extensions/vscode/scripts/utils.js @@ -18,8 +18,10 @@ function copyConfigSchema() { enum: ["merge", "overwrite"], default: "merge", title: "Merge behavior", - markdownDescription: "If set to 'merge', .continuerc.json will be applied on top of config.json (arrays and objects are merged). If set to 'overwrite', then every top-level property of .continuerc.json will overwrite that property from config.json.", - "x-intellij-html-description": "

If set to merge, .continuerc.json will be applied on top of config.json (arrays and objects are merged). If set to overwrite, then every top-level property of .continuerc.json will overwrite that property from config.json.

" + markdownDescription: + "If set to 'merge', .continuerc.json will be applied on top of config.json (arrays and objects are merged). If set to 'overwrite', then every top-level property of .continuerc.json will overwrite that property from config.json.", + "x-intellij-html-description": + "

If set to merge, .continuerc.json will be applied on top of config.json (arrays and objects are merged). If set to overwrite, then every top-level property of .continuerc.json will overwrite that property from config.json.

", }; fs.writeFileSync("continue_rc_schema.json", JSON.stringify(schema, null, 2)); @@ -123,12 +125,6 @@ async function buildGui(isGhAction) { fs.copyFileSync("tmp_index.html", indexHtmlPath); fs.unlinkSync("tmp_index.html"); - // Copy over other misc. files - fs.copyFileSync( - "../extensions/vscode/gui/onigasm.wasm", - path.join(intellijExtensionWebviewPath, "onigasm.wasm"), - ); - console.log("[info] Copied gui build to JetBrains extension"); // Then copy over the dist folder to the VSCode extension // @@ -539,5 +535,5 @@ module.exports = { downloadSqliteBinary, downloadRipgrepBinary, copyTokenizers, - copyScripts + copyScripts, }; diff --git a/gui/package.json b/gui/package.json index d351e0f30..456c519fd 100644 --- a/gui/package.json +++ b/gui/package.json @@ -40,7 +40,6 @@ "lodash": "^4.17.21", "minisearch": "^7.0.2", "mustache": "^4.2.0", - "onigasm": "^2.2.5", "posthog-js": "^1.130.1", "prismjs": "^1.29.0", "react": "^18.2.0", From af845d259759858c8fedfaa9e710108deb2a3843 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Fri, 14 Feb 2025 19:46:13 -0800 Subject: [PATCH 2/2] install deps --- gui/package-lock.json | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/gui/package-lock.json b/gui/package-lock.json index 72164bb92..ea12a2395 100644 --- a/gui/package-lock.json +++ b/gui/package-lock.json @@ -32,7 +32,6 @@ "lodash": "^4.17.21", "minisearch": "^7.0.2", "mustache": "^4.2.0", - "onigasm": "^2.2.5", "posthog-js": "^1.130.1", "prismjs": "^1.29.0", "react": "^18.2.0", @@ -8835,27 +8834,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/onigasm": { - "version": "2.2.5", - "resolved": "https://registry.npmjs.org/onigasm/-/onigasm-2.2.5.tgz", - "integrity": "sha512-F+th54mPc0l1lp1ZcFMyL/jTs2Tlq4SqIHKIXGZOR/VkHkF9A7Fr5rRr5+ZG/lWeRsyrClLYRq7s/yFQ/XhWCA==", - "dependencies": { - "lru-cache": "^5.1.1" - } - }, - "node_modules/onigasm/node_modules/lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "dependencies": { - "yallist": "^3.0.2" - } - }, - "node_modules/onigasm/node_modules/yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" - }, "node_modules/optionator": { "version": "0.9.4", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz",