Skip to content

Changes to TypeScript definition files in linked modules not detected by Language Server #1037

@jstarmx

Description

@jstarmx

Describe the bug
Svelte Language Server does not pick up changes to TypeScript definition files in linked modules without being restarted.

To Reproduce

  1. Clone this repo: https://github.com/jstarmx/svelte-typescript-test
  2. Follow setup instructions
  3. Open /app/src/App.svelte
  4. Open /package/src/Alert.d.ts
  5. Change the type of text on line 4 from string to something else, e.g. number
  6. Observe that the problems panel in VS Code does not show any errors
  7. Restart Svelte Language Server
  8. Observe that the problems panel now shows an error in App.svelte

Expected behavior
Problems panel to display the error without needing to restart Svelte Language Server

System (please complete the following information):

  • OS: macOS Big Sur 11.3.1
  • IDE: VSCode
  • Plugin/Package: Svelte for VSCode

Additional context
Happy to try to contribute a fix if you think it's do-able/worthwhile/actually an issue...

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