@@ -152,7 +152,22 @@ export async function downloadLanguageServer(): Promise<void> {
152152
153153 // Clean up temp directory
154154 fs . rmdirSync ( tempDir )
155- fs . rmdirSync ( path . join ( resourcesDir , 'servers' , 'indexing' ) , { recursive : true } )
155+ // Strip heavy native/model files from indexing, keep tree-sitter + extension.js
156+ const indexingDir = path . join ( resourcesDir , 'servers' , 'indexing' )
157+ if ( fs . existsSync ( indexingDir ) ) {
158+ const binDir = path . join ( indexingDir , 'dist' , 'bin' )
159+ if ( fs . existsSync ( binDir ) ) {
160+ fs . rmdirSync ( binDir , { recursive : true } )
161+ }
162+ const buildDir = path . join ( indexingDir , 'dist' , 'build' )
163+ if ( fs . existsSync ( buildDir ) ) {
164+ fs . rmdirSync ( buildDir , { recursive : true } )
165+ }
166+ const modelsDir = path . join ( indexingDir , 'models' )
167+ if ( fs . existsSync ( modelsDir ) ) {
168+ fs . rmdirSync ( modelsDir , { recursive : true } )
169+ }
170+ }
156171 fs . rmdirSync ( path . join ( resourcesDir , 'servers' , 'ripgrep' ) , { recursive : true } )
157172 fs . rmSync ( path . join ( resourcesDir , 'servers' , 'node' ) )
158173 if ( ! fs . existsSync ( path . join ( resourcesDir , 'servers' , 'aws-lsp-codewhisperer.js' ) ) ) {
0 commit comments