Commit 5150623
authored
## Problem
When users behind corporate proxies/firewalls can't download the LSP
from CDN, the extension falls back to a bundled LSP. The bundled LSP
currently excludes the entire indexing/ folder (~200MB), which means
@file, @folder, and @code context commands don't work for these users.
## Solution
Instead of deleting the entire `indexing` folder during bundling,
selectively strip only the heavy platform-specific files that aren't
needed for context commands:
- dist/bin/ — ONNX native binaries (25MB)
- dist/build/ — faiss native binaries (11MB)
- models/ — CodeSage ONNX model (124MB)
This keeps extension.js, lspServer.js, tree-sitter WASMs (~30MB
uncompressed, ~3MB compressed in VSIX), which is everything needed for
@file, @folder, @code, and BM25 cross-file context.
VSIX size impact: +3MB (19MB → 22MB)
Depends on aws/language-servers#2629: (CDN must
have the updated indexing library)
1 parent 613a66d commit 5150623
1 file changed
+16
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
156 | 171 | | |
157 | 172 | | |
158 | 173 | | |
| |||
0 commit comments