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 autocomplete suggestions overwriting existing text #3450

Merged
merged 2 commits into from
Feb 21, 2023

Conversation

mattrunyon
Copy link
Contributor

Fixes #3363

TextEdit.range should be the range of characters to be replaced, not the range of the inserted characters. For completions that should just be the original range

We should maybe change our returned TextEdit to use newText instead of text to match the LSP spec. That would require a 1 line change in the web UI, and it probably needs to support both options since the monaco component is re-used in enterprise

@mattrunyon mattrunyon added the bug Something isn't working label Feb 20, 2023
@mattrunyon mattrunyon self-assigned this Feb 20, 2023
@mattrunyon mattrunyon added the NoReleaseNotesNeeded No release notes are needed. label Feb 20, 2023
@devinrsmith devinrsmith added this to the Feb 2023 milestone Feb 21, 2023
Copy link
Member

@devinrsmith devinrsmith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Do you have a follow-up ticket for the newText issue you referenced?

@mattrunyon
Copy link
Contributor Author

#3452

@mattrunyon mattrunyon merged commit d9271bf into deephaven:main Feb 21, 2023
@mattrunyon mattrunyon deleted the mattrunyon-3363 branch February 21, 2023 17:25
@github-actions github-actions bot locked and limited conversation to collaborators Feb 21, 2023
@mofojed mofojed changed the title Fix automcomplete suggestions overwriting existing text Fix autocomplete suggestions overwriting existing text Feb 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working NoDocumentationNeeded NoReleaseNotesNeeded No release notes are needed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Autocomplete suggestions overwrite existing text instead of inserting
3 participants