Skip to content

Commit 57f109a

Browse files
committed
Custom instructions for github-cli, node, python
1 parent 091886b commit 57f109a

3 files changed

Lines changed: 23 additions & 0 deletions

File tree

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: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@
5959
},
6060
"customizations": {
6161
"vscode": {
62+
"settings": {
63+
"github.copilot.chat.codeGeneration.instructions": [
64+
{
65+
"text": "This dev container includes `node`, `npm` and `eslint` pre-installed and available on the `PATH` for Node.js and JavaScript development."
66+
}
67+
]
68+
},
6269
"extensions": [
6370
"dbaeumer.vscode-eslint"
6471
]

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)