copilot-emacs / copilot.el

An unofficial Copilot plugin for Emacs.
MIT License
1.79k stars 126 forks source link

The cursor moves when a suggestion is shown in typescript #165

Closed GuiAmPm closed 1 year ago

GuiAmPm commented 1 year ago

Note: This issue might be due to Tide, please close it if that's the case.

Using Doom Emacs on a typescript project, sometimes I face this issue: Peek 2023-08-09 16-37

Basically I start a block, when I press the closing bracket (or parens), my cursor moves one character before the closing bracket.

This usually happens when the bracket is the last character in the line and does not reproduce when there's whitespace characters after it.

And when my block looks like this const my_block = ({ and I press } then ) the behaviour looks like this: Peek 2023-08-09 16-46

This only happens on Typescript files, while others (tested: Rust and plain text) seem to work as expected. Turning off Copilot mode also fixes the issue.

Either way, thanks for making this project.

dangtran47 commented 1 year ago

I got the same issue when typing parenthesis.

https://github.com/zerolfx/copilot.el/assets/49431747/0cc142b4-19d9-4b7b-8974-345088d2966a

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 5 days with no activity.