multilspy
multilspy copied to clipboard
Cross-file reference not working in typescript
I am running the multilspy typescript client 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.
More information: https://github.com/typescript-language-server/typescript-language-server/issues/271
Would it be possible for you add a failing test PR that reproduces the issue?