Skip to content

Remove end slash from rootPath / rootUri / workspaceFolders #963

@zulus

Description

@zulus

While fighting with eclipse-wildwebdeveloper/wildwebdeveloper#1520 and analyzing different behaviors in Typescript LS between VScode and Eclipse, I realized that typescript is not able to correctly find projectRootPath.

It's because rootPath/rootUri/workspaceFolders always ends with "/" (at least on mac). So when Typescript LS search for projectRoot by checking (in loop) if documentPath starts with rootPath + DIR_SEPARATOR is not able to find it

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