Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
Fix completion text
Brad Cornes <hello@bradley.dev>
2 years ago
1 changed files, 1 additions(+), 1 deletions(-)
M packages/tailwindcss-language-service/src/completionProvider.ts -> packages/tailwindcss-language-service/src/completionProvider.ts
diff --git a/packages/tailwindcss-language-service/src/completionProvider.ts b/packages/tailwindcss-language-service/src/completionProvider.ts
index 471dcdc825d353fcf4b6f6dbb563a39d6d00018d..74b2c2663dbae1889482ac064253edf1f330bde1 100644
--- a/packages/tailwindcss-language-service/src/completionProvider.ts
+++ b/packages/tailwindcss-language-service/src/completionProvider.ts
@@ -159,7 +159,7 @@               variantItem({
                 label: `${variant.name}${variant.hasDash ? '-' : ''}[]${sep}`,
                 insertTextFormat: 2,
                 textEdit: {
-                  newText: `${variant.name}-[\${1:&}]${sep}\${0}`,
+                  newText: `${variant.name}${variant.hasDash ? '-' : ''}[\${1:&}]${sep}\${0}`,
                 },
                 // command: {
                 //   title: '',