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

Use Qwen 2.5 Coder <|cursor|> token to properly position cursor after code auto-completion #3852

Open
2 tasks
crto opened this issue Jan 26, 2025 · 0 comments
Open
2 tasks
Assignees
Labels
area:autocomplete Relates to the auto complete feature kind:bug Indicates an unexpected problem or unintended behavior "needs-triage" priority:medium Indicates medium priority

Comments

@crto
Copy link

crto commented Jan 26, 2025

Validations

  • I believe this is a way to improve. I'll try to join the Continue Discord for questions
  • I'm not able to find an open issue that requests the same enhancement

Problem

Qwen 2.5 Coder model sometimes returns <|cursor|> token in code completion response to indicate proper new position of cursor after code insertion. Currently continue.dev displays the <|cursor|> text instead of properly positioning the cursor in editor.
Example code completion:

int main()
{
<|cursor|>
}

Solution

Proper positioning of cursor after autocomplete code insertion.

@sestinj sestinj self-assigned this Jan 26, 2025
@dosubot dosubot bot added area:autocomplete Relates to the auto complete feature kind:bug Indicates an unexpected problem or unintended behavior priority:medium Indicates medium priority labels Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:autocomplete Relates to the auto complete feature kind:bug Indicates an unexpected problem or unintended behavior "needs-triage" priority:medium Indicates medium priority
Projects
None yet
Development

No branches or pull requests

2 participants