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

response is always empty in the ask's callback #707

Open
iamralch opened this issue Jan 5, 2025 · 1 comment
Open

response is always empty in the ask's callback #707

iamralch opened this issue Jan 5, 2025 · 1 comment
Labels
question Further information is requested

Comments

@iamralch
Copy link

iamralch commented Jan 5, 2025

I am trying to interact with Copilot via the lua library. I have the following snippet:

chat.ask("/Commit", {
	debug = true,
	-- headless = true,
	context = { "file", "git" },
	callback = function(response)
		print(response)
	end,
})
Screenshot 2025-01-05 at 12 31 32
@deathbeam
Copy link
Collaborator

deathbeam commented Feb 6, 2025

Hmm I cant reproduce this, is it still happening?

EDIT: Also you are probably calling it too quickly and maybe that is the issue, should probs call it on buff enter if you want to have it automatic

@deathbeam deathbeam added the question Further information is requested label Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants