genexus-mcp 1.1.5 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/run.js +9 -3
- package/package.json +1 -1
package/cli/run.js
CHANGED
|
@@ -101,10 +101,16 @@ if (args[0] === 'init' || args[0] === 'setup') {
|
|
|
101
101
|
return; // Stop execution
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
//
|
|
105
|
-
if (
|
|
104
|
+
// Priority 1: Explicitly passed GX_CONFIG_PATH
|
|
105
|
+
if (process.env.GX_CONFIG_PATH) {
|
|
106
|
+
// Keep it, do nothing.
|
|
107
|
+
}
|
|
108
|
+
// Priority 2: Config inside CWD
|
|
109
|
+
else if (fs.existsSync(cwdConfigPath)) {
|
|
106
110
|
process.env.GX_CONFIG_PATH = cwdConfigPath;
|
|
107
|
-
}
|
|
111
|
+
}
|
|
112
|
+
// Priority 3: Zero-Config Fallback
|
|
113
|
+
else {
|
|
108
114
|
const possibleGxPaths = [
|
|
109
115
|
"C:\\Program Files (x86)\\GeneXus\\GeneXus18",
|
|
110
116
|
"C:\\Program Files (x86)\\GeneXus\\GeneXus17",
|