Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: put emmet in JSX mode to avoid expressions completions #911

Merged
merged 2 commits into from
Jul 25, 2024

Conversation

Princesseuh
Copy link
Member

Changes

By forcing JSX mode on Emmet instead of HTML, we don't get the useless completions inside expressions. I'm not sure 100% what else it changes, as it's not documented, but reading through Emmet's source code I couldn't find anything too bad.

Close #835

Testing

For some reason, I can't seem to be able to get emmet completions in the tests. I remember something similar happening in the previous language-server as well, I'm not too sure why that happens!

Docs

N/A

Copy link

changeset-bot bot commented Jul 18, 2024

🦋 Changeset detected

Latest commit: 1058338

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

Copy link
Member

@delucis delucis left a comment

Choose a reason for hiding this comment

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

jst exceptional ✅

@Princesseuh Princesseuh merged commit 72f61e1 into main Jul 25, 2024
4 checks passed
@Princesseuh Princesseuh deleted the fix/emmet-mode branch July 25, 2024 17:39
Princesseuh added a commit that referenced this pull request Jul 25, 2024
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