Skip to content

Project root detected incorrectly when opening tsx file but not when opening ts file #770

@insidewhy

Description

@insidewhy

Describe the bug

I open a .ts file in my project: nvim src/blah.ts.

[LC] Project root: /home/me/project/client

That's great, project/client is where my tsconfig.json lives and everything is fine. Next I open a tsx file using :tabe src/App.stx and see:

[LC] Project root: /home/me/project.

This is wrong, my project root with my tsconfig.json in is project/client, not project. Sure project is where my .git file is but it's a monorepo with many projects. Given the detected project root does not contain a tsconfig.json everything goes wrong.

Environment

  • neovim/vim version (nvim --version or vim --version): v0.3.4
  • This plugin version (git rev-parse --short HEAD): 26c8727
  • This plugin's binary version (bin/languageclient --version): languageclient 0.1.142

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions