- Notifications
You must be signed in to change notification settings - Fork 64
V628-024 Symbol diff has been added #998
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll let Vadim comment on the VSS part in itself, since I am not an expert. We miss some tests too
Out_Span, | ||
Edit); | ||
| ||
if Span.last.line - Span.first.line > 5 then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need a comment explaining this threshold
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have a space at the end of comment, I guess
Span : LSP.Messages.Span; | ||
New_Text : VSS.Strings.Virtual_String; | ||
Edit : out LSP.Messages.TextEdit_Vector); | ||
-- Create a diff between document Text inside Span and New_Chunk and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't explain the difference with the 'Diff' function here... You should explain why the TextEdits will be different (i.e: it will not replace the whole line a by a new line, but only add/delete some characters when possible).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's have a test on a rangeFormatting requet then
ad3a3fd
to 2810233
Compare There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code is really hard to read IMO. Maybe it's juste me, but I think you can try to improve a bit more the comments and the function names if other people need to resolve a bug later in that area.
The CI does not pass, please check again |
No description provided.