From 24de09ada5aa3602a1c2ebb065a5d633d5083c78 Mon Sep 17 00:00:00 2001 From: Shambhu Lal Verma Date: Mon, 18 May 2026 14:06:29 +0530 Subject: [PATCH 1/2] fix: include dist/ in vsix package by overriding .gitignore vsce 2.x respects .gitignore when .vscodeignore is present, causing the compiled webview bundles in dist/ to be stripped from the published package. Adding !dist overrides that exclusion so the UI is included. Co-Authored-By: Claude Sonnet 4.6 --- .vscodeignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.vscodeignore b/.vscodeignore index 0980651..36c4c40 100644 --- a/.vscodeignore +++ b/.vscodeignore @@ -1,3 +1,6 @@ +# dist/ is in .gitignore but must be in the package — vsce respects .gitignore when .vscodeignore is present +!dist + # Source files src/ scripts/ From 884aa3ee555ef2d25c72c704a5281da9d169a8c8 Mon Sep 17 00:00:00 2001 From: Shambhu Lal Verma Date: Mon, 18 May 2026 15:25:01 +0530 Subject: [PATCH 2/2] fix: bundle axios and form-data into extension.js ssr: true causes Vite to externalize all package.json dependencies, leaving axios and form-data as bare require() calls. With node_modules/ excluded from the vsix package, those calls fail at runtime and the extension never activates. noExternal forces both packages to be inlined into extension.js so the vsix needs no node_modules at all. Co-Authored-By: Claude Sonnet 4.6 --- scripts/build.mts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/build.mts b/scripts/build.mts index e11ab45..a7e4137 100644 --- a/scripts/build.mts +++ b/scripts/build.mts @@ -12,6 +12,10 @@ const isProd = process.env.NODE_ENV === "production"; const extensionConfig: InlineConfig = { configFile: false, root: rootDir, + // node_modules/ is excluded from the vsix; these must be bundled into extension.js + ssr: { + noExternal: ["axios", "form-data"], + }, build: { lib: { entry: resolve(rootDir, "src/extension.ts"),