File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,19 +2,6 @@ local user_data = require("copilot.setup").get_cred()
22local util = require (" copilot.util" )
33local M = {}
44
5- local send_editor_info = function (a , b , c , d )
6- local responses = vim .lsp .buf_request_sync (0 , " setEditorInfo" , {
7- editorPluginInfo = {
8- name = " copilot.vim" ,
9- version = " 1.1.0" ,
10- },
11- editorInfo = {
12- version = " 0.7.0-dev+1343-g4d3acd6be-dirty" ,
13- name = " Neovim" ,
14- },
15- }, 600 )
16- end
17-
185local capabilities = vim .lsp .protocol .make_client_capabilities ()
196capabilities .getCompletions = true
207
@@ -50,7 +37,6 @@ M.start = function(params)
5037 else
5138 vim .cmd (" au BufEnter * lua require('copilot.util').attach_copilot()" )
5239 end
53- send_editor_info ()
5440 end ,
5541 on_attach = function ()
5642 vim .schedule (function ()
@@ -60,4 +46,18 @@ M.start = function(params)
6046 })
6147end
6248
49+ -- this doesn't seem to do anything so remove for now
50+ -- local send_editor_info = function()
51+ -- vim.lsp.buf_request_sync(0, "setEditorInfo", {
52+ -- editorPluginInfo = {
53+ -- name = "copilot.vim",
54+ -- version = "1.1.0",
55+ -- },
56+ -- editorInfo = {
57+ -- version = "0.7.0-dev+1343-g4d3acd6be-dirty",
58+ -- name = "Neovim",
59+ -- },
60+ -- }, 600)
61+ -- end
62+
6363return M
You can’t perform that action at this time.
0 commit comments