Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Open
@Chhinna

Description

@Chhinna

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions