Skip to content

Commit 3339ad8

Browse files
committed
Fixed failing task tests
1 parent 321cec5 commit 3339ad8

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/vs/workbench/parts/tasks/test/electron-browser/configuration.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class CommandConfigurationBuilder {
122122
runtime: Tasks.RuntimeType.Process,
123123
args: [],
124124
options: {
125-
cwd: '${workspaceRoot}'
125+
cwd: '${workspaceFolder}'
126126
},
127127
presentation: this.presentationBuilder.result,
128128
suppressTaskName: false
@@ -243,7 +243,7 @@ class ProblemMatcherBuilder {
243243
applyTo: ApplyToKind.allDocuments,
244244
severity: undefined,
245245
fileLocation: FileLocationKind.Relative,
246-
filePrefix: '${cwd}',
246+
filePrefix: '${workspaceFolder}',
247247
pattern: undefined
248248
};
249249
}
@@ -726,7 +726,7 @@ suite('Tasks version 0.1.0', () => {
726726
task('tsc', 'tsc').
727727
group(Tasks.TaskGroup.Build).
728728
command().suppressTaskName(true).
729-
options({ cwd: '${workspaceRoot}', env: { key: 'value' } });
729+
options({ cwd: '${workspaceFolder}', env: { key: 'value' } });
730730
testConfiguration(
731731
{
732732
version: '0.1.0',
@@ -1589,7 +1589,7 @@ suite('Bugs / regression tests', () => {
15891589
windows: {
15901590
command: 'powershell',
15911591
options: {
1592-
cwd: '${workspaceRoot}'
1592+
cwd: '${workspaceFolder}'
15931593
},
15941594
tasks: [
15951595
{
@@ -1612,7 +1612,7 @@ suite('Bugs / regression tests', () => {
16121612
osx: {
16131613
command: '/bin/bash',
16141614
options: {
1615-
cwd: '${workspaceRoot}'
1615+
cwd: '${workspaceFolder}'
16161616
},
16171617
tasks: [
16181618
{
@@ -1633,14 +1633,14 @@ suite('Bugs / regression tests', () => {
16331633
builder.task('composeForDebug', 'powershell').
16341634
command().suppressTaskName(true).
16351635
args(['-ExecutionPolicy', 'RemoteSigned', '.\\dockerTask.ps1', '-ComposeForDebug', '-Environment', 'debug']).
1636-
options({ cwd: '${workspaceRoot}' }).
1636+
options({ cwd: '${workspaceFolder}' }).
16371637
presentation().echo(true).reveal(Tasks.RevealKind.Always);
16381638
testConfiguration(external, builder);
16391639
} else if (Platform.isMacintosh) {
16401640
builder.task('composeForDebug', '/bin/bash').
16411641
command().suppressTaskName(true).
16421642
args(['-c', './dockerTask.sh composeForDebug debug']).
1643-
options({ cwd: '${workspaceRoot}' }).
1643+
options({ cwd: '${workspaceFolder}' }).
16441644
presentation().reveal(Tasks.RevealKind.Always);
16451645
testConfiguration(external, builder);
16461646
}

0 commit comments

Comments
 (0)