feat: add compose pull command - #598
Open
Veer Jain (veerjain-1) wants to merge 1 commit into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new Docker Compose “pull” command to the Container Tools extension, integrating it into the existing command-template system and command registration flow.
Changes:
- Extends compose command template selection to support a new
pullvariant (composePulltemplate). - Adds a new
vscode-containers.compose.pullcommand implementation and registers it with the extension. - Contributes the new command, menu entry, and configuration schema/NLS strings in the extension manifest.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| extensions/vscode-containers/src/commands/selectCommandTemplate.ts | Adds composePull template type and maps pull to that template. |
| extensions/vscode-containers/src/commands/registerCommands.ts | Registers the new vscode-containers.compose.pull command. |
| extensions/vscode-containers/src/commands/compose/compose.ts | Implements composePull and extends internal compose command routing to include pull. |
| extensions/vscode-containers/package.nls.json | Adds NLS strings for the new compose pull template setting and command title. |
| extensions/vscode-containers/package.json | Contributes activation, menus, configuration for compose pull, and the command definition. |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+2636
to
+2652
| "items": { | ||
| "type": "object", | ||
| "properties": { | ||
| "template": { | ||
| "type": "string", | ||
| "description": "%vscode-containers.config.template.composePull.template%" | ||
| }, | ||
| "label": { | ||
| "type": "string", | ||
| "description": "%vscode-containers.config.template.composePull.label%" | ||
| }, | ||
| "match": { | ||
| "type": "string", | ||
| "description": "%vscode-containers.config.template.composePull.match%" | ||
| } | ||
| } | ||
| }, |
Comment on lines
+2670
to
+2674
| { | ||
| "command": "vscode-containers.compose.pull", | ||
| "title": "%vscode-containers.commands.composePull%", | ||
| "category": "%vscode-containers.commands.category.docker%" | ||
| }, |
| { | ||
| "command": "vscode-containers.compose.pull", | ||
| "when": "isWorkspaceTrusted && resourceLangId == dockercompose", | ||
| "group": "composeGroup_1_general@1_5" |
| "vscode-containers.config.template.composePull.label": "The label displayed to the user.", | ||
| "vscode-containers.config.template.composePull.match": "The regular expression for choosing the right template. Checked against compose YAML files, folder name, etc.", | ||
| "vscode-containers.config.template.composePull.description": "Command templates for compose pull commands.", | ||
| "vscode-containers.commands.composePull": "Compose Pull" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.