Skip to content

Commit 12f1b2f

Browse files
authored
Custom instructions for features (#1314)
* Custom instructions for github-cli, node, python * Custom instructions for docker-in-docker, docker-outside-of-docker
1 parent 091886b commit 12f1b2f

File tree

5 files changed

+40
-3
lines changed

5 files changed

+40
-3
lines changed

src/docker-in-docker/devcontainer-feature.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,14 @@
7171
"vscode": {
7272
"extensions": [
7373
"ms-azuretools.vscode-docker"
74-
]
74+
],
75+
"settings": {
76+
"github.copilot.chat.codeGeneration.instructions": [
77+
{
78+
"text": "This dev container includes the Docker CLI (`docker`) pre-installed and available on the `PATH` for running and managing containers using a dedicated Docker daemon running inside the dev container."
79+
}
80+
]
81+
}
7582
}
7683
},
7784
"mounts": [

src/docker-outside-of-docker/devcontainer-feature.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,14 @@
5151
"vscode": {
5252
"extensions": [
5353
"ms-azuretools.vscode-docker"
54-
]
54+
],
55+
"settings": {
56+
"github.copilot.chat.codeGeneration.instructions": [
57+
{
58+
"text": "This dev container includes the Docker CLI (`docker`) pre-installed and available on the `PATH` for running and managing containers using the Docker daemon on the host machine."
59+
}
60+
]
61+
}
5562
}
5663
},
5764
"mounts": [

src/github-cli/devcontainer-feature.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,17 @@
1919
"default": true
2020
}
2121
},
22+
"customizations": {
23+
"vscode": {
24+
"settings": {
25+
"github.copilot.chat.codeGeneration.instructions": [
26+
{
27+
"text": "This dev container includes the GitHub CLI (`gh`), which is pre-installed and available on the `PATH`. IMPORTANT: `gh api -f` does not support object values, use multiple `-f` flags with hierarchical keys and string values instead. When using GitHub actions `actions/upload-artifact` or `actions/download-artifact` use v4 or later."
28+
}
29+
]
30+
}
31+
}
32+
},
2233
"installsAfter": [
2334
"ghcr.io/devcontainers/features/common-utils",
2435
"ghcr.io/devcontainers/features/git"

src/node/devcontainer-feature.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,14 @@
6161
"vscode": {
6262
"extensions": [
6363
"dbaeumer.vscode-eslint"
64-
]
64+
],
65+
"settings": {
66+
"github.copilot.chat.codeGeneration.instructions": [
67+
{
68+
"text": "This dev container includes `node`, `npm` and `eslint` pre-installed and available on the `PATH` for Node.js and JavaScript development."
69+
}
70+
]
71+
}
6572
}
6673
},
6774
"containerEnv": {

src/python/devcontainer-feature.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@
7777
"ms-python.autopep8"
7878
],
7979
"settings": {
80+
"github.copilot.chat.codeGeneration.instructions": [
81+
{
82+
"text": "This dev container includes `python3` and `pip3` pre-installed and available on the `PATH`, along with the Python language extensions for Python development."
83+
}
84+
],
8085
"python.defaultInterpreterPath": "/usr/local/python/current/bin/python",
8186
"[python]": {
8287
"editor.defaultFormatter": "ms-python.autopep8"

0 commit comments

Comments
 (0)