Skip to content

Commit 248f417

Browse files
authored
[engsys] update devcontainer.json (#26793)
Move "settings" and "extensions" inside `customizations/vscode` as suggested at https://containers.dev/supporting
1 parent 96a46c5 commit 248f417

File tree

1 file changed

+32
-30
lines changed

1 file changed

+32
-30
lines changed

.devcontainer/devcontainer.json

+32-30
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,5 @@
11
{
22
"name": "GitHub Codespaces (Default)",
3-
"settings": {
4-
"terminal.integrated.shell.linux": "/bin/bash",
5-
"go.useGoProxyToCheckForToolUpdates": false,
6-
"go.useLanguageServer": true,
7-
"go.gopath": "/go",
8-
"go.goroot": "/usr/local/go",
9-
"go.toolsGopath": "/go/bin",
10-
"python.pythonPath": "/opt/python/latest/bin/python",
11-
"python.linting.enabled": true,
12-
"python.linting.pylintEnabled": true,
13-
"python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8",
14-
"python.formatting.blackPath": "/usr/local/py-utils/bin/black",
15-
"python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf",
16-
"python.linting.banditPath": "/usr/local/py-utils/bin/bandit",
17-
"python.linting.flake8Path": "/usr/local/py-utils/bin/flake8",
18-
"python.linting.mypyPath": "/usr/local/py-utils/bin/mypy",
19-
"python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle",
20-
"python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle",
21-
"python.linting.pylintPath": "/usr/local/py-utils/bin/pylint",
22-
"lldb.executable": "/usr/bin/lldb",
23-
"files.watcherExclude": {
24-
"**/target/**": true
25-
}
26-
},
273
"remoteUser": "codespace",
284
"overrideCommand": false,
295
"workspaceMount": "source=${localWorkspaceFolder},target=/home/codespace/workspace,type=bind,consistency=cached",
@@ -37,12 +13,6 @@
3713
"seccomp=unconfined",
3814
"--privileged"
3915
],
40-
// Add the IDs of extensions you want installed when the container is created.
41-
"extensions": [
42-
"GitHub.vscode-pull-request-github",
43-
"MS-vsliveshare.vsliveshare",
44-
"VisualStudioExptTeam.vscodeintellicode"
45-
],
4616
"postCreateCommand": "bash .devcontainer/init.sh",
4717
// Use 'forwardPorts' to make a list of ports inside the container available locally.
4818
// "forwardPorts": [],
@@ -55,6 +25,38 @@
5525
}
5626
}
5727
}
28+
},
29+
"vscode": {
30+
"settings": {
31+
"terminal.integrated.shell.linux": "/bin/bash",
32+
"go.useGoProxyToCheckForToolUpdates": false,
33+
"go.useLanguageServer": true,
34+
"go.gopath": "/go",
35+
"go.goroot": "/usr/local/go",
36+
"go.toolsGopath": "/go/bin",
37+
"python.pythonPath": "/opt/python/latest/bin/python",
38+
"python.linting.enabled": true,
39+
"python.linting.pylintEnabled": true,
40+
"python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8",
41+
"python.formatting.blackPath": "/usr/local/py-utils/bin/black",
42+
"python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf",
43+
"python.linting.banditPath": "/usr/local/py-utils/bin/bandit",
44+
"python.linting.flake8Path": "/usr/local/py-utils/bin/flake8",
45+
"python.linting.mypyPath": "/usr/local/py-utils/bin/mypy",
46+
"python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle",
47+
"python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle",
48+
"python.linting.pylintPath": "/usr/local/py-utils/bin/pylint",
49+
"lldb.executable": "/usr/bin/lldb",
50+
"files.watcherExclude": {
51+
"**/target/**": true
52+
}
53+
},
54+
// Add the IDs of extensions you want installed when the container is created.
55+
"extensions": [
56+
"GitHub.vscode-pull-request-github",
57+
"MS-vsliveshare.vsliveshare",
58+
"VisualStudioExptTeam.vscodeintellicode"
59+
]
5860
}
5961
}
6062
}

0 commit comments

Comments
 (0)