You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently copilot is not syntax aware, and is therefore "hallucinating" the list of suggestions based on its generic "knowledge". However, in emacs it would be possible to filter the list of suggestions, and give higher priority to an answer that is valid according to eglot.
Let's say that copilot completes the rest of the code as soon as you write "catch". But copilot has no way of knowing whether MyException has a method GetErr(), GetError() , GetErrorMessage(), etc. But eglot, through LSP, does know that. So in case that the syntax-compliant completion was generated as one of the suggestions by copilot, a filter by eglot, would be able to select the correct suggestion.
Of course, a deeper integration would be even better, but a simple filter would be a good start.
The text was updated successfully, but these errors were encountered:
dov
changed the title
Filter answers by copilot and give higher priority to suggestions that are compatible with eglot
Filter answers by copilot and give higher priority to suggestions that syntax-compliant
Sep 23, 2024
Currently copilot is not syntax aware, and is therefore "hallucinating" the list of suggestions based on its generic "knowledge". However, in emacs it would be possible to filter the list of suggestions, and give higher priority to an answer that is valid according to eglot.
Here is an example in C++:
Let's say that copilot completes the rest of the code as soon as you write "catch". But copilot has no way of knowing whether
MyException
has a methodGetErr()
,GetError()
,GetErrorMessage()
, etc. But eglot, through LSP, does know that. So in case that the syntax-compliant completion was generated as one of the suggestions by copilot, a filter by eglot, would be able to select the correct suggestion.Of course, a deeper integration would be even better, but a simple filter would be a good start.
The text was updated successfully, but these errors were encountered: