Skip to content

Typescript plugin not showing correct line references with object members #1480

@Jojoshua

Description

@Jojoshua

Describe the bug

Requesting to show a reference of where a method is used (from a typescript file to a svelte file) is not showing the right line number

Reproduction

  1. Clone https://github.com/Jojoshua/sveltejs-vscodeplugin-line-reference-issue
  2. npm i
  3. Show references to method2 inside service.ts
  4. Observe line reference is showing 18:2 (which doesn't even exist)

Expected behaviour

The preview would show the exact line number the reference goes to at line 11

System Info

  • OS: Windows
  • IDE: VScode 1.67.1
  • Svelte plugin: 105.16.0

Which package is the issue about?

Svelte for VS Code

Additional Information, eg. Screenshots

image

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