-
Notifications
You must be signed in to change notification settings - Fork 27
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
"Try this" replaces incorrect segment #313
Comments
Fixes Julian#313. The diagnostics objects already includes `end_lnum` and `end_col`, so we can just use them. Not sure why neither VSCode nor your code uses it.
They're incomplete, as evidenced best by #313, so when that is fixed we should revisit porting more of the Lean 3 tests to the file.
This seems to work correctly here (now?). I'm on Lean 4.3.0rc1, Mathlib4 df32aa2ebe0f1ef9bce7831b1bcc0723f07a4724 and NVIM v0.9.4. Can you confirm whether it does or doesn't for you? |
Hi, sorry for the late reply. No, it doesn't work for me. I'm on NVIM v0.9.4, Lean v4.3.0-rc1, Mathlib b6ec7450650a5945bf4244751be4a5cf1fee962f. It's very interesting that it works for you, my understanding is it shouldn't... Also, I think I have a fix idea, but I haven't gotten to implement it yet. Essentially, we should implement the |
This is what I see here: Screen.Recording.2023-11-06.at.10.34.05.PM.movWill need some way of reproducing the broken behavior I think |
To be sure -- are you using |
I was using trythis, and I have gotten it to work with code action now :) Thanks a lot! |
Cool, ok glad it works, I'll try to make this clearer -- I'd already removed |
Hi. Here's code:
With this code, it is supposed to change the entire line, as specified by
origSpan?
. Apparently it does on VSCode c.f. Mario. However, the plugin doesn't - it replaces it withf 3 = 4 a b c d e f g
.The text was updated successfully, but these errors were encountered: