Skip to content

Commit 1381845

Browse files
authored
Merge pull request #113 from dockersamples/auto-hide-labspace-directory
Configure VS Code to hide the Labspace config files
2 parents 41e61d8 + a92026c commit 1381845

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
{
2+
// NOTE: If making changes to this file, be sure to check the development mode
3+
// for Labspaces (this file is overridden in the content development Compose file).
24
"remote.autoForwardPorts": false,
35
"security.workspace.trust.enabled": false,
46
"window.autoDetectColorScheme": true,
57
"terminal.integrated.env.linux": {
68
"PATH": "${env:PATH}"
9+
},
10+
"files.exclude": {
11+
".github/workflows/publish-labspace.yaml": true,
12+
".labspace": true,
13+
"labspace.yaml": true
714
}
815
}

compose.content-dev.yaml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ services:
6161
target: /etc/cmd-executor/socket
6262
volume:
6363
subpath: socket
64-
64+
configs:
65+
- source: workspace-settings
66+
target: /home/coder/.local/share/code-server/User/settings.json
67+
uid: "1000"
68+
gid: "1000"
6569

6670
host-republisher:
6771
image: dockersamples/labspace-host-port-republisher:latest
@@ -142,3 +146,17 @@ networks:
142146
default:
143147
name: labspace
144148

149+
configs:
150+
151+
# Show the .labspace directory during content development to make it easier to edit from
152+
# inside the Labspace environment
153+
workspace-settings:
154+
content: |
155+
{
156+
"remote.autoForwardPorts": false,
157+
"security.workspace.trust.enabled": false,
158+
"window.autoDetectColorScheme": true,
159+
"terminal.integrated.env.linux": {
160+
"PATH": "${env:PATH}"
161+
}
162+
}

0 commit comments

Comments
 (0)