@enjoys/context-engine 1.5.0 → 1.6.0
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/README.md +214 -62
- package/data/codeActions/css.json +119 -111
- package/data/codeActions/dart.json +190 -31
- package/data/codeActions/nestjs.json +124 -124
- package/data/codeActions/r.json +69 -71
- package/data/codeActions/sb.json +2 -2
- package/data/codeActions/scala.json +154 -26
- package/data/codeActions/shadcn.json +112 -112
- package/data/codeActions/shell.json +2 -2
- package/data/codeActions/tailwindcss.json +83 -76
- package/data/codeLens/abap.json +4 -2
- package/data/codeLens/angular.json +141 -22
- package/data/codeLens/apex.json +4 -2
- package/data/codeLens/awk.json +2 -2
- package/data/codeLens/azcli.json +4 -3
- package/data/codeLens/bicep.json +4 -2
- package/data/codeLens/c.json +4 -4
- package/data/codeLens/caddy.json +2 -2
- package/data/codeLens/cameligo.json +4 -2
- package/data/codeLens/clojure.json +4 -2
- package/data/codeLens/coffee.json +4 -2
- package/data/codeLens/crontab.json +2 -2
- package/data/codeLens/doctest.json +4 -3
- package/data/codeLens/ecl.json +4 -2
- package/data/codeLens/elixir.json +4 -2
- package/data/codeLens/flow9.json +4 -2
- package/data/codeLens/freemarker2.json +4 -2
- package/data/codeLens/hcl.json +4 -4
- package/data/codeLens/html.json +4 -4
- package/data/codeLens/julia.json +4 -2
- package/data/codeLens/less.json +4 -2
- package/data/codeLens/lexon.json +4 -2
- package/data/codeLens/liquid.json +4 -2
- package/data/codeLens/lua.json +4 -4
- package/data/codeLens/m3.json +4 -2
- package/data/codeLens/mdx.json +4 -2
- package/data/codeLens/mips.json +4 -2
- package/data/codeLens/msdax.json +4 -2
- package/data/codeLens/mysql.json +4 -2
- package/data/codeLens/nginx.json +4 -4
- package/data/codeLens/objective-c.json +4 -2
- package/data/codeLens/pascal.json +4 -2
- package/data/codeLens/pascaligo.json +4 -2
- package/data/codeLens/pgsql.json +4 -2
- package/data/codeLens/pla.json +4 -3
- package/data/codeLens/postiats.json +4 -2
- package/data/codeLens/powerquery.json +4 -2
- package/data/codeLens/qsharp.json +4 -2
- package/data/codeLens/razor.json +4 -2
- package/data/codeLens/redshift.json +4 -2
- package/data/codeLens/restructuredtext.json +4 -2
- package/data/codeLens/sb.json +4 -2
- package/data/codeLens/scheme.json +4 -2
- package/data/codeLens/scss.json +4 -2
- package/data/codeLens/shadcn.json +117 -89
- package/data/codeLens/shell.json +4 -2
- package/data/codeLens/sol.json +4 -2
- package/data/codeLens/sparql.json +4 -2
- package/data/codeLens/st.json +4 -2
- package/data/codeLens/systemverilog.json +4 -2
- package/data/codeLens/tcl.json +4 -2
- package/data/codeLens/twig.json +4 -2
- package/data/codeLens/vb.json +4 -2
- package/data/codeLens/wgsl.json +4 -2
- package/data/codeLens/xml.json +4 -4
- package/data/commands/ab.json +80 -0
- package/data/commands/act.json +82 -0
- package/data/commands/age.json +68 -0
- package/data/commands/argocd.json +109 -0
- package/data/commands/asdf.json +102 -0
- package/data/commands/astro.json +106 -0
- package/data/commands/at.json +52 -0
- package/data/commands/babel.json +83 -0
- package/data/commands/buildah.json +105 -0
- package/data/commands/cabal.json +114 -0
- package/data/commands/cdk.json +127 -0
- package/data/commands/changeset.json +68 -0
- package/data/commands/checkov.json +75 -0
- package/data/commands/commitlint.json +60 -0
- package/data/commands/concurrently.json +62 -0
- package/data/commands/conventional-commits.json +30 -0
- package/data/commands/cosign.json +103 -0
- package/data/commands/crane.json +109 -0
- package/data/commands/cron.json +29 -0
- package/data/commands/crystal.json +102 -0
- package/data/commands/csvkit.json +96 -0
- package/data/commands/cut.json +62 -0
- package/data/commands/df.json +66 -0
- package/data/commands/diff.json +72 -0
- package/data/commands/dig.json +67 -0
- package/data/commands/dmesg.json +65 -0
- package/data/commands/dotnet.json +136 -0
- package/data/commands/du.json +71 -0
- package/data/commands/echo.json +45 -0
- package/data/commands/eksctl.json +101 -0
- package/data/commands/eleventy.json +73 -0
- package/data/commands/entr.json +50 -0
- package/data/commands/env.json +43 -0
- package/data/commands/erlang.json +76 -0
- package/data/commands/esbuild.json +91 -0
- package/data/commands/ffmpeg.json +115 -0
- package/data/commands/fnm.json +100 -0
- package/data/commands/free.json +63 -0
- package/data/commands/func.json +89 -0
- package/data/commands/gatsby.json +106 -0
- package/data/commands/ghc.json +79 -0
- package/data/commands/ghostscript.json +77 -0
- package/data/commands/git-lfs.json +95 -0
- package/data/commands/gpg.json +112 -0
- package/data/commands/grafana-cli.json +97 -0
- package/data/commands/grpcurl.json +74 -0
- package/data/commands/grype.json +75 -0
- package/data/commands/hadolint.json +61 -0
- package/data/commands/head.json +48 -0
- package/data/commands/hexo.json +101 -0
- package/data/commands/hey.json +91 -0
- package/data/commands/hostname.json +52 -0
- package/data/commands/httpie.json +101 -0
- package/data/commands/hugo.json +106 -0
- package/data/commands/husky.json +52 -0
- package/data/commands/id.json +50 -0
- package/data/commands/ifconfig.json +47 -0
- package/data/commands/imagemagick.json +117 -0
- package/data/commands/inotifywait.json +70 -0
- package/data/commands/ip.json +103 -0
- package/data/commands/istioctl.json +105 -0
- package/data/commands/javac.json +87 -0
- package/data/commands/jekyll.json +105 -0
- package/data/commands/kill.json +57 -0
- package/data/commands/killall.json +60 -0
- package/data/commands/kind.json +98 -0
- package/data/commands/ko.json +89 -0
- package/data/commands/kustomize.json +70 -0
- package/data/commands/latex.json +65 -0
- package/data/commands/lerna.json +125 -0
- package/data/commands/ln.json +54 -0
- package/data/commands/lsof.json +69 -0
- package/data/commands/manifest.json +1 -1
- package/data/commands/miller.json +58 -0
- package/data/commands/mise.json +107 -0
- package/data/commands/mix.json +128 -0
- package/data/commands/mkdir.json +43 -0
- package/data/commands/mount.json +63 -0
- package/data/commands/nc.json +71 -0
- package/data/commands/netstat.json +74 -0
- package/data/commands/nim.json +104 -0
- package/data/commands/nohup.json +28 -0
- package/data/commands/nslookup.json +46 -0
- package/data/commands/nvm.json +91 -0
- package/data/commands/ocaml.json +68 -0
- package/data/commands/opam.json +111 -0
- package/data/commands/pandoc.json +100 -0
- package/data/commands/parallel.json +73 -0
- package/data/commands/patch.json +55 -0
- package/data/commands/ping.json +73 -0
- package/data/commands/podman.json +151 -0
- package/data/commands/postman.json +82 -0
- package/data/commands/pre-commit.json +101 -0
- package/data/commands/prometheus.json +65 -0
- package/data/commands/pyenv.json +87 -0
- package/data/commands/q.json +63 -0
- package/data/commands/rbenv.json +85 -0
- package/data/commands/rebar3.json +110 -0
- package/data/commands/remix.json +80 -0
- package/data/commands/rollup.json +74 -0
- package/data/commands/route.json +53 -0
- package/data/commands/rustc.json +90 -0
- package/data/commands/sam.json +122 -0
- package/data/commands/sdkman.json +89 -0
- package/data/commands/semantic-release.json +58 -0
- package/data/commands/semgrep.json +97 -0
- package/data/commands/serverless.json +121 -0
- package/data/commands/shellcheck.json +61 -0
- package/data/commands/skopeo.json +79 -0
- package/data/commands/socat.json +43 -0
- package/data/commands/sops.json +85 -0
- package/data/commands/sort.json +75 -0
- package/data/commands/sqlite-utils.json +109 -0
- package/data/commands/ss.json +75 -0
- package/data/commands/stack.json +115 -0
- package/data/commands/storybook.json +90 -0
- package/data/commands/strace.json +71 -0
- package/data/commands/svelte.json +89 -0
- package/data/commands/swc.json +73 -0
- package/data/commands/swiftc.json +83 -0
- package/data/commands/syft.json +77 -0
- package/data/commands/tail.json +58 -0
- package/data/commands/tee.json +38 -0
- package/data/commands/tflint.json +83 -0
- package/data/commands/touch.json +57 -0
- package/data/commands/traceroute.json +70 -0
- package/data/commands/tracert.json +49 -0
- package/data/commands/umount.json +49 -0
- package/data/commands/uniq.json +59 -0
- package/data/commands/vagrant.json +112 -0
- package/data/commands/vegeta.json +59 -0
- package/data/commands/volta.json +87 -0
- package/data/commands/watch.json +58 -0
- package/data/commands/wc.json +50 -0
- package/data/commands/webpack.json +94 -0
- package/data/commands/which.json +34 -0
- package/data/commands/whoami.json +27 -0
- package/data/commands/wrangler.json +124 -0
- package/data/commands/wrk.json +63 -0
- package/data/commands/xargs.json +66 -0
- package/data/commands/xsv.json +119 -0
- package/data/commands/zig.json +114 -0
- package/data/completion/redis-cli.json +3465 -3405
- package/data/documentHighlight/nextjs.json +270 -212
- package/data/documentSymbol/azcli.json +6 -3
- package/data/documentSymbol/caddy.json +7 -4
- package/data/documentSymbol/crontab.json +6 -3
- package/data/documentSymbol/css.json +14 -14
- package/data/documentSymbol/doctest.json +6 -3
- package/data/documentSymbol/dotenv.json +6 -3
- package/data/documentSymbol/flow9.json +8 -4
- package/data/documentSymbol/graphql.json +1 -1
- package/data/documentSymbol/ini.json +6 -3
- package/data/documentSymbol/json.json +6 -3
- package/data/documentSymbol/lexon.json +6 -3
- package/data/documentSymbol/mips.json +6 -3
- package/data/documentSymbol/msdax.json +6 -3
- package/data/documentSymbol/pla.json +6 -3
- package/data/documentSymbol/powerquery.json +6 -3
- package/data/documentSymbol/restructuredtext.json +6 -3
- package/data/documentSymbol/sb.json +6 -3
- package/data/documentSymbol/sparql.json +6 -3
- package/data/documentSymbol/ssh_config.json +6 -3
- package/data/documentSymbol/systemd.json +6 -3
- package/data/documentSymbol/xml.json +6 -3
- package/data/hover/caddy.json +530 -458
- package/data/hover/dockerfile.json +355 -283
- package/data/hover/lua.json +1391 -971
- package/data/hover/nginx.json +957 -891
- package/data/hover/redis-cli.json +2168 -1088
- package/data/hover/sql.json +1405 -1273
- package/data/manifest.json +4 -6
- package/package.json +2 -2
|
@@ -1,26 +1,154 @@
|
|
|
1
|
-
{
|
|
2
|
-
"language": "scala",
|
|
3
|
-
"codeActions": [
|
|
4
|
-
{
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
{
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
{
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
{
|
|
2
|
+
"language": "scala",
|
|
3
|
+
"codeActions": [
|
|
4
|
+
{
|
|
5
|
+
"title": "Extract method",
|
|
6
|
+
"kind": "refactor.extract",
|
|
7
|
+
"description": "Extract selected code into a new method",
|
|
8
|
+
"pattern": ".*",
|
|
9
|
+
"isPreferred": false
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"title": "Convert to for-comprehension",
|
|
13
|
+
"kind": "refactor.rewrite",
|
|
14
|
+
"description": "Convert chained flatMap/map/filter calls to a for-comprehension",
|
|
15
|
+
"pattern": "\\.(?:flatMap|map|filter)\\s*[{(]",
|
|
16
|
+
"isPreferred": false
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"title": "Organize imports",
|
|
20
|
+
"kind": "source.organizeImports",
|
|
21
|
+
"description": "Sort, group, and remove unused imports",
|
|
22
|
+
"pattern": "^import\\s+",
|
|
23
|
+
"isPreferred": true
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"title": "Convert to case class",
|
|
27
|
+
"kind": "refactor.rewrite",
|
|
28
|
+
"description": "Convert a regular class to a case class with auto-generated methods",
|
|
29
|
+
"pattern": "^\\s*class\\s+\\w+\\s*\\(",
|
|
30
|
+
"isPreferred": false
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"title": "Add type annotation",
|
|
34
|
+
"kind": "quickfix",
|
|
35
|
+
"description": "Add explicit type annotation to val/var/def",
|
|
36
|
+
"pattern": "(?:val|var|def)\\s+\\w+\\s*=",
|
|
37
|
+
"isPreferred": false
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"title": "Convert to pattern match",
|
|
41
|
+
"kind": "refactor.rewrite",
|
|
42
|
+
"description": "Convert if-else chain to pattern match expression",
|
|
43
|
+
"pattern": "if\\s*\\(.*\\).*else\\s+if",
|
|
44
|
+
"isPreferred": false
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"title": "Inline variable",
|
|
48
|
+
"kind": "refactor.inline",
|
|
49
|
+
"description": "Inline a val or var at its usage sites",
|
|
50
|
+
"pattern": "(?:val|var)\\s+\\w+\\s*=",
|
|
51
|
+
"isPreferred": false
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"title": "Convert to given",
|
|
55
|
+
"kind": "refactor.rewrite",
|
|
56
|
+
"description": "Convert implicit val/def to Scala 3 given instance",
|
|
57
|
+
"pattern": "implicit\\s+(?:val|def)\\s+\\w+",
|
|
58
|
+
"isPreferred": false
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"title": "Extract to trait",
|
|
62
|
+
"kind": "refactor.extract",
|
|
63
|
+
"description": "Extract selected methods into a new trait",
|
|
64
|
+
"pattern": "def\\s+\\w+",
|
|
65
|
+
"isPreferred": false
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"title": "Add override modifier",
|
|
69
|
+
"kind": "quickfix",
|
|
70
|
+
"description": "Add override keyword to a method that overrides a parent member",
|
|
71
|
+
"pattern": "def\\s+\\w+.*(?:extends|with)",
|
|
72
|
+
"isPreferred": true
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"title": "Convert string interpolation",
|
|
76
|
+
"kind": "refactor.rewrite",
|
|
77
|
+
"description": "Convert string concatenation to string interpolation or vice versa",
|
|
78
|
+
"pattern": "\"[^\"]*\"\\s*\\+|s\"[^\"]*\\$",
|
|
79
|
+
"isPreferred": false
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"title": "Add missing import",
|
|
83
|
+
"kind": "quickfix",
|
|
84
|
+
"description": "Add import for an unresolved symbol",
|
|
85
|
+
"pattern": "\\b[A-Z]\\w+",
|
|
86
|
+
"isPreferred": true
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"title": "Convert to extension method",
|
|
90
|
+
"kind": "refactor.rewrite",
|
|
91
|
+
"description": "Convert implicit class to Scala 3 extension method",
|
|
92
|
+
"pattern": "implicit\\s+class\\s+\\w+",
|
|
93
|
+
"isPreferred": false
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"title": "Implement abstract members",
|
|
97
|
+
"kind": "quickfix",
|
|
98
|
+
"description": "Generate stub implementations for abstract members from trait/class",
|
|
99
|
+
"pattern": "class\\s+\\w+\\s*.*(?:extends|with)",
|
|
100
|
+
"isPreferred": true
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"title": "Extract local variable",
|
|
104
|
+
"kind": "refactor.extract",
|
|
105
|
+
"description": "Extract an expression into a local val",
|
|
106
|
+
"pattern": ".*",
|
|
107
|
+
"isPreferred": false
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"title": "Convert to using clause",
|
|
111
|
+
"kind": "refactor.rewrite",
|
|
112
|
+
"description": "Convert implicit parameter to Scala 3 using clause",
|
|
113
|
+
"pattern": "\\(implicit\\s+",
|
|
114
|
+
"isPreferred": false
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"title": "Rename symbol",
|
|
118
|
+
"kind": "refactor.rewrite",
|
|
119
|
+
"description": "Rename a symbol across all usages in the workspace",
|
|
120
|
+
"pattern": "\\b\\w+\\b",
|
|
121
|
+
"isPreferred": false
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"title": "Convert match to if-else",
|
|
125
|
+
"kind": "refactor.rewrite",
|
|
126
|
+
"description": "Convert a simple match expression to an if-else chain",
|
|
127
|
+
"pattern": "\\s+match\\s*\\{",
|
|
128
|
+
"isPreferred": false
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"title": "Add exhaustive cases",
|
|
132
|
+
"kind": "quickfix",
|
|
133
|
+
"description": "Add missing cases for sealed type in match expression",
|
|
134
|
+
"pattern": "match\\s*\\{",
|
|
135
|
+
"isPreferred": true
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"title": "Convert to enum",
|
|
139
|
+
"kind": "refactor.rewrite",
|
|
140
|
+
"description": "Convert sealed trait + case objects to Scala 3 enum",
|
|
141
|
+
"pattern": "sealed\\s+trait\\s+\\w+",
|
|
142
|
+
"isPreferred": false
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"providedCodeActionKinds": [
|
|
146
|
+
"quickfix",
|
|
147
|
+
"refactor",
|
|
148
|
+
"refactor.extract",
|
|
149
|
+
"refactor.inline",
|
|
150
|
+
"refactor.rewrite",
|
|
151
|
+
"source",
|
|
152
|
+
"source.organizeImports"
|
|
153
|
+
]
|
|
154
|
+
}
|
|
@@ -1,112 +1,112 @@
|
|
|
1
|
-
{
|
|
2
|
-
"language": "shadcn",
|
|
3
|
-
"codeActions": [
|
|
4
|
-
{
|
|
5
|
-
"title": "Add component import from @/components/ui",
|
|
6
|
-
"kind": "quickfix",
|
|
7
|
-
"description": "Add missing import statement for a shadcn/ui component from @/components/ui/*",
|
|
8
|
-
"pattern": "<(Accordion|Alert|Avatar|Badge|Button|Calendar|Card|Carousel|Checkbox|Collapsible|Command|ContextMenu|Dialog|Drawer|DropdownMenu|Form|HoverCard|Input|Label|Menubar|NavigationMenu|Pagination|Popover|Progress|RadioGroup|ScrollArea|Select|Separator|Sheet|Skeleton|Slider|Switch|Table|Tabs|Textarea|Toast|Toaster|Toggle|ToggleGroup|Tooltip)",
|
|
9
|
-
"isPreferred": true
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"title": "Convert className string to cn() utility",
|
|
13
|
-
"kind": "refactor.rewrite",
|
|
14
|
-
"description": "Replace static className string with cn() utility for conditional class merging",
|
|
15
|
-
"pattern": "className=\"[^\"]+\"",
|
|
16
|
-
"isPreferred": false
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"title": "Convert to variant prop",
|
|
20
|
-
"kind": "refactor.rewrite",
|
|
21
|
-
"description": "Extract inline classes to a cva() variant definition",
|
|
22
|
-
"pattern": "className=\\{cn\\(",
|
|
23
|
-
"isPreferred": false
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"title": "Extract to shadcn/ui component",
|
|
27
|
-
"kind": "refactor.extract",
|
|
28
|
-
"description": "Extract selected JSX into a separate reusable shadcn/ui-styled component",
|
|
29
|
-
"pattern": "<(div|section|article)\\s+className=",
|
|
30
|
-
"isPreferred": false
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"title": "Add form validation with zod",
|
|
34
|
-
"kind": "quickfix",
|
|
35
|
-
"description": "Add zod schema validation and react-hook-form integration to a form",
|
|
36
|
-
"pattern": "<form\\s",
|
|
37
|
-
"isPreferred": false
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"title": "Wrap with TooltipProvider",
|
|
41
|
-
"kind": "quickfix",
|
|
42
|
-
"description": "Wrap Tooltip component with required TooltipProvider ancestor",
|
|
43
|
-
"pattern": "<Tooltip[^P]",
|
|
44
|
-
"isPreferred": true
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"title": "Add toast notification",
|
|
48
|
-
"kind": "source.
|
|
49
|
-
"description": "Import useToast hook and add toast notification call",
|
|
50
|
-
"pattern": "\\btoast\\b|\\buseToast\\b",
|
|
51
|
-
"isPreferred": false
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"title": "Add dark mode support",
|
|
55
|
-
"kind": "refactor.rewrite",
|
|
56
|
-
"description": "Add dark mode CSS variables and class-based dark mode toggle support",
|
|
57
|
-
"pattern": ":root\\s*\\{|@layer\\s+base",
|
|
58
|
-
"isPreferred": false
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"title": "Import from @/components/ui",
|
|
62
|
-
"kind": "source.
|
|
63
|
-
"description": "Add import statement for shadcn/ui component from the @/components/ui directory",
|
|
64
|
-
"pattern": "\\b(Button|Card|Dialog|Sheet|Form|Input|Select|Table|Tabs|Badge)\\b",
|
|
65
|
-
"isPreferred": false
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"title": "Add missing variant props",
|
|
69
|
-
"kind": "quickfix",
|
|
70
|
-
"description": "Add variant and size props to a shadcn/ui component missing them",
|
|
71
|
-
"pattern": "<(Button|Badge|Alert|Toggle)\\s*(?!.*variant)[^>]*>",
|
|
72
|
-
"isPreferred": false
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"title": "Organize component imports",
|
|
76
|
-
"kind": "source.organizeImports",
|
|
77
|
-
"description": "Sort and group shadcn/ui component imports by module path",
|
|
78
|
-
"pattern": "from\\s+['\"]@/components/ui/",
|
|
79
|
-
"isPreferred": true
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"title": "Convert to controlled component",
|
|
83
|
-
"kind": "refactor.rewrite",
|
|
84
|
-
"description": "Convert uncontrolled component to controlled with React state",
|
|
85
|
-
"pattern": "defaultValue=|defaultChecked=",
|
|
86
|
-
"isPreferred": false
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
"title": "Add asChild prop for composition",
|
|
90
|
-
"kind": "quickfix",
|
|
91
|
-
"description": "Add asChild prop to Radix UI trigger component for element composition",
|
|
92
|
-
"pattern": "<(DialogTrigger|AlertDialogTrigger|PopoverTrigger|DropdownMenuTrigger|SheetTrigger|TooltipTrigger)(?!.*asChild)",
|
|
93
|
-
"isPreferred": false
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
"title": "Add Toaster to layout",
|
|
97
|
-
"kind": "quickfix",
|
|
98
|
-
"description": "Add <Toaster /> component to the root layout file for toast notifications to work",
|
|
99
|
-
"pattern": "useToast|\\btoast\\(",
|
|
100
|
-
"isPreferred": false
|
|
101
|
-
}
|
|
102
|
-
],
|
|
103
|
-
"providedCodeActionKinds": [
|
|
104
|
-
"quickfix",
|
|
105
|
-
"refactor",
|
|
106
|
-
"refactor.extract",
|
|
107
|
-
"refactor.rewrite",
|
|
108
|
-
"source",
|
|
109
|
-
"source.
|
|
110
|
-
"source.organizeImports"
|
|
111
|
-
]
|
|
112
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"language": "shadcn",
|
|
3
|
+
"codeActions": [
|
|
4
|
+
{
|
|
5
|
+
"title": "Add component import from @/components/ui",
|
|
6
|
+
"kind": "quickfix",
|
|
7
|
+
"description": "Add missing import statement for a shadcn/ui component from @/components/ui/*",
|
|
8
|
+
"pattern": "<(Accordion|Alert|Avatar|Badge|Button|Calendar|Card|Carousel|Checkbox|Collapsible|Command|ContextMenu|Dialog|Drawer|DropdownMenu|Form|HoverCard|Input|Label|Menubar|NavigationMenu|Pagination|Popover|Progress|RadioGroup|ScrollArea|Select|Separator|Sheet|Skeleton|Slider|Switch|Table|Tabs|Textarea|Toast|Toaster|Toggle|ToggleGroup|Tooltip)",
|
|
9
|
+
"isPreferred": true
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"title": "Convert className string to cn() utility",
|
|
13
|
+
"kind": "refactor.rewrite",
|
|
14
|
+
"description": "Replace static className string with cn() utility for conditional class merging",
|
|
15
|
+
"pattern": "className=\"[^\"]+\"",
|
|
16
|
+
"isPreferred": false
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"title": "Convert to variant prop",
|
|
20
|
+
"kind": "refactor.rewrite",
|
|
21
|
+
"description": "Extract inline classes to a cva() variant definition",
|
|
22
|
+
"pattern": "className=\\{cn\\(",
|
|
23
|
+
"isPreferred": false
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"title": "Extract to shadcn/ui component",
|
|
27
|
+
"kind": "refactor.extract",
|
|
28
|
+
"description": "Extract selected JSX into a separate reusable shadcn/ui-styled component",
|
|
29
|
+
"pattern": "<(div|section|article)\\s+className=",
|
|
30
|
+
"isPreferred": false
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"title": "Add form validation with zod",
|
|
34
|
+
"kind": "quickfix",
|
|
35
|
+
"description": "Add zod schema validation and react-hook-form integration to a form",
|
|
36
|
+
"pattern": "<form\\s",
|
|
37
|
+
"isPreferred": false
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"title": "Wrap with TooltipProvider",
|
|
41
|
+
"kind": "quickfix",
|
|
42
|
+
"description": "Wrap Tooltip component with required TooltipProvider ancestor",
|
|
43
|
+
"pattern": "<Tooltip[^P]",
|
|
44
|
+
"isPreferred": true
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"title": "Add toast notification",
|
|
48
|
+
"kind": "source.fixAll",
|
|
49
|
+
"description": "Import useToast hook and add toast notification call",
|
|
50
|
+
"pattern": "\\btoast\\b|\\buseToast\\b",
|
|
51
|
+
"isPreferred": false
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"title": "Add dark mode support",
|
|
55
|
+
"kind": "refactor.rewrite",
|
|
56
|
+
"description": "Add dark mode CSS variables and class-based dark mode toggle support",
|
|
57
|
+
"pattern": ":root\\s*\\{|@layer\\s+base",
|
|
58
|
+
"isPreferred": false
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"title": "Import from @/components/ui",
|
|
62
|
+
"kind": "source.fixAll",
|
|
63
|
+
"description": "Add import statement for shadcn/ui component from the @/components/ui directory",
|
|
64
|
+
"pattern": "\\b(Button|Card|Dialog|Sheet|Form|Input|Select|Table|Tabs|Badge)\\b",
|
|
65
|
+
"isPreferred": false
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"title": "Add missing variant props",
|
|
69
|
+
"kind": "quickfix",
|
|
70
|
+
"description": "Add variant and size props to a shadcn/ui component missing them",
|
|
71
|
+
"pattern": "<(Button|Badge|Alert|Toggle)\\s*(?!.*variant)[^>]*>",
|
|
72
|
+
"isPreferred": false
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"title": "Organize component imports",
|
|
76
|
+
"kind": "source.organizeImports",
|
|
77
|
+
"description": "Sort and group shadcn/ui component imports by module path",
|
|
78
|
+
"pattern": "from\\s+['\"]@/components/ui/",
|
|
79
|
+
"isPreferred": true
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"title": "Convert to controlled component",
|
|
83
|
+
"kind": "refactor.rewrite",
|
|
84
|
+
"description": "Convert uncontrolled component to controlled with React state",
|
|
85
|
+
"pattern": "defaultValue=|defaultChecked=",
|
|
86
|
+
"isPreferred": false
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"title": "Add asChild prop for composition",
|
|
90
|
+
"kind": "quickfix",
|
|
91
|
+
"description": "Add asChild prop to Radix UI trigger component for element composition",
|
|
92
|
+
"pattern": "<(DialogTrigger|AlertDialogTrigger|PopoverTrigger|DropdownMenuTrigger|SheetTrigger|TooltipTrigger)(?!.*asChild)",
|
|
93
|
+
"isPreferred": false
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"title": "Add Toaster to layout",
|
|
97
|
+
"kind": "quickfix",
|
|
98
|
+
"description": "Add <Toaster /> component to the root layout file for toast notifications to work",
|
|
99
|
+
"pattern": "useToast|\\btoast\\(",
|
|
100
|
+
"isPreferred": false
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"providedCodeActionKinds": [
|
|
104
|
+
"quickfix",
|
|
105
|
+
"refactor",
|
|
106
|
+
"refactor.extract",
|
|
107
|
+
"refactor.rewrite",
|
|
108
|
+
"source",
|
|
109
|
+
"source.fixAll",
|
|
110
|
+
"source.organizeImports"
|
|
111
|
+
]
|
|
112
|
+
}
|
|
@@ -1,76 +1,83 @@
|
|
|
1
|
-
{
|
|
2
|
-
"language": "tailwindcss",
|
|
3
|
-
"codeActions": [
|
|
4
|
-
{
|
|
5
|
-
"title": "Sort Tailwind CSS classes (Headwind order)",
|
|
6
|
-
"kind": "source.
|
|
7
|
-
"description": "Reorders Tailwind utility classes following the recommended Headwind/Prettier-plugin-tailwindcss sort order for consistency.",
|
|
8
|
-
"pattern": "class\\s*=\\s*[\"'][^\"']*[\"']",
|
|
9
|
-
"isPreferred": true
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"title": "Extract classes to @apply component",
|
|
13
|
-
"kind": "refactor.
|
|
14
|
-
"description": "Extracts selected Tailwind utility classes into a reusable CSS component using @apply directive.",
|
|
15
|
-
"pattern": "class\\s*=\\s*[\"']([^\"']{20,})[\"']",
|
|
16
|
-
"isPreferred": false
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"title": "Convert arbitrary value to theme config",
|
|
20
|
-
"kind": "refactor.rewrite",
|
|
21
|
-
"description": "Converts an arbitrary value like `bg-[#1da1f2]` or `w-[200px]` to a named theme value in tailwind.config.js.",
|
|
22
|
-
"pattern": "\\w+-\\[[^\\]]+\\]",
|
|
23
|
-
"isPreferred": false
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"title": "Group responsive variants",
|
|
27
|
-
"kind": "refactor.
|
|
28
|
-
"description": "Groups utility classes by responsive breakpoint prefix (sm:, md:, lg:, xl:, 2xl:) for better readability.",
|
|
29
|
-
"pattern": "(?:sm|md|lg|xl|2xl):[\\w-]+",
|
|
30
|
-
"isPreferred": false
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"title": "Remove duplicate Tailwind classes",
|
|
34
|
-
"kind": "quickfix
|
|
35
|
-
"description": "Detects and removes duplicate utility classes within a class attribute.",
|
|
36
|
-
"pattern": "class\\s*=\\s*[\"'][^\"']*[\"']",
|
|
37
|
-
"isPreferred": true
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"title": "Convert @apply to inline utilities",
|
|
41
|
-
"kind": "refactor.inline",
|
|
42
|
-
"description": "Replaces an @apply rule with the individual utility classes inlined directly in the HTML class attribute.",
|
|
43
|
-
"pattern": "@apply\\s+[\\w\\s:-]+;",
|
|
44
|
-
"isPreferred": false
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"title": "Convert inline utilities to @apply",
|
|
48
|
-
"kind": "refactor.
|
|
49
|
-
"description": "Extracts inline Tailwind utility classes from a class attribute into a new CSS rule using @apply.",
|
|
50
|
-
"pattern": "class\\s*=\\s*[\"']([^\"']{30,})[\"']",
|
|
51
|
-
"isPreferred": false
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"title": "Wrap in responsive variant",
|
|
55
|
-
"kind": "refactor.
|
|
56
|
-
"description": "Wraps selected utility classes with a responsive breakpoint prefix (sm:, md:, lg:, xl:, 2xl:).",
|
|
57
|
-
"pattern": "[\\w-]+",
|
|
58
|
-
"isPreferred": false
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"title": "Add dark mode variant",
|
|
62
|
-
"kind": "refactor.
|
|
63
|
-
"description": "Adds dark: prefix to selected utility classes for dark mode support.",
|
|
64
|
-
"pattern": "(?:bg|text|border|ring|shadow)-[\\w-]+",
|
|
65
|
-
"isPreferred": false
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"title": "Convert to arbitrary value",
|
|
69
|
-
"kind": "refactor.rewrite",
|
|
70
|
-
"description": "Converts a standard utility value to an arbitrary value notation, e.g. `p-4` to `p-[1rem]`.",
|
|
71
|
-
"pattern": "\\w+-\\d+",
|
|
72
|
-
"isPreferred": false
|
|
73
|
-
}
|
|
74
|
-
],
|
|
75
|
-
"providedCodeActionKinds": [
|
|
76
|
-
|
|
1
|
+
{
|
|
2
|
+
"language": "tailwindcss",
|
|
3
|
+
"codeActions": [
|
|
4
|
+
{
|
|
5
|
+
"title": "Sort Tailwind CSS classes (Headwind order)",
|
|
6
|
+
"kind": "source.fixAll",
|
|
7
|
+
"description": "Reorders Tailwind utility classes following the recommended Headwind/Prettier-plugin-tailwindcss sort order for consistency.",
|
|
8
|
+
"pattern": "class\\s*=\\s*[\"'][^\"']*[\"']",
|
|
9
|
+
"isPreferred": true
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"title": "Extract classes to @apply component",
|
|
13
|
+
"kind": "refactor.rewrite",
|
|
14
|
+
"description": "Extracts selected Tailwind utility classes into a reusable CSS component using @apply directive.",
|
|
15
|
+
"pattern": "class\\s*=\\s*[\"']([^\"']{20,})[\"']",
|
|
16
|
+
"isPreferred": false
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"title": "Convert arbitrary value to theme config",
|
|
20
|
+
"kind": "refactor.rewrite",
|
|
21
|
+
"description": "Converts an arbitrary value like `bg-[#1da1f2]` or `w-[200px]` to a named theme value in tailwind.config.js.",
|
|
22
|
+
"pattern": "\\w+-\\[[^\\]]+\\]",
|
|
23
|
+
"isPreferred": false
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"title": "Group responsive variants",
|
|
27
|
+
"kind": "refactor.rewrite",
|
|
28
|
+
"description": "Groups utility classes by responsive breakpoint prefix (sm:, md:, lg:, xl:, 2xl:) for better readability.",
|
|
29
|
+
"pattern": "(?:sm|md|lg|xl|2xl):[\\w-]+",
|
|
30
|
+
"isPreferred": false
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"title": "Remove duplicate Tailwind classes",
|
|
34
|
+
"kind": "quickfix",
|
|
35
|
+
"description": "Detects and removes duplicate utility classes within a class attribute.",
|
|
36
|
+
"pattern": "class\\s*=\\s*[\"'][^\"']*[\"']",
|
|
37
|
+
"isPreferred": true
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"title": "Convert @apply to inline utilities",
|
|
41
|
+
"kind": "refactor.inline",
|
|
42
|
+
"description": "Replaces an @apply rule with the individual utility classes inlined directly in the HTML class attribute.",
|
|
43
|
+
"pattern": "@apply\\s+[\\w\\s:-]+;",
|
|
44
|
+
"isPreferred": false
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"title": "Convert inline utilities to @apply",
|
|
48
|
+
"kind": "refactor.rewrite",
|
|
49
|
+
"description": "Extracts inline Tailwind utility classes from a class attribute into a new CSS rule using @apply.",
|
|
50
|
+
"pattern": "class\\s*=\\s*[\"']([^\"']{30,})[\"']",
|
|
51
|
+
"isPreferred": false
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"title": "Wrap in responsive variant",
|
|
55
|
+
"kind": "refactor.rewrite",
|
|
56
|
+
"description": "Wraps selected utility classes with a responsive breakpoint prefix (sm:, md:, lg:, xl:, 2xl:).",
|
|
57
|
+
"pattern": "[\\w-]+",
|
|
58
|
+
"isPreferred": false
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"title": "Add dark mode variant",
|
|
62
|
+
"kind": "refactor.rewrite",
|
|
63
|
+
"description": "Adds dark: prefix to selected utility classes for dark mode support.",
|
|
64
|
+
"pattern": "(?:bg|text|border|ring|shadow)-[\\w-]+",
|
|
65
|
+
"isPreferred": false
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"title": "Convert to arbitrary value",
|
|
69
|
+
"kind": "refactor.rewrite",
|
|
70
|
+
"description": "Converts a standard utility value to an arbitrary value notation, e.g. `p-4` to `p-[1rem]`.",
|
|
71
|
+
"pattern": "\\w+-\\d+",
|
|
72
|
+
"isPreferred": false
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"providedCodeActionKinds": [
|
|
76
|
+
"quickfix",
|
|
77
|
+
"refactor",
|
|
78
|
+
"refactor.extract",
|
|
79
|
+
"refactor.inline",
|
|
80
|
+
"refactor.rewrite",
|
|
81
|
+
"source"
|
|
82
|
+
]
|
|
83
|
+
}
|
package/data/codeLens/abap.json
CHANGED
|
@@ -5,13 +5,15 @@
|
|
|
5
5
|
"pattern": "^\\s*METHOD\\s+(\\w+)",
|
|
6
6
|
"captureGroup": 1,
|
|
7
7
|
"title": "method",
|
|
8
|
-
"
|
|
8
|
+
"commandId": "editor.action.referenceSearch.trigger",
|
|
9
|
+
"description": "method"
|
|
9
10
|
},
|
|
10
11
|
{
|
|
11
12
|
"pattern": "^\\s*CLASS\\s+(\\w+)\\s+DEFINITION",
|
|
12
13
|
"captureGroup": 1,
|
|
13
14
|
"title": "class",
|
|
14
|
-
"
|
|
15
|
+
"commandId": "editor.action.referenceSearch.trigger",
|
|
16
|
+
"description": "class"
|
|
15
17
|
},
|
|
16
18
|
{
|
|
17
19
|
"pattern": "(?:function|def|fn|func|sub|proc)\\s+(\\w+)",
|