-
Notifications
You must be signed in to change notification settings - Fork 152
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
fix: lsp bugs #579
base: main
Are you sure you want to change the base?
fix: lsp bugs #579
Conversation
val diff = startIndex - endIndex | ||
endIndex = startIndex | ||
startIndex = endIndex - diff | ||
editList.forEach { list: ArrayList<TextEdit> -> |
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.
No changes needed here. Consider modifying completionItem.additionalTextEdits
at
Line 136 in ce8de8e
put("edits", listOf(completionItem.additionalTextEdits)) |
listOf
, and then test to see if it works properly.
@@ -81,13 +81,9 @@ class DocumentChangeEvent : AsyncEventListener() { | |||
editor: LspEditor, | |||
data: ContentChangeEvent | |||
): List<TextDocumentContentChangeEvent> { | |||
val text = data.changedText.toString() | |||
val text = data.editor.text.toString() |
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.
This does not comply with the LSP specification; what is required here is text for an incremental change. Please clarify why there is a need to modify this part, and if possible, provide a project that can reproduce the related bug. I will look into it.
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.
other fix
No description provided.