withastro / language-tools

Language tools for Astro
MIT License
240 stars 45 forks source link

fix: Fixes text edits inside script tags not being mapped correctly #842

Closed Princesseuh closed 3 months ago

Princesseuh commented 3 months ago

Changes

In some cases, we were wrongly trying to map text edits inside script tags as if they were in the template, this PR fixes this. This mostly affects completions.

Fixes https://github.com/withastro/language-tools/issues/805

Testing

Added a test!

Docs

N/A

changeset-bot[bot] commented 3 months ago

🦋 Changeset detected

Latest commit: a37627bad7eedc3dbb80b33a79a278d1b49d6964

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages | Name | Type | | ------------------------ | ----- | | @astrojs/language-server | Patch | | astro-vscode | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR