Skip to content

Do not create documents from a textDocument/rename #818

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

Merged
merged 3 commits into from
Jun 18, 2020

Conversation

rwols
Copy link
Contributor

@rwols rwols commented Jun 12, 2020

During a textDocument/rename, it is possible that Jedi proposes changes in files
that have not yet been opened with textDocument/didOpen. In that case, we must
put "version": None as the document version.

Note that rope does not have this behavior.

closes #816

During a textDocument/rename, it is possible that Jedi proposes changes in files
that have not yet been opened with textDocument/didOpen. In that case, we must
put "version": None as the document version.

Note that rope does not have this behavior.
@palantirtech
Copy link
Member

Thanks for your interest in palantir/python-language-server, @rwols! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request.

Copy link
Contributor

@ccordoba12 ccordoba12 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 to me, thanks @rwols!

@ccordoba12 ccordoba12 added this to the 0.33.2 milestone Jun 18, 2020
@ccordoba12 ccordoba12 merged commit 10cd98c into palantir:develop Jun 18, 2020
@rwols rwols deleted the unopened-documents-rename branch June 19, 2020 20:43
@rwols
Copy link
Contributor Author

rwols commented Jun 19, 2020

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.

The returned VersionedTextDocumentIdentifiers from textDocument/rename have a too high document version
3 participants