Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Allow lsp functionality for out-of-project files clicked through to #244

Open
@alexheretic

Description

@alexheretic

Lots of languages store dependency sources outside of project directories. E.g. Rust/cargo stores them at something like `~/.cargo/registry/repo123/some-crate-1.0.0/src/.

As far as RLS is concerned it's able to provide hover, definition, documentHighlight etc functionality for these dependencies sources. However, atom-languageclient currently can't tell these have a relation to the project so don't send the server any requests.

To me it seems feasible that we record the uris returned by textDocument/definition responses, associated with the server that sent them. If these files are open, and not in any other project we consider them eligible as project files in this language server.

What do you guys think?

Downstream: rust-lang/atom-ide-rust#96

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