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

fix: lsp bugs #579

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

fix: lsp bugs #579

wants to merge 1 commit into from

Conversation

TherCN
Copy link

@TherCN TherCN commented Apr 3, 2024

No description provided.

val diff = startIndex - endIndex
endIndex = startIndex
startIndex = endIndex - diff
editList.forEach { list: ArrayList<TextEdit> ->
Copy link
Contributor

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

to remove 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()
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants