Skip to content

Fix crash where edits up to the end of the file do not work #763

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

Closed
wants to merge 2 commits into from

Conversation

rjmholt
Copy link
Contributor

@rjmholt rjmholt commented Oct 9, 2018

Fixes PowerShell/vscode-powershell#1561.

We now handle edit messages that go up to the end of the file properly.

Previously we would get a message with a non-empty insertion that went up to 1 past the current line in the VSCode buffer. We handled the empty case as a simple deletion, but we now handle the edit case too.

I split out the function handling this so it uses return rather than complicated nesting ifs -- then the caller handles the ParseFileContents method after.

@rjmholt
Copy link
Contributor Author

rjmholt commented Oct 9, 2018

The Travis failure is because our ancient Travis powershell version is now broken on Trusty Tahr. Fixed in #764.

@TylerLeonhardt
Copy link
Member

Does #784 fix this instead?

@rjmholt rjmholt closed this Nov 21, 2018
@rjmholt rjmholt deleted the fix-end-of-file-edit branch December 12, 2018 05:59
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.

2 participants