We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2392962 commit 6476284Copy full SHA for 6476284
.vscode/launch.json
@@ -15,7 +15,10 @@
15
"outFiles": [
16
"${workspaceFolder}/dist/**/*.js"
17
],
18
- "preLaunchTask": "${defaultBuildTask}"
+ "preLaunchTask": "${defaultBuildTask}",
19
+ "env": {
20
+ "NODE_ENV": "development"
21
+ }
22
}
23
]
24
src/ragService.ts
@@ -10,7 +10,8 @@ import * as crypto from 'crypto';
10
// Define a variable to store the extension path
11
let EXTENSION_PATH: string = '';
12
13
-const isDevMode = !__dirname.includes('dist');
+const isDevMode = process.env.NODE_ENV === 'development';
14
+
// Dynamically set Python script or EXE path
const getPythonScriptPath = (extensionPath: string) => {
if (isDevMode) {
0 commit comments