Skip to content

Commit c000b10

Browse files
authored
'' -> ''
1 parent 5e7ebcb commit c000b10

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

src/spec-common/variableSubstitution.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,10 @@ function replaceContainerEnv(isWindows: boolean, configFile: URI | undefined, co
124124
}
125125
}
126126

127-
function replaceFeatureRoot(featureRoot: string | undefined, match: string, variable: string) {
127+
function replaceFeatureRoot(featureRootFolder: string | undefined, match: string, variable: string) {
128128
switch (variable) {
129-
case 'featureRoot':
130-
return featureRoot || match;
129+
case 'featureRootFolder':
130+
return featureRootFolder || match;
131131

132132
default:
133133
return match;

src/test/container-features/configs/lifecycle-hooks-advanced/.devcontainer/otter/devcontainer-feature.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22
"id": "otter",
33
"version": "1.2.3",
44
"options": {},
5-
"updateContentCommand": "${featureRoot}/helper_script.sh updateContentCommand",
6-
"onCreateCommand": "${featureRoot}/helper_script.sh onCreateCommand",
5+
"updateContentCommand": "${featureRootFolder}/helper_script.sh updateContentCommand",
6+
"onCreateCommand": "${featureRootFolder}/helper_script.sh onCreateCommand",
77
"postCreateCommand": {
8-
"parallel1": "${featureRoot}/helper_script.sh parallel_postCreateCommand_1",
8+
"parallel1": "${featureRootFolder}/helper_script.sh parallel_postCreateCommand_1",
99
"parallel2": [
10-
"${featureRoot}/helper_script.sh",
10+
"${featureRootFolder}/helper_script.sh",
1111
"parallel_postCreateCommand_2"
1212
]
1313
},
1414
"postStartCommand": [
15-
"${featureRoot}/helper_script.sh",
15+
"${featureRootFolder}/helper_script.sh",
1616
"postStartCommand"
1717
],
1818
"postAttachCommand": [
19-
"${featureRoot}/helper_script.sh",
19+
"${featureRootFolder}/helper_script.sh",
2020
"postAttachCommand"
2121
]
2222
}

src/test/container-features/configs/lifecycle-hooks-advanced/.devcontainer/rabbit/devcontainer-feature.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22
"id": "rabbit",
33
"version": "100.200.300",
44
"options": {},
5-
"updateContentCommand": "${featureRoot}/helper_script.sh updateContentCommand",
6-
"onCreateCommand": "${featureRoot}/helper_script.sh onCreateCommand",
5+
"updateContentCommand": "${featureRootFolder}/helper_script.sh updateContentCommand",
6+
"onCreateCommand": "${featureRootFolder}/helper_script.sh onCreateCommand",
77
"postCreateCommand": {
8-
"parallel1": "${featureRoot}/helper_script.sh parallel_postCreateCommand_1",
8+
"parallel1": "${featureRootFolder}/helper_script.sh parallel_postCreateCommand_1",
99
"parallel2": [
10-
"${featureRoot}/helper_script.sh",
10+
"${featureRootFolder}/helper_script.sh",
1111
"parallel_postCreateCommand_2"
1212
]
1313
},
1414
"postStartCommand": [
15-
"${featureRoot}/helper_script.sh",
15+
"${featureRootFolder}/helper_script.sh",
1616
"postStartCommand"
1717
],
1818
"postAttachCommand": [
19-
"${featureRoot}/helper_script.sh",
19+
"${featureRootFolder}/helper_script.sh",
2020
"postAttachCommand"
2121
]
2222
}

src/test/container-features/lifecycleHooks.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ describe('Feature lifecycle hooks', function () {
170170
assert.match(containerUpStandardError, /Running parallel2 from devcontainer.json.../);
171171

172172
// Since lifecycle scripts are executed relative to the workspace folder,
173-
// to run a script bundled with the Feature, the user needs to use the '${featureRoot}' variable.
173+
// to run a script bundled with the Feature, the user needs to use the '${featureRootFolder}' variable.
174174
// This variable can only be used in a devcontainer-feature.json's lifecycle scripts.
175175
// And will return the temporary directory where the Feature's files are copied to.
176176

0 commit comments

Comments
 (0)