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

textDocument/definition doesn't work if the definition is in another file #3343

Closed
masterSunflowers opened this issue Dec 12, 2024 · 1 comment

Comments

@masterSunflowers
Copy link

I have code simple program to use language server get definition of code element like this: https://gist.github.com/masterSunflowers/c9e463950e8766067cc5b9a0f0105a6b. Here is my input project structure
image
The "Vector" at position 25, 21 is defined in Vector file. But result from language server is just {'jsonrpc': '2.0', 'id': 1, 'result': []}. I have check the folder, where language server save indexed project and it only includes Calculator file. I don't know how to config language server to index full files in the root directory.
image

@masterSunflowers
Copy link
Author

I need to send textDocument/didOpen notify request first before send textDocument/definition request

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