TerminalFi / LSP-copilot

GitHub Copilot support for Sublime Text LSP plugin provided through Copilot.vim.
658 stars 25 forks source link

Completion popup only shows first line #87

Closed sebastianhelbig closed 1 year ago

sebastianhelbig commented 1 year ago

The completion popup only shows the first line of the suggestion and after accepting also only this line is written.

Instead when using panel completions, the full multi-line suggestion is showing up.

image

image

TerminalFi commented 1 year ago

My first assumption is that if you hit tab the next suggestion would be the following line and is expected. Get completion and Get Panel Completion are two different requests and like Copilot returns things differently.

I can try and see if this is the case.

TerminalFi commented 1 year ago

Yes, this is working as expected.

You can open the LSP Log Panel and observe the requests and responses. This behavior is copilot and not the plug-in.

I’d assume you receive the same results using VSCode

sebastianhelbig commented 1 year ago

Ok. Thank you for the explanation!