Skip to content

Commit dfb3bbe

Browse files
committed
Add integrated inherit environment.
1 parent cb2eb97 commit dfb3bbe

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
"customizations": {
1414
// Configure properties specific to VS Code.
1515
"vscode": {
16-
"settings": {},
16+
"settings": {
17+
// This is the key setting for VS Code to forward the host's SSH agent
18+
"terminal.integrated.inheritEnv": true
19+
},
1720
"extensions": [
1821
"streetsidesoftware.code-spell-checker"
1922
]
@@ -33,8 +36,8 @@
3336
},
3437

3538
"mounts": [
39+
// Is currently in string format because consistency option is not yet supported in object format
3640
"source=${localEnv:HOME}${localEnv:USERPROFILE}/.gitconfig,target=/home/node/.gitconfig,type=bind,consistency=cached"
37-
3841
],
3942

4043
// Use 'postCreateCommand' to run commands after the container is created.

0 commit comments

Comments
 (0)