@github/copilot-language-server 1.406.0 → 1.408.0
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/dist/language-server.js +11 -8
- package/dist/main.js +641 -639
- package/dist/main.js.map +3 -3
- package/dist/tfidfWorker.js +8 -8
- package/dist/tfidfWorker.js.map +2 -2
- package/package.json +7 -7
package/dist/language-server.js
CHANGED
|
@@ -12,14 +12,17 @@ function main() {
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
if (!argv.includes('--node-ipc')) {
|
|
15
|
-
const path = require('
|
|
16
|
-
const root = path.join(__dirname, '..'
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
15
|
+
const path = require('path');
|
|
16
|
+
const root = path.join(__dirname, '..');
|
|
17
|
+
const bin = path.join(
|
|
18
|
+
`copilot-language-server-${process.platform}-${process.arch}`,
|
|
19
|
+
`copilot-language-server${process.platform === 'win32' ? '.exe' : ''}`
|
|
20
|
+
);
|
|
21
|
+
const cp = require('child_process');
|
|
22
|
+
const result1 = cp.spawnSync(path.join(root, 'node_modules', '@github', bin), argv, {stdio: 'inherit'});
|
|
23
|
+
if (typeof result1.status === 'number') process.exit(result1.status);
|
|
24
|
+
const result2 = cp.spawnSync(path.join(root, '..', bin), argv, {stdio: 'inherit'});
|
|
25
|
+
if (typeof result2.status === 'number') process.exit(result2.status);
|
|
23
26
|
}
|
|
24
27
|
console.error(`Node.js ${minMajor}.${minMinor} is required to run GitHub Copilot but found ${version}`);
|
|
25
28
|
// An exit code of X indicates a recommended minimum Node.js version of X.0.
|