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
}\` styles into your CSS.\n\n[Tailwind CSS Documentation](${docsUrl(
1408
+
state.version,
1409
+
'functions-and-directives/#tailwind',
1410
+
)})`,
1411
+
},
1412
+
})
1413
+
1414
+
items.push({
1415
+
label: '@screen',
1416
+
documentation: {
1417
+
kind: 'markdown'astypeofMarkupKind.Markdown,
1418
+
value: `The \`@screen\` directive allows you to create media queries that reference your breakpoints by name instead of duplicating their values in your own CSS.\n\n[Tailwind CSS Documentation](${docsUrl(
1419
+
state.version,
1420
+
'functions-and-directives/#screen',
1421
+
)})`,
1422
+
},
1423
+
})
1424
+
1425
+
items.push({
1426
+
label: '@apply',
1427
+
documentation: {
1428
+
kind: 'markdown'astypeofMarkupKind.Markdown,
1429
+
value: `Use \`@apply\` to inline any existing utility classes into your own custom CSS.\n\n[Tailwind CSS Documentation](${docsUrl(
1430
+
state.version,
1431
+
'functions-and-directives/#apply',
1432
+
)})`,
1433
+
},
1434
+
})
1435
+
1436
+
if(semver.gte(state.version,'1.8.0')){
1437
+
items.push({
1438
+
label: '@layer',
1402
1439
documentation: {
1403
1440
kind: 'markdown'astypeofMarkupKind.Markdown,
1404
-
value: `Use the \`@tailwind\` directive to insert Tailwind’s \`base\`, \`components\`, \`utilities\` and \`${
}\` styles into your CSS.\n\n[Tailwind CSS Documentation](${docsUrl(
1441
+
value: `Use the \`@layer\` directive to tell Tailwind which "bucket" a set of custom styles belong to. Valid layers are \`base\`, \`components\`, and \`utilities\`.\n\n[Tailwind CSS Documentation](${docsUrl(
1407
1442
state.version,
1408
-
'functions-and-directives/#tailwind',
1443
+
'functions-and-directives/#layer',
1409
1444
)})`,
1410
1445
},
1411
-
},
1412
-
{
1413
-
label: '@screen',
1446
+
})
1447
+
}
1448
+
1449
+
if(semver.gte(state.version,'2.99.0')){
1450
+
//
1451
+
}else{
1452
+
items.push({
1453
+
label: '@variants',
1414
1454
documentation: {
1415
1455
kind: 'markdown'astypeofMarkupKind.Markdown,
1416
-
value: `The \`@screen\` directive allows you to create media queries that reference your breakpoints by name instead of duplicating their values in your own CSS.\n\n[Tailwind CSS Documentation](${docsUrl(
1456
+
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(
1417
1457
state.version,
1418
-
'functions-and-directives/#screen',
1458
+
'functions-and-directives/#variants',
1419
1459
)})`,
1420
1460
},
1421
-
},
1422
-
{
1423
-
label: '@apply',
1461
+
})
1462
+
items.push({
1463
+
label: '@responsive',
1424
1464
documentation: {
1425
1465
kind: 'markdown'astypeofMarkupKind.Markdown,
1426
-
value: `Use \`@apply\` to inline any existing utility classes into your own custom CSS.\n\n[Tailwind CSS Documentation](${docsUrl(
1466
+
value: `You can generate responsive variants of your own classes by wrapping their definitions in the \`@responsive\` directive.\n\n[Tailwind CSS Documentation](${docsUrl(
1427
1467
state.version,
1428
-
'functions-and-directives/#apply',
1468
+
'functions-and-directives/#responsive',
1429
1469
)})`,
1430
1470
},
1431
-
},
1432
-
...(semver.gte(state.version,'1.8.0')
1433
-
? [
1434
-
{
1435
-
label: '@layer',
1436
-
documentation: {
1437
-
kind: 'markdown'astypeofMarkupKind.Markdown,
1438
-
value: `Use the \`@layer\` directive to tell Tailwind which "bucket" a set of custom styles belong to. Valid layers are \`base\`, \`components\`, and \`utilities\`.\n\n[Tailwind CSS Documentation](${docsUrl(
1439
-
state.version,
1440
-
'functions-and-directives/#layer',
1441
-
)})`,
1442
-
},
1443
-
},
1444
-
]
1445
-
: []),
1446
-
...(semver.gte(state.version,'2.99.0')
1447
-
? []
1448
-
: [
1449
-
{
1450
-
label: '@variants',
1451
-
documentation: {
1452
-
kind: 'markdown'astypeofMarkupKind.Markdown,
1453
-
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(
1454
-
state.version,
1455
-
'functions-and-directives/#variants',
1456
-
)})`,
1457
-
},
1458
-
},
1459
-
{
1460
-
label: '@responsive',
1461
-
documentation: {
1462
-
kind: 'markdown'astypeofMarkupKind.Markdown,
1463
-
value: `You can generate responsive variants of your own classes by wrapping their definitions in the \`@responsive\` directive.\n\n[Tailwind CSS Documentation](${docsUrl(
1464
-
state.version,
1465
-
'functions-and-directives/#responsive',
1466
-
)})`,
1467
-
},
1468
-
},
1469
-
]),
1470
-
...(semver.gte(state.version,'3.2.0')
1471
-
? [
1472
-
{
1473
-
label: '@config',
1474
-
documentation: {
1475
-
kind: 'markdown'astypeofMarkupKind.Markdown,
1476
-
value: `Use the \`@config\` directive to specify which config file Tailwind should use when compiling that CSS file.\n\n[Tailwind CSS Documentation](${docsUrl(
1477
-
state.version,
1478
-
'functions-and-directives/#config',
1479
-
)})`,
1480
-
},
1481
-
},
1482
-
]
1483
-
: []),
1484
-
...(semver.gte(state.version,'4.0.0')
1485
-
? [
1486
-
{
1487
-
label: '@theme',
1488
-
documentation: {
1489
-
kind: 'markdown'astypeofMarkupKind.Markdown,
1490
-
value: `Use the \`@theme\` directive to specify which config file Tailwind should use when compiling that CSS file.\n\n[Tailwind CSS Documentation](${docsUrl(
1491
-
state.version,
1492
-
'functions-and-directives/#config',
1493
-
)})`,
1494
-
},
1495
-
},
1496
-
]
1497
-
: []),
1498
-
]
1471
+
})
1472
+
}
1473
+
1474
+
if(semver.gte(state.version,'3.2.0')){
1475
+
items.push({
1476
+
label: '@config',
1477
+
documentation: {
1478
+
kind: 'markdown'astypeofMarkupKind.Markdown,
1479
+
value: `Use the \`@config\` directive to specify which config file Tailwind should use when compiling that CSS file.\n\n[Tailwind CSS Documentation](${docsUrl(
1480
+
state.version,
1481
+
'functions-and-directives/#config',
1482
+
)})`,
1483
+
},
1484
+
})
1485
+
}
1486
+
1487
+
if(semver.gte(state.version,'4.0.0')){
1488
+
items.push({
1489
+
label: '@theme',
1490
+
documentation: {
1491
+
kind: 'markdown'astypeofMarkupKind.Markdown,
1492
+
value: `Use the \`@theme\` directive to specify which config file Tailwind should use when compiling that CSS file.\n\n[Tailwind CSS Documentation](${docsUrl(
1493
+
state.version,
1494
+
'functions-and-directives/#config',
1495
+
)})`,
1496
+
},
1497
+
})
1498
+
}
1499
1499
1500
1500
returnwithDefaults(
1501
1501
{
@@ -1522,7 +1522,8 @@ function provideCssDirectiveCompletions(
1522
1522
)
1523
1523
}
1524
1524
1525
-
asyncfunctionprovideConfigDirectiveCompletions(
1525
+
// Provide completions for directives that take file paths
1526
+
asyncfunctionprovideFileDirectiveCompletions(
1526
1527
state: State,
1527
1528
document: TextDocument,
1528
1529
position: Position,
@@ -1535,8 +1536,10 @@ async function provideConfigDirectiveCompletions(
0 commit comments