Skip to content

Commit

Permalink
feat: put emmet in JSX mode to avoid expressions completions (#911)
Browse files Browse the repository at this point in the history
* feat: put emmet in JSX mode to avoid expressions completions

* chore: changeset
  • Loading branch information
Princesseuh authored Jul 25, 2024
1 parent 4ca26c0 commit 72f61e1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/ten-adults-sparkle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@astrojs/language-server": patch
"astro-vscode": patch
---

Fixes Emmet completions sometimes showing in places they shouldn't
6 changes: 5 additions & 1 deletion packages/language-server/src/languageServerPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ export function getLanguageServicePlugins(connection: Connection, ts: typeof imp
return [
createHtmlService(),
createCssService(),
createEmmetService(),
createEmmetService({
mappedLanguages: {
html: 'jsx',
},
}),
...createTypeScriptServices(ts),
createTypeScriptTwoSlashService(ts),
createTypescriptAddonsService(),
Expand Down

0 comments on commit 72f61e1

Please sign in to comment.