Changesets · Branches · Tags · Compare
| Changeset | bd1a49d2f4cba72782908a9cd947d0bf9339d9c317117b9e8e8bb70c327f4eef |
|---|---|
| Author | Dallin Romney <dallinromney@gmail.com> · 2025-07-10 13:26 -07:00 |
| Committer | GitHub <noreply@github.com> · 2025-07-10 13:26 -07:00 |
| Parents | 60ee8f5b4832, d17009252f77 |
9 files changed
modified binary/.gitignore +1 −0
| @@ -3,3 +3,4 @@ | ||
| 3 | 3 | data |
| 4 | 4 | out |
| 5 | 5 | tmp |
| 6 | +tree-sitter |
modified binary/build.js +20 −0
| @@ -21,6 +21,7 @@ | ||
| 21 | 21 | rimrafSync(out); |
| 22 | 22 | rimrafSync(build); |
| 23 | 23 | rimrafSync(path.join(__dirname, "tmp")); |
| 24 | + rimrafSync(path.join(__dirname, "tree-sitter")); | |
| 24 | 25 | fs.mkdirSync(bin); |
| 25 | 26 | fs.mkdirSync(out); |
| 26 | 27 | fs.mkdirSync(build); |
| @@ -142,6 +143,25 @@ | ||
| 142 | 143 | ); |
| 143 | 144 | }); |
| 144 | 145 | |
| 146 | + // copy tree-sitter colder to binary folder to make it available when running in intellij debug mode | |
| 147 | + const treeSitterDir = path.join(__dirname, "tree-sitter"); | |
| 148 | + fs.mkdirSync(treeSitterDir); | |
| 149 | + await new Promise((resolve, reject) => { | |
| 150 | + ncp( | |
| 151 | + path.join(__dirname, "..", "extensions", "vscode", "tree-sitter"), | |
| 152 | + treeSitterDir, | |
| 153 | + { dereference: true }, | |
| 154 | + (error) => { | |
| 155 | + if (error) { | |
| 156 | + console.warn("[error] Error copying tree-sitter files", error); | |
| 157 | + reject(error); | |
| 158 | + } else { | |
| 159 | + resolve(); | |
| 160 | + } | |
| 161 | + }, | |
| 162 | + ); | |
| 163 | + }); | |
| 164 | + | |
| 145 | 165 | const filesToCopy = [ |
| 146 | 166 | "../core/vendor/tree-sitter.wasm", |
| 147 | 167 | "../core/llm/llamaTokenizerWorkerPool.mjs", |
modified binary/pkgJson/darwin-arm64/package.json +1 −0
| @@ -11,6 +11,7 @@ | ||
| 11 | 11 | "../../../core/node_modules/sqlite3/**/*", |
| 12 | 12 | "../../out/tree-sitter.wasm", |
| 13 | 13 | "../../out/tree-sitter-wasms/*", |
| 14 | + "../../tree-sitter/**/*", | |
| 14 | 15 | "../../out/llamaTokenizer.mjs", |
| 15 | 16 | "../../out/llamaTokenizerWorkerPool.mjs", |
| 16 | 17 | "../../out/tiktokenWorkerPool.mjs", |
modified binary/pkgJson/darwin-x64/package.json +1 −0
| @@ -11,6 +11,7 @@ | ||
| 11 | 11 | "../../../core/node_modules/sqlite3/**/*", |
| 12 | 12 | "../../out/tree-sitter.wasm", |
| 13 | 13 | "../../out/tree-sitter-wasms/*", |
| 14 | + "../../tree-sitter/**/*", | |
| 14 | 15 | "../../out/llamaTokenizer.mjs", |
| 15 | 16 | "../../out/llamaTokenizerWorkerPool.mjs", |
| 16 | 17 | "../../out/tiktokenWorkerPool.mjs", |
modified binary/pkgJson/linux-arm64/package.json +1 −0
| @@ -11,6 +11,7 @@ | ||
| 11 | 11 | "../../../core/node_modules/sqlite3/**/*", |
| 12 | 12 | "../../out/tree-sitter.wasm", |
| 13 | 13 | "../../out/tree-sitter-wasms/*", |
| 14 | + "../../tree-sitter/**/*", | |
| 14 | 15 | "../../out/llamaTokenizer.mjs", |
| 15 | 16 | "../../out/llamaTokenizerWorkerPool.mjs", |
| 16 | 17 | "../../out/tiktokenWorkerPool.mjs", |
modified binary/pkgJson/linux-x64/package.json +1 −0
| @@ -11,6 +11,7 @@ | ||
| 11 | 11 | "../../../core/node_modules/sqlite3/**/*", |
| 12 | 12 | "../../out/tree-sitter.wasm", |
| 13 | 13 | "../../out/tree-sitter-wasms/*", |
| 14 | + "../../tree-sitter/**/*", | |
| 14 | 15 | "../../out/llamaTokenizer.mjs", |
| 15 | 16 | "../../out/llamaTokenizerWorkerPool.mjs", |
| 16 | 17 | "../../out/tiktokenWorkerPool.mjs", |
modified binary/pkgJson/win32-arm64/package.json +1 −0
| @@ -11,6 +11,7 @@ | ||
| 11 | 11 | "../../../core/node_modules/sqlite3/**/*", |
| 12 | 12 | "../../out/tree-sitter.wasm", |
| 13 | 13 | "../../out/tree-sitter-wasms/*", |
| 14 | + "../../tree-sitter/**/*", | |
| 14 | 15 | "../../node_modules/win-ca/lib/crypt32-ia32.node", |
| 15 | 16 | "../../node_modules/win-ca/lib/crypt32-x64.node", |
| 16 | 17 | "../../node_modules/win-ca/lib/roots.exe", |
modified binary/pkgJson/win32-x64/package.json +1 −0
| @@ -11,6 +11,7 @@ | ||
| 11 | 11 | "../../../core/node_modules/sqlite3/**/*", |
| 12 | 12 | "../../out/tree-sitter.wasm", |
| 13 | 13 | "../../out/tree-sitter-wasms/*", |
| 14 | + "../../tree-sitter/**/*", | |
| 14 | 15 | "../../node_modules/win-ca/lib/crypt32-ia32.node", |
| 15 | 16 | "../../node_modules/win-ca/lib/crypt32-x64.node", |
| 16 | 17 | "../../node_modules/win-ca/lib/roots.exe", |
modified extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IntelliJIde.kt +3 −2
| @@ -495,7 +495,7 @@ | ||
| 495 | 495 | |
| 496 | 496 | // Create the list of IndexTag objects |
| 497 | 497 | return workspaceDirs.mapIndexed { index, directory -> |
| 498 | - IndexTag(directory, branches[index], artifactId) | |
| 498 | + IndexTag(artifactId, branches[index], directory) | |
| 499 | 499 | } |
| 500 | 500 | } |
| 501 | 501 | |
| @@ -622,4 +622,5 @@ | ||
| 622 | 622 | return listOfNotNull(project.guessProjectDir()?.toUriOrNull()).toTypedArray() |
| 623 | 623 | } |
| 624 | 624 | |
| 625 | -} | |
| No newline at the end of the file | ||
| 625 | +} | |
| 626 | + |