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

Bad interaction between autoformat and inline assistant #21085

Open
1 task done
wolffiex opened this issue Nov 22, 2024 · 0 comments
Open
1 task done

Bad interaction between autoformat and inline assistant #21085

wolffiex opened this issue Nov 22, 2024 · 0 comments
Labels
admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue

Comments

@wolffiex
Copy link
Contributor

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

I open a new line in vim mode using o
I hit ctrl+enter
That unfocuses the editor so it autosaves because I have "autosave": "on_focus_change" .
That triggers an autoformat with ruff.
The new line I opened is removed by the autoformatting.
The assistant now gets very confused inserting code probably because the place in the code it thinks it should insert is now incorrect.

Environment

Zed: v0.161.2 (Zed Nightly 00d96d9ea4f75afcdd5d08b08ff20f3df363676a)
OS: macOS 14.7.1
Memory: 36 GiB
Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

CleanShot.2024-11-21.at.21.05.32.mp4

If applicable, attach your Zed.log file to this issue.

Zed.log

@wolffiex wolffiex added admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue labels Nov 22, 2024
@wolffiex wolffiex changed the title Bad interaction between autocomplete and inline assistant Bad interaction between autoformat and inline assistant Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue
Projects
None yet
Development

No branches or pull requests

1 participant