Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update copilot.vim/dist #269

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Feb 8, 2024

Automated changes by create-pull-request GitHub action

@github-actions github-actions bot force-pushed the create-pull-request/update-copilot-dist branch 2 times, most recently from 5e236de to 26b236f Compare February 24, 2024 00:15
@github-actions github-actions bot force-pushed the create-pull-request/update-copilot-dist branch 5 times, most recently from 861ced8 to db0d15b Compare March 3, 2024 00:17
@github-actions github-actions bot force-pushed the create-pull-request/update-copilot-dist branch from db0d15b to bda23c9 Compare March 7, 2024 00:13
@github-actions github-actions bot force-pushed the create-pull-request/update-copilot-dist branch from bda23c9 to c086c9d Compare March 15, 2024 00:16
@github-actions github-actions bot force-pushed the create-pull-request/update-copilot-dist branch from c086c9d to 32e9878 Compare April 5, 2024 00:17
@nwiizo
Copy link

nwiizo commented Apr 10, 2024

@MunifTanjim @zbirenbaum
Hello, as an avid user of copilot.lua, I've greatly benefited from the functionality it provides. I noticed the pull request #269 titled 'Update copilot.vim/dist' and believe that these updates could significantly improve the user experience. Could I kindly request a review of this pull request? Your attention to this matter would not only help in keeping the project up-to-date but also ensure the best possible experience for all users. Thank you for your continued efforts and contributions to this project.

@github-actions github-actions bot force-pushed the create-pull-request/update-copilot-dist branch from 32e9878 to 6293445 Compare April 11, 2024 00:17
@alexpalyan
Copy link

we need to update the file client.lua
Here is diff:

diff --git a/lua/copilot/client.lua b/lua/copilot/client.lua
index 8c1111a..81be009 100644
--- a/lua/copilot/client.lua
+++ b/lua/copilot/client.lua
@@ -164,7 +164,7 @@ local function prepare_client_config(overrides)
     return
   end
 
-  local agent_path = vim.api.nvim_get_runtime_file("copilot/index.js", false)[1]
+  local agent_path = vim.api.nvim_get_runtime_file("copilot/dist/agent.js", false)[1]
   if vim.fn.filereadable(agent_path) == 0 then
     local err = string.format("Could not find agent.js (bad install?) : %s", agent_path)
     vim.notify("[Copilot] " .. err, vim.log.levels.ERROR)
@@ -190,6 +190,7 @@ local function prepare_client_config(overrides)
     cmd = {
       node,
       agent_path,
+      "--stdio",
     },
     root_dir = vim.loop.cwd(),
     name = "copilot",

@github-actions github-actions bot force-pushed the create-pull-request/update-copilot-dist branch from 6293445 to b26db3f Compare April 14, 2024 00:20
@github-actions github-actions bot force-pushed the create-pull-request/update-copilot-dist branch from b26db3f to d0faac9 Compare May 4, 2024 00:16
@github-actions github-actions bot force-pushed the create-pull-request/update-copilot-dist branch from d0faac9 to c3ed9ae Compare May 11, 2024 00:17
@github-actions github-actions bot force-pushed the create-pull-request/update-copilot-dist branch from c3ed9ae to e87636f Compare May 19, 2024 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants