Skip to content

Commit f2b45fe

Browse files
committed
remove useless function causing problems
1 parent b16f659 commit f2b45fe

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

lua/copilot/copilot_handler.lua

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,6 @@ local user_data = require("copilot.setup").get_cred()
22
local util = require("copilot.util")
33
local 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-
185
local capabilities = vim.lsp.protocol.make_client_capabilities()
196
capabilities.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
})
6147
end
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+
6363
return M

0 commit comments

Comments
 (0)