Skip to content

Errors from other files get reported in .svelte files #976

@blaumeise20

Description

@blaumeise20

Describe the bug
I'm using Svelte with TypeScript and SCSS, and I get this weird thing where I write a syntax error in a SCSS file which I import with @use into my Svelte file, and the error gets reported in the Svelte file too:
Bildschirmfoto 2021-04-29 um 16 37 12
Bildschirmfoto 2021-04-29 um 16 37 21

To Reproduce
Steps to reproduce the behavior:

  • Create a new Svelte file in VSCode that is in a workspace with preprocessing SCSS.
  • Add includePaths to the preprocessor config for SCSS
  • Add a style to the Svelte file with @use and specify the name like in the picture above.
  • Write some syntax errors into the SCSS file.

Expected behavior
Don't report errors in files they are not in.

Screenshots
Added above.

System (please complete the following information):

  • OS: Mac OS 10.15.7
  • IDE: VSCode
  • Plugin/Package: "Svelte for VSCode"

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixedFixed in master branch. Pending production release.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions