@enjoys/context-engine 1.0.9 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -0
- package/data/codeActions/awk.json +41 -0
- package/data/codeActions/bash.json +169 -0
- package/data/codeActions/c.json +35 -0
- package/data/codeActions/caddy.json +35 -0
- package/data/codeActions/cpp.json +35 -0
- package/data/codeActions/crontab.json +27 -0
- package/data/codeActions/csharp.json +35 -0
- package/data/codeActions/dart.json +31 -0
- package/data/codeActions/docker-compose.json +112 -0
- package/data/codeActions/dockerfile.json +35 -0
- package/data/codeActions/dotenv.json +27 -0
- package/data/codeActions/go.json +49 -0
- package/data/codeActions/graphql.json +41 -0
- package/data/codeActions/hcl.json +35 -0
- package/data/codeActions/html.json +27 -0
- package/data/codeActions/ini.json +27 -0
- package/data/codeActions/java.json +35 -0
- package/data/codeActions/javascript.json +49 -0
- package/data/codeActions/json.json +27 -0
- package/data/codeActions/kotlin.json +18 -0
- package/data/codeActions/lua.json +49 -0
- package/data/codeActions/makefile.json +35 -0
- package/data/codeActions/markdown.json +27 -0
- package/data/codeActions/nginx.json +35 -0
- package/data/codeActions/perl.json +49 -0
- package/data/codeActions/php.json +49 -0
- package/data/codeActions/powershell.json +49 -0
- package/data/codeActions/protobuf.json +49 -0
- package/data/codeActions/python.json +49 -0
- package/data/codeActions/redis-cli.json +27 -0
- package/data/codeActions/ruby.json +49 -0
- package/data/codeActions/rust.json +49 -0
- package/data/codeActions/scala.json +26 -0
- package/data/codeActions/sql.json +41 -0
- package/data/codeActions/ssh_config.json +35 -0
- package/data/codeActions/swift.json +26 -0
- package/data/codeActions/systemd.json +27 -0
- package/data/codeActions/toml.json +27 -0
- package/data/codeActions/typescript.json +49 -0
- package/data/codeActions/xml.json +27 -0
- package/data/codeActions/yaml.json +27 -0
- package/data/codeActions/zsh.json +49 -0
- package/data/codeLens/awk.json +12 -0
- package/data/codeLens/bash.json +75 -0
- package/data/codeLens/c.json +12 -0
- package/data/codeLens/caddy.json +12 -0
- package/data/codeLens/cpp.json +26 -0
- package/data/codeLens/crontab.json +12 -0
- package/data/codeLens/csharp.json +33 -0
- package/data/codeLens/dart.json +15 -0
- package/data/codeLens/docker-compose.json +4 -0
- package/data/codeLens/dockerfile.json +4 -0
- package/data/codeLens/dotenv.json +4 -0
- package/data/codeLens/go.json +26 -0
- package/data/codeLens/graphql.json +33 -0
- package/data/codeLens/hcl.json +12 -0
- package/data/codeLens/html.json +12 -0
- package/data/codeLens/ini.json +4 -0
- package/data/codeLens/java.json +33 -0
- package/data/codeLens/javascript.json +40 -0
- package/data/codeLens/json.json +4 -0
- package/data/codeLens/kotlin.json +10 -0
- package/data/codeLens/lua.json +12 -0
- package/data/codeLens/makefile.json +19 -0
- package/data/codeLens/markdown.json +4 -0
- package/data/codeLens/nginx.json +12 -0
- package/data/codeLens/perl.json +19 -0
- package/data/codeLens/php.json +40 -0
- package/data/codeLens/powershell.json +26 -0
- package/data/codeLens/protobuf.json +26 -0
- package/data/codeLens/python.json +26 -0
- package/data/codeLens/redis-cli.json +4 -0
- package/data/codeLens/ruby.json +26 -0
- package/data/codeLens/rust.json +40 -0
- package/data/codeLens/scala.json +18 -0
- package/data/codeLens/sql.json +33 -0
- package/data/codeLens/ssh_config.json +4 -0
- package/data/codeLens/swift.json +15 -0
- package/data/codeLens/systemd.json +4 -0
- package/data/codeLens/toml.json +4 -0
- package/data/codeLens/typescript.json +47 -0
- package/data/codeLens/xml.json +12 -0
- package/data/codeLens/yaml.json +4 -0
- package/data/codeLens/zsh.json +19 -0
- package/data/color/awk.json +6 -0
- package/data/color/bash.json +100 -0
- package/data/color/c.json +6 -0
- package/data/color/caddy.json +6 -0
- package/data/color/cpp.json +6 -0
- package/data/color/crontab.json +6 -0
- package/data/color/csharp.json +6 -0
- package/data/color/dart.json +37 -0
- package/data/color/docker-compose.json +6 -0
- package/data/color/dockerfile.json +6 -0
- package/data/color/dotenv.json +6 -0
- package/data/color/go.json +6 -0
- package/data/color/graphql.json +6 -0
- package/data/color/hcl.json +6 -0
- package/data/color/html.json +85 -0
- package/data/color/ini.json +6 -0
- package/data/color/java.json +6 -0
- package/data/color/javascript.json +85 -0
- package/data/color/json.json +6 -0
- package/data/color/kotlin.json +12 -0
- package/data/color/lua.json +6 -0
- package/data/color/makefile.json +6 -0
- package/data/color/markdown.json +6 -0
- package/data/color/nginx.json +6 -0
- package/data/color/perl.json +6 -0
- package/data/color/php.json +85 -0
- package/data/color/powershell.json +6 -0
- package/data/color/protobuf.json +6 -0
- package/data/color/python.json +6 -0
- package/data/color/redis-cli.json +6 -0
- package/data/color/ruby.json +6 -0
- package/data/color/rust.json +6 -0
- package/data/color/scala.json +13 -0
- package/data/color/sql.json +6 -0
- package/data/color/ssh_config.json +6 -0
- package/data/color/swift.json +37 -0
- package/data/color/systemd.json +6 -0
- package/data/color/toml.json +6 -0
- package/data/color/typescript.json +85 -0
- package/data/color/xml.json +6 -0
- package/data/color/yaml.json +6 -0
- package/data/color/zsh.json +6 -0
- package/data/commands/bash.json +102 -0
- package/data/commands/kotlin.json +45 -0
- package/data/commands/manifest.json +1 -0
- package/data/commands/scala.json +171 -0
- package/data/commands/swift.json +67 -0
- package/data/completion/dart.json +1436 -0
- package/data/completion/docker-compose.json +959 -0
- package/data/completion/kotlin.json +1580 -0
- package/data/completion/scala.json +1076 -0
- package/data/completion/swift.json +1742 -0
- package/data/declaration/awk.json +175 -0
- package/data/declaration/bash.json +301 -0
- package/data/declaration/c.json +205 -0
- package/data/declaration/caddy.json +115 -0
- package/data/declaration/cpp.json +217 -0
- package/data/declaration/crontab.json +12 -0
- package/data/declaration/csharp.json +205 -0
- package/data/declaration/dart.json +25 -0
- package/data/declaration/docker-compose.json +42 -0
- package/data/declaration/dockerfile.json +24 -0
- package/data/declaration/dotenv.json +12 -0
- package/data/declaration/go.json +139 -0
- package/data/declaration/graphql.json +42 -0
- package/data/declaration/hcl.json +211 -0
- package/data/declaration/html.json +18 -0
- package/data/declaration/ini.json +18 -0
- package/data/declaration/java.json +217 -0
- package/data/declaration/javascript.json +217 -0
- package/data/declaration/json.json +12 -0
- package/data/declaration/kotlin.json +14 -0
- package/data/declaration/lua.json +199 -0
- package/data/declaration/makefile.json +199 -0
- package/data/declaration/markdown.json +18 -0
- package/data/declaration/nginx.json +24 -0
- package/data/declaration/perl.json +199 -0
- package/data/declaration/php.json +223 -0
- package/data/declaration/powershell.json +211 -0
- package/data/declaration/protobuf.json +30 -0
- package/data/declaration/python.json +205 -0
- package/data/declaration/redis-cli.json +186 -0
- package/data/declaration/ruby.json +211 -0
- package/data/declaration/rust.json +241 -0
- package/data/declaration/scala.json +23 -0
- package/data/declaration/sql.json +217 -0
- package/data/declaration/ssh_config.json +18 -0
- package/data/declaration/swift.json +18 -0
- package/data/declaration/systemd.json +18 -0
- package/data/declaration/toml.json +24 -0
- package/data/declaration/typescript.json +235 -0
- package/data/declaration/xml.json +18 -0
- package/data/declaration/yaml.json +24 -0
- package/data/declaration/zsh.json +205 -0
- package/data/defination/dart.json +369 -0
- package/data/defination/docker-compose.json +347 -0
- package/data/defination/kotlin.json +789 -0
- package/data/defination/scala.json +285 -0
- package/data/defination/swift.json +551 -0
- package/data/documentHighlight/awk.json +135 -0
- package/data/documentHighlight/bash.json +393 -0
- package/data/documentHighlight/c.json +183 -0
- package/data/documentHighlight/caddy.json +135 -0
- package/data/documentHighlight/cpp.json +314 -0
- package/data/documentHighlight/crontab.json +39 -0
- package/data/documentHighlight/csharp.json +363 -0
- package/data/documentHighlight/dart.json +84 -0
- package/data/documentHighlight/docker-compose.json +233 -0
- package/data/documentHighlight/dockerfile.json +113 -0
- package/data/documentHighlight/dotenv.json +19 -0
- package/data/documentHighlight/go.json +234 -0
- package/data/documentHighlight/graphql.json +104 -0
- package/data/documentHighlight/hcl.json +145 -0
- package/data/documentHighlight/html.json +180 -0
- package/data/documentHighlight/ini.json +36 -0
- package/data/documentHighlight/java.json +318 -0
- package/data/documentHighlight/javascript.json +262 -0
- package/data/documentHighlight/json.json +28 -0
- package/data/documentHighlight/kotlin.json +37 -0
- package/data/documentHighlight/lua.json +141 -0
- package/data/documentHighlight/makefile.json +280 -0
- package/data/documentHighlight/markdown.json +23 -0
- package/data/documentHighlight/nginx.json +215 -0
- package/data/documentHighlight/perl.json +288 -0
- package/data/documentHighlight/php.json +321 -0
- package/data/documentHighlight/powershell.json +320 -0
- package/data/documentHighlight/protobuf.json +131 -0
- package/data/documentHighlight/python.json +222 -0
- package/data/documentHighlight/redis-cli.json +23 -0
- package/data/documentHighlight/ruby.json +342 -0
- package/data/documentHighlight/rust.json +238 -0
- package/data/documentHighlight/scala.json +79 -0
- package/data/documentHighlight/sql.json +547 -0
- package/data/documentHighlight/ssh_config.json +236 -0
- package/data/documentHighlight/swift.json +89 -0
- package/data/documentHighlight/systemd.json +363 -0
- package/data/documentHighlight/toml.json +32 -0
- package/data/documentHighlight/typescript.json +364 -0
- package/data/documentHighlight/xml.json +97 -0
- package/data/documentHighlight/yaml.json +48 -0
- package/data/documentHighlight/zsh.json +266 -0
- package/data/documentSymbol/awk.json +12 -0
- package/data/documentSymbol/bash.json +124 -0
- package/data/documentSymbol/c.json +26 -0
- package/data/documentSymbol/caddy.json +19 -0
- package/data/documentSymbol/cpp.json +40 -0
- package/data/documentSymbol/crontab.json +12 -0
- package/data/documentSymbol/csharp.json +47 -0
- package/data/documentSymbol/dart.json +20 -0
- package/data/documentSymbol/docker-compose.json +75 -0
- package/data/documentSymbol/dockerfile.json +26 -0
- package/data/documentSymbol/dotenv.json +12 -0
- package/data/documentSymbol/go.json +33 -0
- package/data/documentSymbol/graphql.json +47 -0
- package/data/documentSymbol/hcl.json +33 -0
- package/data/documentSymbol/html.json +19 -0
- package/data/documentSymbol/ini.json +19 -0
- package/data/documentSymbol/java.json +40 -0
- package/data/documentSymbol/javascript.json +40 -0
- package/data/documentSymbol/json.json +12 -0
- package/data/documentSymbol/kotlin.json +15 -0
- package/data/documentSymbol/lua.json +19 -0
- package/data/documentSymbol/makefile.json +19 -0
- package/data/documentSymbol/markdown.json +19 -0
- package/data/documentSymbol/nginx.json +26 -0
- package/data/documentSymbol/perl.json +26 -0
- package/data/documentSymbol/php.json +47 -0
- package/data/documentSymbol/powershell.json +33 -0
- package/data/documentSymbol/protobuf.json +33 -0
- package/data/documentSymbol/python.json +26 -0
- package/data/documentSymbol/redis-cli.json +4 -0
- package/data/documentSymbol/ruby.json +33 -0
- package/data/documentSymbol/rust.json +68 -0
- package/data/documentSymbol/scala.json +21 -0
- package/data/documentSymbol/sql.json +40 -0
- package/data/documentSymbol/ssh_config.json +19 -0
- package/data/documentSymbol/swift.json +17 -0
- package/data/documentSymbol/systemd.json +19 -0
- package/data/documentSymbol/toml.json +26 -0
- package/data/documentSymbol/typescript.json +61 -0
- package/data/documentSymbol/xml.json +19 -0
- package/data/documentSymbol/yaml.json +26 -0
- package/data/documentSymbol/zsh.json +26 -0
- package/data/formatting/awk.json +28 -0
- package/data/formatting/bash.json +88 -0
- package/data/formatting/c.json +28 -0
- package/data/formatting/caddy.json +23 -0
- package/data/formatting/cpp.json +28 -0
- package/data/formatting/crontab.json +19 -0
- package/data/formatting/csharp.json +28 -0
- package/data/formatting/dart.json +16 -0
- package/data/formatting/docker-compose.json +24 -0
- package/data/formatting/dockerfile.json +19 -0
- package/data/formatting/dotenv.json +19 -0
- package/data/formatting/go.json +28 -0
- package/data/formatting/graphql.json +23 -0
- package/data/formatting/hcl.json +23 -0
- package/data/formatting/html.json +23 -0
- package/data/formatting/ini.json +19 -0
- package/data/formatting/java.json +28 -0
- package/data/formatting/javascript.json +28 -0
- package/data/formatting/json.json +23 -0
- package/data/formatting/kotlin.json +14 -0
- package/data/formatting/lua.json +28 -0
- package/data/formatting/makefile.json +24 -0
- package/data/formatting/markdown.json +19 -0
- package/data/formatting/nginx.json +28 -0
- package/data/formatting/perl.json +28 -0
- package/data/formatting/php.json +28 -0
- package/data/formatting/powershell.json +28 -0
- package/data/formatting/protobuf.json +23 -0
- package/data/formatting/python.json +28 -0
- package/data/formatting/redis-cli.json +19 -0
- package/data/formatting/ruby.json +28 -0
- package/data/formatting/rust.json +28 -0
- package/data/formatting/scala.json +17 -0
- package/data/formatting/sql.json +28 -0
- package/data/formatting/ssh_config.json +22 -0
- package/data/formatting/swift.json +19 -0
- package/data/formatting/systemd.json +19 -0
- package/data/formatting/toml.json +19 -0
- package/data/formatting/typescript.json +28 -0
- package/data/formatting/xml.json +23 -0
- package/data/formatting/yaml.json +22 -0
- package/data/formatting/zsh.json +28 -0
- package/data/hover/bash.json +579 -245
- package/data/hover/dart.json +161 -0
- package/data/hover/docker-compose.json +404 -0
- package/data/hover/kotlin.json +341 -0
- package/data/hover/scala.json +209 -0
- package/data/hover/swift.json +239 -0
- package/data/implementation/awk.json +7 -0
- package/data/implementation/bash.json +44 -0
- package/data/implementation/c.json +7 -0
- package/data/implementation/caddy.json +7 -0
- package/data/implementation/cpp.json +20 -0
- package/data/implementation/crontab.json +7 -0
- package/data/implementation/csharp.json +27 -0
- package/data/implementation/dart.json +14 -0
- package/data/implementation/docker-compose.json +7 -0
- package/data/implementation/dockerfile.json +7 -0
- package/data/implementation/dotenv.json +7 -0
- package/data/implementation/go.json +9 -0
- package/data/implementation/graphql.json +20 -0
- package/data/implementation/hcl.json +7 -0
- package/data/implementation/html.json +7 -0
- package/data/implementation/ini.json +7 -0
- package/data/implementation/java.json +27 -0
- package/data/implementation/javascript.json +20 -0
- package/data/implementation/json.json +7 -0
- package/data/implementation/kotlin.json +13 -0
- package/data/implementation/lua.json +7 -0
- package/data/implementation/makefile.json +7 -0
- package/data/implementation/markdown.json +7 -0
- package/data/implementation/nginx.json +7 -0
- package/data/implementation/perl.json +7 -0
- package/data/implementation/php.json +34 -0
- package/data/implementation/powershell.json +9 -0
- package/data/implementation/protobuf.json +9 -0
- package/data/implementation/python.json +10 -0
- package/data/implementation/redis-cli.json +7 -0
- package/data/implementation/ruby.json +20 -0
- package/data/implementation/rust.json +20 -0
- package/data/implementation/scala.json +16 -0
- package/data/implementation/sql.json +7 -0
- package/data/implementation/ssh_config.json +7 -0
- package/data/implementation/swift.json +14 -0
- package/data/implementation/systemd.json +7 -0
- package/data/implementation/toml.json +7 -0
- package/data/implementation/typescript.json +27 -0
- package/data/implementation/xml.json +7 -0
- package/data/implementation/yaml.json +7 -0
- package/data/implementation/zsh.json +7 -0
- package/data/inlayHints/awk.json +35 -0
- package/data/inlayHints/bash.json +207 -0
- package/data/inlayHints/c.json +35 -0
- package/data/inlayHints/caddy.json +35 -0
- package/data/inlayHints/cpp.json +43 -0
- package/data/inlayHints/crontab.json +26 -0
- package/data/inlayHints/csharp.json +43 -0
- package/data/inlayHints/dart.json +29 -0
- package/data/inlayHints/docker-compose.json +43 -0
- package/data/inlayHints/dockerfile.json +35 -0
- package/data/inlayHints/dotenv.json +26 -0
- package/data/inlayHints/go.json +43 -0
- package/data/inlayHints/graphql.json +26 -0
- package/data/inlayHints/hcl.json +43 -0
- package/data/inlayHints/html.json +26 -0
- package/data/inlayHints/ini.json +26 -0
- package/data/inlayHints/java.json +43 -0
- package/data/inlayHints/javascript.json +43 -0
- package/data/inlayHints/json.json +26 -0
- package/data/inlayHints/kotlin.json +23 -0
- package/data/inlayHints/lua.json +43 -0
- package/data/inlayHints/makefile.json +35 -0
- package/data/inlayHints/markdown.json +26 -0
- package/data/inlayHints/nginx.json +35 -0
- package/data/inlayHints/perl.json +43 -0
- package/data/inlayHints/php.json +43 -0
- package/data/inlayHints/powershell.json +43 -0
- package/data/inlayHints/protobuf.json +26 -0
- package/data/inlayHints/python.json +35 -0
- package/data/inlayHints/redis-cli.json +35 -0
- package/data/inlayHints/ruby.json +35 -0
- package/data/inlayHints/rust.json +43 -0
- package/data/inlayHints/scala.json +42 -0
- package/data/inlayHints/sql.json +43 -0
- package/data/inlayHints/ssh_config.json +26 -0
- package/data/inlayHints/swift.json +37 -0
- package/data/inlayHints/systemd.json +26 -0
- package/data/inlayHints/toml.json +26 -0
- package/data/inlayHints/typescript.json +43 -0
- package/data/inlayHints/xml.json +26 -0
- package/data/inlayHints/yaml.json +26 -0
- package/data/inlayHints/zsh.json +43 -0
- package/data/inlineCompletions/awk.json +17 -0
- package/data/inlineCompletions/bash.json +155 -0
- package/data/inlineCompletions/c.json +17 -0
- package/data/inlineCompletions/caddy.json +11 -0
- package/data/inlineCompletions/cpp.json +17 -0
- package/data/inlineCompletions/crontab.json +11 -0
- package/data/inlineCompletions/csharp.json +23 -0
- package/data/inlineCompletions/dart.json +27 -0
- package/data/inlineCompletions/docker-compose.json +89 -0
- package/data/inlineCompletions/dockerfile.json +11 -0
- package/data/inlineCompletions/dotenv.json +4 -0
- package/data/inlineCompletions/go.json +23 -0
- package/data/inlineCompletions/graphql.json +17 -0
- package/data/inlineCompletions/hcl.json +17 -0
- package/data/inlineCompletions/html.json +11 -0
- package/data/inlineCompletions/ini.json +4 -0
- package/data/inlineCompletions/java.json +17 -0
- package/data/inlineCompletions/javascript.json +17 -0
- package/data/inlineCompletions/json.json +4 -0
- package/data/inlineCompletions/kotlin.json +19 -0
- package/data/inlineCompletions/lua.json +17 -0
- package/data/inlineCompletions/makefile.json +11 -0
- package/data/inlineCompletions/markdown.json +4 -0
- package/data/inlineCompletions/nginx.json +17 -0
- package/data/inlineCompletions/perl.json +17 -0
- package/data/inlineCompletions/php.json +17 -0
- package/data/inlineCompletions/powershell.json +17 -0
- package/data/inlineCompletions/protobuf.json +17 -0
- package/data/inlineCompletions/python.json +23 -0
- package/data/inlineCompletions/redis-cli.json +4 -0
- package/data/inlineCompletions/ruby.json +17 -0
- package/data/inlineCompletions/rust.json +23 -0
- package/data/inlineCompletions/scala.json +26 -0
- package/data/inlineCompletions/sql.json +17 -0
- package/data/inlineCompletions/ssh_config.json +11 -0
- package/data/inlineCompletions/swift.json +23 -0
- package/data/inlineCompletions/systemd.json +4 -0
- package/data/inlineCompletions/toml.json +4 -0
- package/data/inlineCompletions/typescript.json +17 -0
- package/data/inlineCompletions/xml.json +4 -0
- package/data/inlineCompletions/yaml.json +4 -0
- package/data/inlineCompletions/zsh.json +17 -0
- package/data/links/awk.json +10 -0
- package/data/links/bash.json +56 -0
- package/data/links/c.json +15 -0
- package/data/links/caddy.json +15 -0
- package/data/links/cpp.json +15 -0
- package/data/links/crontab.json +10 -0
- package/data/links/csharp.json +15 -0
- package/data/links/dart.json +16 -0
- package/data/links/docker-compose.json +47 -0
- package/data/links/dockerfile.json +15 -0
- package/data/links/dotenv.json +10 -0
- package/data/links/go.json +15 -0
- package/data/links/graphql.json +10 -0
- package/data/links/hcl.json +15 -0
- package/data/links/html.json +15 -0
- package/data/links/ini.json +10 -0
- package/data/links/java.json +15 -0
- package/data/links/javascript.json +15 -0
- package/data/links/json.json +10 -0
- package/data/links/kotlin.json +10 -0
- package/data/links/lua.json +15 -0
- package/data/links/makefile.json +15 -0
- package/data/links/markdown.json +15 -0
- package/data/links/nginx.json +15 -0
- package/data/links/perl.json +15 -0
- package/data/links/php.json +15 -0
- package/data/links/powershell.json +15 -0
- package/data/links/protobuf.json +15 -0
- package/data/links/python.json +15 -0
- package/data/links/redis-cli.json +10 -0
- package/data/links/ruby.json +15 -0
- package/data/links/rust.json +15 -0
- package/data/links/scala.json +17 -0
- package/data/links/sql.json +10 -0
- package/data/links/ssh_config.json +15 -0
- package/data/links/swift.json +13 -0
- package/data/links/systemd.json +10 -0
- package/data/links/toml.json +10 -0
- package/data/links/typescript.json +15 -0
- package/data/links/xml.json +15 -0
- package/data/links/yaml.json +10 -0
- package/data/links/zsh.json +15 -0
- package/data/manifest.json +1535 -470
- package/data/references/awk.json +166 -0
- package/data/references/bash.json +221 -0
- package/data/references/c.json +166 -0
- package/data/references/caddy.json +134 -0
- package/data/references/cpp.json +166 -0
- package/data/references/crontab.json +5 -0
- package/data/references/csharp.json +166 -0
- package/data/references/dart.json +15 -0
- package/data/references/docker-compose.json +42 -0
- package/data/references/dockerfile.json +5 -0
- package/data/references/dotenv.json +5 -0
- package/data/references/go.json +150 -0
- package/data/references/graphql.json +5 -0
- package/data/references/hcl.json +166 -0
- package/data/references/html.json +5 -0
- package/data/references/ini.json +5 -0
- package/data/references/java.json +166 -0
- package/data/references/javascript.json +166 -0
- package/data/references/json.json +5 -0
- package/data/references/kotlin.json +12 -0
- package/data/references/lua.json +166 -0
- package/data/references/makefile.json +166 -0
- package/data/references/markdown.json +5 -0
- package/data/references/nginx.json +5 -0
- package/data/references/perl.json +166 -0
- package/data/references/php.json +166 -0
- package/data/references/powershell.json +166 -0
- package/data/references/protobuf.json +5 -0
- package/data/references/python.json +166 -0
- package/data/references/redis-cli.json +166 -0
- package/data/references/ruby.json +166 -0
- package/data/references/rust.json +166 -0
- package/data/references/scala.json +15 -0
- package/data/references/sql.json +166 -0
- package/data/references/ssh_config.json +5 -0
- package/data/references/swift.json +14 -0
- package/data/references/systemd.json +5 -0
- package/data/references/toml.json +5 -0
- package/data/references/typescript.json +166 -0
- package/data/references/xml.json +5 -0
- package/data/references/yaml.json +5 -0
- package/data/references/zsh.json +166 -0
- package/data/typeDefinition/awk.json +29 -0
- package/data/typeDefinition/bash.json +95 -0
- package/data/typeDefinition/c.json +149 -0
- package/data/typeDefinition/caddy.json +4 -0
- package/data/typeDefinition/cpp.json +257 -0
- package/data/typeDefinition/crontab.json +4 -0
- package/data/typeDefinition/csharp.json +251 -0
- package/data/typeDefinition/dart.json +35 -0
- package/data/typeDefinition/docker-compose.json +4 -0
- package/data/typeDefinition/dockerfile.json +4 -0
- package/data/typeDefinition/dotenv.json +4 -0
- package/data/typeDefinition/go.json +173 -0
- package/data/typeDefinition/graphql.json +35 -0
- package/data/typeDefinition/hcl.json +59 -0
- package/data/typeDefinition/html.json +4 -0
- package/data/typeDefinition/ini.json +4 -0
- package/data/typeDefinition/java.json +311 -0
- package/data/typeDefinition/javascript.json +293 -0
- package/data/typeDefinition/json.json +41 -0
- package/data/typeDefinition/kotlin.json +33 -0
- package/data/typeDefinition/lua.json +53 -0
- package/data/typeDefinition/makefile.json +4 -0
- package/data/typeDefinition/markdown.json +4 -0
- package/data/typeDefinition/nginx.json +4 -0
- package/data/typeDefinition/perl.json +47 -0
- package/data/typeDefinition/php.json +311 -0
- package/data/typeDefinition/powershell.json +167 -0
- package/data/typeDefinition/protobuf.json +197 -0
- package/data/typeDefinition/python.json +293 -0
- package/data/typeDefinition/redis-cli.json +59 -0
- package/data/typeDefinition/ruby.json +317 -0
- package/data/typeDefinition/rust.json +521 -0
- package/data/typeDefinition/scala.json +52 -0
- package/data/typeDefinition/sql.json +281 -0
- package/data/typeDefinition/ssh_config.json +4 -0
- package/data/typeDefinition/swift.json +56 -0
- package/data/typeDefinition/systemd.json +4 -0
- package/data/typeDefinition/toml.json +65 -0
- package/data/typeDefinition/typescript.json +425 -0
- package/data/typeDefinition/xml.json +4 -0
- package/data/typeDefinition/yaml.json +71 -0
- package/data/typeDefinition/zsh.json +35 -0
- package/package.json +1 -1
|
@@ -0,0 +1,959 @@
|
|
|
1
|
+
{
|
|
2
|
+
"language": "docker-compose",
|
|
3
|
+
"completions": [
|
|
4
|
+
{
|
|
5
|
+
"label": "version",
|
|
6
|
+
"kind": 14,
|
|
7
|
+
"detail": "Compose file version (deprecated)",
|
|
8
|
+
"documentation": {
|
|
9
|
+
"value": "```yaml\nversion: '3.8'\n```\nSpecify the Compose file format version. Deprecated in recent Compose specs — the latest format is inferred automatically."
|
|
10
|
+
},
|
|
11
|
+
"insertText": "version: '${1:3.8}'",
|
|
12
|
+
"insertTextRules": 4,
|
|
13
|
+
"sortText": "01_version"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"label": "services",
|
|
17
|
+
"kind": 17,
|
|
18
|
+
"detail": "Define services",
|
|
19
|
+
"documentation": {
|
|
20
|
+
"value": "```yaml\nservices:\n web:\n image: nginx\n```\nTop-level element that defines the containers (services) to run."
|
|
21
|
+
},
|
|
22
|
+
"insertText": "services:\n ${1:service_name}:\n ${0}",
|
|
23
|
+
"insertTextRules": 4,
|
|
24
|
+
"sortText": "01_services"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"label": "networks",
|
|
28
|
+
"kind": 17,
|
|
29
|
+
"detail": "Define networks",
|
|
30
|
+
"documentation": {
|
|
31
|
+
"value": "```yaml\nnetworks:\n frontend:\n driver: bridge\n```\nTop-level element that defines custom networks for services to connect to."
|
|
32
|
+
},
|
|
33
|
+
"insertText": "networks:\n ${1:network_name}:\n driver: ${2:bridge}",
|
|
34
|
+
"insertTextRules": 4,
|
|
35
|
+
"sortText": "01_networks"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"label": "volumes",
|
|
39
|
+
"kind": 17,
|
|
40
|
+
"detail": "Define named volumes",
|
|
41
|
+
"documentation": {
|
|
42
|
+
"value": "```yaml\nvolumes:\n db_data:\n driver: local\n```\nTop-level element that defines named volumes for persistent data storage."
|
|
43
|
+
},
|
|
44
|
+
"insertText": "volumes:\n ${1:volume_name}:\n driver: ${2:local}",
|
|
45
|
+
"insertTextRules": 4,
|
|
46
|
+
"sortText": "01_volumes"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"label": "secrets",
|
|
50
|
+
"kind": 17,
|
|
51
|
+
"detail": "Define secrets",
|
|
52
|
+
"documentation": {
|
|
53
|
+
"value": "```yaml\nsecrets:\n db_password:\n file: ./db_password.txt\n```\nTop-level element that defines secrets to be used by services."
|
|
54
|
+
},
|
|
55
|
+
"insertText": "secrets:\n ${1:secret_name}:\n file: ${2:./secret.txt}",
|
|
56
|
+
"insertTextRules": 4,
|
|
57
|
+
"sortText": "01_secrets"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"label": "configs",
|
|
61
|
+
"kind": 17,
|
|
62
|
+
"detail": "Define configs",
|
|
63
|
+
"documentation": {
|
|
64
|
+
"value": "```yaml\nconfigs:\n my_config:\n file: ./config.txt\n```\nTop-level element that defines configuration objects to be used by services."
|
|
65
|
+
},
|
|
66
|
+
"insertText": "configs:\n ${1:config_name}:\n file: ${2:./config.txt}",
|
|
67
|
+
"insertTextRules": 4,
|
|
68
|
+
"sortText": "01_configs"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"label": "name",
|
|
72
|
+
"kind": 14,
|
|
73
|
+
"detail": "Project name",
|
|
74
|
+
"documentation": {
|
|
75
|
+
"value": "```yaml\nname: my-project\n```\nTop-level element that sets the project name. Overrides the default directory-based naming."
|
|
76
|
+
},
|
|
77
|
+
"insertText": "name: ${1:my-project}",
|
|
78
|
+
"insertTextRules": 4,
|
|
79
|
+
"sortText": "01_name"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"label": "image",
|
|
83
|
+
"kind": 9,
|
|
84
|
+
"detail": "Service image",
|
|
85
|
+
"documentation": {
|
|
86
|
+
"value": "```yaml\nservices:\n web:\n image: nginx:latest\n```\nSpecify the Docker image to use for the service container."
|
|
87
|
+
},
|
|
88
|
+
"insertText": "image: ${1:image_name}:${2:tag}",
|
|
89
|
+
"insertTextRules": 4,
|
|
90
|
+
"sortText": "02_image"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"label": "build",
|
|
94
|
+
"kind": 9,
|
|
95
|
+
"detail": "Build configuration",
|
|
96
|
+
"documentation": {
|
|
97
|
+
"value": "```yaml\nservices:\n web:\n build:\n context: .\n dockerfile: Dockerfile\n```\nBuild configuration for creating a Docker image from a Dockerfile."
|
|
98
|
+
},
|
|
99
|
+
"insertText": "build:\n context: ${1:.}\n dockerfile: ${2:Dockerfile}",
|
|
100
|
+
"insertTextRules": 4,
|
|
101
|
+
"sortText": "02_build"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"label": "container_name",
|
|
105
|
+
"kind": 9,
|
|
106
|
+
"detail": "Custom container name",
|
|
107
|
+
"documentation": {
|
|
108
|
+
"value": "```yaml\ncontainer_name: my-web-container\n```\nSpecify a custom name for the container instead of the generated default."
|
|
109
|
+
},
|
|
110
|
+
"insertText": "container_name: ${1:name}",
|
|
111
|
+
"insertTextRules": 4,
|
|
112
|
+
"sortText": "02_container_name"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"label": "command",
|
|
116
|
+
"kind": 9,
|
|
117
|
+
"detail": "Override default command",
|
|
118
|
+
"documentation": {
|
|
119
|
+
"value": "```yaml\ncommand: [\"npm\", \"start\"]\n# or\ncommand: npm start\n```\nOverride the default command specified in the image's Dockerfile."
|
|
120
|
+
},
|
|
121
|
+
"insertText": "command: ${1:command}",
|
|
122
|
+
"insertTextRules": 4,
|
|
123
|
+
"sortText": "02_command"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"label": "entrypoint",
|
|
127
|
+
"kind": 9,
|
|
128
|
+
"detail": "Override entrypoint",
|
|
129
|
+
"documentation": {
|
|
130
|
+
"value": "```yaml\nentrypoint: [\"/bin/sh\", \"-c\"]\n# or\nentrypoint: /entrypoint.sh\n```\nOverride the default entrypoint specified in the image's Dockerfile."
|
|
131
|
+
},
|
|
132
|
+
"insertText": "entrypoint: ${1:entrypoint}",
|
|
133
|
+
"insertTextRules": 4,
|
|
134
|
+
"sortText": "02_entrypoint"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"label": "ports",
|
|
138
|
+
"kind": 9,
|
|
139
|
+
"detail": "Expose ports",
|
|
140
|
+
"documentation": {
|
|
141
|
+
"value": "```yaml\nports:\n - \"8080:80\"\n - \"443:443\"\n```\nMap host ports to container ports. Format: `HOST:CONTAINER` or `CONTAINER`."
|
|
142
|
+
},
|
|
143
|
+
"insertText": "ports:\n - \"${1:host_port}:${2:container_port}\"",
|
|
144
|
+
"insertTextRules": 4,
|
|
145
|
+
"sortText": "02_ports"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"label": "expose",
|
|
149
|
+
"kind": 9,
|
|
150
|
+
"detail": "Expose ports internally",
|
|
151
|
+
"documentation": {
|
|
152
|
+
"value": "```yaml\nexpose:\n - \"3000\"\n - \"8000\"\n```\nExpose ports to linked services without publishing them to the host."
|
|
153
|
+
},
|
|
154
|
+
"insertText": "expose:\n - \"${1:port}\"",
|
|
155
|
+
"insertTextRules": 4,
|
|
156
|
+
"sortText": "02_expose"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"label": "environment",
|
|
160
|
+
"kind": 9,
|
|
161
|
+
"detail": "Environment variables",
|
|
162
|
+
"documentation": {
|
|
163
|
+
"value": "```yaml\nenvironment:\n NODE_ENV: production\n DB_HOST: db\n# or list form\nenvironment:\n - NODE_ENV=production\n - DB_HOST=db\n```\nSet environment variables in the container."
|
|
164
|
+
},
|
|
165
|
+
"insertText": "environment:\n ${1:KEY}: ${2:value}",
|
|
166
|
+
"insertTextRules": 4,
|
|
167
|
+
"sortText": "02_environment"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"label": "env_file",
|
|
171
|
+
"kind": 9,
|
|
172
|
+
"detail": "Environment file",
|
|
173
|
+
"documentation": {
|
|
174
|
+
"value": "```yaml\nenv_file:\n - .env\n - ./config/.env.production\n```\nLoad environment variables from a file."
|
|
175
|
+
},
|
|
176
|
+
"insertText": "env_file:\n - ${1:.env}",
|
|
177
|
+
"insertTextRules": 4,
|
|
178
|
+
"sortText": "02_env_file"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"label": "depends_on",
|
|
182
|
+
"kind": 9,
|
|
183
|
+
"detail": "Service dependencies",
|
|
184
|
+
"documentation": {
|
|
185
|
+
"value": "```yaml\ndepends_on:\n db:\n condition: service_healthy\n redis:\n condition: service_started\n```\nDefine startup and shutdown dependency order between services."
|
|
186
|
+
},
|
|
187
|
+
"insertText": "depends_on:\n ${1:service}:\n condition: ${2:service_started}",
|
|
188
|
+
"insertTextRules": 4,
|
|
189
|
+
"sortText": "02_depends_on"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"label": "restart",
|
|
193
|
+
"kind": 9,
|
|
194
|
+
"detail": "Restart policy",
|
|
195
|
+
"documentation": {
|
|
196
|
+
"value": "```yaml\nrestart: unless-stopped\n# Options: no, always, on-failure, unless-stopped\n```\nDefine the restart policy for the container."
|
|
197
|
+
},
|
|
198
|
+
"insertText": "restart: ${1|no,always,on-failure,unless-stopped|}",
|
|
199
|
+
"insertTextRules": 4,
|
|
200
|
+
"sortText": "02_restart"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"label": "healthcheck",
|
|
204
|
+
"kind": 9,
|
|
205
|
+
"detail": "Health check configuration",
|
|
206
|
+
"documentation": {
|
|
207
|
+
"value": "```yaml\nhealthcheck:\n test: [\"CMD\", \"curl\", \"-f\", \"http://localhost\"]\n interval: 30s\n timeout: 10s\n retries: 3\n start_period: 10s\n```\nConfigure a health check for the service container."
|
|
208
|
+
},
|
|
209
|
+
"insertText": "healthcheck:\n test: [\"CMD\", \"${1:curl}\", \"${2:-f}\", \"${3:http://localhost}\"]\n interval: ${4:30s}\n timeout: ${5:10s}\n retries: ${6:3}\n start_period: ${7:10s}",
|
|
210
|
+
"insertTextRules": 4,
|
|
211
|
+
"sortText": "02_healthcheck"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"label": "logging",
|
|
215
|
+
"kind": 9,
|
|
216
|
+
"detail": "Logging configuration",
|
|
217
|
+
"documentation": {
|
|
218
|
+
"value": "```yaml\nlogging:\n driver: json-file\n options:\n max-size: \"10m\"\n max-file: \"3\"\n```\nConfigure the logging driver and options for a service."
|
|
219
|
+
},
|
|
220
|
+
"insertText": "logging:\n driver: ${1:json-file}\n options:\n max-size: \"${2:10m}\"\n max-file: \"${3:3}\"",
|
|
221
|
+
"insertTextRules": 4,
|
|
222
|
+
"sortText": "02_logging"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"label": "deploy",
|
|
226
|
+
"kind": 9,
|
|
227
|
+
"detail": "Deployment configuration",
|
|
228
|
+
"documentation": {
|
|
229
|
+
"value": "```yaml\ndeploy:\n replicas: 3\n resources:\n limits:\n cpus: '0.5'\n memory: 512M\n restart_policy:\n condition: on-failure\n```\nSpecify deployment and runtime configuration (Swarm mode or resource limits)."
|
|
230
|
+
},
|
|
231
|
+
"insertText": "deploy:\n replicas: ${1:1}\n resources:\n limits:\n cpus: '${2:0.5}'\n memory: ${3:512M}",
|
|
232
|
+
"insertTextRules": 4,
|
|
233
|
+
"sortText": "02_deploy"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"label": "labels",
|
|
237
|
+
"kind": 9,
|
|
238
|
+
"detail": "Container labels",
|
|
239
|
+
"documentation": {
|
|
240
|
+
"value": "```yaml\nlabels:\n com.example.description: \"My web service\"\n com.example.department: \"Finance\"\n```\nAdd metadata labels to the container."
|
|
241
|
+
},
|
|
242
|
+
"insertText": "labels:\n ${1:key}: \"${2:value}\"",
|
|
243
|
+
"insertTextRules": 4,
|
|
244
|
+
"sortText": "02_labels"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"label": "working_dir",
|
|
248
|
+
"kind": 9,
|
|
249
|
+
"detail": "Working directory",
|
|
250
|
+
"documentation": {
|
|
251
|
+
"value": "```yaml\nworking_dir: /app\n```\nSet the working directory inside the container."
|
|
252
|
+
},
|
|
253
|
+
"insertText": "working_dir: ${1:/app}",
|
|
254
|
+
"insertTextRules": 4,
|
|
255
|
+
"sortText": "02_working_dir"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"label": "user",
|
|
259
|
+
"kind": 9,
|
|
260
|
+
"detail": "User override",
|
|
261
|
+
"documentation": {
|
|
262
|
+
"value": "```yaml\nuser: \"1000:1000\"\n```\nOverride the user used to run the container process."
|
|
263
|
+
},
|
|
264
|
+
"insertText": "user: \"${1:1000:1000}\"",
|
|
265
|
+
"insertTextRules": 4,
|
|
266
|
+
"sortText": "02_user"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"label": "stdin_open",
|
|
270
|
+
"kind": 9,
|
|
271
|
+
"detail": "Keep STDIN open",
|
|
272
|
+
"documentation": {
|
|
273
|
+
"value": "```yaml\nstdin_open: true\n```\nKeep STDIN open even if not attached. Equivalent to `docker run -i`."
|
|
274
|
+
},
|
|
275
|
+
"insertText": "stdin_open: ${1:true}",
|
|
276
|
+
"insertTextRules": 4,
|
|
277
|
+
"sortText": "02_stdin_open"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"label": "tty",
|
|
281
|
+
"kind": 9,
|
|
282
|
+
"detail": "Allocate pseudo-TTY",
|
|
283
|
+
"documentation": {
|
|
284
|
+
"value": "```yaml\ntty: true\n```\nAllocate a pseudo-TTY. Equivalent to `docker run -t`."
|
|
285
|
+
},
|
|
286
|
+
"insertText": "tty: ${1:true}",
|
|
287
|
+
"insertTextRules": 4,
|
|
288
|
+
"sortText": "02_tty"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"label": "hostname",
|
|
292
|
+
"kind": 9,
|
|
293
|
+
"detail": "Container hostname",
|
|
294
|
+
"documentation": {
|
|
295
|
+
"value": "```yaml\nhostname: my-web-host\n```\nSet the container hostname."
|
|
296
|
+
},
|
|
297
|
+
"insertText": "hostname: ${1:hostname}",
|
|
298
|
+
"insertTextRules": 4,
|
|
299
|
+
"sortText": "02_hostname"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"label": "domainname",
|
|
303
|
+
"kind": 9,
|
|
304
|
+
"detail": "Container domain name",
|
|
305
|
+
"documentation": {
|
|
306
|
+
"value": "```yaml\ndomainname: example.com\n```\nSet the container domain name."
|
|
307
|
+
},
|
|
308
|
+
"insertText": "domainname: ${1:example.com}",
|
|
309
|
+
"insertTextRules": 4,
|
|
310
|
+
"sortText": "02_domainname"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"label": "extra_hosts",
|
|
314
|
+
"kind": 9,
|
|
315
|
+
"detail": "Extra host-to-IP mappings",
|
|
316
|
+
"documentation": {
|
|
317
|
+
"value": "```yaml\nextra_hosts:\n - \"host.docker.internal:host-gateway\"\n - \"myhost:192.168.1.10\"\n```\nAdd hostname mappings to `/etc/hosts` inside the container."
|
|
318
|
+
},
|
|
319
|
+
"insertText": "extra_hosts:\n - \"${1:hostname}:${2:ip}\"",
|
|
320
|
+
"insertTextRules": 4,
|
|
321
|
+
"sortText": "02_extra_hosts"
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"label": "dns",
|
|
325
|
+
"kind": 9,
|
|
326
|
+
"detail": "Custom DNS servers",
|
|
327
|
+
"documentation": {
|
|
328
|
+
"value": "```yaml\ndns:\n - 8.8.8.8\n - 8.8.4.4\n```\nCustom DNS server addresses."
|
|
329
|
+
},
|
|
330
|
+
"insertText": "dns:\n - ${1:8.8.8.8}",
|
|
331
|
+
"insertTextRules": 4,
|
|
332
|
+
"sortText": "02_dns"
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"label": "dns_search",
|
|
336
|
+
"kind": 9,
|
|
337
|
+
"detail": "DNS search domains",
|
|
338
|
+
"documentation": {
|
|
339
|
+
"value": "```yaml\ndns_search:\n - example.com\n```\nCustom DNS search domains."
|
|
340
|
+
},
|
|
341
|
+
"insertText": "dns_search:\n - ${1:example.com}",
|
|
342
|
+
"insertTextRules": 4,
|
|
343
|
+
"sortText": "02_dns_search"
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"label": "cap_add",
|
|
347
|
+
"kind": 9,
|
|
348
|
+
"detail": "Add capabilities",
|
|
349
|
+
"documentation": {
|
|
350
|
+
"value": "```yaml\ncap_add:\n - SYS_PTRACE\n - NET_ADMIN\n```\nAdd Linux capabilities to the container."
|
|
351
|
+
},
|
|
352
|
+
"insertText": "cap_add:\n - ${1:SYS_PTRACE}",
|
|
353
|
+
"insertTextRules": 4,
|
|
354
|
+
"sortText": "02_cap_add"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"label": "cap_drop",
|
|
358
|
+
"kind": 9,
|
|
359
|
+
"detail": "Drop capabilities",
|
|
360
|
+
"documentation": {
|
|
361
|
+
"value": "```yaml\ncap_drop:\n - ALL\n```\nDrop Linux capabilities from the container."
|
|
362
|
+
},
|
|
363
|
+
"insertText": "cap_drop:\n - ${1:ALL}",
|
|
364
|
+
"insertTextRules": 4,
|
|
365
|
+
"sortText": "02_cap_drop"
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"label": "privileged",
|
|
369
|
+
"kind": 9,
|
|
370
|
+
"detail": "Privileged mode",
|
|
371
|
+
"documentation": {
|
|
372
|
+
"value": "```yaml\nprivileged: true\n```\nGive extended privileges to the container. Use with caution."
|
|
373
|
+
},
|
|
374
|
+
"insertText": "privileged: ${1:false}",
|
|
375
|
+
"insertTextRules": 4,
|
|
376
|
+
"sortText": "02_privileged"
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"label": "read_only",
|
|
380
|
+
"kind": 9,
|
|
381
|
+
"detail": "Read-only root filesystem",
|
|
382
|
+
"documentation": {
|
|
383
|
+
"value": "```yaml\nread_only: true\n```\nMount the container root filesystem as read-only."
|
|
384
|
+
},
|
|
385
|
+
"insertText": "read_only: ${1:true}",
|
|
386
|
+
"insertTextRules": 4,
|
|
387
|
+
"sortText": "02_read_only"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"label": "security_opt",
|
|
391
|
+
"kind": 9,
|
|
392
|
+
"detail": "Security options",
|
|
393
|
+
"documentation": {
|
|
394
|
+
"value": "```yaml\nsecurity_opt:\n - no-new-privileges:true\n - seccomp:unconfined\n```\nOverride default labeling and security options."
|
|
395
|
+
},
|
|
396
|
+
"insertText": "security_opt:\n - ${1:no-new-privileges:true}",
|
|
397
|
+
"insertTextRules": 4,
|
|
398
|
+
"sortText": "02_security_opt"
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
"label": "sysctls",
|
|
402
|
+
"kind": 9,
|
|
403
|
+
"detail": "Kernel parameters",
|
|
404
|
+
"documentation": {
|
|
405
|
+
"value": "```yaml\nsysctls:\n net.core.somaxconn: 1024\n net.ipv4.tcp_syncookies: 0\n```\nSet kernel parameters inside the container."
|
|
406
|
+
},
|
|
407
|
+
"insertText": "sysctls:\n ${1:net.core.somaxconn}: ${2:1024}",
|
|
408
|
+
"insertTextRules": 4,
|
|
409
|
+
"sortText": "02_sysctls"
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"label": "ulimits",
|
|
413
|
+
"kind": 9,
|
|
414
|
+
"detail": "Resource limits",
|
|
415
|
+
"documentation": {
|
|
416
|
+
"value": "```yaml\nulimits:\n nofile:\n soft: 65535\n hard: 65535\n nproc: 65535\n```\nOverride default ulimits for the container."
|
|
417
|
+
},
|
|
418
|
+
"insertText": "ulimits:\n nofile:\n soft: ${1:65535}\n hard: ${2:65535}",
|
|
419
|
+
"insertTextRules": 4,
|
|
420
|
+
"sortText": "02_ulimits"
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"label": "tmpfs",
|
|
424
|
+
"kind": 9,
|
|
425
|
+
"detail": "Tmpfs mount",
|
|
426
|
+
"documentation": {
|
|
427
|
+
"value": "```yaml\ntmpfs:\n - /tmp\n - /run\n```\nMount a temporary filesystem inside the container."
|
|
428
|
+
},
|
|
429
|
+
"insertText": "tmpfs:\n - ${1:/tmp}",
|
|
430
|
+
"insertTextRules": 4,
|
|
431
|
+
"sortText": "02_tmpfs"
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"label": "shm_size",
|
|
435
|
+
"kind": 9,
|
|
436
|
+
"detail": "Shared memory size",
|
|
437
|
+
"documentation": {
|
|
438
|
+
"value": "```yaml\nshm_size: '2gb'\n```\nSet the size of the shared memory (`/dev/shm`) allocation for the container."
|
|
439
|
+
},
|
|
440
|
+
"insertText": "shm_size: '${1:256m}'",
|
|
441
|
+
"insertTextRules": 4,
|
|
442
|
+
"sortText": "02_shm_size"
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
"label": "stop_signal",
|
|
446
|
+
"kind": 9,
|
|
447
|
+
"detail": "Stop signal",
|
|
448
|
+
"documentation": {
|
|
449
|
+
"value": "```yaml\nstop_signal: SIGTERM\n```\nThe signal to send when stopping the container. Default is SIGTERM."
|
|
450
|
+
},
|
|
451
|
+
"insertText": "stop_signal: ${1:SIGTERM}",
|
|
452
|
+
"insertTextRules": 4,
|
|
453
|
+
"sortText": "02_stop_signal"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"label": "stop_grace_period",
|
|
457
|
+
"kind": 9,
|
|
458
|
+
"detail": "Stop grace period",
|
|
459
|
+
"documentation": {
|
|
460
|
+
"value": "```yaml\nstop_grace_period: 30s\n```\nTime to wait before forcefully killing a container. Default is 10s."
|
|
461
|
+
},
|
|
462
|
+
"insertText": "stop_grace_period: ${1:30s}",
|
|
463
|
+
"insertTextRules": 4,
|
|
464
|
+
"sortText": "02_stop_grace_period"
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
"label": "init",
|
|
468
|
+
"kind": 9,
|
|
469
|
+
"detail": "Run init process",
|
|
470
|
+
"documentation": {
|
|
471
|
+
"value": "```yaml\ninit: true\n```\nRun an init process (tini) inside the container for proper signal handling and zombie process reaping."
|
|
472
|
+
},
|
|
473
|
+
"insertText": "init: ${1:true}",
|
|
474
|
+
"insertTextRules": 4,
|
|
475
|
+
"sortText": "02_init"
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
"label": "platform",
|
|
479
|
+
"kind": 9,
|
|
480
|
+
"detail": "Target platform",
|
|
481
|
+
"documentation": {
|
|
482
|
+
"value": "```yaml\nplatform: linux/amd64\n```\nTarget platform for the service container."
|
|
483
|
+
},
|
|
484
|
+
"insertText": "platform: ${1:linux/amd64}",
|
|
485
|
+
"insertTextRules": 4,
|
|
486
|
+
"sortText": "02_platform"
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"label": "profiles",
|
|
490
|
+
"kind": 9,
|
|
491
|
+
"detail": "Service profiles",
|
|
492
|
+
"documentation": {
|
|
493
|
+
"value": "```yaml\nprofiles:\n - debug\n - development\n```\nAssign the service to one or more profiles. Service only starts when a matching profile is active."
|
|
494
|
+
},
|
|
495
|
+
"insertText": "profiles:\n - ${1:profile_name}",
|
|
496
|
+
"insertTextRules": 4,
|
|
497
|
+
"sortText": "02_profiles"
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
"label": "pull_policy",
|
|
501
|
+
"kind": 9,
|
|
502
|
+
"detail": "Image pull policy",
|
|
503
|
+
"documentation": {
|
|
504
|
+
"value": "```yaml\npull_policy: always\n# Options: always, never, missing, build\n```\nDefine when Compose should pull the image."
|
|
505
|
+
},
|
|
506
|
+
"insertText": "pull_policy: ${1|always,never,missing,build|}",
|
|
507
|
+
"insertTextRules": 4,
|
|
508
|
+
"sortText": "02_pull_policy"
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
"label": "network_mode",
|
|
512
|
+
"kind": 9,
|
|
513
|
+
"detail": "Network mode",
|
|
514
|
+
"documentation": {
|
|
515
|
+
"value": "```yaml\nnetwork_mode: host\n# Options: bridge, host, none, service:[service name]\n```\nSet the network mode for the service container."
|
|
516
|
+
},
|
|
517
|
+
"insertText": "network_mode: ${1:host}",
|
|
518
|
+
"insertTextRules": 4,
|
|
519
|
+
"sortText": "02_network_mode"
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
"label": "pid",
|
|
523
|
+
"kind": 9,
|
|
524
|
+
"detail": "PID mode",
|
|
525
|
+
"documentation": {
|
|
526
|
+
"value": "```yaml\npid: host\n```\nShare the host PID namespace with the container."
|
|
527
|
+
},
|
|
528
|
+
"insertText": "pid: ${1:host}",
|
|
529
|
+
"insertTextRules": 4,
|
|
530
|
+
"sortText": "02_pid"
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
"label": "ipc",
|
|
534
|
+
"kind": 9,
|
|
535
|
+
"detail": "IPC mode",
|
|
536
|
+
"documentation": {
|
|
537
|
+
"value": "```yaml\nipc: host\n```\nSet the IPC mode for the container."
|
|
538
|
+
},
|
|
539
|
+
"insertText": "ipc: ${1:host}",
|
|
540
|
+
"insertTextRules": 4,
|
|
541
|
+
"sortText": "02_ipc"
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
"label": "extends",
|
|
545
|
+
"kind": 9,
|
|
546
|
+
"detail": "Extend service",
|
|
547
|
+
"documentation": {
|
|
548
|
+
"value": "```yaml\nextends:\n file: common.yml\n service: webapp\n```\nExtend another service, optionally from another Compose file."
|
|
549
|
+
},
|
|
550
|
+
"insertText": "extends:\n file: ${1:common.yml}\n service: ${2:service_name}",
|
|
551
|
+
"insertTextRules": 4,
|
|
552
|
+
"sortText": "02_extends"
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
"label": "scale",
|
|
556
|
+
"kind": 9,
|
|
557
|
+
"detail": "Default number of containers",
|
|
558
|
+
"documentation": {
|
|
559
|
+
"value": "```yaml\nscale: 3\n```\nDefault number of containers to run for this service."
|
|
560
|
+
},
|
|
561
|
+
"insertText": "scale: ${1:1}",
|
|
562
|
+
"insertTextRules": 4,
|
|
563
|
+
"sortText": "02_scale"
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
"label": "devices",
|
|
567
|
+
"kind": 9,
|
|
568
|
+
"detail": "Device mappings",
|
|
569
|
+
"documentation": {
|
|
570
|
+
"value": "```yaml\ndevices:\n - \"/dev/sda:/dev/xvdc:rwm\"\n```\nMap host devices into the container."
|
|
571
|
+
},
|
|
572
|
+
"insertText": "devices:\n - \"${1:/dev/sda}:${2:/dev/xvdc}\"",
|
|
573
|
+
"insertTextRules": 4,
|
|
574
|
+
"sortText": "02_devices"
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
"label": "isolation",
|
|
578
|
+
"kind": 9,
|
|
579
|
+
"detail": "Container isolation technology",
|
|
580
|
+
"documentation": {
|
|
581
|
+
"value": "```yaml\nisolation: default\n# Options: default, process, hyperv (Windows)\n```\nContainer isolation technology."
|
|
582
|
+
},
|
|
583
|
+
"insertText": "isolation: ${1:default}",
|
|
584
|
+
"insertTextRules": 4,
|
|
585
|
+
"sortText": "02_isolation"
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
"label": "runtime",
|
|
589
|
+
"kind": 9,
|
|
590
|
+
"detail": "Runtime to use",
|
|
591
|
+
"documentation": {
|
|
592
|
+
"value": "```yaml\nruntime: nvidia\n```\nSpecify the runtime for the container (e.g., nvidia for GPU support)."
|
|
593
|
+
},
|
|
594
|
+
"insertText": "runtime: ${1:runc}",
|
|
595
|
+
"insertTextRules": 4,
|
|
596
|
+
"sortText": "02_runtime"
|
|
597
|
+
},
|
|
598
|
+
{
|
|
599
|
+
"label": "credential_spec",
|
|
600
|
+
"kind": 9,
|
|
601
|
+
"detail": "Credential specification",
|
|
602
|
+
"documentation": {
|
|
603
|
+
"value": "```yaml\ncredential_spec:\n config: my_credential_spec\n```\nConfigure the credential spec for managed service accounts (Windows)."
|
|
604
|
+
},
|
|
605
|
+
"insertText": "credential_spec:\n config: ${1:my_credential_spec}",
|
|
606
|
+
"insertTextRules": 4,
|
|
607
|
+
"sortText": "02_credential_spec"
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
"label": "develop",
|
|
611
|
+
"kind": 9,
|
|
612
|
+
"detail": "Development watch config",
|
|
613
|
+
"documentation": {
|
|
614
|
+
"value": "```yaml\ndevelop:\n watch:\n - action: sync\n path: ./src\n target: /app/src\n - action: rebuild\n path: package.json\n```\nConfigure file watching for live development with `docker compose watch`."
|
|
615
|
+
},
|
|
616
|
+
"insertText": "develop:\n watch:\n - action: ${1|sync,rebuild,sync+restart|}\n path: ${2:./src}\n target: ${3:/app/src}",
|
|
617
|
+
"insertTextRules": 4,
|
|
618
|
+
"sortText": "02_develop"
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
"label": "annotations",
|
|
622
|
+
"kind": 9,
|
|
623
|
+
"detail": "Container annotations",
|
|
624
|
+
"documentation": {
|
|
625
|
+
"value": "```yaml\nannotations:\n com.example.foo: bar\n```\nAdd OCI annotations to the container."
|
|
626
|
+
},
|
|
627
|
+
"insertText": "annotations:\n ${1:key}: ${2:value}",
|
|
628
|
+
"insertTextRules": 4,
|
|
629
|
+
"sortText": "02_annotations"
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
"label": "attach",
|
|
633
|
+
"kind": 9,
|
|
634
|
+
"detail": "Attach to service logs",
|
|
635
|
+
"documentation": {
|
|
636
|
+
"value": "```yaml\nattach: false\n```\nWhen set to false, Compose does not collect service logs."
|
|
637
|
+
},
|
|
638
|
+
"insertText": "attach: ${1:true}",
|
|
639
|
+
"insertTextRules": 4,
|
|
640
|
+
"sortText": "02_attach"
|
|
641
|
+
},
|
|
642
|
+
{
|
|
643
|
+
"label": "driver",
|
|
644
|
+
"kind": 9,
|
|
645
|
+
"detail": "Network/volume driver",
|
|
646
|
+
"documentation": {
|
|
647
|
+
"value": "```yaml\nnetworks:\n mynet:\n driver: bridge\nvolumes:\n mydata:\n driver: local\n```\nSpecify the driver for networks or volumes."
|
|
648
|
+
},
|
|
649
|
+
"insertText": "driver: ${1:bridge}",
|
|
650
|
+
"insertTextRules": 4,
|
|
651
|
+
"sortText": "02_driver"
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
"label": "driver_opts",
|
|
655
|
+
"kind": 9,
|
|
656
|
+
"detail": "Driver options",
|
|
657
|
+
"documentation": {
|
|
658
|
+
"value": "```yaml\ndriver_opts:\n type: nfs\n o: addr=10.0.0.1,rw\n device: \":/exported/path\"\n```\nOptions for the network or volume driver."
|
|
659
|
+
},
|
|
660
|
+
"insertText": "driver_opts:\n ${1:key}: ${2:value}",
|
|
661
|
+
"insertTextRules": 4,
|
|
662
|
+
"sortText": "02_driver_opts"
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
"label": "external",
|
|
666
|
+
"kind": 9,
|
|
667
|
+
"detail": "External resource",
|
|
668
|
+
"documentation": {
|
|
669
|
+
"value": "```yaml\nnetworks:\n mynet:\n external: true\nvolumes:\n mydata:\n external: true\n```\nSpecify that a network or volume is created outside of Compose."
|
|
670
|
+
},
|
|
671
|
+
"insertText": "external: ${1:true}",
|
|
672
|
+
"insertTextRules": 4,
|
|
673
|
+
"sortText": "02_external"
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
"label": "ipam",
|
|
677
|
+
"kind": 9,
|
|
678
|
+
"detail": "IP address management",
|
|
679
|
+
"documentation": {
|
|
680
|
+
"value": "```yaml\nnetworks:\n mynet:\n ipam:\n driver: default\n config:\n - subnet: 172.28.0.0/16\n```\nCustomize IP address management for a network."
|
|
681
|
+
},
|
|
682
|
+
"insertText": "ipam:\n driver: ${1:default}\n config:\n - subnet: ${2:172.28.0.0/16}",
|
|
683
|
+
"insertTextRules": 4,
|
|
684
|
+
"sortText": "02_ipam"
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
"label": "internal",
|
|
688
|
+
"kind": 9,
|
|
689
|
+
"detail": "Internal network",
|
|
690
|
+
"documentation": {
|
|
691
|
+
"value": "```yaml\nnetworks:\n backend:\n internal: true\n```\nRestrict external access to the network."
|
|
692
|
+
},
|
|
693
|
+
"insertText": "internal: ${1:true}",
|
|
694
|
+
"insertTextRules": 4,
|
|
695
|
+
"sortText": "02_internal"
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
"label": "attachable",
|
|
699
|
+
"kind": 9,
|
|
700
|
+
"detail": "Attachable network",
|
|
701
|
+
"documentation": {
|
|
702
|
+
"value": "```yaml\nnetworks:\n mynet:\n attachable: true\n```\nAllow standalone containers to attach to the network."
|
|
703
|
+
},
|
|
704
|
+
"insertText": "attachable: ${1:true}",
|
|
705
|
+
"insertTextRules": 4,
|
|
706
|
+
"sortText": "02_attachable"
|
|
707
|
+
},
|
|
708
|
+
{
|
|
709
|
+
"label": "enable_ipv6",
|
|
710
|
+
"kind": 9,
|
|
711
|
+
"detail": "Enable IPv6",
|
|
712
|
+
"documentation": {
|
|
713
|
+
"value": "```yaml\nnetworks:\n mynet:\n enable_ipv6: true\n```\nEnable IPv6 networking on the network."
|
|
714
|
+
},
|
|
715
|
+
"insertText": "enable_ipv6: ${1:true}",
|
|
716
|
+
"insertTextRules": 4,
|
|
717
|
+
"sortText": "02_enable_ipv6"
|
|
718
|
+
},
|
|
719
|
+
{
|
|
720
|
+
"label": "condition: service_started",
|
|
721
|
+
"kind": 13,
|
|
722
|
+
"detail": "Depend on service start",
|
|
723
|
+
"documentation": {
|
|
724
|
+
"value": "```yaml\ndepends_on:\n db:\n condition: service_started\n```\nWait until the dependency service has started."
|
|
725
|
+
},
|
|
726
|
+
"insertText": "condition: service_started",
|
|
727
|
+
"sortText": "04_condition_started"
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
"label": "condition: service_healthy",
|
|
731
|
+
"kind": 13,
|
|
732
|
+
"detail": "Depend on healthy service",
|
|
733
|
+
"documentation": {
|
|
734
|
+
"value": "```yaml\ndepends_on:\n db:\n condition: service_healthy\n```\nWait until the dependency service's health check passes."
|
|
735
|
+
},
|
|
736
|
+
"insertText": "condition: service_healthy",
|
|
737
|
+
"sortText": "04_condition_healthy"
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
"label": "condition: service_completed_successfully",
|
|
741
|
+
"kind": 13,
|
|
742
|
+
"detail": "Depend on successful completion",
|
|
743
|
+
"documentation": {
|
|
744
|
+
"value": "```yaml\ndepends_on:\n migrate:\n condition: service_completed_successfully\n```\nWait until the dependency service has completed with exit code 0."
|
|
745
|
+
},
|
|
746
|
+
"insertText": "condition: service_completed_successfully",
|
|
747
|
+
"sortText": "04_condition_completed"
|
|
748
|
+
},
|
|
749
|
+
{
|
|
750
|
+
"label": "Web service (snippet)",
|
|
751
|
+
"kind": 28,
|
|
752
|
+
"detail": "Complete web service definition",
|
|
753
|
+
"documentation": {
|
|
754
|
+
"value": "```yaml\nweb:\n image: nginx:alpine\n ports:\n - \"80:80\"\n volumes:\n - ./html:/usr/share/nginx/html\n restart: unless-stopped\n```\nA complete web service configuration snippet."
|
|
755
|
+
},
|
|
756
|
+
"insertText": "${1:web}:\n image: ${2:nginx:alpine}\n ports:\n - \"${3:80}:${4:80}\"\n volumes:\n - ${5:./html}:${6:/usr/share/nginx/html}\n restart: ${7:unless-stopped}",
|
|
757
|
+
"insertTextRules": 4,
|
|
758
|
+
"sortText": "00_snippet_web"
|
|
759
|
+
},
|
|
760
|
+
{
|
|
761
|
+
"label": "Database service (snippet)",
|
|
762
|
+
"kind": 28,
|
|
763
|
+
"detail": "Complete database service definition",
|
|
764
|
+
"documentation": {
|
|
765
|
+
"value": "```yaml\ndb:\n image: postgres:16\n environment:\n POSTGRES_DB: mydb\n POSTGRES_USER: user\n POSTGRES_PASSWORD: password\n volumes:\n - db_data:/var/lib/postgresql/data\n ports:\n - \"5432:5432\"\n```\nA complete PostgreSQL database service snippet."
|
|
766
|
+
},
|
|
767
|
+
"insertText": "${1:db}:\n image: ${2:postgres:16}\n environment:\n POSTGRES_DB: ${3:mydb}\n POSTGRES_USER: ${4:user}\n POSTGRES_PASSWORD: ${5:password}\n volumes:\n - ${6:db_data}:/var/lib/postgresql/data\n ports:\n - \"${7:5432}:${8:5432}\"\n restart: unless-stopped",
|
|
768
|
+
"insertTextRules": 4,
|
|
769
|
+
"sortText": "00_snippet_database"
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
"label": "Redis service (snippet)",
|
|
773
|
+
"kind": 28,
|
|
774
|
+
"detail": "Complete Redis service definition",
|
|
775
|
+
"documentation": {
|
|
776
|
+
"value": "```yaml\nredis:\n image: redis:7-alpine\n ports:\n - \"6379:6379\"\n volumes:\n - redis_data:/data\n restart: unless-stopped\n```\nA complete Redis cache service snippet."
|
|
777
|
+
},
|
|
778
|
+
"insertText": "${1:redis}:\n image: redis:${2:7-alpine}\n ports:\n - \"${3:6379}:${4:6379}\"\n volumes:\n - ${5:redis_data}:/data\n restart: unless-stopped",
|
|
779
|
+
"insertTextRules": 4,
|
|
780
|
+
"sortText": "00_snippet_redis"
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
"label": "MySQL service (snippet)",
|
|
784
|
+
"kind": 28,
|
|
785
|
+
"detail": "Complete MySQL service definition",
|
|
786
|
+
"documentation": {
|
|
787
|
+
"value": "```yaml\nmysql:\n image: mysql:8\n environment:\n MYSQL_ROOT_PASSWORD: rootpassword\n MYSQL_DATABASE: mydb\n MYSQL_USER: user\n MYSQL_PASSWORD: password\n volumes:\n - mysql_data:/var/lib/mysql\n ports:\n - \"3306:3306\"\n```\nA complete MySQL database service snippet."
|
|
788
|
+
},
|
|
789
|
+
"insertText": "${1:mysql}:\n image: mysql:${2:8}\n environment:\n MYSQL_ROOT_PASSWORD: ${3:rootpassword}\n MYSQL_DATABASE: ${4:mydb}\n MYSQL_USER: ${5:user}\n MYSQL_PASSWORD: ${6:password}\n volumes:\n - ${7:mysql_data}:/var/lib/mysql\n ports:\n - \"${8:3306}:${9:3306}\"\n restart: unless-stopped",
|
|
790
|
+
"insertTextRules": 4,
|
|
791
|
+
"sortText": "00_snippet_mysql"
|
|
792
|
+
},
|
|
793
|
+
{
|
|
794
|
+
"label": "MongoDB service (snippet)",
|
|
795
|
+
"kind": 28,
|
|
796
|
+
"detail": "Complete MongoDB service definition",
|
|
797
|
+
"documentation": {
|
|
798
|
+
"value": "```yaml\nmongo:\n image: mongo:7\n environment:\n MONGO_INITDB_ROOT_USERNAME: admin\n MONGO_INITDB_ROOT_PASSWORD: password\n volumes:\n - mongo_data:/data/db\n ports:\n - \"27017:27017\"\n```\nA complete MongoDB service snippet."
|
|
799
|
+
},
|
|
800
|
+
"insertText": "${1:mongo}:\n image: mongo:${2:7}\n environment:\n MONGO_INITDB_ROOT_USERNAME: ${3:admin}\n MONGO_INITDB_ROOT_PASSWORD: ${4:password}\n volumes:\n - ${5:mongo_data}:/data/db\n ports:\n - \"${6:27017}:${7:27017}\"\n restart: unless-stopped",
|
|
801
|
+
"insertTextRules": 4,
|
|
802
|
+
"sortText": "00_snippet_mongodb"
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
"label": "Nginx reverse proxy (snippet)",
|
|
806
|
+
"kind": 28,
|
|
807
|
+
"detail": "Nginx reverse proxy service",
|
|
808
|
+
"documentation": {
|
|
809
|
+
"value": "```yaml\nnginx:\n image: nginx:alpine\n ports:\n - \"80:80\"\n - \"443:443\"\n volumes:\n - ./nginx.conf:/etc/nginx/nginx.conf:ro\n - ./certs:/etc/nginx/certs:ro\n depends_on:\n - app\n```\nReverse proxy with Nginx."
|
|
810
|
+
},
|
|
811
|
+
"insertText": "${1:nginx}:\n image: nginx:alpine\n ports:\n - \"80:80\"\n - \"443:443\"\n volumes:\n - ${2:./nginx.conf}:/etc/nginx/nginx.conf:ro\n depends_on:\n - ${3:app}\n restart: unless-stopped",
|
|
812
|
+
"insertTextRules": 4,
|
|
813
|
+
"sortText": "00_snippet_nginx_proxy"
|
|
814
|
+
},
|
|
815
|
+
{
|
|
816
|
+
"label": "Docker Compose boilerplate (snippet)",
|
|
817
|
+
"kind": 28,
|
|
818
|
+
"detail": "Full docker-compose.yml starter",
|
|
819
|
+
"documentation": {
|
|
820
|
+
"value": "```yaml\nservices:\n app:\n build: .\n ports:\n - \"3000:3000\"\n environment:\n - NODE_ENV=development\n volumes:\n - .:/app\n depends_on:\n - db\n db:\n image: postgres:16\n environment:\n POSTGRES_PASSWORD: postgres\n volumes:\n - db_data:/var/lib/postgresql/data\nvolumes:\n db_data:\n```\nComplete docker-compose.yml boilerplate with app and database."
|
|
821
|
+
},
|
|
822
|
+
"insertText": "services:\n ${1:app}:\n build: ${2:.}\n ports:\n - \"${3:3000}:${4:3000}\"\n environment:\n - ${5:NODE_ENV}=${6:development}\n volumes:\n - ${7:.}:${8:/app}\n depends_on:\n - ${9:db}\n\n ${9:db}:\n image: ${10:postgres:16}\n environment:\n POSTGRES_PASSWORD: ${11:postgres}\n volumes:\n - ${12:db_data}:/var/lib/postgresql/data\n\nvolumes:\n ${12:db_data}:\n",
|
|
823
|
+
"insertTextRules": 4,
|
|
824
|
+
"sortText": "00_snippet_boilerplate"
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
"label": "Traefik service (snippet)",
|
|
828
|
+
"kind": 28,
|
|
829
|
+
"detail": "Traefik reverse proxy service",
|
|
830
|
+
"documentation": {
|
|
831
|
+
"value": "```yaml\ntraefik:\n image: traefik:v3.0\n command:\n - \"--providers.docker=true\"\n - \"--entrypoints.web.address=:80\"\n ports:\n - \"80:80\"\n volumes:\n - /var/run/docker.sock:/var/run/docker.sock:ro\n```\nTraefik reverse proxy with Docker provider."
|
|
832
|
+
},
|
|
833
|
+
"insertText": "${1:traefik}:\n image: traefik:${2:v3.0}\n command:\n - \"--providers.docker=true\"\n - \"--entrypoints.web.address=:80\"\n ports:\n - \"80:80\"\n volumes:\n - /var/run/docker.sock:/var/run/docker.sock:ro\n restart: unless-stopped",
|
|
834
|
+
"insertTextRules": 4,
|
|
835
|
+
"sortText": "00_snippet_traefik"
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
"label": "Healthcheck (snippet)",
|
|
839
|
+
"kind": 28,
|
|
840
|
+
"detail": "Healthcheck snippet",
|
|
841
|
+
"documentation": {
|
|
842
|
+
"value": "```yaml\nhealthcheck:\n test: [\"CMD\", \"curl\", \"-f\", \"http://localhost:8080/health\"]\n interval: 30s\n timeout: 10s\n retries: 3\n start_period: 40s\n```\nFull health check configuration."
|
|
843
|
+
},
|
|
844
|
+
"insertText": "healthcheck:\n test: [\"CMD\", \"${1:curl}\", \"${2:-f}\", \"${3:http://localhost:8080/health}\"]\n interval: ${4:30s}\n timeout: ${5:10s}\n retries: ${6:3}\n start_period: ${7:40s}",
|
|
845
|
+
"insertTextRules": 4,
|
|
846
|
+
"sortText": "00_snippet_healthcheck"
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
"label": "Volume mount (snippet)",
|
|
850
|
+
"kind": 28,
|
|
851
|
+
"detail": "Named volume with driver",
|
|
852
|
+
"documentation": {
|
|
853
|
+
"value": "```yaml\nvolumes:\n data:\n driver: local\n driver_opts:\n type: none\n o: bind\n device: /path/on/host\n```\nA named volume with local bind mount driver options."
|
|
854
|
+
},
|
|
855
|
+
"insertText": "${1:data}:\n driver: local\n driver_opts:\n type: none\n o: bind\n device: ${2:/path/on/host}",
|
|
856
|
+
"insertTextRules": 4,
|
|
857
|
+
"sortText": "00_snippet_volume"
|
|
858
|
+
},
|
|
859
|
+
{
|
|
860
|
+
"label": "Network with subnet (snippet)",
|
|
861
|
+
"kind": 28,
|
|
862
|
+
"detail": "Custom network with IPAM",
|
|
863
|
+
"documentation": {
|
|
864
|
+
"value": "```yaml\nnetworks:\n backend:\n driver: bridge\n ipam:\n config:\n - subnet: 172.28.0.0/16\n```\nCustom bridge network with specific subnet."
|
|
865
|
+
},
|
|
866
|
+
"insertText": "${1:backend}:\n driver: bridge\n ipam:\n config:\n - subnet: ${2:172.28.0.0/16}",
|
|
867
|
+
"insertTextRules": 4,
|
|
868
|
+
"sortText": "00_snippet_network"
|
|
869
|
+
},
|
|
870
|
+
{
|
|
871
|
+
"label": "Logging config (snippet)",
|
|
872
|
+
"kind": 28,
|
|
873
|
+
"detail": "Logging driver configuration",
|
|
874
|
+
"documentation": {
|
|
875
|
+
"value": "```yaml\nlogging:\n driver: json-file\n options:\n max-size: \"10m\"\n max-file: \"3\"\n```\nJSON file logging with rotation."
|
|
876
|
+
},
|
|
877
|
+
"insertText": "logging:\n driver: ${1:json-file}\n options:\n max-size: \"${2:10m}\"\n max-file: \"${3:3}\"",
|
|
878
|
+
"insertTextRules": 4,
|
|
879
|
+
"sortText": "00_snippet_logging"
|
|
880
|
+
},
|
|
881
|
+
{
|
|
882
|
+
"label": "Deploy with resources (snippet)",
|
|
883
|
+
"kind": 28,
|
|
884
|
+
"detail": "Resource limits and reservations",
|
|
885
|
+
"documentation": {
|
|
886
|
+
"value": "```yaml\ndeploy:\n resources:\n limits:\n cpus: '0.5'\n memory: 512M\n reservations:\n cpus: '0.25'\n memory: 256M\n```\nResource limits and reservations for the service."
|
|
887
|
+
},
|
|
888
|
+
"insertText": "deploy:\n resources:\n limits:\n cpus: '${1:0.5}'\n memory: ${2:512M}\n reservations:\n cpus: '${3:0.25}'\n memory: ${4:256M}",
|
|
889
|
+
"insertTextRules": 4,
|
|
890
|
+
"sortText": "00_snippet_deploy_resources"
|
|
891
|
+
},
|
|
892
|
+
{
|
|
893
|
+
"label": "Build with args (snippet)",
|
|
894
|
+
"kind": 28,
|
|
895
|
+
"detail": "Build with context, dockerfile and args",
|
|
896
|
+
"documentation": {
|
|
897
|
+
"value": "```yaml\nbuild:\n context: .\n dockerfile: Dockerfile\n args:\n NODE_VERSION: 20\n ENV: production\n target: production\n```\nBuild configuration with arguments and multi-stage target."
|
|
898
|
+
},
|
|
899
|
+
"insertText": "build:\n context: ${1:.}\n dockerfile: ${2:Dockerfile}\n args:\n ${3:ARG_NAME}: ${4:value}\n target: ${5:production}",
|
|
900
|
+
"insertTextRules": 4,
|
|
901
|
+
"sortText": "00_snippet_build_args"
|
|
902
|
+
},
|
|
903
|
+
{
|
|
904
|
+
"label": "Watch config (snippet)",
|
|
905
|
+
"kind": 28,
|
|
906
|
+
"detail": "Docker Compose Watch configuration",
|
|
907
|
+
"documentation": {
|
|
908
|
+
"value": "```yaml\ndevelop:\n watch:\n - action: sync\n path: ./src\n target: /app/src\n - action: rebuild\n path: package.json\n - action: sync+restart\n path: ./config\n target: /app/config\n```\nFile watching for `docker compose watch`."
|
|
909
|
+
},
|
|
910
|
+
"insertText": "develop:\n watch:\n - action: ${1|sync,rebuild,sync+restart|}\n path: ${2:./src}\n target: ${3:/app/src}",
|
|
911
|
+
"insertTextRules": 4,
|
|
912
|
+
"sortText": "00_snippet_watch"
|
|
913
|
+
},
|
|
914
|
+
{
|
|
915
|
+
"label": "Secrets from file (snippet)",
|
|
916
|
+
"kind": 28,
|
|
917
|
+
"detail": "Secret from file definition",
|
|
918
|
+
"documentation": {
|
|
919
|
+
"value": "```yaml\nsecrets:\n db_password:\n file: ./secrets/db_password.txt\nservices:\n db:\n secrets:\n - db_password\n```\nDefine and use a file-based secret."
|
|
920
|
+
},
|
|
921
|
+
"insertText": "secrets:\n ${1:secret_name}:\n file: ${2:./secrets/secret.txt}",
|
|
922
|
+
"insertTextRules": 4,
|
|
923
|
+
"sortText": "00_snippet_secrets"
|
|
924
|
+
},
|
|
925
|
+
{
|
|
926
|
+
"label": "include",
|
|
927
|
+
"kind": 17,
|
|
928
|
+
"detail": "Include other Compose files",
|
|
929
|
+
"documentation": {
|
|
930
|
+
"value": "```yaml\ninclude:\n - path: ./db/compose.yaml\n - path: ./monitoring/compose.yaml\n```\nInclude other Compose files to combine multiple configurations."
|
|
931
|
+
},
|
|
932
|
+
"insertText": "include:\n - path: ${1:./compose.yaml}",
|
|
933
|
+
"insertTextRules": 4,
|
|
934
|
+
"sortText": "01_include"
|
|
935
|
+
},
|
|
936
|
+
{
|
|
937
|
+
"label": "x- extension field",
|
|
938
|
+
"kind": 9,
|
|
939
|
+
"detail": "Custom extension field",
|
|
940
|
+
"documentation": {
|
|
941
|
+
"value": "```yaml\nx-common: &common\n restart: unless-stopped\n logging:\n driver: json-file\n\nservices:\n web:\n <<: *common\n image: nginx\n```\nYAML extension fields (prefixed with `x-`) for reuse via anchors and aliases."
|
|
942
|
+
},
|
|
943
|
+
"insertText": "x-${1:common}: &${1:common}\n ${2:restart: unless-stopped}",
|
|
944
|
+
"insertTextRules": 4,
|
|
945
|
+
"sortText": "01_extension"
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
"label": "YAML anchor",
|
|
949
|
+
"kind": 28,
|
|
950
|
+
"detail": "YAML anchor and alias",
|
|
951
|
+
"documentation": {
|
|
952
|
+
"value": "```yaml\nx-logging: &logging\n logging:\n driver: json-file\n options:\n max-size: 10m\n\nservices:\n web:\n <<: *logging\n```\nDefine reusable YAML blocks with anchors (`&name`) and merge with aliases (`<<: *name`)."
|
|
953
|
+
},
|
|
954
|
+
"insertText": "x-${1:shared}: &${1:shared}\n ${2:key}: ${3:value}\n",
|
|
955
|
+
"insertTextRules": 4,
|
|
956
|
+
"sortText": "00_snippet_anchor"
|
|
957
|
+
}
|
|
958
|
+
]
|
|
959
|
+
}
|