From b5c07654df41ff1bb1a2e42f1e369aa58a128b4a Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Fri, 14 Feb 2025 19:42:57 -0800 Subject: [PATCH] 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",