yioneko/vtsls

add support for jsconfig.json

Opened this issue · 2 comments

Description

I might be missing some setting, but it looks like there is no way to setup the server in order to pickup configurations defined in a jsconfig.json file while in a javascript project. This is useful especially for handling imports done through paths defined there. E.g.:

{
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
        "#/*": ["src/_local_modules/*"],
    },
    "experimentalDecorators": true
  }
}
import { Something } from '#/something'

JSConfig reference: https://code.visualstudio.com/docs/languages/jsconfig

I could not reproduce on my machine:

image

I'm not sure what is going on your js project but a minimal reproduction like this would be really helpful. Also I'd suggest checking in vscode to see if the behavior is the same there.

Thanks @yioneko, will come up with a minimal repro soon