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

I can't use js snippet by SvelteKit Files #2368

Closed
stalkerg opened this issue May 10, 2024 · 3 comments
Closed

I can't use js snippet by SvelteKit Files #2368

stalkerg opened this issue May 10, 2024 · 3 comments

Comments

@stalkerg
Copy link

Describe the bug

It generates only .ts files.

Reproduction

You should try to create file (page.js and etc) by dropdown menu

Expected behaviour

It creates .js file or ask me about file type.

System Info

  • OS: Linux
  • IDE: VSCode

Which package is the issue about?

No response

Additional Information, eg. Screenshots

No response

@stalkerg stalkerg added the bug Something isn't working label May 10, 2024
@jasonlyu123 jasonlyu123 added awaiting submitter and removed bug Something isn't working labels May 10, 2024
@jasonlyu123
Copy link
Member

Currently, the file type is determined by the presence of tsconfig.json. If it is jsconfig.json instead it'll generate a js file. Does your project have both ts and js? Or is there any reason why it's a tsconfig.json instead of jsconfig.json? They mostly differ in some default config differences.

@stalkerg
Copy link
Author

@jasonlyu123 yes, I have tsconfig.json to support JSDoc highlight. But yes, thanks for hint, I will check.

@dummdidumm
Copy link
Member

Closing since it sounds like using a jsconfig.json instead solves this.

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

No branches or pull requests

3 participants