feat: introduce diagnostics context and prompt#1167
Closed
gennaro-tedesco wants to merge 1 commit intoCopilotC-Nvim:mainfrom
gennaro-tedesco:diagnostics_context
Closed
feat: introduce diagnostics context and prompt#1167gennaro-tedesco wants to merge 1 commit intoCopilotC-Nvim:mainfrom gennaro-tedesco:diagnostics_context
gennaro-tedesco wants to merge 1 commit intoCopilotC-Nvim:mainfrom
gennaro-tedesco:diagnostics_context
Conversation
Collaborator
|
tools branch already has diagnostics as separate function, and also for opened buffers. This PR is also adding diagnostics for current buffer only and not workspace diagnostics, check vim.diagnostic.get() documentation |
Author
|
Good morning and thank you for reviewing the PR! For me to better understand: you are saying there is a |
Collaborator
|
Yea pretty much |
Author
|
Ah, very well, then we can close this PR I guess. P. S. I don't see the |
Contributor
|
That's on open PRs on this repo @gennaro-tedesco, fyi. |
Author
|
Fantastic, thank you for the great work! I will close this PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I often find myself wanting to resolve the code diagnostics and manually adding the corresponding error messages and/or buffers to the chat, together with a custom prompt. I thought I could propose to add diagnostics as default context and prompt that the user can select in order to streamline this process.
This PR introduces: