@enjoys/context-engine 1.2.0 → 1.4.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/angular.json +126 -0
- package/data/codeActions/css.json +111 -0
- package/data/codeActions/nestjs.json +124 -0
- package/data/codeActions/nextjs.json +198 -0
- package/data/codeActions/react.json +154 -0
- package/data/codeActions/shadcn.json +112 -0
- package/data/codeActions/shell.json +169 -26
- package/data/codeActions/tailwindcss.json +76 -0
- package/data/codeLens/angular.json +22 -0
- package/data/codeLens/css.json +68 -0
- package/data/codeLens/nestjs.json +21 -0
- package/data/codeLens/nextjs.json +117 -0
- package/data/codeLens/react.json +89 -0
- package/data/codeLens/shadcn.json +89 -0
- package/data/codeLens/shell.json +59 -17
- package/data/codeLens/tailwindcss.json +103 -0
- package/data/color/angular.json +21 -0
- package/data/color/css.json +124 -0
- package/data/color/nestjs.json +18 -0
- package/data/color/nextjs.json +22 -0
- package/data/color/react.json +93 -0
- package/data/color/shadcn.json +66 -0
- package/data/color/shell.json +106 -80
- package/data/color/tailwindcss.json +53 -0
- package/data/commands/angular.json +312 -0
- package/data/commands/css.json +41 -0
- package/data/commands/manifest.json +734 -727
- package/data/commands/nestjs.json +273 -0
- package/data/commands/nextjs.json +123 -0
- package/data/commands/react.json +210 -0
- package/data/commands/shadcn.json +410 -0
- package/data/commands/shell.json +571 -41
- package/data/commands/tailwindcss.json +53 -0
- package/data/completion/angular.json +1490 -0
- package/data/completion/css.json +1176 -0
- package/data/completion/javascript.json +27 -0
- package/data/completion/nestjs.json +1454 -0
- package/data/completion/nextjs.json +1373 -0
- package/data/completion/react.json +1319 -0
- package/data/completion/redis-cli.json +1 -1
- package/data/completion/shadcn.json +1202 -0
- package/data/completion/shell.json +2446 -510
- package/data/completion/tailwindcss.json +284 -0
- package/data/completion/typescript.json +27 -0
- package/data/declaration/angular.json +46 -0
- package/data/declaration/css.json +59 -0
- package/data/declaration/nestjs.json +47 -0
- package/data/declaration/nextjs.json +274 -0
- package/data/declaration/react.json +199 -0
- package/data/declaration/shadcn.json +211 -0
- package/data/declaration/shell.json +343 -24
- package/data/declaration/tailwindcss.json +137 -0
- package/data/definition/angular.json +670 -0
- package/data/definition/css.json +115 -0
- package/data/definition/nestjs.json +684 -0
- package/data/definition/nextjs.json +439 -0
- package/data/definition/react.json +397 -0
- package/data/definition/redis-cli.json +1 -1
- package/data/definition/shadcn.json +99 -0
- package/data/definition/shell.json +820 -0
- package/data/definition/tailwindcss.json +115 -0
- package/data/documentHighlight/angular.json +414 -0
- package/data/documentHighlight/css.json +125 -0
- package/data/documentHighlight/nestjs.json +115 -0
- package/data/documentHighlight/nextjs.json +212 -0
- package/data/documentHighlight/react.json +119 -0
- package/data/documentHighlight/shadcn.json +168 -0
- package/data/documentHighlight/shell.json +664 -334
- package/data/documentHighlight/tailwindcss.json +160 -0
- package/data/documentRangeFormatting/angular.json +45 -0
- package/data/documentRangeFormatting/css.json +101 -0
- package/data/documentRangeFormatting/nestjs.json +17 -0
- package/data/documentRangeFormatting/nextjs.json +17 -0
- package/data/documentRangeFormatting/react.json +78 -0
- package/data/documentRangeFormatting/shadcn.json +45 -0
- package/data/documentRangeFormatting/shell.json +120 -53
- package/data/documentRangeFormatting/tailwindcss.json +55 -0
- package/data/documentSymbol/angular.json +180 -0
- package/data/documentSymbol/css.json +96 -0
- package/data/documentSymbol/nestjs.json +152 -0
- package/data/documentSymbol/nextjs.json +159 -0
- package/data/documentSymbol/react.json +145 -0
- package/data/documentSymbol/shadcn.json +131 -0
- package/data/documentSymbol/shell.json +166 -26
- package/data/documentSymbol/tailwindcss.json +110 -0
- package/data/foldingRange/angular.json +99 -0
- package/data/foldingRange/css.json +66 -0
- package/data/foldingRange/nestjs.json +26 -0
- package/data/foldingRange/nextjs.json +26 -0
- package/data/foldingRange/react.json +120 -0
- package/data/foldingRange/shadcn.json +93 -0
- package/data/foldingRange/shell.json +106 -46
- package/data/foldingRange/tailwindcss.json +60 -0
- package/data/formatting/angular.json +21 -0
- package/data/formatting/css.json +73 -0
- package/data/formatting/nestjs.json +23 -0
- package/data/formatting/nextjs.json +23 -0
- package/data/formatting/react.json +71 -0
- package/data/formatting/shadcn.json +61 -0
- package/data/formatting/shell.json +103 -19
- package/data/formatting/tailwindcss.json +48 -0
- package/data/hover/angular.json +455 -0
- package/data/hover/css.json +300 -0
- package/data/hover/nestjs.json +296 -0
- package/data/hover/nextjs.json +305 -0
- package/data/hover/react.json +173 -0
- package/data/hover/redis-cli.json +1 -1
- package/data/hover/shadcn.json +450 -0
- package/data/hover/shell.json +684 -75
- package/data/hover/tailwindcss.json +968 -0
- package/data/implementation/angular.json +22 -0
- package/data/implementation/css.json +65 -0
- package/data/implementation/nestjs.json +24 -0
- package/data/implementation/nextjs.json +137 -0
- package/data/implementation/react.json +125 -0
- package/data/implementation/shadcn.json +89 -0
- package/data/implementation/shell.json +59 -3
- package/data/implementation/tailwindcss.json +59 -0
- package/data/inlayHints/angular.json +24 -0
- package/data/inlayHints/css.json +87 -0
- package/data/inlayHints/nestjs.json +24 -0
- package/data/inlayHints/nextjs.json +143 -0
- package/data/inlayHints/react.json +177 -0
- package/data/inlayHints/shadcn.json +109 -0
- package/data/inlayHints/shell.json +223 -35
- package/data/inlayHints/tailwindcss.json +111 -0
- package/data/inlineCompletions/angular.json +135 -0
- package/data/inlineCompletions/css.json +125 -0
- package/data/inlineCompletions/javascript.json +12 -0
- package/data/inlineCompletions/nestjs.json +25 -0
- package/data/inlineCompletions/nextjs.json +179 -0
- package/data/inlineCompletions/react.json +203 -0
- package/data/inlineCompletions/shadcn.json +115 -0
- package/data/inlineCompletions/shell.json +185 -35
- package/data/inlineCompletions/tailwindcss.json +411 -0
- package/data/inlineCompletions/typescript.json +12 -0
- package/data/linkedEditingRange/angular.json +23 -0
- package/data/linkedEditingRange/css.json +40 -0
- package/data/linkedEditingRange/nestjs.json +10 -0
- package/data/linkedEditingRange/nextjs.json +11 -0
- package/data/linkedEditingRange/react.json +75 -0
- package/data/linkedEditingRange/shadcn.json +23 -0
- package/data/linkedEditingRange/shell.json +25 -25
- package/data/linkedEditingRange/tailwindcss.json +30 -0
- package/data/links/angular.json +95 -0
- package/data/links/css.json +55 -0
- package/data/links/nestjs.json +130 -0
- package/data/links/nextjs.json +91 -0
- package/data/links/react.json +75 -0
- package/data/links/shadcn.json +98 -0
- package/data/links/shell.json +56 -0
- package/data/links/tailwindcss.json +65 -0
- package/data/manifest.json +399 -150
- package/data/onTypeFormatting/angular.json +14 -0
- package/data/onTypeFormatting/css.json +82 -0
- package/data/onTypeFormatting/nestjs.json +16 -0
- package/data/onTypeFormatting/nextjs.json +17 -0
- package/data/onTypeFormatting/react.json +127 -0
- package/data/onTypeFormatting/shadcn.json +54 -0
- package/data/onTypeFormatting/shell.json +72 -68
- package/data/onTypeFormatting/tailwindcss.json +63 -0
- package/data/rangeSemanticTokens/angular.json +140 -0
- package/data/rangeSemanticTokens/css.json +125 -0
- package/data/rangeSemanticTokens/nestjs.json +27 -0
- package/data/rangeSemanticTokens/nextjs.json +28 -0
- package/data/rangeSemanticTokens/react.json +216 -0
- package/data/rangeSemanticTokens/shadcn.json +140 -0
- package/data/rangeSemanticTokens/shell.json +247 -69
- package/data/rangeSemanticTokens/tailwindcss.json +186 -0
- package/data/references/angular.json +26 -0
- package/data/references/css.json +65 -0
- package/data/references/nestjs.json +24 -0
- package/data/references/nextjs.json +178 -0
- package/data/references/react.json +192 -0
- package/data/references/shadcn.json +101 -0
- package/data/references/shell.json +323 -92
- package/data/references/tailwindcss.json +125 -0
- package/data/rename/angular.json +131 -0
- package/data/rename/css.json +91 -0
- package/data/rename/nestjs.json +32 -0
- package/data/rename/nextjs.json +31 -0
- package/data/rename/react.json +88 -0
- package/data/rename/shadcn.json +79 -0
- package/data/rename/shell.json +101 -31
- package/data/rename/tailwindcss.json +58 -0
- package/data/selectionRange/angular.json +95 -0
- package/data/selectionRange/css.json +55 -0
- package/data/selectionRange/nestjs.json +21 -0
- package/data/selectionRange/nextjs.json +22 -0
- package/data/selectionRange/react.json +87 -0
- package/data/selectionRange/shadcn.json +89 -0
- package/data/selectionRange/shell.json +65 -35
- package/data/selectionRange/tailwindcss.json +35 -0
- package/data/semanticTokens/angular.json +198 -0
- package/data/semanticTokens/css.json +107 -0
- package/data/semanticTokens/nestjs.json +35 -0
- package/data/semanticTokens/nextjs.json +38 -0
- package/data/semanticTokens/react.json +215 -0
- package/data/semanticTokens/shadcn.json +180 -0
- package/data/semanticTokens/shell.json +238 -65
- package/data/semanticTokens/tailwindcss.json +161 -0
- package/data/signatureHelp/angular.json +182 -0
- package/data/signatureHelp/css.json +137 -0
- package/data/signatureHelp/nestjs.json +128 -0
- package/data/signatureHelp/nextjs.json +127 -0
- package/data/signatureHelp/react.json +281 -0
- package/data/signatureHelp/shadcn.json +237 -0
- package/data/signatureHelp/shell.json +797 -104
- package/data/signatureHelp/tailwindcss.json +64 -0
- package/data/typeDefinition/angular.json +362 -0
- package/data/typeDefinition/css.json +53 -0
- package/data/typeDefinition/nestjs.json +334 -0
- package/data/typeDefinition/nextjs.json +285 -0
- package/data/typeDefinition/react.json +236 -0
- package/data/typeDefinition/shadcn.json +292 -0
- package/data/typeDefinition/shell.json +104 -40
- package/data/typeDefinition/tailwindcss.json +47 -0
- package/package.json +1 -1
- package/data/codeActions/bash.json +0 -169
- package/data/codeActions/zsh.json +0 -49
- package/data/codeLens/bash.json +0 -75
- package/data/codeLens/zsh.json +0 -19
- package/data/color/bash.json +0 -100
- package/data/color/zsh.json +0 -80
- package/data/commands/bash.json +0 -102
- package/data/commands/zsh.json +0 -166
- package/data/completion/bash.json +0 -1184
- package/data/completion/zsh.json +0 -973
- package/data/declaration/bash.json +0 -301
- package/data/declaration/zsh.json +0 -205
- package/data/definition/bash.json +0 -565
- package/data/definition/zsh.json +0 -350
- package/data/documentHighlight/bash.json +0 -393
- package/data/documentHighlight/zsh.json +0 -266
- package/data/documentRangeFormatting/bash.json +0 -41
- package/data/documentRangeFormatting/zsh.json +0 -59
- package/data/documentSymbol/bash.json +0 -124
- package/data/documentSymbol/zsh.json +0 -26
- package/data/foldingRange/bash.json +0 -76
- package/data/foldingRange/zsh.json +0 -46
- package/data/formatting/bash.json +0 -88
- package/data/formatting/zsh.json +0 -28
- package/data/hover/bash.json +0 -579
- package/data/hover/zsh.json +0 -96
- package/data/implementation/bash.json +0 -44
- package/data/implementation/zsh.json +0 -41
- package/data/inlayHints/bash.json +0 -207
- package/data/inlayHints/zsh.json +0 -43
- package/data/inlineCompletions/bash.json +0 -155
- package/data/inlineCompletions/zsh.json +0 -17
- package/data/linkedEditingRange/bash.json +0 -25
- package/data/linkedEditingRange/zsh.json +0 -25
- package/data/links/bash.json +0 -56
- package/data/links/zsh.json +0 -15
- package/data/onTypeFormatting/bash.json +0 -68
- package/data/onTypeFormatting/zsh.json +0 -68
- package/data/rangeSemanticTokens/bash.json +0 -90
- package/data/rangeSemanticTokens/zsh.json +0 -76
- package/data/references/bash.json +0 -221
- package/data/references/zsh.json +0 -166
- package/data/rename/bash.json +0 -37
- package/data/rename/zsh.json +0 -31
- package/data/selectionRange/bash.json +0 -35
- package/data/selectionRange/zsh.json +0 -35
- package/data/semanticTokens/bash.json +0 -71
- package/data/semanticTokens/zsh.json +0 -71
- package/data/signatureHelp/bash.json +0 -111
- package/data/signatureHelp/zsh.json +0 -118
- package/data/typeDefinition/bash.json +0 -95
- package/data/typeDefinition/zsh.json +0 -40
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
{
|
|
2
|
+
"language": "css",
|
|
3
|
+
"renamePatterns": [
|
|
4
|
+
{
|
|
5
|
+
"pattern": "--(([a-zA-Z_][a-zA-Z0-9_-]*))\\s*:",
|
|
6
|
+
"captureGroup": 1,
|
|
7
|
+
"kind": "variable",
|
|
8
|
+
"description": "Rename CSS custom property definition. Updates the --name declaration and all var(--name) references across stylesheets."
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"pattern": "var\\(\\s*--(([a-zA-Z_][a-zA-Z0-9_-]*))\\s*(?:,\\s*[^)]*)?\\)",
|
|
12
|
+
"captureGroup": 1,
|
|
13
|
+
"kind": "variable-reference",
|
|
14
|
+
"description": "Rename CSS custom property from a var() reference. Propagates the rename to the definition and all other references."
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"pattern": "\\.([a-zA-Z_][a-zA-Z0-9_-]*)\\s*(?=[{,>+~:\\[\\s])",
|
|
18
|
+
"captureGroup": 1,
|
|
19
|
+
"kind": "class",
|
|
20
|
+
"description": "Rename CSS class selector. Updates the class name in CSS rules and optionally in HTML class attributes."
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"pattern": "#([a-zA-Z_][a-zA-Z0-9_-]*)\\s*(?=[{,>+~:\\[\\s])",
|
|
24
|
+
"captureGroup": 1,
|
|
25
|
+
"kind": "id",
|
|
26
|
+
"description": "Rename CSS ID selector. Updates the ID name in CSS rules and optionally in HTML id attributes."
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"pattern": "@keyframes\\s+([a-zA-Z_][a-zA-Z0-9_-]*)\\s*\\{",
|
|
30
|
+
"captureGroup": 1,
|
|
31
|
+
"kind": "animation",
|
|
32
|
+
"description": "Rename @keyframes animation. Updates the keyframes name and all animation-name property references."
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"pattern": "animation(?:-name)?\\s*:\\s*([a-zA-Z_][a-zA-Z0-9_-]*)",
|
|
36
|
+
"captureGroup": 1,
|
|
37
|
+
"kind": "animation-reference",
|
|
38
|
+
"description": "Rename animation name from a usage site. Propagates to the @keyframes definition and all other references."
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"pattern": "@layer\\s+([a-zA-Z_][a-zA-Z0-9_-]*)\\s*[{;]",
|
|
42
|
+
"captureGroup": 1,
|
|
43
|
+
"kind": "layer",
|
|
44
|
+
"description": "Rename cascade layer. Updates the @layer declaration and all layer references including @import layer() assignments."
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"pattern": "@font-face\\s*\\{[^}]*font-family\\s*:\\s*['\"]?([^'\";}]+)",
|
|
48
|
+
"captureGroup": 1,
|
|
49
|
+
"kind": "font",
|
|
50
|
+
"description": "Rename @font-face font-family. Updates the font-face declaration and all font-family property references."
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"pattern": "@counter-style\\s+([a-zA-Z_][a-zA-Z0-9_-]*)\\s*\\{",
|
|
54
|
+
"captureGroup": 1,
|
|
55
|
+
"kind": "counter-style",
|
|
56
|
+
"description": "Rename @counter-style. Updates the counter style definition and all list-style-type references."
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"prepareRenamePatterns": [
|
|
60
|
+
{
|
|
61
|
+
"pattern": "--(([a-zA-Z_][a-zA-Z0-9_-]*))",
|
|
62
|
+
"captureGroup": 1,
|
|
63
|
+
"description": "Identifies a CSS custom property name (without the -- prefix) as a valid rename target."
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"pattern": "\\.([a-zA-Z_][a-zA-Z0-9_-]*)",
|
|
67
|
+
"captureGroup": 1,
|
|
68
|
+
"description": "Identifies a CSS class name (without the . prefix) as a valid rename target."
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"pattern": "#([a-zA-Z_][a-zA-Z0-9_-]*)",
|
|
72
|
+
"captureGroup": 1,
|
|
73
|
+
"description": "Identifies a CSS ID name (without the # prefix) as a valid rename target."
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"pattern": "@keyframes\\s+([a-zA-Z_][a-zA-Z0-9_-]*)",
|
|
77
|
+
"captureGroup": 1,
|
|
78
|
+
"description": "Identifies a @keyframes animation name as a valid rename target."
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"pattern": "@layer\\s+([a-zA-Z_][a-zA-Z0-9_-]*)",
|
|
82
|
+
"captureGroup": 1,
|
|
83
|
+
"description": "Identifies a cascade layer name as a valid rename target."
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"pattern": "@counter-style\\s+([a-zA-Z_][a-zA-Z0-9_-]*)",
|
|
87
|
+
"captureGroup": 1,
|
|
88
|
+
"description": "Identifies a @counter-style name as a valid rename target."
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"language": "nestjs",
|
|
3
|
+
"rename": {
|
|
4
|
+
"wordPattern": "[a-zA-Z_$][a-zA-Z0-9_$]*",
|
|
5
|
+
"prepareProvider": true,
|
|
6
|
+
"validation": {
|
|
7
|
+
"identifierPattern": "^[a-zA-Z_$][a-zA-Z0-9_$]*$",
|
|
8
|
+
"minLength": 1,
|
|
9
|
+
"maxLength": 256,
|
|
10
|
+
"reservedWords": [
|
|
11
|
+
"break", "case", "catch", "continue", "debugger", "default", "delete", "do",
|
|
12
|
+
"else", "finally", "for", "function", "if", "in", "instanceof", "new",
|
|
13
|
+
"return", "switch", "this", "throw", "try", "typeof", "var", "void",
|
|
14
|
+
"while", "with", "class", "const", "enum", "export", "extends", "import",
|
|
15
|
+
"super", "implements", "interface", "let", "package", "private", "protected",
|
|
16
|
+
"public", "static", "yield", "await", "async", "of", "null", "undefined",
|
|
17
|
+
"true", "false", "NaN", "Infinity"
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"renamePatterns": [
|
|
21
|
+
{ "name": "Class name", "pattern": "class\\s+(\\w+)", "captureGroup": 1, "description": "Rename class declaration" },
|
|
22
|
+
{ "name": "Method name", "pattern": "(?:async\\s+)?(\\w+)\\s*\\([^)]*\\)\\s*(?::\\s*\\w+)?\\s*\\{", "captureGroup": 1, "description": "Rename method" },
|
|
23
|
+
{ "name": "Interface", "pattern": "interface\\s+(\\w+)", "captureGroup": 1, "description": "Rename interface" },
|
|
24
|
+
{ "name": "Type alias", "pattern": "type\\s+(\\w+)\\s*=", "captureGroup": 1, "description": "Rename type alias" },
|
|
25
|
+
{ "name": "Enum name", "pattern": "enum\\s+(\\w+)", "captureGroup": 1, "description": "Rename enum" },
|
|
26
|
+
{ "name": "Parameter", "pattern": "(?:@\\w+\\([^)]*\\)\\s*)?(\\w+)\\s*:\\s*\\w+", "captureGroup": 1, "description": "Rename parameter" },
|
|
27
|
+
{ "name": "Variable", "pattern": "(?:const|let|var)\\s+(\\w+)", "captureGroup": 1, "description": "Rename variable" },
|
|
28
|
+
{ "name": "Property", "pattern": "(?:private|protected|public|readonly)\\s+(?:readonly\\s+)?(\\w+)", "captureGroup": 1, "description": "Rename property" },
|
|
29
|
+
{ "name": "Import alias", "pattern": "import\\s+(?:\\{[^}]*\\}|\\w+)\\s+from", "captureGroup": 0, "description": "Rename imported symbol" }
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"language": "nextjs",
|
|
3
|
+
"rename": {
|
|
4
|
+
"wordPattern": "[a-zA-Z_$][a-zA-Z0-9_$]*",
|
|
5
|
+
"prepareProvider": true,
|
|
6
|
+
"validation": {
|
|
7
|
+
"identifierPattern": "^[a-zA-Z_$][a-zA-Z0-9_$]*$",
|
|
8
|
+
"minLength": 1,
|
|
9
|
+
"maxLength": 256,
|
|
10
|
+
"reservedWords": [
|
|
11
|
+
"break", "case", "catch", "continue", "debugger", "default", "delete", "do",
|
|
12
|
+
"else", "finally", "for", "function", "if", "in", "instanceof", "new",
|
|
13
|
+
"return", "switch", "this", "throw", "try", "typeof", "var", "void",
|
|
14
|
+
"while", "with", "class", "const", "enum", "export", "extends", "import",
|
|
15
|
+
"super", "implements", "interface", "let", "package", "private", "protected",
|
|
16
|
+
"public", "static", "yield", "await", "async", "of", "null", "undefined",
|
|
17
|
+
"true", "false", "NaN", "Infinity"
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"renamePatterns": [
|
|
21
|
+
{ "name": "Component name", "pattern": "(?:export\\s+default\\s+)?function\\s+(\\w+)", "captureGroup": 1, "description": "Rename component/function declaration" },
|
|
22
|
+
{ "name": "Arrow component", "pattern": "(?:export\\s+)?const\\s+(\\w+)\\s*[:=]", "captureGroup": 1, "description": "Rename const/arrow function" },
|
|
23
|
+
{ "name": "Hook name", "pattern": "(?:function|const)\\s+(use[A-Z]\\w*)", "captureGroup": 1, "description": "Rename custom hook" },
|
|
24
|
+
{ "name": "Type/Interface", "pattern": "(?:type|interface)\\s+(\\w+)", "captureGroup": 1, "description": "Rename type or interface" },
|
|
25
|
+
{ "name": "Parameter", "pattern": "(?:function\\s+\\w+|=>)\\s*\\(([^)]*)", "captureGroup": 1, "description": "Rename function parameters" },
|
|
26
|
+
{ "name": "Destructured prop", "pattern": "\\{\\s*([a-zA-Z_$][\\w$]*)(?:\\s*[:,}])", "captureGroup": 1, "description": "Rename destructured variable" },
|
|
27
|
+
{ "name": "Import alias", "pattern": "import\\s+(?:\\{[^}]*\\}|\\w+)\\s+from", "captureGroup": 0, "description": "Rename imported symbol" },
|
|
28
|
+
{ "name": "Enum member", "pattern": "^\\s*(\\w+)\\s*[=,]", "captureGroup": 1, "description": "Rename enum member" }
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{
|
|
2
|
+
"language": "react",
|
|
3
|
+
"rename": {
|
|
4
|
+
"wordPattern": "[a-zA-Z_$][a-zA-Z0-9_$]*",
|
|
5
|
+
"prepareProvider": true,
|
|
6
|
+
"validation": {
|
|
7
|
+
"identifierPattern": "^[a-zA-Z_$][a-zA-Z0-9_$]*$",
|
|
8
|
+
"minLength": 1,
|
|
9
|
+
"maxLength": 256,
|
|
10
|
+
"reservedWords": [
|
|
11
|
+
"break", "case", "catch", "continue", "debugger", "default", "delete", "do",
|
|
12
|
+
"else", "finally", "for", "function", "if", "in", "instanceof", "new",
|
|
13
|
+
"return", "switch", "this", "throw", "try", "typeof", "var", "void",
|
|
14
|
+
"while", "with", "class", "const", "enum", "export", "extends", "import",
|
|
15
|
+
"super", "implements", "interface", "let", "package", "private", "protected",
|
|
16
|
+
"public", "static", "yield", "await", "async", "of", "null", "undefined",
|
|
17
|
+
"true", "false", "NaN", "Infinity"
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"renamePatterns": [
|
|
21
|
+
{
|
|
22
|
+
"name": "ComponentRename",
|
|
23
|
+
"pattern": "(?:export\\s+)?(?:default\\s+)?(?:function|const|class)\\s+([A-Z][a-zA-Z0-9]*)\\s*",
|
|
24
|
+
"captureGroup": 1,
|
|
25
|
+
"scope": "file",
|
|
26
|
+
"description": "Rename a React component and update all usages",
|
|
27
|
+
"validationRules": {
|
|
28
|
+
"mustStartWith": "[A-Z]",
|
|
29
|
+
"reason": "React components must start with an uppercase letter."
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "HookRename",
|
|
34
|
+
"pattern": "(?:export\\s+)?(?:function|const)\\s+(use[A-Z][a-zA-Z0-9]*)\\s*(?:=|\\()",
|
|
35
|
+
"captureGroup": 1,
|
|
36
|
+
"scope": "file",
|
|
37
|
+
"description": "Rename a custom hook and update all call sites",
|
|
38
|
+
"validationRules": {
|
|
39
|
+
"mustStartWith": "use[A-Z]",
|
|
40
|
+
"reason": "Custom hooks must start with 'use' followed by an uppercase letter."
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "ContextRename",
|
|
45
|
+
"pattern": "(?:export\\s+)?const\\s+(\\w+Context)\\s*=\\s*(?:React\\.)?createContext",
|
|
46
|
+
"captureGroup": 1,
|
|
47
|
+
"scope": "file",
|
|
48
|
+
"description": "Rename a context and update providers and consumers",
|
|
49
|
+
"validationRules": {
|
|
50
|
+
"mustEndWith": "Context",
|
|
51
|
+
"reason": "Context names conventionally end with 'Context'."
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "PropRename",
|
|
56
|
+
"pattern": "(?:interface|type)\\s+(\\w+Props)\\s*",
|
|
57
|
+
"captureGroup": 1,
|
|
58
|
+
"scope": "file",
|
|
59
|
+
"description": "Rename a props interface/type"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "StateVariableRename",
|
|
63
|
+
"pattern": "const\\s+\\[(\\w+),\\s*set\\w+\\]\\s*=\\s*useState",
|
|
64
|
+
"captureGroup": 1,
|
|
65
|
+
"scope": "function",
|
|
66
|
+
"description": "Rename a state variable and its setter"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "RefRename",
|
|
70
|
+
"pattern": "const\\s+(\\w+)\\s*=\\s*useRef",
|
|
71
|
+
"captureGroup": 1,
|
|
72
|
+
"scope": "function",
|
|
73
|
+
"description": "Rename a ref variable"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "HOCRename",
|
|
77
|
+
"pattern": "(?:export\\s+)?(?:function|const)\\s+(with[A-Z][a-zA-Z0-9]*)\\s*",
|
|
78
|
+
"captureGroup": 1,
|
|
79
|
+
"scope": "file",
|
|
80
|
+
"description": "Rename a Higher-Order Component",
|
|
81
|
+
"validationRules": {
|
|
82
|
+
"mustStartWith": "with[A-Z]",
|
|
83
|
+
"reason": "HOCs conventionally start with 'with'."
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{
|
|
2
|
+
"language": "shadcn",
|
|
3
|
+
"renamePatterns": [
|
|
4
|
+
{
|
|
5
|
+
"name": "componentName",
|
|
6
|
+
"pattern": "(?:function|const)\\s+([A-Z][a-zA-Z0-9]*)\\s*(?:=\\s*(?:React\\.forwardRef|\\()|\\()",
|
|
7
|
+
"captureGroup": 1,
|
|
8
|
+
"description": "Rename a React component declared as function or const (PascalCase)"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"name": "propInterfaceName",
|
|
12
|
+
"pattern": "(?:interface|type)\\s+([A-Z][a-zA-Z0-9]*Props)(?:<[^>]*>)?\\s*(?:=|\\{)",
|
|
13
|
+
"captureGroup": 1,
|
|
14
|
+
"description": "Rename a component props interface or type alias"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "variantConstName",
|
|
18
|
+
"pattern": "const\\s+([a-zA-Z][a-zA-Z0-9]*Variants?)\\s*=\\s*cva\\s*\\(",
|
|
19
|
+
"captureGroup": 1,
|
|
20
|
+
"description": "Rename a cva() variant const definition"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "hookName",
|
|
24
|
+
"pattern": "(?:function|const)\\s+(use[A-Z][a-zA-Z0-9]*)\\s*(?:=|\\()",
|
|
25
|
+
"captureGroup": 1,
|
|
26
|
+
"description": "Rename a custom React hook (must start with use)"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "formSchemaName",
|
|
30
|
+
"pattern": "const\\s+([a-zA-Z][a-zA-Z0-9]*Schema)\\s*=\\s*z\\.",
|
|
31
|
+
"captureGroup": 1,
|
|
32
|
+
"description": "Rename a Zod form validation schema"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "columnAccessorKey",
|
|
36
|
+
"pattern": "accessorKey\\s*:\\s*[\"']([a-zA-Z_][a-zA-Z0-9_]*)[\"']",
|
|
37
|
+
"captureGroup": 1,
|
|
38
|
+
"description": "Rename a column accessor key in DataTable column definitions"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "utilityFunctionName",
|
|
42
|
+
"pattern": "(?:function|const)\\s+([a-z][a-zA-Z0-9]*)\\s*(?:=\\s*(?:\\([^)]*\\)|[^=])\\s*=>|\\()",
|
|
43
|
+
"captureGroup": 1,
|
|
44
|
+
"description": "Rename a utility function (camelCase)"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "typeAliasName",
|
|
48
|
+
"pattern": "type\\s+([A-Z][a-zA-Z0-9]*)(?:<[^>]*>)?\\s*=",
|
|
49
|
+
"captureGroup": 1,
|
|
50
|
+
"description": "Rename a TypeScript type alias"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"validationRules": {
|
|
54
|
+
"reservedWords": [
|
|
55
|
+
"React",
|
|
56
|
+
"Fragment",
|
|
57
|
+
"forwardRef",
|
|
58
|
+
"useState",
|
|
59
|
+
"useEffect",
|
|
60
|
+
"useRef",
|
|
61
|
+
"useCallback",
|
|
62
|
+
"useMemo"
|
|
63
|
+
],
|
|
64
|
+
"patterns": [
|
|
65
|
+
{
|
|
66
|
+
"pattern": "^[A-Z][a-zA-Z0-9]*$",
|
|
67
|
+
"message": "Component names must be PascalCase (e.g. Button, DataTable)"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"pattern": "^use[A-Z][a-zA-Z0-9]*$",
|
|
71
|
+
"message": "Hook names must start with 'use' followed by PascalCase (e.g. useToast, useFormField)"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"pattern": "^[a-z][a-zA-Z0-9]*$",
|
|
75
|
+
"message": "Utility functions and variables must be camelCase (e.g. cn, buttonVariants)"
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
}
|
package/data/rename/shell.json
CHANGED
|
@@ -1,31 +1,101 @@
|
|
|
1
|
-
{
|
|
2
|
-
"language": "shell",
|
|
3
|
-
"wordPattern": "[a-zA-Z_][a-zA-Z0-9_]*|\\$[a-zA-Z_][a-zA-Z0-9_]*|\\$\\{[a-zA-Z_][a-zA-Z0-9_]*\\}",
|
|
4
|
-
"identifierRules": {
|
|
5
|
-
"start": "[a-zA-Z_$]",
|
|
6
|
-
"continue": "[a-zA-Z0-9_]",
|
|
7
|
-
"forbidden": [
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
1
|
+
{
|
|
2
|
+
"language": "shell",
|
|
3
|
+
"wordPattern": "[a-zA-Z_][a-zA-Z0-9_]*|\\$[a-zA-Z_][a-zA-Z0-9_]*|\\$\\{[a-zA-Z_][a-zA-Z0-9_]*\\}",
|
|
4
|
+
"identifierRules": {
|
|
5
|
+
"start": "[a-zA-Z_$]",
|
|
6
|
+
"continue": "[a-zA-Z0-9_]",
|
|
7
|
+
"forbidden": [
|
|
8
|
+
"if",
|
|
9
|
+
"then",
|
|
10
|
+
"else",
|
|
11
|
+
"elif",
|
|
12
|
+
"fi",
|
|
13
|
+
"for",
|
|
14
|
+
"while",
|
|
15
|
+
"until",
|
|
16
|
+
"do",
|
|
17
|
+
"done",
|
|
18
|
+
"case",
|
|
19
|
+
"esac",
|
|
20
|
+
"in",
|
|
21
|
+
"function",
|
|
22
|
+
"select",
|
|
23
|
+
"time",
|
|
24
|
+
"coproc",
|
|
25
|
+
"break",
|
|
26
|
+
"continue",
|
|
27
|
+
"return",
|
|
28
|
+
"exit",
|
|
29
|
+
"export",
|
|
30
|
+
"readonly",
|
|
31
|
+
"local",
|
|
32
|
+
"declare",
|
|
33
|
+
"typeset",
|
|
34
|
+
"unset",
|
|
35
|
+
"shift",
|
|
36
|
+
"trap",
|
|
37
|
+
"eval",
|
|
38
|
+
"exec",
|
|
39
|
+
"source",
|
|
40
|
+
"alias",
|
|
41
|
+
"unalias",
|
|
42
|
+
"set",
|
|
43
|
+
"true",
|
|
44
|
+
"false",
|
|
45
|
+
"setopt",
|
|
46
|
+
"unsetopt",
|
|
47
|
+
"autoload",
|
|
48
|
+
"zmodload",
|
|
49
|
+
"zstyle",
|
|
50
|
+
"compdef",
|
|
51
|
+
"compadd",
|
|
52
|
+
"compctl",
|
|
53
|
+
"bindkey",
|
|
54
|
+
"zle",
|
|
55
|
+
"emulate",
|
|
56
|
+
"foreach",
|
|
57
|
+
"end",
|
|
58
|
+
"repeat",
|
|
59
|
+
"always",
|
|
60
|
+
"nocorrect",
|
|
61
|
+
"noglob"
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
"renameValidation": {
|
|
65
|
+
"allowEmpty": false,
|
|
66
|
+
"maxLength": 255,
|
|
67
|
+
"pattern": "^\\$?[a-zA-Z_][a-zA-Z0-9_]*$"
|
|
68
|
+
},
|
|
69
|
+
"prepareRenamePatterns": [
|
|
70
|
+
{
|
|
71
|
+
"pattern": "\\$\\{([a-zA-Z_][a-zA-Z0-9_]*)\\}",
|
|
72
|
+
"captureGroup": 1,
|
|
73
|
+
"description": "Brace-expanded variable"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"pattern": "\\$([a-zA-Z_][a-zA-Z0-9_]*)",
|
|
77
|
+
"captureGroup": 1,
|
|
78
|
+
"description": "Shell variable reference"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"pattern": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b",
|
|
82
|
+
"captureGroup": 1,
|
|
83
|
+
"description": "Function or variable name"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"pattern": "\\$\\{?([a-zA-Z_][a-zA-Z0-9_]*)\\}?",
|
|
87
|
+
"captureGroup": 1,
|
|
88
|
+
"description": "Shell variable reference"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"pattern": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\s*\\(\\)",
|
|
92
|
+
"captureGroup": 1,
|
|
93
|
+
"description": "Shell function definition"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"pattern": "\\b([a-zA-Z_][a-zA-Z0-9_]*)=",
|
|
97
|
+
"captureGroup": 1,
|
|
98
|
+
"description": "Shell variable assignment"
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"language": "tailwindcss",
|
|
3
|
+
"renamePatterns": [
|
|
4
|
+
{
|
|
5
|
+
"pattern": "\\.([\\w-]+)\\s*\\{[^}]*@apply",
|
|
6
|
+
"captureGroup": 1,
|
|
7
|
+
"kind": "class",
|
|
8
|
+
"description": "Rename custom component class names that use @apply."
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"pattern": "@layer\\s+(base|components|utilities)",
|
|
12
|
+
"captureGroup": 1,
|
|
13
|
+
"kind": "module",
|
|
14
|
+
"description": "Rename @layer identifiers across all references."
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"pattern": "@apply\\s+([\\w:-]+)",
|
|
18
|
+
"captureGroup": 1,
|
|
19
|
+
"kind": "reference",
|
|
20
|
+
"description": "Rename utility class references within @apply directives."
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"pattern": "class\\s*=\\s*[\"'][^\"']*\\b([\\w:-]+)\\b",
|
|
24
|
+
"captureGroup": 1,
|
|
25
|
+
"kind": "reference",
|
|
26
|
+
"description": "Rename custom class names within HTML/JSX class attributes."
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"pattern": "className\\s*=\\s*[{\"'][^}\"']*\\b([\\w:-]+)\\b",
|
|
30
|
+
"captureGroup": 1,
|
|
31
|
+
"kind": "reference",
|
|
32
|
+
"description": "Rename custom class names within React className attributes."
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"pattern": "@keyframes\\s+([\\w-]+)",
|
|
36
|
+
"captureGroup": 1,
|
|
37
|
+
"kind": "variable",
|
|
38
|
+
"description": "Rename @keyframes animation names and their references."
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"prepareRenamePatterns": [
|
|
42
|
+
{
|
|
43
|
+
"pattern": "\\.([\\w-]+)\\s*\\{",
|
|
44
|
+
"captureGroup": 1,
|
|
45
|
+
"description": "Prepare rename for CSS class selector names."
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"pattern": "@apply\\s+([\\w:-]+)",
|
|
49
|
+
"captureGroup": 1,
|
|
50
|
+
"description": "Prepare rename for utility class names in @apply."
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"pattern": "@keyframes\\s+([\\w-]+)",
|
|
54
|
+
"captureGroup": 1,
|
|
55
|
+
"description": "Prepare rename for keyframe animation names."
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
{
|
|
2
|
+
"language": "angular",
|
|
3
|
+
"selectionPatterns": [
|
|
4
|
+
{
|
|
5
|
+
"name": "stringLiteral",
|
|
6
|
+
"pattern": "(['\"])(?:(?!\\1)[^\\\\]|\\\\.)*\\1",
|
|
7
|
+
"captureGroup": 0,
|
|
8
|
+
"description": "Select single or double quoted string literal content"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"name": "templateLiteral",
|
|
12
|
+
"pattern": "`(?:[^`\\\\]|\\\\.)*`",
|
|
13
|
+
"captureGroup": 0,
|
|
14
|
+
"description": "Select template literal content including multi-line inline templates"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "decoratorArguments",
|
|
18
|
+
"pattern": "@\\w+\\s*\\(([^)]*)\\)",
|
|
19
|
+
"captureGroup": 1,
|
|
20
|
+
"description": "Select the argument list inside an Angular decorator"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "functionParameters",
|
|
24
|
+
"pattern": "\\w+\\s*\\(([^)]*)\\)",
|
|
25
|
+
"captureGroup": 1,
|
|
26
|
+
"description": "Select function or method parameter list"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "classBody",
|
|
30
|
+
"pattern": "class\\s+\\w+[^{]*\\{([\\s\\S]*?)^\\}",
|
|
31
|
+
"captureGroup": 1,
|
|
32
|
+
"description": "Select the entire class body content between braces"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "methodBody",
|
|
36
|
+
"pattern": "\\w+\\s*\\([^)]*\\)\\s*(?::\\s*\\w[^{]*)?\\{([\\s\\S]*?)^\\s*\\}",
|
|
37
|
+
"captureGroup": 1,
|
|
38
|
+
"description": "Select method body content between braces"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "constructorBody",
|
|
42
|
+
"pattern": "constructor\\s*\\([^)]*\\)\\s*\\{([\\s\\S]*?)^\\s*\\}",
|
|
43
|
+
"captureGroup": 1,
|
|
44
|
+
"description": "Select constructor body content between braces"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "arrayLiteral",
|
|
48
|
+
"pattern": "\\[([^\\]]*)\\]",
|
|
49
|
+
"captureGroup": 1,
|
|
50
|
+
"description": "Select array literal content between brackets"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "objectLiteral",
|
|
54
|
+
"pattern": "\\{([^}]*)\\}",
|
|
55
|
+
"captureGroup": 1,
|
|
56
|
+
"description": "Select object literal content between braces"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "interfaceBody",
|
|
60
|
+
"pattern": "interface\\s+\\w+[^{]*\\{([\\s\\S]*?)^\\s*\\}",
|
|
61
|
+
"captureGroup": 1,
|
|
62
|
+
"description": "Select interface body content between braces"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "importSpecifiers",
|
|
66
|
+
"pattern": "import\\s*\\{([^}]*)\\}",
|
|
67
|
+
"captureGroup": 1,
|
|
68
|
+
"description": "Select named import specifiers inside curly braces"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "genericTypeArguments",
|
|
72
|
+
"pattern": "<([^>]+)>",
|
|
73
|
+
"captureGroup": 1,
|
|
74
|
+
"description": "Select generic type arguments inside angle brackets"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "templateExpression",
|
|
78
|
+
"pattern": "\\{\\{([^}]*)\\}\\}",
|
|
79
|
+
"captureGroup": 1,
|
|
80
|
+
"description": "Select Angular template interpolation expression content"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "signalCallArguments",
|
|
84
|
+
"pattern": "(?:signal|computed|effect|input|output|model|inject)\\s*(?:<[^>]*>)?\\s*\\(([^)]*)\\)",
|
|
85
|
+
"captureGroup": 1,
|
|
86
|
+
"description": "Select arguments inside Angular signal API and inject calls"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "pipeChain",
|
|
90
|
+
"pattern": "\\|\\s*(\\w+(?:\\s*:\\s*[^|]*)?)(?=\\s*[|\\)]|$)",
|
|
91
|
+
"captureGroup": 1,
|
|
92
|
+
"description": "Select individual pipe name and arguments within a pipe chain in templates"
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"language": "css",
|
|
3
|
+
"selectionPatterns": [
|
|
4
|
+
{
|
|
5
|
+
"pattern": "[a-zA-Z0-9#._%+\\-]+",
|
|
6
|
+
"expandTo": "word",
|
|
7
|
+
"description": "Select a CSS token — property name, value keyword, selector segment, or identifier. The smallest meaningful unit."
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"pattern": "([a-z-]+)\\s*:\\s*([^;]+)",
|
|
11
|
+
"expandTo": "property-declaration",
|
|
12
|
+
"description": "Expand to the full property declaration (property: value) excluding the semicolon. Covers name and value as a unit."
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"pattern": "([a-z-]+)\\s*:\\s*([^;]+);",
|
|
16
|
+
"expandTo": "statement",
|
|
17
|
+
"description": "Expand to the full property statement including the trailing semicolon. One complete CSS declaration."
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"pattern": "([^{}]+)\\{([^}]*)\\}",
|
|
21
|
+
"expandTo": "rule",
|
|
22
|
+
"description": "Expand to the full CSS rule block — selector(s) plus all declarations within the braces."
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"pattern": "@media\\s+[^{]+\\{[\\s\\S]*?\\n\\}",
|
|
26
|
+
"expandTo": "at-rule-block",
|
|
27
|
+
"description": "Expand to the full @media block including the condition and all nested rules."
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"pattern": "@keyframes\\s+[a-zA-Z_][a-zA-Z0-9_-]*\\s*\\{[\\s\\S]*?\\n\\}",
|
|
31
|
+
"expandTo": "at-rule-block",
|
|
32
|
+
"description": "Expand to the full @keyframes block including the animation name and all keyframe stops."
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"pattern": "@supports\\s+[^{]+\\{[\\s\\S]*?\\n\\}",
|
|
36
|
+
"expandTo": "at-rule-block",
|
|
37
|
+
"description": "Expand to the full @supports feature query block."
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"pattern": "@layer\\s+[a-zA-Z_][a-zA-Z0-9_-]*\\s*\\{[\\s\\S]*?\\n\\}",
|
|
41
|
+
"expandTo": "at-rule-block",
|
|
42
|
+
"description": "Expand to the full @layer cascade layer block."
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"pattern": "/\\*[\\s\\S]*?\\*/",
|
|
46
|
+
"expandTo": "comment",
|
|
47
|
+
"description": "Expand to the full multi-line comment block including /* and */ delimiters."
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"pattern": "[\\s\\S]+",
|
|
51
|
+
"expandTo": "file",
|
|
52
|
+
"description": "Expand to the entire file content. The outermost selection level."
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|