@enjoys/context-engine 1.0.0 → 1.0.2
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/commands/adb.json +322 -0
- package/data/commands/alembic.json +301 -0
- package/data/commands/artisan.json +277 -0
- package/data/commands/atlas.json +426 -0
- package/data/commands/auth0.json +648 -0
- package/data/commands/bat.json +84 -0
- package/data/commands/btop.json +59 -0
- package/data/commands/bundle.json +321 -0
- package/data/commands/composer.json +507 -0
- package/data/commands/dart.json +216 -0
- package/data/commands/dbmate.json +257 -0
- package/data/commands/docker-compose.json +384 -0
- package/data/commands/drizzle-kit.json +217 -0
- package/data/commands/expo.json +65 -0
- package/data/commands/fastlane.json +243 -0
- package/data/commands/fd.json +86 -0
- package/data/commands/flutter.json +298 -0
- package/data/commands/flyway.json +261 -0
- package/data/commands/fzf.json +103 -0
- package/data/commands/gem.json +267 -0
- package/data/commands/htop.json +56 -0
- package/data/commands/jq.json +100 -0
- package/data/commands/k9s.json +62 -0
- package/data/commands/linux.json +3007 -0
- package/data/commands/liquibase.json +399 -0
- package/data/commands/manifest.json +619 -0
- package/data/commands/minikube.json +60 -0
- package/data/commands/ng.json +64 -0
- package/data/commands/nuxt.json +60 -0
- package/data/commands/nvim.json +91 -0
- package/data/commands/php.json +157 -0
- package/data/commands/pm2.json +259 -0
- package/data/commands/pod.json +175 -0
- package/data/commands/prisma.json +257 -0
- package/data/commands/rails.json +372 -0
- package/data/commands/rake.json +360 -0
- package/data/commands/react-native.json +57 -0
- package/data/commands/rg.json +103 -0
- package/data/commands/rspec.json +257 -0
- package/data/commands/ruby.json +108 -0
- package/data/commands/screen.json +101 -0
- package/data/commands/sequelize.json +342 -0
- package/data/commands/snyk.json +442 -0
- package/data/commands/sonar-scanner.json +219 -0
- package/data/commands/stripe.json +314 -0
- package/data/commands/symfony.json +449 -0
- package/data/commands/tmux.json +197 -0
- package/data/commands/top.json +61 -0
- package/data/commands/trivy.json +367 -0
- package/data/commands/twilio.json +382 -0
- package/data/commands/typeorm.json +262 -0
- package/data/commands/vim.json +85 -0
- package/data/commands/vue.json +60 -0
- package/data/commands/wp.json +857 -0
- package/data/commands/xcodebuild.json +141 -0
- package/data/commands/yq.json +57 -0
- package/data/completion/bash.json +1184 -0
- package/data/completion/c.json +1067 -0
- package/data/completion/cpp.json +824 -0
- package/data/completion/csharp.json +860 -0
- package/data/completion/dockerfile.json +536 -0
- package/data/completion/go.json +1346 -0
- package/data/completion/html.json +806 -0
- package/data/completion/java.json +1112 -0
- package/data/completion/javascript.json +914 -0
- package/data/completion/lua.json +968 -0
- package/data/completion/php.json +1535 -0
- package/data/completion/python.json +1427 -0
- package/data/completion/ruby.json +1531 -0
- package/data/completion/rust.json +698 -0
- package/data/completion/sql.json +887 -0
- package/data/completion/toml.json +428 -0
- package/data/completion/typescript.json +338 -0
- package/data/completion/yaml.json +563 -0
- package/data/defination/bash.json +565 -0
- package/data/defination/c.json +865 -0
- package/data/defination/cpp.json +348 -0
- package/data/defination/csharp.json +144 -0
- package/data/defination/dockerfile.json +113 -0
- package/data/defination/go.json +561 -0
- package/data/defination/html.json +559 -0
- package/data/defination/java.json +184 -0
- package/data/defination/javascript.json +265 -0
- package/data/defination/lua.json +181 -0
- package/data/defination/php.json +726 -0
- package/data/defination/python.json +717 -0
- package/data/defination/ruby.json +670 -0
- package/data/defination/rust.json +207 -0
- package/data/defination/sql.json +473 -0
- package/data/defination/toml.json +251 -0
- package/data/defination/typescript.json +29 -0
- package/data/defination/yaml.json +197 -0
- package/data/hover/bash.json +245 -0
- package/data/hover/c.json +265 -0
- package/data/hover/cpp.json +210 -0
- package/data/hover/csharp.json +290 -0
- package/data/hover/dockerfile.json +145 -0
- package/data/hover/go.json +580 -0
- package/data/hover/html.json +250 -0
- package/data/hover/java.json +395 -0
- package/data/hover/javascript.json +330 -0
- package/data/hover/lua.json +265 -0
- package/data/hover/php.json +300 -0
- package/data/hover/python.json +380 -0
- package/data/hover/ruby.json +265 -0
- package/data/hover/rust.json +275 -0
- package/data/hover/sql.json +230 -0
- package/data/hover/toml.json +145 -0
- package/data/hover/typescript.json +120 -0
- package/data/hover/yaml.json +165 -0
- package/data/manifest.json +242 -0
- package/package.json +1 -1
|
@@ -0,0 +1,428 @@
|
|
|
1
|
+
{
|
|
2
|
+
"language": "toml",
|
|
3
|
+
"completions": [
|
|
4
|
+
{
|
|
5
|
+
"label": "[table]",
|
|
6
|
+
"kind": 15,
|
|
7
|
+
"detail": "Define a TOML table",
|
|
8
|
+
"documentation": { "value": "Tables (also known as hash tables or dictionaries) are collections of key/value pairs. They appear in square brackets on a line by themselves." },
|
|
9
|
+
"insertText": "[${1:table_name}]\n${2:key} = ${3:value}",
|
|
10
|
+
"insertTextRules": 4,
|
|
11
|
+
"sortText": "00_table"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"label": "[[array_of_tables]]",
|
|
15
|
+
"kind": 15,
|
|
16
|
+
"detail": "Define an array of tables",
|
|
17
|
+
"documentation": { "value": "Any reference to an array of tables points to the most recently defined table element of the array. Double brackets define an array of TOML tables." },
|
|
18
|
+
"insertText": "[[${1:table_name}]]\n${2:key} = ${3:value}",
|
|
19
|
+
"insertTextRules": 4,
|
|
20
|
+
"sortText": "01_array_of_tables"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"label": "key = value",
|
|
24
|
+
"kind": 14,
|
|
25
|
+
"detail": "Key-value pair",
|
|
26
|
+
"documentation": { "value": "The primary building block of a TOML document. Keys are on the left of the equals sign and values are on the right." },
|
|
27
|
+
"insertText": "${1:key} = ${2:value}",
|
|
28
|
+
"insertTextRules": 4,
|
|
29
|
+
"sortText": "02_key_value"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"label": "dotted.key",
|
|
33
|
+
"kind": 14,
|
|
34
|
+
"detail": "Dotted key (nested access)",
|
|
35
|
+
"documentation": { "value": "Dotted keys are a sequence of bare or quoted keys joined with a dot. This allows grouping similar properties together." },
|
|
36
|
+
"insertText": "${1:parent}.${2:child} = ${3:value}",
|
|
37
|
+
"insertTextRules": 4,
|
|
38
|
+
"sortText": "03_dotted_key"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"label": "inline_table",
|
|
42
|
+
"kind": 15,
|
|
43
|
+
"detail": "Inline table { key = value }",
|
|
44
|
+
"documentation": { "value": "Inline tables provide a more compact syntax for expressing tables. They appear on the same line in curly braces." },
|
|
45
|
+
"insertText": "${1:key} = { ${2:k1} = ${3:v1}, ${4:k2} = ${5:v2} }",
|
|
46
|
+
"insertTextRules": 4,
|
|
47
|
+
"sortText": "04_inline_table"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"label": "string (basic)",
|
|
51
|
+
"kind": 14,
|
|
52
|
+
"detail": "Basic string with double quotes",
|
|
53
|
+
"documentation": { "value": "Basic strings are surrounded by double quotes. Any Unicode character may be used except those that must be escaped: quotation mark, backslash, and control characters." },
|
|
54
|
+
"insertText": "${1:key} = \"${2:value}\"",
|
|
55
|
+
"insertTextRules": 4,
|
|
56
|
+
"sortText": "05_string_basic"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"label": "string (literal)",
|
|
60
|
+
"kind": 14,
|
|
61
|
+
"detail": "Literal string with single quotes",
|
|
62
|
+
"documentation": { "value": "Literal strings are surrounded by single quotes. No escaping is performed — what you see is what you get." },
|
|
63
|
+
"insertText": "${1:key} = '${2:value}'",
|
|
64
|
+
"insertTextRules": 4,
|
|
65
|
+
"sortText": "06_string_literal"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"label": "string (multi-line basic)",
|
|
69
|
+
"kind": 15,
|
|
70
|
+
"detail": "Multi-line basic string with triple double quotes",
|
|
71
|
+
"documentation": { "value": "Multi-line basic strings are surrounded by three double quotes on each side and allow newlines. A newline immediately following the opening delimiter will be trimmed." },
|
|
72
|
+
"insertText": "${1:key} = \"\"\"\n${2:content}\n\"\"\"",
|
|
73
|
+
"insertTextRules": 4,
|
|
74
|
+
"sortText": "07_string_multiline_basic"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"label": "string (multi-line literal)",
|
|
78
|
+
"kind": 15,
|
|
79
|
+
"detail": "Multi-line literal string with triple single quotes",
|
|
80
|
+
"documentation": { "value": "Multi-line literal strings are surrounded by three single quotes on each side and allow newlines. No escaping is performed." },
|
|
81
|
+
"insertText": "${1:key} = '''\n${2:content}\n'''",
|
|
82
|
+
"insertTextRules": 4,
|
|
83
|
+
"sortText": "08_string_multiline_literal"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"label": "integer",
|
|
87
|
+
"kind": 14,
|
|
88
|
+
"detail": "Integer value",
|
|
89
|
+
"documentation": { "value": "Integers are whole numbers. Positive numbers may be prefixed with a plus sign. Underscores between digits are allowed for readability." },
|
|
90
|
+
"insertText": "${1:key} = ${2:42}",
|
|
91
|
+
"insertTextRules": 4,
|
|
92
|
+
"sortText": "09_integer"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"label": "float",
|
|
96
|
+
"kind": 14,
|
|
97
|
+
"detail": "Float value",
|
|
98
|
+
"documentation": { "value": "Floats should be implemented as IEEE 754 64-bit values. A float consists of an integer part followed by a fractional part and/or an exponent part." },
|
|
99
|
+
"insertText": "${1:key} = ${2:3.14}",
|
|
100
|
+
"insertTextRules": 4,
|
|
101
|
+
"sortText": "10_float"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"label": "boolean",
|
|
105
|
+
"kind": 14,
|
|
106
|
+
"detail": "Boolean true/false",
|
|
107
|
+
"documentation": { "value": "Booleans are just the tokens you're used to. Always lowercase: true or false." },
|
|
108
|
+
"insertText": "${1:key} = ${2|true,false|}",
|
|
109
|
+
"insertTextRules": 4,
|
|
110
|
+
"sortText": "11_boolean"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"label": "datetime (offset)",
|
|
114
|
+
"kind": 14,
|
|
115
|
+
"detail": "Offset Date-Time (RFC 3339)",
|
|
116
|
+
"documentation": { "value": "An offset date-time specifies an exact instant in time with a timezone offset. Format: YYYY-MM-DDThh:mm:ss±hh:mm or YYYY-MM-DDThh:mm:ssZ." },
|
|
117
|
+
"insertText": "${1:key} = ${2:2024-01-15T10:30:00+00:00}",
|
|
118
|
+
"insertTextRules": 4,
|
|
119
|
+
"sortText": "12_datetime_offset"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"label": "datetime (local)",
|
|
123
|
+
"kind": 14,
|
|
124
|
+
"detail": "Local Date-Time",
|
|
125
|
+
"documentation": { "value": "A local date-time omits the timezone offset. It represents a date-time without relation to a specific time zone. Format: YYYY-MM-DDThh:mm:ss." },
|
|
126
|
+
"insertText": "${1:key} = ${2:2024-01-15T10:30:00}",
|
|
127
|
+
"insertTextRules": 4,
|
|
128
|
+
"sortText": "13_datetime_local"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"label": "date (local)",
|
|
132
|
+
"kind": 14,
|
|
133
|
+
"detail": "Local Date",
|
|
134
|
+
"documentation": { "value": "A local date represents a full calendar date without a time component. Format: YYYY-MM-DD." },
|
|
135
|
+
"insertText": "${1:key} = ${2:2024-01-15}",
|
|
136
|
+
"insertTextRules": 4,
|
|
137
|
+
"sortText": "14_date_local"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"label": "time (local)",
|
|
141
|
+
"kind": 14,
|
|
142
|
+
"detail": "Local Time",
|
|
143
|
+
"documentation": { "value": "A local time represents a time of day without any date or timezone. Format: hh:mm:ss." },
|
|
144
|
+
"insertText": "${1:key} = ${2:10:30:00}",
|
|
145
|
+
"insertTextRules": 4,
|
|
146
|
+
"sortText": "15_time_local"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"label": "array",
|
|
150
|
+
"kind": 15,
|
|
151
|
+
"detail": "Array of values",
|
|
152
|
+
"documentation": { "value": "Arrays are square brackets with values inside. Whitespace is ignored. Elements are separated by commas. Arrays can contain values of the same data types or mixed types." },
|
|
153
|
+
"insertText": "${1:key} = [${2:\"value1\"}, ${3:\"value2\"}]",
|
|
154
|
+
"insertTextRules": 4,
|
|
155
|
+
"sortText": "16_array"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"label": "# comment",
|
|
159
|
+
"kind": 14,
|
|
160
|
+
"detail": "Comment",
|
|
161
|
+
"documentation": { "value": "A hash symbol marks the rest of the line as a comment. Comments can appear on their own line or at the end of a key-value pair." },
|
|
162
|
+
"insertText": "# ${1:comment}",
|
|
163
|
+
"insertTextRules": 4,
|
|
164
|
+
"sortText": "17_comment"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"label": "[package] (Cargo.toml)",
|
|
168
|
+
"kind": 27,
|
|
169
|
+
"detail": "Rust Cargo package metadata",
|
|
170
|
+
"documentation": { "value": "Defines the Rust package metadata in Cargo.toml, including name, version, edition, authors, and more." },
|
|
171
|
+
"insertText": "[package]\nname = \"${1:my-crate}\"\nversion = \"${2:0.1.0}\"\nedition = \"${3|2021,2024,2018,2015|}\"\ndescription = \"${4:A Rust project}\"\nlicense = \"${5:MIT}\"\nauthors = [\"${6:Author Name <email@example.com>}\"]\nrepository = \"${7:https://github.com/user/repo}\"",
|
|
172
|
+
"insertTextRules": 4,
|
|
173
|
+
"sortText": "20_cargo_package"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"label": "[dependencies] (Cargo.toml)",
|
|
177
|
+
"kind": 27,
|
|
178
|
+
"detail": "Rust Cargo dependencies",
|
|
179
|
+
"documentation": { "value": "Specifies runtime dependencies in Cargo.toml. Each dependency is a key-value pair of crate name and version or detailed specification." },
|
|
180
|
+
"insertText": "[dependencies]\n${1:serde} = { version = \"${2:1.0}\", features = [\"${3:derive}\"] }\n${4:tokio} = { version = \"${5:1}\", features = [\"${6:full}\"] }",
|
|
181
|
+
"insertTextRules": 4,
|
|
182
|
+
"sortText": "21_cargo_dependencies"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"label": "[dev-dependencies] (Cargo.toml)",
|
|
186
|
+
"kind": 27,
|
|
187
|
+
"detail": "Rust Cargo dev dependencies",
|
|
188
|
+
"documentation": { "value": "Specifies development-only dependencies in Cargo.toml. These are only used for compiling tests, examples, and benchmarks." },
|
|
189
|
+
"insertText": "[dev-dependencies]\n${1:criterion} = \"${2:0.5}\"",
|
|
190
|
+
"insertTextRules": 4,
|
|
191
|
+
"sortText": "22_cargo_dev_dependencies"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"label": "[build-dependencies] (Cargo.toml)",
|
|
195
|
+
"kind": 27,
|
|
196
|
+
"detail": "Rust Cargo build dependencies",
|
|
197
|
+
"documentation": { "value": "Specifies dependencies for build scripts (build.rs) in Cargo.toml." },
|
|
198
|
+
"insertText": "[build-dependencies]\n${1:cc} = \"${2:1.0}\"",
|
|
199
|
+
"insertTextRules": 4,
|
|
200
|
+
"sortText": "23_cargo_build_dependencies"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"label": "[features] (Cargo.toml)",
|
|
204
|
+
"kind": 27,
|
|
205
|
+
"detail": "Rust Cargo features",
|
|
206
|
+
"documentation": { "value": "Conditional compilation features for the Rust crate. Features allow optional dependencies and conditional code compilation." },
|
|
207
|
+
"insertText": "[features]\ndefault = [\"${1:std}\"]\n${2:full} = [\"${3:feature1}\", \"${4:feature2}\"]",
|
|
208
|
+
"insertTextRules": 4,
|
|
209
|
+
"sortText": "24_cargo_features"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"label": "[workspace] (Cargo.toml)",
|
|
213
|
+
"kind": 27,
|
|
214
|
+
"detail": "Rust Cargo workspace",
|
|
215
|
+
"documentation": { "value": "Defines a Cargo workspace for managing multiple related Rust packages. A workspace shares a common Cargo.lock and output directory." },
|
|
216
|
+
"insertText": "[workspace]\nmembers = [\n\t\"${1:crate1}\",\n\t\"${2:crate2}\",\n]\nresolver = \"${3:2}\"",
|
|
217
|
+
"insertTextRules": 4,
|
|
218
|
+
"sortText": "25_cargo_workspace"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"label": "[lib] (Cargo.toml)",
|
|
222
|
+
"kind": 27,
|
|
223
|
+
"detail": "Rust Cargo library target",
|
|
224
|
+
"documentation": { "value": "Configures the library target for the Rust crate, including lib name, path, and crate-type." },
|
|
225
|
+
"insertText": "[lib]\nname = \"${1:my_lib}\"\npath = \"${2:src/lib.rs}\"\ncrate-type = [\"${3|lib,cdylib,staticlib,dylib,rlib,proc-macro|}\"]",
|
|
226
|
+
"insertTextRules": 4,
|
|
227
|
+
"sortText": "26_cargo_lib"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"label": "[[bin]] (Cargo.toml)",
|
|
231
|
+
"kind": 27,
|
|
232
|
+
"detail": "Rust Cargo binary target",
|
|
233
|
+
"documentation": { "value": "Defines a binary target for the Rust crate. Multiple [[bin]] sections can define multiple binaries." },
|
|
234
|
+
"insertText": "[[bin]]\nname = \"${1:my-bin}\"\npath = \"${2:src/main.rs}\"",
|
|
235
|
+
"insertTextRules": 4,
|
|
236
|
+
"sortText": "27_cargo_bin"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"label": "[profile.release] (Cargo.toml)",
|
|
240
|
+
"kind": 27,
|
|
241
|
+
"detail": "Rust Cargo release profile",
|
|
242
|
+
"documentation": { "value": "Customizes compiler settings for the release build profile in Cargo.toml. Common options include optimization level, LTO, and debug info." },
|
|
243
|
+
"insertText": "[profile.release]\nopt-level = ${1|3,2,1,\"s\",\"z\"|}\nlto = ${2|true,false,\"thin\",\"fat\"|}\nstrip = ${3|true,false,\"symbols\",\"debuginfo\"|}",
|
|
244
|
+
"insertTextRules": 4,
|
|
245
|
+
"sortText": "28_cargo_profile_release"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"label": "[profile.dev] (Cargo.toml)",
|
|
249
|
+
"kind": 27,
|
|
250
|
+
"detail": "Rust Cargo dev profile",
|
|
251
|
+
"documentation": { "value": "Customizes compiler settings for the development build profile in Cargo.toml. Default profile used by `cargo build`." },
|
|
252
|
+
"insertText": "[profile.dev]\nopt-level = ${1|0,1,2|}\ndebug = ${2|true,false,2,1,0|}",
|
|
253
|
+
"insertTextRules": 4,
|
|
254
|
+
"sortText": "29_cargo_profile_dev"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"label": "[build-system] (pyproject.toml)",
|
|
258
|
+
"kind": 27,
|
|
259
|
+
"detail": "Python build system requirements",
|
|
260
|
+
"documentation": { "value": "Specifies the build system requirements for a Python project as defined in PEP 517/518. Includes the build backend and its dependencies." },
|
|
261
|
+
"insertText": "[build-system]\nrequires = [\"${1:setuptools>=68.0}\", \"${2:wheel}\"]\nbuild-backend = \"${3:setuptools.build_meta}\"",
|
|
262
|
+
"insertTextRules": 4,
|
|
263
|
+
"sortText": "30_pyproject_build_system"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"label": "[project] (pyproject.toml)",
|
|
267
|
+
"kind": 27,
|
|
268
|
+
"detail": "Python project metadata",
|
|
269
|
+
"documentation": { "value": "Core metadata for a Python project as defined in PEP 621. Includes name, version, description, Python version requirement, and dependencies." },
|
|
270
|
+
"insertText": "[project]\nname = \"${1:my-project}\"\nversion = \"${2:0.1.0}\"\ndescription = \"${3:A Python project}\"\nrequires-python = \">=${4:3.9}\"\ndependencies = [\n\t\"${5:requests>=2.28}\",\n]",
|
|
271
|
+
"insertTextRules": 4,
|
|
272
|
+
"sortText": "31_pyproject_project"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"label": "[project.optional-dependencies] (pyproject.toml)",
|
|
276
|
+
"kind": 27,
|
|
277
|
+
"detail": "Python optional dependency groups",
|
|
278
|
+
"documentation": { "value": "Defines optional dependency groups for a Python project. Users can install these extras with pip install package[extra]." },
|
|
279
|
+
"insertText": "[project.optional-dependencies]\n${1:dev} = [\n\t\"${2:pytest>=7.0}\",\n\t\"${3:black>=23.0}\",\n]\n${4:docs} = [\n\t\"${5:sphinx>=6.0}\",\n]",
|
|
280
|
+
"insertTextRules": 4,
|
|
281
|
+
"sortText": "32_pyproject_optional_deps"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"label": "[tool.pytest.ini_options] (pyproject.toml)",
|
|
285
|
+
"kind": 27,
|
|
286
|
+
"detail": "Pytest configuration",
|
|
287
|
+
"documentation": { "value": "Configures Pytest options within pyproject.toml. Replaces the traditional pytest.ini or setup.cfg configuration." },
|
|
288
|
+
"insertText": "[tool.pytest.ini_options]\ntestpaths = [\"${1:tests}\"]\npython_files = [\"${2:test_*.py}\"]\naddopts = \"${3:-v --tb=short}\"",
|
|
289
|
+
"insertTextRules": 4,
|
|
290
|
+
"sortText": "33_pyproject_pytest"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"label": "[tool.black] (pyproject.toml)",
|
|
294
|
+
"kind": 27,
|
|
295
|
+
"detail": "Black formatter configuration",
|
|
296
|
+
"documentation": { "value": "Configures the Black Python code formatter within pyproject.toml." },
|
|
297
|
+
"insertText": "[tool.black]\nline-length = ${1:88}\ntarget-version = [\"${2:py311}\"]\ninclude = '${3:\\.pyi?$}'",
|
|
298
|
+
"insertTextRules": 4,
|
|
299
|
+
"sortText": "34_pyproject_black"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"label": "[tool.ruff] (pyproject.toml)",
|
|
303
|
+
"kind": 27,
|
|
304
|
+
"detail": "Ruff linter configuration",
|
|
305
|
+
"documentation": { "value": "Configures the Ruff Python linter within pyproject.toml. Ruff is a fast Python linter written in Rust." },
|
|
306
|
+
"insertText": "[tool.ruff]\nline-length = ${1:88}\ntarget-version = \"${2:py311}\"\n\n[tool.ruff.lint]\nselect = [\"${3:E}\", \"${4:F}\", \"${5:I}\"]\nignore = [\"${6:E501}\"]",
|
|
307
|
+
"insertTextRules": 4,
|
|
308
|
+
"sortText": "35_pyproject_ruff"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"label": "[tool.mypy] (pyproject.toml)",
|
|
312
|
+
"kind": 27,
|
|
313
|
+
"detail": "Mypy type checker configuration",
|
|
314
|
+
"documentation": { "value": "Configures the Mypy static type checker within pyproject.toml." },
|
|
315
|
+
"insertText": "[tool.mypy]\npython_version = \"${1:3.11}\"\nstrict = ${2|true,false|}\nwarn_return_any = true\nwarn_unused_configs = true",
|
|
316
|
+
"insertTextRules": 4,
|
|
317
|
+
"sortText": "36_pyproject_mypy"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"label": "[tool.setuptools] (pyproject.toml)",
|
|
321
|
+
"kind": 27,
|
|
322
|
+
"detail": "Setuptools configuration",
|
|
323
|
+
"documentation": { "value": "Configures setuptools within pyproject.toml for package discovery and data files." },
|
|
324
|
+
"insertText": "[tool.setuptools]\npackages = { find = { where = [\"${1:src}\"] } }\n\n[tool.setuptools.package-data]\n\"${2:*}\" = [\"${3:py.typed}\"]",
|
|
325
|
+
"insertTextRules": 4,
|
|
326
|
+
"sortText": "37_pyproject_setuptools"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"label": "[tool.poetry] (pyproject.toml)",
|
|
330
|
+
"kind": 27,
|
|
331
|
+
"detail": "Poetry project configuration",
|
|
332
|
+
"documentation": { "value": "Configures a Python project managed by Poetry within pyproject.toml. Includes project metadata and dependency management." },
|
|
333
|
+
"insertText": "[tool.poetry]\nname = \"${1:my-project}\"\nversion = \"${2:0.1.0}\"\ndescription = \"${3:A Python project}\"\nauthors = [\"${4:Author Name <email@example.com>}\"]\nreadme = \"README.md\"\n\n[tool.poetry.dependencies]\npython = \"^${5:3.9}\"",
|
|
334
|
+
"insertTextRules": 4,
|
|
335
|
+
"sortText": "38_pyproject_poetry"
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"label": "[server]",
|
|
339
|
+
"kind": 15,
|
|
340
|
+
"detail": "Server configuration section",
|
|
341
|
+
"documentation": { "value": "Common server configuration pattern with host, port, and TLS/SSL settings." },
|
|
342
|
+
"insertText": "[server]\nhost = \"${1:0.0.0.0}\"\nport = ${2:8080}\nssl = ${3|true,false|}\ncert_file = \"${4:certs/server.crt}\"\nkey_file = \"${5:certs/server.key}\"",
|
|
343
|
+
"insertTextRules": 4,
|
|
344
|
+
"sortText": "40_config_server"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"label": "[database]",
|
|
348
|
+
"kind": 15,
|
|
349
|
+
"detail": "Database configuration section",
|
|
350
|
+
"documentation": { "value": "Common database configuration pattern with connection URL, pool settings, and timeouts." },
|
|
351
|
+
"insertText": "[database]\nurl = \"${1:postgres://user:pass@localhost:5432/dbname}\"\npool_size = ${2:10}\nmax_idle = ${3:5}\ntimeout = ${4:30}",
|
|
352
|
+
"insertTextRules": 4,
|
|
353
|
+
"sortText": "41_config_database"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"label": "[logging]",
|
|
357
|
+
"kind": 15,
|
|
358
|
+
"detail": "Logging configuration section",
|
|
359
|
+
"documentation": { "value": "Common logging configuration pattern with log level, output file, and format." },
|
|
360
|
+
"insertText": "[logging]\nlevel = \"${1|debug,info,warn,error|}\"\nfile = \"${2:logs/app.log}\"\nformat = \"${3|json,text,pretty|}\"",
|
|
361
|
+
"insertTextRules": 4,
|
|
362
|
+
"sortText": "42_config_logging"
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"label": "[auth]",
|
|
366
|
+
"kind": 15,
|
|
367
|
+
"detail": "Authentication configuration section",
|
|
368
|
+
"documentation": { "value": "Common authentication configuration pattern with JWT secret, token expiry, and refresh settings." },
|
|
369
|
+
"insertText": "[auth]\nsecret = \"${1:your-secret-key}\"\ntoken_expiry = ${2:3600}\nrefresh_expiry = ${3:86400}\nissuer = \"${4:my-app}\"",
|
|
370
|
+
"insertTextRules": 4,
|
|
371
|
+
"sortText": "43_config_auth"
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"label": "array (multi-line)",
|
|
375
|
+
"kind": 15,
|
|
376
|
+
"detail": "Multi-line array",
|
|
377
|
+
"documentation": { "value": "Arrays can span multiple lines for readability. A trailing comma after the last value is allowed." },
|
|
378
|
+
"insertText": "${1:key} = [\n\t\"${2:value1}\",\n\t\"${3:value2}\",\n\t\"${4:value3}\",\n]",
|
|
379
|
+
"insertTextRules": 4,
|
|
380
|
+
"sortText": "18_array_multiline"
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"label": "integer (hex)",
|
|
384
|
+
"kind": 14,
|
|
385
|
+
"detail": "Hexadecimal integer",
|
|
386
|
+
"documentation": { "value": "Hexadecimal integers are prefixed with 0x. Underscores between digits are allowed." },
|
|
387
|
+
"insertText": "${1:key} = 0x${2:DEADBEEF}",
|
|
388
|
+
"insertTextRules": 4,
|
|
389
|
+
"sortText": "09_integer_hex"
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"label": "integer (octal)",
|
|
393
|
+
"kind": 14,
|
|
394
|
+
"detail": "Octal integer",
|
|
395
|
+
"documentation": { "value": "Octal integers are prefixed with 0o. Only digits 0-7 are allowed." },
|
|
396
|
+
"insertText": "${1:key} = 0o${2:755}",
|
|
397
|
+
"insertTextRules": 4,
|
|
398
|
+
"sortText": "09_integer_oct"
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
"label": "integer (binary)",
|
|
402
|
+
"kind": 14,
|
|
403
|
+
"detail": "Binary integer",
|
|
404
|
+
"documentation": { "value": "Binary integers are prefixed with 0b. Only digits 0 and 1 are allowed." },
|
|
405
|
+
"insertText": "${1:key} = 0b${2:11010110}",
|
|
406
|
+
"insertTextRules": 4,
|
|
407
|
+
"sortText": "09_integer_bin"
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"label": "float (inf/nan)",
|
|
411
|
+
"kind": 14,
|
|
412
|
+
"detail": "Special float values",
|
|
413
|
+
"documentation": { "value": "TOML supports special float values: inf, +inf, -inf, nan, +nan, -nan for IEEE 754 special values." },
|
|
414
|
+
"insertText": "${1:key} = ${2|inf,-inf,nan|}",
|
|
415
|
+
"insertTextRules": 4,
|
|
416
|
+
"sortText": "10_float_special"
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"label": "float (exponent)",
|
|
420
|
+
"kind": 14,
|
|
421
|
+
"detail": "Float with exponent notation",
|
|
422
|
+
"documentation": { "value": "Floats can use E notation for exponents. Both 'e' and 'E' are accepted." },
|
|
423
|
+
"insertText": "${1:key} = ${2:5e+22}",
|
|
424
|
+
"insertTextRules": 4,
|
|
425
|
+
"sortText": "10_float_exponent"
|
|
426
|
+
}
|
|
427
|
+
]
|
|
428
|
+
}
|