Skip to content

Fix #352 again #357

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

Merged
merged 1 commit into from
Apr 2, 2025
Merged

Conversation

aasseman
Copy link
Contributor

I'll need some help with this. This fixes the issue observed in #352 (comment), but I'm not sure this is the correct way and if it will create other problems.

The first observation is that the code deletion problem is not coming from the the code I added that removes extra indentation. So I don't fully understand why my changes created the issue.
I also observed that start and end would always be the same value, unless some text gets inserted before the completion (repro of the issue). So setting start to end "fixes" it.

The problem is that I don't fully understand what the purpose of those 2 values is. Is it for a refactor/rewrite feature?

@rakotomandimby rakotomandimby self-requested a review April 2, 2025 07:07
@rakotomandimby rakotomandimby marked this pull request as ready for review April 2, 2025 07:07
@rakotomandimby rakotomandimby merged commit 5fa27b5 into copilot-emacs:main Apr 2, 2025
10 checks passed
bbatsov pushed a commit to bbatsov/copilot.el that referenced this pull request Apr 5, 2025
@bbatsov
Copy link
Collaborator

bbatsov commented Apr 9, 2025

Seems this resulted in an another issue - #405.

@guillaumebrunerie
Copy link

I think this should be reverted for now, it results in other issues (#405, #409) that I think are a lot more annoying that the original issue it is trying to fix. In particular #409 makes it impossible to just write code normally with copilot-mode enabled: as soon as it correctly guesses the last character of a line, it gets mangled. It happens all the time to me with semicolons.

@bbatsov
Copy link
Collaborator

bbatsov commented Apr 17, 2025

Yeah, I'll revert it. Would have done it earlier, if I could just commit this directly, but now it's a bit of a hassle.

bbatsov added a commit to bbatsov/copilot.el that referenced this pull request Apr 17, 2025
zerolfx pushed a commit that referenced this pull request Apr 17, 2025
@guillaumebrunerie
Copy link

Yeah, I'll revert it. Would have done it earlier, if I could just commit this directly, but now it's a bit of a hassle.

Thanks!

@bbatsov
Copy link
Collaborator

bbatsov commented Apr 17, 2025

I've also cut a new release 0.2, for the people who are using MELPA Stable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants