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

Failure when asked to give definition in file that wasn't explicitly opened #51

Open
PMunch opened this issue May 28, 2020 · 0 comments

Comments

@PMunch
Copy link
Owner

PMunch commented May 28, 2020

In Vim when I run :LspDefinition in my own project it works fine and opens the file where the definition resides. However this file isn't explicitly opened by a textDocument/didOpen event, so trying to follow a definition further into this file will fail as the key is not found in projectFiles. Whether this is a bug in NimLSP or VimLSP is currently unknown (any input on this is much appreciated), but a fallback should probably be added in NimLSP either way to automatically open non-opened files.

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

No branches or pull requests

1 participant