Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions autoload/copilot.vim
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
scriptencoding utf-8

let s:has_nvim_ghost_text = has('nvim-0.7') && exists('*nvim_buf_get_mark')
let s:has_nvim_ghost_text = has('nvim-0.8')
let s:vim_minimum_version = '9.0.0185'
let s:has_vim_ghost_text = has('patch-' . s:vim_minimum_version) && has('textprop')
let s:has_ghost_text = s:has_nvim_ghost_text || s:has_vim_ghost_text
Expand Down Expand Up @@ -58,8 +58,8 @@ function! copilot#RunningClient() abort
endif
endfunction

if has('nvim-0.7') && !has(luaeval('vim.version().api_prerelease') ? 'nvim-0.8.1' : 'nvim-0.8.0')
let s:editor_warning = 'Neovim 0.7 support is deprecated and will be dropped in a future release of copilot.vim.'
if has('nvim-0.8') && !has(luaeval('vim.version().api_prerelease') ? 'nvim-0.9.1' : 'nvim-0.9.0')
let s:editor_warning = 'Neovim 0.8 support is deprecated and will be dropped in a future release of copilot.vim.'
endif
if has('vim_starting') && exists('s:editor_warning')
call copilot#logger#Warn(s:editor_warning)
Expand Down
2 changes: 1 addition & 1 deletion autoload/copilot/client.vim
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ endfunction

let s:script_name = 'copilot-language-server/dist/language-server.js'
function! s:Command() abort
if !has('nvim-0.7') && v:version < 900
if !has('nvim-0.8') && v:version < 900
return [[], [], 'Vim version too old']
endif
let script = get(g:, 'copilot_command', '')
Expand Down
2 changes: 1 addition & 1 deletion autoload/copilot/version.vim
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function! copilot#version#String() abort
return '1.52.0'
return '1.53.0'
endfunction
36 changes: 19 additions & 17 deletions copilot-language-server/dist/diffWorker.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions copilot-language-server/dist/diffWorker.js.map

Large diffs are not rendered by default.

1,141 changes: 619 additions & 522 deletions copilot-language-server/dist/main.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions copilot-language-server/dist/main.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions copilot-language-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"url": "git+https://github.com/github/copilot-language-server-release.git"
},
"license": "https://docs.github.com/en/site-policy/github-terms/github-terms-for-additional-products-and-features",
"version": "1.349.0",
"version": "1.356.0",
"bin": {
"copilot-language-server": "../dist/language-server.js"
},
Expand All @@ -32,6 +32,6 @@
"dependencies": {
"vscode-languageserver-protocol": "^3.17.5"
},
"build": "1702",
"build": "1732",
"buildType": "prod"
}
3 changes: 0 additions & 3 deletions lua/_copilot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ copilot.lsp_start_client = function(cmd, handler_names, opts, settings)
handlers = handlers,
on_init = function(client, initialize_result)
vim.call('copilot#client#LspInit', client.id, initialize_result)
if vim.fn.has('nvim-0.8') == 0 then
client.notify('workspace/didChangeConfiguration', { settings = settings })
end
end,
on_exit = function(code, signal, client_id)
vim.schedule(function()
Expand Down
Loading