🩹 small jetbrains updates
This commit is contained in:
parent
b7bb1a5666
commit
50f7978e66
4 changed files with 6 additions and 4 deletions
2
.vscode/launch.json
vendored
2
.vscode/launch.json
vendored
|
|
@ -11,7 +11,7 @@
|
|||
"name": "Core Binary",
|
||||
"skipFiles": ["<node_internals>/**"],
|
||||
"program": "${workspaceFolder}/binary/out/index.js",
|
||||
"preLaunchTask": "binary:esbuild",
|
||||
// "preLaunchTask": "binary:esbuild",
|
||||
"outFiles": ["${workspaceFolder}/binary/out/**/*.js"],
|
||||
"sourceMaps": true,
|
||||
"smartStep": true,
|
||||
|
|
|
|||
|
|
@ -26,3 +26,7 @@ The build process is otherwise defined entirely in `build.js`.
|
|||
- tree-sitter-wasms/
|
||||
|
||||
(\*) = need to download for each platform manually
|
||||
|
||||
## Debugging
|
||||
|
||||
To debug the binary with IntelliJ, set `useTcp` to `true` in `CoreMessenger.kt`, and then in VS Code run the "Core Binary" debug script. Instead of starting a subprocess for the binary and communicating over stdin/stdout, the IntelliJ extension will connect over TCP to the server started from the VS Code window. You can place breakpoints anywhere in the `core` or `binary` folders.
|
||||
|
|
|
|||
|
|
@ -107,6 +107,7 @@ async function installNodeModuleInTempDirAndCopyToCurrent(packageName, toCopy) {
|
|||
}
|
||||
|
||||
(async () => {
|
||||
fs.mkdirSync("out/node_modules", { recursive: true });
|
||||
fs.mkdirSync("bin/node_modules", { recursive: true });
|
||||
|
||||
console.log("[info] Downloading prebuilt lancedb...");
|
||||
|
|
|
|||
|
|
@ -78,9 +78,6 @@ export const supportedLanguages: { [key: string]: string } = {
|
|||
};
|
||||
|
||||
export async function getParserForFile(filepath: string) {
|
||||
if (process.env.IS_BINARY) {
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
await Parser.init();
|
||||
const parser = new Parser();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue