Skip to content

The completion feature failed to resolve relative path not start with ./ #54

Description

@kunlinglio

While typing a relative path, if it's not begin with ./ (for example, src/document/), the provided completions falls back to a candidate whose
leading / makes it look absolute, and then lists entries of the filesystem root / instead of returning no suggestions.

Although, the highlight feature can resolve this kind of path correctly. (So when finish typing this kind of token, it will be highlighted correctly)

To Reproduce

  1. Open this repo as a workspace.
  2. Type src/document/.

Actual behavior

Suggests home/, usr/, bin/, etc/, Users/ …, which are the contents from `/.

Expected behavior

Suggests files under src/document/, for example, language.rs, mod.rs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions