@enjoys/context-engine 1.2.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data/codeActions/css.json +111 -0
- package/data/codeActions/tailwindcss.json +76 -0
- package/data/codeLens/css.json +68 -0
- package/data/codeLens/tailwindcss.json +47 -0
- package/data/color/css.json +124 -0
- package/data/color/tailwindcss.json +53 -0
- package/data/commands/css.json +41 -0
- package/data/commands/manifest.json +729 -727
- package/data/commands/tailwindcss.json +53 -0
- package/data/completion/css.json +383 -0
- package/data/completion/javascript.json +27 -0
- package/data/completion/redis-cli.json +1 -1
- package/data/completion/tailwindcss.json +284 -0
- package/data/completion/typescript.json +27 -0
- package/data/declaration/css.json +59 -0
- package/data/declaration/tailwindcss.json +65 -0
- package/data/definition/css.json +115 -0
- package/data/definition/redis-cli.json +1 -1
- package/data/definition/tailwindcss.json +115 -0
- package/data/documentHighlight/css.json +50 -0
- package/data/documentHighlight/tailwindcss.json +65 -0
- package/data/documentRangeFormatting/css.json +101 -0
- package/data/documentRangeFormatting/tailwindcss.json +55 -0
- package/data/documentSymbol/css.json +96 -0
- package/data/documentSymbol/tailwindcss.json +61 -0
- package/data/foldingRange/css.json +66 -0
- package/data/foldingRange/tailwindcss.json +60 -0
- package/data/formatting/css.json +73 -0
- package/data/formatting/tailwindcss.json +48 -0
- package/data/hover/css.json +68 -0
- package/data/hover/redis-cli.json +1 -1
- package/data/hover/tailwindcss.json +968 -0
- package/data/implementation/css.json +65 -0
- package/data/implementation/tailwindcss.json +59 -0
- package/data/inlayHints/css.json +87 -0
- package/data/inlayHints/tailwindcss.json +111 -0
- package/data/inlineCompletions/css.json +125 -0
- package/data/inlineCompletions/javascript.json +12 -0
- package/data/inlineCompletions/tailwindcss.json +411 -0
- package/data/inlineCompletions/typescript.json +12 -0
- package/data/linkedEditingRange/css.json +40 -0
- package/data/linkedEditingRange/tailwindcss.json +30 -0
- package/data/links/css.json +55 -0
- package/data/links/tailwindcss.json +40 -0
- package/data/manifest.json +62 -0
- package/data/onTypeFormatting/css.json +82 -0
- package/data/onTypeFormatting/tailwindcss.json +63 -0
- package/data/rangeSemanticTokens/css.json +125 -0
- package/data/rangeSemanticTokens/tailwindcss.json +95 -0
- package/data/references/css.json +65 -0
- package/data/references/tailwindcss.json +59 -0
- package/data/rename/css.json +91 -0
- package/data/rename/tailwindcss.json +58 -0
- package/data/selectionRange/css.json +55 -0
- package/data/selectionRange/tailwindcss.json +35 -0
- package/data/semanticTokens/css.json +107 -0
- package/data/semanticTokens/tailwindcss.json +161 -0
- package/data/signatureHelp/css.json +137 -0
- package/data/signatureHelp/tailwindcss.json +64 -0
- package/data/typeDefinition/css.json +53 -0
- package/data/typeDefinition/tailwindcss.json +47 -0
- package/package.json +1 -1
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"language": "css",
|
|
3
|
+
"typeDefinitionPatterns": [
|
|
4
|
+
{
|
|
5
|
+
"pattern": "var\\(\\s*--(([a-zA-Z_][a-zA-Z0-9_-]*))\\s*(?:,\\s*[^)]*)?\\)",
|
|
6
|
+
"captureGroup": 1,
|
|
7
|
+
"targetPattern": "--(\\1)\\s*:",
|
|
8
|
+
"description": "Navigate from var(--name) usage to the custom property definition (--name: value). Resolves through the cascade to find the most specific definition."
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"pattern": "animation(?:-name)?\\s*:\\s*([a-zA-Z_][a-zA-Z0-9_-]*)",
|
|
12
|
+
"captureGroup": 1,
|
|
13
|
+
"targetPattern": "@keyframes\\s+(\\1)\\s*\\{",
|
|
14
|
+
"description": "Navigate from animation-name usage to the @keyframes definition. Locates the keyframe animation sequence that defines the animation."
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"pattern": "font-family\\s*:[^;]*['\"]?([a-zA-Z][a-zA-Z0-9 _-]+)['\"]?",
|
|
18
|
+
"captureGroup": 1,
|
|
19
|
+
"targetPattern": "@font-face\\s*\\{[^}]*font-family\\s*:\\s*['\"]?(\\1)['\"]?",
|
|
20
|
+
"description": "Navigate from font-family usage to the @font-face definition. Resolves custom font declarations including source files."
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"pattern": "grid-area\\s*:\\s*([a-zA-Z_][a-zA-Z0-9_-]*)",
|
|
24
|
+
"captureGroup": 1,
|
|
25
|
+
"targetPattern": "grid-template-areas\\s*:[^;]*\"[^\"]*\\b(\\1)\\b",
|
|
26
|
+
"description": "Navigate from grid-area name to the grid-template-areas definition in the parent grid container."
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"pattern": "list-style-type\\s*:\\s*([a-zA-Z_][a-zA-Z0-9_-]*)",
|
|
30
|
+
"captureGroup": 1,
|
|
31
|
+
"targetPattern": "@counter-style\\s+(\\1)\\s*\\{",
|
|
32
|
+
"description": "Navigate from list-style-type to @counter-style definition. Resolves custom counter style declarations."
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"pattern": "counter(?:s)?\\(\\s*([a-zA-Z_][a-zA-Z0-9_-]*)",
|
|
36
|
+
"captureGroup": 1,
|
|
37
|
+
"targetPattern": "counter-reset\\s*:[^;]*(\\1)",
|
|
38
|
+
"description": "Navigate from counter() or counters() function to the counter-reset that initializes the named counter."
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"pattern": "@import\\s+(?:url\\()?['\"]?([^'\"\\);]+)['\"]?\\)?\\s+layer\\(([a-zA-Z_][a-zA-Z0-9_-]*)\\)",
|
|
42
|
+
"captureGroup": 2,
|
|
43
|
+
"targetPattern": "@layer\\s+(\\2)\\s*[{;]",
|
|
44
|
+
"description": "Navigate from @import layer assignment to the @layer declaration that establishes the cascade layer."
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"pattern": "container-name\\s*:\\s*([a-zA-Z_][a-zA-Z0-9_-]*)",
|
|
48
|
+
"captureGroup": 1,
|
|
49
|
+
"targetPattern": "@container\\s+(\\1)\\s+\\(",
|
|
50
|
+
"description": "Navigate from container-name definition to @container queries referencing this named container."
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"language": "tailwindcss",
|
|
3
|
+
"typeDefinitionPatterns": [
|
|
4
|
+
{
|
|
5
|
+
"pattern": "@apply\\s+([\\w:-]+)",
|
|
6
|
+
"captureGroup": 1,
|
|
7
|
+
"targetPattern": "\\.${1}\\s*\\{([^}]+)\\}",
|
|
8
|
+
"description": "Navigate from @apply utility reference to its generated CSS definition."
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"pattern": "theme\\(['\"]([^'\"]+)['\"]\\)",
|
|
12
|
+
"captureGroup": 1,
|
|
13
|
+
"targetPattern": "${config_path}:\\s*['\"]?([^,'\"\\s]+)",
|
|
14
|
+
"description": "Navigate from theme() function call to the corresponding value in tailwind.config.js."
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"pattern": "screen\\(['\"]([^'\"]+)['\"]\\)",
|
|
18
|
+
"captureGroup": 1,
|
|
19
|
+
"targetPattern": "screens:\\s*\\{[^}]*${1}:\\s*['\"]?([^,'\"]+)",
|
|
20
|
+
"description": "Navigate from screen() function call to the breakpoint definition in config."
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"pattern": "\\b(flex|grid|block|inline|hidden|table)\\b",
|
|
24
|
+
"captureGroup": 1,
|
|
25
|
+
"targetPattern": "display:\\s*${1}",
|
|
26
|
+
"description": "Navigate from display utility class to its CSS display property definition."
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"pattern": "\\b(bg|text|border|ring)-(\\w+)-(\\d+)\\b",
|
|
30
|
+
"captureGroup": 0,
|
|
31
|
+
"targetPattern": "colors:\\s*\\{[^}]*${2}:\\s*\\{[^}]*${3}:",
|
|
32
|
+
"description": "Navigate from color utility to color definition in the theme."
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"pattern": "@config\\s+['\"]([^'\"]+)['\"]",
|
|
36
|
+
"captureGroup": 1,
|
|
37
|
+
"targetPattern": "module\\.exports\\s*=",
|
|
38
|
+
"description": "Navigate from @config directive to the Tailwind configuration file."
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"pattern": "@layer\\s+(base|components|utilities)",
|
|
42
|
+
"captureGroup": 1,
|
|
43
|
+
"targetPattern": "@tailwind\\s+${1}",
|
|
44
|
+
"description": "Navigate from @layer definition to corresponding @tailwind injection point."
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enjoys/context-engine",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Comprehensive CLI command context engine with 135 tools — subcommands, options, examples, and runtime context detectors for intelligent terminal autocomplete",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|