@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,31 +1,190 @@
|
|
|
1
|
-
{
|
|
2
|
-
"language": "dart",
|
|
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
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"language": "dart",
|
|
3
|
+
"codeActions": [
|
|
4
|
+
{
|
|
5
|
+
"title": "Convert to StatefulWidget",
|
|
6
|
+
"kind": "refactor.rewrite",
|
|
7
|
+
"description": "Convert a StatelessWidget to a StatefulWidget with State class",
|
|
8
|
+
"pattern": "class\\s+\\w+\\s+extends\\s+StatelessWidget",
|
|
9
|
+
"isPreferred": false
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"title": "Convert to StatelessWidget",
|
|
13
|
+
"kind": "refactor.rewrite",
|
|
14
|
+
"description": "Convert a StatefulWidget to a StatelessWidget",
|
|
15
|
+
"pattern": "class\\s+\\w+\\s+extends\\s+StatefulWidget",
|
|
16
|
+
"isPreferred": false
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"title": "Extract widget",
|
|
20
|
+
"kind": "refactor.extract",
|
|
21
|
+
"description": "Extract the selected widget tree into a new widget class",
|
|
22
|
+
"pattern": "\\w+\\(",
|
|
23
|
+
"isPreferred": false
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"title": "Wrap with widget",
|
|
27
|
+
"kind": "refactor.rewrite",
|
|
28
|
+
"description": "Wrap a widget with a parent widget (Container, Padding, Center, etc.)",
|
|
29
|
+
"pattern": "\\w+\\(",
|
|
30
|
+
"isPreferred": false
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"title": "Wrap with Builder",
|
|
34
|
+
"kind": "refactor.rewrite",
|
|
35
|
+
"description": "Wrap widget with a Builder for a new BuildContext",
|
|
36
|
+
"pattern": "\\w+\\(",
|
|
37
|
+
"isPreferred": false
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"title": "Add const modifier",
|
|
41
|
+
"kind": "quickfix",
|
|
42
|
+
"description": "Add const to constructors and literals for compile-time optimization",
|
|
43
|
+
"pattern": "\\w+\\(",
|
|
44
|
+
"isPreferred": true
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"title": "Remove const modifier",
|
|
48
|
+
"kind": "quickfix",
|
|
49
|
+
"description": "Remove unnecessary const modifier",
|
|
50
|
+
"pattern": "const\\s+\\w+",
|
|
51
|
+
"isPreferred": false
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"title": "Organize imports",
|
|
55
|
+
"kind": "source.organizeImports",
|
|
56
|
+
"description": "Sort and remove unused imports",
|
|
57
|
+
"pattern": "^import\\s+",
|
|
58
|
+
"isPreferred": true
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"title": "Convert to expression body",
|
|
62
|
+
"kind": "refactor.rewrite",
|
|
63
|
+
"description": "Convert a block body with single return to => expression",
|
|
64
|
+
"pattern": "\\{\\s*return\\s+",
|
|
65
|
+
"isPreferred": false
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"title": "Convert to block body",
|
|
69
|
+
"kind": "refactor.rewrite",
|
|
70
|
+
"description": "Convert an expression body (=>) to a block body with return",
|
|
71
|
+
"pattern": "=>\\s+",
|
|
72
|
+
"isPreferred": false
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"title": "Add required keyword",
|
|
76
|
+
"kind": "quickfix",
|
|
77
|
+
"description": "Add required keyword to named parameter",
|
|
78
|
+
"pattern": "\\{[^}]*\\w+\\s+\\w+",
|
|
79
|
+
"isPreferred": true
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"title": "Sort child properties last",
|
|
83
|
+
"kind": "refactor.rewrite",
|
|
84
|
+
"description": "Move child/children property to the end of the widget constructor",
|
|
85
|
+
"pattern": "child:",
|
|
86
|
+
"isPreferred": false
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"title": "Add null check",
|
|
90
|
+
"kind": "quickfix",
|
|
91
|
+
"description": "Add null safety check (! or ?? default)",
|
|
92
|
+
"pattern": "\\w+\\?",
|
|
93
|
+
"isPreferred": false
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"title": "Convert to switch expression",
|
|
97
|
+
"kind": "refactor.rewrite",
|
|
98
|
+
"description": "Convert switch statement to switch expression (Dart 3)",
|
|
99
|
+
"pattern": "switch\\s*\\(",
|
|
100
|
+
"isPreferred": false
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"title": "Create missing override",
|
|
104
|
+
"kind": "quickfix",
|
|
105
|
+
"description": "Create missing override methods from superclass or interface",
|
|
106
|
+
"pattern": "class\\s+\\w+\\s+(?:extends|implements)",
|
|
107
|
+
"isPreferred": true
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"title": "Add type annotation",
|
|
111
|
+
"kind": "quickfix",
|
|
112
|
+
"description": "Add explicit type annotation to var/final declaration",
|
|
113
|
+
"pattern": "(?:var|final)\\s+\\w+\\s*=",
|
|
114
|
+
"isPreferred": false
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"title": "Convert to for-in",
|
|
118
|
+
"kind": "refactor.rewrite",
|
|
119
|
+
"description": "Convert indexed for loop to for-in loop",
|
|
120
|
+
"pattern": "for\\s*\\(\\s*(?:var|int)\\s+\\w+\\s*=\\s*0",
|
|
121
|
+
"isPreferred": false
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"title": "Add trailing comma",
|
|
125
|
+
"kind": "quickfix",
|
|
126
|
+
"description": "Add trailing comma for better formatting",
|
|
127
|
+
"pattern": "\\w+\\([^)]+\\)",
|
|
128
|
+
"isPreferred": false
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"title": "Convert to relative import",
|
|
132
|
+
"kind": "refactor.rewrite",
|
|
133
|
+
"description": "Convert package: import to relative import",
|
|
134
|
+
"pattern": "import\\s+'package:",
|
|
135
|
+
"isPreferred": false
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"title": "Extract method",
|
|
139
|
+
"kind": "refactor.extract",
|
|
140
|
+
"description": "Extract selected code into a new method",
|
|
141
|
+
"pattern": ".*",
|
|
142
|
+
"isPreferred": false
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"title": "Extract local variable",
|
|
146
|
+
"kind": "refactor.extract",
|
|
147
|
+
"description": "Extract selected expression into a local variable",
|
|
148
|
+
"pattern": ".*",
|
|
149
|
+
"isPreferred": false
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"title": "Inline method",
|
|
153
|
+
"kind": "refactor.inline",
|
|
154
|
+
"description": "Inline the body of a method at its call sites",
|
|
155
|
+
"pattern": "\\w+\\s*\\(",
|
|
156
|
+
"isPreferred": false
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"title": "Convert to multiline string",
|
|
160
|
+
"kind": "refactor.rewrite",
|
|
161
|
+
"description": "Convert a string to a multiline (triple-quoted) string",
|
|
162
|
+
"pattern": "'[^']*'|\"[^\"]*\"",
|
|
163
|
+
"isPreferred": false
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"title": "Wrap with Column",
|
|
167
|
+
"kind": "refactor.rewrite",
|
|
168
|
+
"description": "Wrap selected widget with a Column",
|
|
169
|
+
"pattern": "\\w+\\(",
|
|
170
|
+
"isPreferred": false
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"title": "Wrap with Row",
|
|
174
|
+
"kind": "refactor.rewrite",
|
|
175
|
+
"description": "Wrap selected widget with a Row",
|
|
176
|
+
"pattern": "\\w+\\(",
|
|
177
|
+
"isPreferred": false
|
|
178
|
+
}
|
|
179
|
+
],
|
|
180
|
+
"providedCodeActionKinds": [
|
|
181
|
+
"quickfix",
|
|
182
|
+
"refactor",
|
|
183
|
+
"refactor.extract",
|
|
184
|
+
"refactor.inline",
|
|
185
|
+
"refactor.rewrite",
|
|
186
|
+
"source",
|
|
187
|
+
"source.fixAll",
|
|
188
|
+
"source.organizeImports"
|
|
189
|
+
]
|
|
190
|
+
}
|
|
@@ -1,124 +1,124 @@
|
|
|
1
|
-
{
|
|
2
|
-
"language": "nestjs",
|
|
3
|
-
"codeActions": [
|
|
4
|
-
{
|
|
5
|
-
"title": "Add missing decorator import",
|
|
6
|
-
"kind": "quickfix",
|
|
7
|
-
"description": "Adds the missing import statement for NestJS decorators like @Controller, @Injectable, @Get, @Post, etc. from @nestjs/common",
|
|
8
|
-
"pattern": "@(Controller|Injectable|Get|Post|Put|Patch|Delete|Module|Inject|Body|Param|Query|Headers|UseGuards|UseInterceptors|UsePipes|UseFilters|SetMetadata|Catch|HttpCode|Header|Redirect|Req|Res)",
|
|
9
|
-
"isPreferred": true
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"title": "Generate constructor injection",
|
|
13
|
-
"kind": "quickfix",
|
|
14
|
-
"description": "Generates a constructor with dependency injection for the specified service or repository",
|
|
15
|
-
"pattern": "class\\s+\\w+\\s*\\{",
|
|
16
|
-
"isPreferred": false
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"title": "Extract method to service",
|
|
20
|
-
"kind": "refactor.extract",
|
|
21
|
-
"description": "Extracts the selected method logic from a controller into a service class",
|
|
22
|
-
"pattern": "@(Get|Post|Put|Patch|Delete)\\s*\\(",
|
|
23
|
-
"isPreferred": false
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"title": "Add @Injectable() decorator",
|
|
27
|
-
"kind": "quickfix",
|
|
28
|
-
"description": "Adds the @Injectable() decorator to a class that needs to be managed by the NestJS IoC container",
|
|
29
|
-
"pattern": "export\\s+class\\s+\\w+(Service|Guard|Pipe|Interceptor|Filter|Strategy|Middleware)",
|
|
30
|
-
"isPreferred": true
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"title": "Convert to async method",
|
|
34
|
-
"kind": "refactor",
|
|
35
|
-
"description": "Converts a synchronous route handler method to an async method with Promise return type",
|
|
36
|
-
"pattern": "@(Get|Post|Put|Patch|Delete)\\s*\\([^)]*\\)\\s*\\n\\s*(?!async)",
|
|
37
|
-
"isPreferred": false
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"title": "Add ValidationPipe to method",
|
|
41
|
-
"kind": "quickfix",
|
|
42
|
-
"description": "Adds @UsePipes(new ValidationPipe()) decorator to the route handler for request validation",
|
|
43
|
-
"pattern": "@(Post|Put|Patch)\\s*\\(",
|
|
44
|
-
"isPreferred": false
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"title": "Wrap in try-catch with HttpException",
|
|
48
|
-
"kind": "refactor",
|
|
49
|
-
"description": "Wraps the selected code in a try-catch block that throws an appropriate HttpException on error",
|
|
50
|
-
"pattern": "async\\s+\\w+\\s*\\(",
|
|
51
|
-
"isPreferred": false
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"title": "Add @ApiProperty() to DTO fields",
|
|
55
|
-
"kind": "quickfix",
|
|
56
|
-
"description": "Adds @ApiProperty() decorator from @nestjs/swagger to all properties in a DTO class for Swagger documentation",
|
|
57
|
-
"pattern": "class\\s+\\w+Dto\\s*\\{",
|
|
58
|
-
"isPreferred": false
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"title": "Generate CRUD endpoints",
|
|
62
|
-
"kind": "refactor",
|
|
63
|
-
"description": "Generates a complete set of CRUD route handlers (GET, POST, PUT, DELETE) in the controller",
|
|
64
|
-
"pattern": "@Controller\\s*\\(",
|
|
65
|
-
"isPreferred": false
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"title": "Add @UseGuards(AuthGuard)",
|
|
69
|
-
"kind": "quickfix",
|
|
70
|
-
"description": "Adds @UseGuards(AuthGuard('jwt')) decorator to protect the route with JWT authentication",
|
|
71
|
-
"pattern": "@(Get|Post|Put|Patch|Delete)\\s*\\(",
|
|
72
|
-
"isPreferred": false
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"title": "Add @UseInterceptors(ClassSerializerInterceptor)",
|
|
76
|
-
"kind": "quickfix",
|
|
77
|
-
"description": "Adds ClassSerializerInterceptor to the controller or method for response serialization",
|
|
78
|
-
"pattern": "@Controller\\s*\\(|@(Get|Post|Put|Patch|Delete)\\s*\\(",
|
|
79
|
-
"isPreferred": false
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"title": "Add Swagger decorators to endpoint",
|
|
83
|
-
"kind": "refactor",
|
|
84
|
-
"description": "Adds @ApiOperation, @ApiResponse, and other Swagger decorators to document the endpoint",
|
|
85
|
-
"pattern": "@(Get|Post|Put|Patch|Delete)\\s*\\(",
|
|
86
|
-
"isPreferred": false
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
"title": "Convert to custom provider",
|
|
90
|
-
"kind": "refactor",
|
|
91
|
-
"description": "Converts a simple class provider to a custom provider with useFactory, useValue, or useClass syntax",
|
|
92
|
-
"pattern": "providers:\\s*\\[",
|
|
93
|
-
"isPreferred": false
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
"title": "Add module imports",
|
|
97
|
-
"kind": "quickfix",
|
|
98
|
-
"description": "Adds missing NestJS module imports (ConfigModule, TypeOrmModule, etc.) to the module's imports array",
|
|
99
|
-
"pattern": "@Module\\s*\\(",
|
|
100
|
-
"isPreferred": false
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
"title": "Organize imports",
|
|
104
|
-
"kind": "source.organizeImports",
|
|
105
|
-
"description": "Organizes and sorts import statements, grouping @nestjs/* imports together",
|
|
106
|
-
"pattern": "import\\s+",
|
|
107
|
-
"isPreferred": false
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"title": "Fix all auto-fixable issues",
|
|
111
|
-
"kind": "source.fixAll",
|
|
112
|
-
"description": "Applies all available auto-fixes including missing imports, decorators, and formatting",
|
|
113
|
-
"pattern": ".*",
|
|
114
|
-
"isPreferred": false
|
|
115
|
-
}
|
|
116
|
-
],
|
|
117
|
-
"providedCodeActionKinds": [
|
|
118
|
-
"quickfix",
|
|
119
|
-
"refactor",
|
|
120
|
-
"refactor.extract",
|
|
121
|
-
"source.
|
|
122
|
-
"source.
|
|
123
|
-
]
|
|
124
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"language": "nestjs",
|
|
3
|
+
"codeActions": [
|
|
4
|
+
{
|
|
5
|
+
"title": "Add missing decorator import",
|
|
6
|
+
"kind": "quickfix",
|
|
7
|
+
"description": "Adds the missing import statement for NestJS decorators like @Controller, @Injectable, @Get, @Post, etc. from @nestjs/common",
|
|
8
|
+
"pattern": "@(Controller|Injectable|Get|Post|Put|Patch|Delete|Module|Inject|Body|Param|Query|Headers|UseGuards|UseInterceptors|UsePipes|UseFilters|SetMetadata|Catch|HttpCode|Header|Redirect|Req|Res)",
|
|
9
|
+
"isPreferred": true
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"title": "Generate constructor injection",
|
|
13
|
+
"kind": "quickfix",
|
|
14
|
+
"description": "Generates a constructor with dependency injection for the specified service or repository",
|
|
15
|
+
"pattern": "class\\s+\\w+\\s*\\{",
|
|
16
|
+
"isPreferred": false
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"title": "Extract method to service",
|
|
20
|
+
"kind": "refactor.extract",
|
|
21
|
+
"description": "Extracts the selected method logic from a controller into a service class",
|
|
22
|
+
"pattern": "@(Get|Post|Put|Patch|Delete)\\s*\\(",
|
|
23
|
+
"isPreferred": false
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"title": "Add @Injectable() decorator",
|
|
27
|
+
"kind": "quickfix",
|
|
28
|
+
"description": "Adds the @Injectable() decorator to a class that needs to be managed by the NestJS IoC container",
|
|
29
|
+
"pattern": "export\\s+class\\s+\\w+(Service|Guard|Pipe|Interceptor|Filter|Strategy|Middleware)",
|
|
30
|
+
"isPreferred": true
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"title": "Convert to async method",
|
|
34
|
+
"kind": "refactor",
|
|
35
|
+
"description": "Converts a synchronous route handler method to an async method with Promise return type",
|
|
36
|
+
"pattern": "@(Get|Post|Put|Patch|Delete)\\s*\\([^)]*\\)\\s*\\n\\s*(?!async)",
|
|
37
|
+
"isPreferred": false
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"title": "Add ValidationPipe to method",
|
|
41
|
+
"kind": "quickfix",
|
|
42
|
+
"description": "Adds @UsePipes(new ValidationPipe()) decorator to the route handler for request validation",
|
|
43
|
+
"pattern": "@(Post|Put|Patch)\\s*\\(",
|
|
44
|
+
"isPreferred": false
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"title": "Wrap in try-catch with HttpException",
|
|
48
|
+
"kind": "refactor",
|
|
49
|
+
"description": "Wraps the selected code in a try-catch block that throws an appropriate HttpException on error",
|
|
50
|
+
"pattern": "async\\s+\\w+\\s*\\(",
|
|
51
|
+
"isPreferred": false
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"title": "Add @ApiProperty() to DTO fields",
|
|
55
|
+
"kind": "quickfix",
|
|
56
|
+
"description": "Adds @ApiProperty() decorator from @nestjs/swagger to all properties in a DTO class for Swagger documentation",
|
|
57
|
+
"pattern": "class\\s+\\w+Dto\\s*\\{",
|
|
58
|
+
"isPreferred": false
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"title": "Generate CRUD endpoints",
|
|
62
|
+
"kind": "refactor",
|
|
63
|
+
"description": "Generates a complete set of CRUD route handlers (GET, POST, PUT, DELETE) in the controller",
|
|
64
|
+
"pattern": "@Controller\\s*\\(",
|
|
65
|
+
"isPreferred": false
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"title": "Add @UseGuards(AuthGuard)",
|
|
69
|
+
"kind": "quickfix",
|
|
70
|
+
"description": "Adds @UseGuards(AuthGuard('jwt')) decorator to protect the route with JWT authentication",
|
|
71
|
+
"pattern": "@(Get|Post|Put|Patch|Delete)\\s*\\(",
|
|
72
|
+
"isPreferred": false
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"title": "Add @UseInterceptors(ClassSerializerInterceptor)",
|
|
76
|
+
"kind": "quickfix",
|
|
77
|
+
"description": "Adds ClassSerializerInterceptor to the controller or method for response serialization",
|
|
78
|
+
"pattern": "@Controller\\s*\\(|@(Get|Post|Put|Patch|Delete)\\s*\\(",
|
|
79
|
+
"isPreferred": false
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"title": "Add Swagger decorators to endpoint",
|
|
83
|
+
"kind": "refactor",
|
|
84
|
+
"description": "Adds @ApiOperation, @ApiResponse, and other Swagger decorators to document the endpoint",
|
|
85
|
+
"pattern": "@(Get|Post|Put|Patch|Delete)\\s*\\(",
|
|
86
|
+
"isPreferred": false
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"title": "Convert to custom provider",
|
|
90
|
+
"kind": "refactor",
|
|
91
|
+
"description": "Converts a simple class provider to a custom provider with useFactory, useValue, or useClass syntax",
|
|
92
|
+
"pattern": "providers:\\s*\\[",
|
|
93
|
+
"isPreferred": false
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"title": "Add module imports",
|
|
97
|
+
"kind": "quickfix",
|
|
98
|
+
"description": "Adds missing NestJS module imports (ConfigModule, TypeOrmModule, etc.) to the module's imports array",
|
|
99
|
+
"pattern": "@Module\\s*\\(",
|
|
100
|
+
"isPreferred": false
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"title": "Organize imports",
|
|
104
|
+
"kind": "source.organizeImports",
|
|
105
|
+
"description": "Organizes and sorts import statements, grouping @nestjs/* imports together",
|
|
106
|
+
"pattern": "import\\s+",
|
|
107
|
+
"isPreferred": false
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"title": "Fix all auto-fixable issues",
|
|
111
|
+
"kind": "source.fixAll",
|
|
112
|
+
"description": "Applies all available auto-fixes including missing imports, decorators, and formatting",
|
|
113
|
+
"pattern": ".*",
|
|
114
|
+
"isPreferred": false
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"providedCodeActionKinds": [
|
|
118
|
+
"quickfix",
|
|
119
|
+
"refactor",
|
|
120
|
+
"refactor.extract",
|
|
121
|
+
"source.fixAll",
|
|
122
|
+
"source.organizeImports"
|
|
123
|
+
]
|
|
124
|
+
}
|
package/data/codeActions/r.json
CHANGED
|
@@ -1,71 +1,69 @@
|
|
|
1
|
-
{
|
|
2
|
-
"language": "r",
|
|
3
|
-
"codeActions": [
|
|
4
|
-
{
|
|
5
|
-
"title": "Extract to function",
|
|
6
|
-
"kind": "refactor.extract",
|
|
7
|
-
"description": "Extract selected code into a new R function",
|
|
8
|
-
"pattern": ".*",
|
|
9
|
-
"isPreferred": false
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"title": "Extract to variable",
|
|
13
|
-
"kind": "refactor.extract",
|
|
14
|
-
"description": "Extract expression into a named variable",
|
|
15
|
-
"pattern": ".*",
|
|
16
|
-
"isPreferred": false
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"title": "Convert <- to =",
|
|
20
|
-
"kind": "refactor.rewrite",
|
|
21
|
-
"description": "Rewrite left-assignment to equals assignment",
|
|
22
|
-
"pattern": "\\\\s*<-\\\\s*",
|
|
23
|
-
"isPreferred": false
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"title": "Convert = to <-",
|
|
27
|
-
"kind": "refactor.rewrite",
|
|
28
|
-
"description": "Rewrite equals assignment to left-assignment operator",
|
|
29
|
-
"pattern": "\\\\s*=\\\\s*",
|
|
30
|
-
"isPreferred": false
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"title": "Add roxygen2 documentation",
|
|
34
|
-
"kind": "source.
|
|
35
|
-
"description": "Insert a roxygen2 documentation skeleton above the function",
|
|
36
|
-
"pattern": "\\\\bfunction\\\\b",
|
|
37
|
-
"isPreferred": true
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"title": "Rename symbol",
|
|
41
|
-
"kind": "refactor.
|
|
42
|
-
"description": "Rename a variable or function across the file",
|
|
43
|
-
"pattern": "\\\\b\\\\w+\\\\b",
|
|
44
|
-
"isPreferred": false
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"title": "Fix all auto-fixable problems",
|
|
48
|
-
"kind": "source.fixAll",
|
|
49
|
-
"description": "Apply all available quick-fixes (e.g., lintr suggestions)",
|
|
50
|
-
"pattern": ".*",
|
|
51
|
-
"isPreferred": false
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"title": "Convert pipe: magrittr to native",
|
|
55
|
-
"kind": "refactor.rewrite",
|
|
56
|
-
"description": "Rewrite %>% to |> (base R 4.1+ pipe)",
|
|
57
|
-
"pattern": "%>%",
|
|
58
|
-
"isPreferred": false
|
|
59
|
-
}
|
|
60
|
-
],
|
|
61
|
-
"providedCodeActionKinds": [
|
|
62
|
-
"quickfix",
|
|
63
|
-
"refactor",
|
|
64
|
-
"refactor.extract",
|
|
65
|
-
"refactor.rewrite",
|
|
66
|
-
"
|
|
67
|
-
"source"
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
]
|
|
71
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"language": "r",
|
|
3
|
+
"codeActions": [
|
|
4
|
+
{
|
|
5
|
+
"title": "Extract to function",
|
|
6
|
+
"kind": "refactor.extract",
|
|
7
|
+
"description": "Extract selected code into a new R function",
|
|
8
|
+
"pattern": ".*",
|
|
9
|
+
"isPreferred": false
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"title": "Extract to variable",
|
|
13
|
+
"kind": "refactor.extract",
|
|
14
|
+
"description": "Extract expression into a named variable",
|
|
15
|
+
"pattern": ".*",
|
|
16
|
+
"isPreferred": false
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"title": "Convert <- to =",
|
|
20
|
+
"kind": "refactor.rewrite",
|
|
21
|
+
"description": "Rewrite left-assignment to equals assignment",
|
|
22
|
+
"pattern": "\\\\s*<-\\\\s*",
|
|
23
|
+
"isPreferred": false
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"title": "Convert = to <-",
|
|
27
|
+
"kind": "refactor.rewrite",
|
|
28
|
+
"description": "Rewrite equals assignment to left-assignment operator",
|
|
29
|
+
"pattern": "\\\\s*=\\\\s*",
|
|
30
|
+
"isPreferred": false
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"title": "Add roxygen2 documentation",
|
|
34
|
+
"kind": "source.fixAll",
|
|
35
|
+
"description": "Insert a roxygen2 documentation skeleton above the function",
|
|
36
|
+
"pattern": "\\\\bfunction\\\\b",
|
|
37
|
+
"isPreferred": true
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"title": "Rename symbol",
|
|
41
|
+
"kind": "refactor.rewrite",
|
|
42
|
+
"description": "Rename a variable or function across the file",
|
|
43
|
+
"pattern": "\\\\b\\\\w+\\\\b",
|
|
44
|
+
"isPreferred": false
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"title": "Fix all auto-fixable problems",
|
|
48
|
+
"kind": "source.fixAll",
|
|
49
|
+
"description": "Apply all available quick-fixes (e.g., lintr suggestions)",
|
|
50
|
+
"pattern": ".*",
|
|
51
|
+
"isPreferred": false
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"title": "Convert pipe: magrittr to native",
|
|
55
|
+
"kind": "refactor.rewrite",
|
|
56
|
+
"description": "Rewrite %>% to |> (base R 4.1+ pipe)",
|
|
57
|
+
"pattern": "%>%",
|
|
58
|
+
"isPreferred": false
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"providedCodeActionKinds": [
|
|
62
|
+
"quickfix",
|
|
63
|
+
"refactor",
|
|
64
|
+
"refactor.extract",
|
|
65
|
+
"refactor.rewrite",
|
|
66
|
+
"source",
|
|
67
|
+
"source.fixAll"
|
|
68
|
+
]
|
|
69
|
+
}
|
package/data/codeActions/sb.json
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"title": "Rename variable",
|
|
27
|
-
"kind": "refactor.
|
|
27
|
+
"kind": "refactor.rewrite",
|
|
28
28
|
"description": "Rename a Small Basic variable",
|
|
29
29
|
"pattern": "\\w+\\s*=",
|
|
30
30
|
"isPreferred": false
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"quickfix",
|
|
42
42
|
"refactor",
|
|
43
43
|
"refactor.extract",
|
|
44
|
-
"refactor.
|
|
44
|
+
"refactor.rewrite",
|
|
45
45
|
"source",
|
|
46
46
|
"source.fixAll"
|
|
47
47
|
]
|