Skip to content

Cross-file referencing not working when using multilspy client #945

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

Open
Chhinna opened this issue Mar 6, 2025 · 0 comments
Open

Cross-file referencing not working when using multilspy client #945

Chhinna opened this issue Mar 6, 2025 · 0 comments

Comments

@Chhinna
Copy link

Chhinna commented Mar 6, 2025

I am using multilspy client for typescript language server. Multilspy

I am testing on this repo: https://github.com/rchl/test-tsx.

from multilspy import SyncLanguageServer
from multilspy.multilspy_config import MultilspyConfig
from multilspy.multilspy_logger import MultilspyLogger
config = MultilspyConfig.from_dict({"code_language": "typescript"}) # Also supports "python", "rust", "csharp", "typescript", "javascript", "go", "dart", "ruby"
logger = MultilspyLogger()
lsp = SyncLanguageServer.create(config, logger, "/workspaces/test-tsx/")
with lsp.start_server():
    result = lsp.request_references(
        "feature.tsx", # Filename of location where request is being made
        9, # line number of symbol for which request is being made
        18 # column number of symbol for which request is being made
    )
    print(result)

It is able to detect the references from the same file, but it is not able to detect the reference of Feature Component in app.tsx. Am i missing something here.

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