Skip to content

Fix BadLocationException for length==-1 - #356

Merged
mickaelistria merged 1 commit into
eclipse-lsp4e:masterfrom
BoykoAlex:gh-355
Jan 12, 2023
Merged

mickaelistria merged 1 commit into
eclipse-lsp4e:masterfrom
BoykoAlex:gh-355

Conversation

@BoykoAlex

Copy link
Copy Markdown
Contributor

Fix #355
org.eclipse.jface.text.quickassist.QuickAssistAssistant line 71 creates TextInvocationContext with length equal to -1 - therefore length -1 is valid.
Now LSP4E just adds length to get the last position. Need to account for negative length,

@mickaelistria
mickaelistria merged commit 992993f into eclipse-lsp4e:master Jan 12, 2023
@mickaelistria

Copy link
Copy Markdown
Contributor

Thanks!

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.

BadLocationException invoking quick proposals at 0,0 location.

2 participants