Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Support leading slash imports using "paths" in tsconfig.json #680

Open
@javoire

Description

@javoire

Hello,

It seems this language server does not support the import style of

import Hello from '/folder/hello';

using the tsconfig.json setting:

// ...
    "paths": {
      /* Support absolute /imports/* with a leading '/' */
      "/*": ["*"]
    },
// ...

Test case: https://github.com/javoire/sourcegraph-javascript-typescript-langserver-testcase

VSCode supports it (which I believe uses tsserver, and https://github.com/theia-ide/typescript-language-server supports it.

Here's an example result from me using Neovim and https://github.com/autozimu/LanguageClient-neovim:

Annotation 2020-05-09 230733

Cheers

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