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

Highlighting wrong line for unused props, when using TS #375

Closed
AhmadMayo opened this issue Jul 28, 2020 · 1 comment
Closed

Highlighting wrong line for unused props, when using TS #375

AhmadMayo opened this issue Jul 28, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@AhmadMayo
Copy link

When using lang="ts" on a script tag, an unused prop warning is displayed, but on the line above the on containing said variable, if there's more than one prop. (see images below. the unused variable is "otherVar")

Running svelte-check also reports the wron line

To Reproduce
1- Create a new project and run setupTypescript
2- inside App.svelte, add a new prop

Expected behavior
The yellow line highlighting the position of the unused prop will be correctly placed under the unused one

Screenshots
Using TS:
Screenshot from 2020-07-28 02-24-12

Not using TS:
Screenshot from 2020-07-28 02-24-42

System (please complete the following information):

  • OS: Ubuntu 20.04
  • IDE: VSCode
  • Plugin/Package: Svelte for VSCode and svelte-check
@AhmadMayo AhmadMayo added the bug Something isn't working label Jul 28, 2020
@jasonlyu123
Copy link
Member

Duplicate of #333

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants