-
-
Notifications
You must be signed in to change notification settings - Fork 219
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
Calva randomly edits file while in Live Share #1434
Comments
Over at slack was noted that this works in v2.0.225. and stops working in v2.0.0226. I'm staring at the 226 changelog and can't for the life of me figure out what caused this:
Do you have any ideas, @bpringe , @ericdallo ? Pinging in @marcomorain for good measure, and we should have all people involved in the relase pinged, I think. |
Yeah, looks like calva is applying code actions automatically, @bpringe sounds like your fix on calva is not working with latest clojure-lsp, maybe it's applying the code action automatically when it has edits? |
I don’t think my changes are related in this case. I never make any changes to documents. |
Seems you already understand the issue, @ericdallo , but anyway, here's a vid posted on Slack where the user is not typing anything, only moving the cursor. Bildschirmaufnahme.2021-12-13.um.15.54.02.mov |
yeah, code-actions are calculated each time user changes cursor, so it explains the weird behavior if calva is indeed applying the code actions every time a new one is available |
I don't see how the change in #1400 would be causing this issue. Calva is only running code actions if a However, since the changes in the image do appear to be code action changes, and since this started happening in 2.0.226, that PRs changes must be related. Since codeActions are a convenience feature and a workaround exists for running them (at least for some of them, you can run the associated Calva Refactor command), and since with clojure-lsp updates we should soon be able to have the code actions work without those changes, I'm going to revert them. |
Issue Type: Bug
When in Live Share the current file is edited randomly, adding brackets and new functions.
No keys are pressed.
It does not happen if we disable the Calva extension.
It also does not happen if we do it in read-only mode.
Both/all have the Calva extension.
Se videos in the Calva slack channel for an illustration. Here and here.
We have debugged some and changed versions of both Live Share and Calva.
It works in Calva version 2.0.225, but not those after.
Extension version: 2.0.229
VS Code version: Code 1.63.0 (Universal) (7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e, 2021-12-07T05:15:48.091Z)
OS version: Darwin arm64 21.1.0
Restricted Mode: No
System Info
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: