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

@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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy