Skip to content

Commit c13f6f5

Browse files
github-actions[bot]AntoineGS
authored andcommitted
feat: update to latest Copilot LSP
1 parent 279f4fc commit c13f6f5

File tree

6 files changed

+666
-661
lines changed

6 files changed

+666
-661
lines changed

copilot/js/language-server.js

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,17 @@ function main() {
1212
}
1313

1414
if (!argv.includes('--node-ipc')) {
15-
const path = require('node:path');
16-
const root = path.join(__dirname, '..', '..', `copilot-language-server-${process.platform}-${process.arch}`);
17-
const exe = path.join(root, `copilot-language-server${process.platform === 'win32' ? '.exe' : ''}`);
18-
const cp = require('node:child_process');
19-
const result = cp.spawnSync(exe, argv, {stdio: 'inherit'});
20-
if (typeof result.status === 'number') {
21-
process.exit(result.status);
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);
2326
}
2427
console.error(`Node.js ${minMajor}.${minMinor} is required to run GitHub Copilot but found ${version}`);
2528
// An exit code of X indicates a recommended minimum Node.js version of X.0.

copilot/js/main.js

Lines changed: 641 additions & 639 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

copilot/js/main.js.map

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

copilot/js/tfidfWorker.js

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

copilot/js/tfidfWorker.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lua/copilot/util.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function M.get_editor_info()
2121
editorPluginInfo = {
2222
name = "copilot.lua",
2323
-- reflects version of github/copilot-language-server-release
24-
version = "1.406.0",
24+
version = "1.408.0",
2525
},
2626
}
2727
return info

0 commit comments

Comments
 (0)