language-tools: Unused export property warning is on the wrong line when using the TypeScript pre-processor.
Describe the bug
export let
statements of an unused property cause a warning. The warning is displayed on the line above the actual property for me.
To Reproduce
Set the script language to typescript (lang="ts"
or type="text/typescript"
).
Declare some export property, do not use it anywhere.
Expected behavior
The warning is on the property not being used.
Screenshots
If the property is in the first line of the script:
System (please complete the following information):
- OS: Windows 10, 64bit
- IDE: VSCode
- Plugin/Package: Svelte for VSCode
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 22 (18 by maintainers)
Closing as these are problems related to
svelte-preprocess
. The “source map is not applied when I tell preprocess through its sourceMap-option”-problem is fixed in the latest version. The “extends
-feature oftsconfig.json
not supported” is tracked in https://github.com/sveltejs/svelte-preprocess/issues/300 .Yeah, I have a quick look at the source file of the svelte-preprocess. It looks like it doesn’t parse the
extends
. Thanks for the issue!