Skip to content

Invalid TS diagnostic mapping with context="module" #584

Closed
@GrzegorzKazana

Description

@GrzegorzKazana

Hi all 👋

Describe the bug
When using typescript in components with context="module" diagnostics are hinted on wrong line/character.

To Reproduce
Create a component using TS and module="context" that contains type error. For example

<script context="module" lang="typescript">
    const asd: string = true;
</script>

Expected behavior
Typescript errors should be placed under correct lines/characters for context="module" components.

Screenshots
Actual behavior:
image

System (please complete the following information):

  • OS: MacOS
  • IDE: VSCode
  • Package: svelte-language-server@0.10.131
  • Plugin version: v102.1.0

Additional context
Working on a solution, might open a PR soon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixedFixed in master branch. Pending production release.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions