Skip to content

Commit 12995df

Browse files
committed
Copilot.vim 1.51.0
1 parent 3955014 commit 12995df

File tree

7 files changed

+666
-627
lines changed

7 files changed

+666
-627
lines changed

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.50.0'
2+
return '1.51.0'
33
endfunction

copilot-language-server/dist/main.js

Lines changed: 653 additions & 614 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/package.json

Lines changed: 2 additions & 2 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": "https://docs.github.com/en/site-policy/github-terms/github-terms-for-additional-products-and-features",
14-
"version": "1.324.0",
14+
"version": "1.343.0",
1515
"bin": {
1616
"copilot-language-server": "../dist/language-server.js"
1717
},
@@ -31,6 +31,6 @@
3131
"dependencies": {
3232
"vscode-languageserver-protocol": "^3.17.5"
3333
},
34-
"build": "1588",
34+
"build": "1671",
3535
"buildType": "prod"
3636
}

doc/copilot.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,7 @@ g:copilot_proxy_strict_ssl
104104
*g:copilot_workspace_folders*
105105
g:copilot_workspace_folders
106106
A list of "workspace folders" or project roots that
107-
Copilot may use to improve to improve the quality of
108-
suggestions.
107+
Copilot may use to improve the quality of suggestions.
109108
>
110109
let g:copilot_workspace_folders =
111110
\ ["~/Projects/myproject"]

lua/_copilot.lua

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@ copilot.lsp_start_client = function(cmd, handler_names, opts, settings)
2828
if #workspace_folders == 0 then
2929
workspace_folders = nil
3030
end
31-
-- start_client() is deprecated, but the replacement start() breaks our
32-
-- restart workflow by returning the old client that's shutting down.
33-
-- https://github.com/neovim/neovim/issues/33616
34-
id = vim.lsp.start_client({
31+
local start_client = vim.lsp.start_client
32+
if vim.fn.has('nvim-0.11.2') == 1 then
33+
start_client = vim.lsp.start
34+
end
35+
id = start_client({
3536
cmd = cmd,
3637
cmd_cwd = vim.call('copilot#job#Cwd'),
3738
name = 'GitHub Copilot',

plugin/copilot.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function! s:MapTab() abort
2626
endif
2727
let tab_map = maparg('<Tab>', 'i', 0, 1)
2828
if !has_key(tab_map, 'rhs')
29-
imap <script><silent><nowait><expr> <Tab> empty(get(g:, 'copilot_no_tab_map')) ? copilot#Accept() : "\t"
29+
imap <script><silent><nowait><expr> <Tab> empty(get(g:, 'copilot_no_tab_map')) ? copilot#Accept() : "<Bslash>t"
3030
elseif tab_map.rhs !~# 'copilot'
3131
if tab_map.expr
3232
let tab_fallback = '{ -> ' . tab_map.rhs . ' }'

0 commit comments

Comments
 (0)