You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/tailwindcss-language-service/src/completionProvider.ts
+31-21Lines changed: 31 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -711,6 +711,10 @@ function provideVariantsDirectiveCompletions(
711
711
returnnull
712
712
}
713
713
714
+
if(semver.gte(state.version,'2.99.0')){
715
+
returnnull
716
+
}
717
+
714
718
lettext=document.getText({
715
719
start: {line: position.line,character: 0},
716
720
end: position,
@@ -862,32 +866,14 @@ function provideCssDirectiveCompletions(
862
866
label: '@tailwind',
863
867
documentation: {
864
868
kind: 'markdown'astypeofMarkupKind.Markdown,
865
-
value: `Use the \`@tailwind\` directive to insert Tailwind’s \`base\`, \`components\`, \`utilities\` and \`screens\` styles into your CSS.\n\n[Tailwind CSS Documentation](${docsUrl(
869
+
value: `Use the \`@tailwind\` directive to insert Tailwind’s \`base\`, \`components\`, \`utilities\` and \`${
}\` styles into your CSS.\n\n[Tailwind CSS Documentation](${docsUrl(
866
872
state.version,
867
873
'functions-and-directives/#tailwind'
868
874
)})`,
869
875
},
870
876
},
871
-
{
872
-
label: '@variants',
873
-
documentation: {
874
-
kind: 'markdown'astypeofMarkupKind.Markdown,
875
-
value: `You can generate \`responsive\`, \`hover\`, \`focus\`, \`active\`, and \`group-hover\` versions of your own utilities by wrapping their definitions in the \`@variants\` directive.\n\n[Tailwind CSS Documentation](${docsUrl(
876
-
state.version,
877
-
'functions-and-directives/#variants'
878
-
)})`,
879
-
},
880
-
},
881
-
{
882
-
label: '@responsive',
883
-
documentation: {
884
-
kind: 'markdown'astypeofMarkupKind.Markdown,
885
-
value: `You can generate responsive variants of your own classes by wrapping their definitions in the \`@responsive\` directive.\n\n[Tailwind CSS Documentation](${docsUrl(
886
-
state.version,
887
-
'functions-and-directives/#responsive'
888
-
)})`,
889
-
},
890
-
},
891
877
{
892
878
label: '@screen',
893
879
documentation: {
@@ -922,6 +908,30 @@ function provideCssDirectiveCompletions(
922
908
},
923
909
]
924
910
: []),
911
+
...(semver.gte(state.version,'2.99.0')
912
+
? []
913
+
: [
914
+
{
915
+
label: '@variants',
916
+
documentation: {
917
+
kind: 'markdown'astypeofMarkupKind.Markdown,
918
+
value: `You can generate \`responsive\`, \`hover\`, \`focus\`, \`active\`, and other variants of your own utilities by wrapping their definitions in the \`@variants\` directive.\n\n[Tailwind CSS Documentation](${docsUrl(
919
+
state.version,
920
+
'functions-and-directives/#variants'
921
+
)})`,
922
+
},
923
+
},
924
+
{
925
+
label: '@responsive',
926
+
documentation: {
927
+
kind: 'markdown'astypeofMarkupKind.Markdown,
928
+
value: `You can generate responsive variants of your own classes by wrapping their definitions in the \`@responsive\` directive.\n\n[Tailwind CSS Documentation](${docsUrl(
0 commit comments