Skip to content

Commit a12fd56

Browse files
committed
Copilot.vim 1.59.0
1 parent 206011a commit a12fd56

8 files changed

Lines changed: 674 additions & 669 deletions

File tree

autoload/copilot/client.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ function! s:NvimNotify(method, params) dict abort
485485
endfunction
486486

487487
function! s:NvimDoNotify(client, method, params) abort
488-
return eval("v:lua.require'_copilot'.rpc_notify(a:client.client_id, a:method, a:params)")
488+
return eval("v:lua.require'_copilot'.rpc_notify(a:client.id, a:method, a:params)")
489489
endfunction
490490

491491
function! copilot#client#LspHandle(id, request) abort

autoload/copilot/version.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
function! copilot#version#String() abort
2-
return '1.58.0'
2+
return '1.59.0'
33
endfunction

copilot-language-server/dist/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-language-server/dist/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-language-server/dist/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-language-server/dist/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-language-server/dist/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.

copilot-language-server/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"url": "git+https://github.com/github/copilot-language-server-release.git"
1212
},
1313
"license": "MIT",
14-
"version": "1.406.0",
14+
"version": "1.408.0",
1515
"bin": {
1616
"copilot-language-server": "../dist/language-server.js"
1717
},
@@ -37,12 +37,12 @@
3737
"vscode-languageserver-protocol": "^3.17.5"
3838
},
3939
"optionalDependencies": {
40-
"@github/copilot-language-server-win32-x64": "1.406.0",
41-
"@github/copilot-language-server-linux-x64": "1.406.0",
42-
"@github/copilot-language-server-linux-arm64": "1.406.0",
43-
"@github/copilot-language-server-darwin-x64": "1.406.0",
44-
"@github/copilot-language-server-darwin-arm64": "1.406.0"
40+
"@github/copilot-language-server-win32-x64": "1.408.0",
41+
"@github/copilot-language-server-linux-x64": "1.408.0",
42+
"@github/copilot-language-server-linux-arm64": "1.408.0",
43+
"@github/copilot-language-server-darwin-x64": "1.408.0",
44+
"@github/copilot-language-server-darwin-arm64": "1.408.0"
4545
},
4646
"buildType": "prod",
47-
"build": "13"
47+
"build": "15"
4848
}

0 commit comments

Comments
 (0)