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

lsp: check key exists when compare file versions #2930

Conversation

miyaviee
Copy link
Contributor

Fixes #2929

Copy link
Collaborator

@bhcleek bhcleek left a comment

Choose a reason for hiding this comment

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

Since go#lsp#DidOpen is called in go#lsp#DidChange before the line of your change and since go#lsp#DidOpen sets the key, how could the key not exists? 🤔

(see https://github.com/fatih/vim-go/pull/2930/files#diff-62cbb9bec632d140dc6ebf41176af8eaL623 )

@bhcleek
Copy link
Collaborator

bhcleek commented Jun 19, 2020

I see how it could happen. Thanks @miyaviee !

@bhcleek bhcleek merged commit 5db6da9 into fatih:master Jun 19, 2020
@bhcleek bhcleek added this to the vim-go 1.24 milestone Jun 19, 2020
@miyaviee
Copy link
Contributor Author

thanks!

@miyaviee miyaviee deleted the add-key-exits-check-when-compare-lsp-file-versions branch June 19, 2020 15:35
bhcleek added a commit that referenced this pull request Jun 19, 2020
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.

Latest change 60cd21d8 breaks plugin when lsp not enabled
2 participants