Skip to content

Conversation

@jasonlyu123
Copy link
Member

#2876

I also removed the old custom quick fix. There should only be very few people who are still using the typescript version that doesn't support this, and ignore our typescript version requirement in the packages.json.

@changeset-bot
Copy link

changeset-bot bot commented Nov 8, 2025

🦋 Changeset detected

Latest commit: 87daf2f

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

This PR includes changesets to release 1 package
Name Type
svelte-language-server 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

It could still be considered as non-top-level if "under if block" checks failed
Copy link
Member

@dummdidumm dummdidumm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some small nits but otherwise ltgm

Comment on lines 1308 to 1310
return {
range: Range.create(startTagNameEnd, startTagNameEnd),
newText: ' lang="ts"'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean to return here? Else we would add another one when one exist already IIUC

Suggested change
return {
range: Range.create(startTagNameEnd, startTagNameEnd),
newText: ' lang="ts"'
return;

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was originally going to replace the existing lang attribute. Now that I think about it, we might only be able to do it when it's lang="js", but I don't know if there are any people who actually write that. Don't suggest anything might be better.

Copy link
Member

@dummdidumm dummdidumm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@dummdidumm dummdidumm merged commit 6546923 into master Nov 11, 2025
3 checks passed
@dummdidumm dummdidumm deleted the lang-ts-quick-fix branch November 11, 2025 11:10
@github-actions github-actions bot mentioned this pull request Nov 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants