Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for jsconfig.json #202

Open
marcoskichel opened this issue Sep 18, 2024 · 2 comments
Open

add support for jsconfig.json #202

marcoskichel opened this issue Sep 18, 2024 · 2 comments

Comments

@marcoskichel
Copy link

marcoskichel commented Sep 18, 2024

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

@yioneko
Copy link
Owner

yioneko commented Sep 19, 2024

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.

@marcoskichel
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants