mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-09 08:15:05 +01:00
Fixed failing task tests
This commit is contained in:
@@ -122,7 +122,7 @@ class CommandConfigurationBuilder {
|
||||
runtime: Tasks.RuntimeType.Process,
|
||||
args: [],
|
||||
options: {
|
||||
cwd: '${workspaceRoot}'
|
||||
cwd: '${workspaceFolder}'
|
||||
},
|
||||
presentation: this.presentationBuilder.result,
|
||||
suppressTaskName: false
|
||||
@@ -243,7 +243,7 @@ class ProblemMatcherBuilder {
|
||||
applyTo: ApplyToKind.allDocuments,
|
||||
severity: undefined,
|
||||
fileLocation: FileLocationKind.Relative,
|
||||
filePrefix: '${cwd}',
|
||||
filePrefix: '${workspaceFolder}',
|
||||
pattern: undefined
|
||||
};
|
||||
}
|
||||
@@ -726,7 +726,7 @@ suite('Tasks version 0.1.0', () => {
|
||||
task('tsc', 'tsc').
|
||||
group(Tasks.TaskGroup.Build).
|
||||
command().suppressTaskName(true).
|
||||
options({ cwd: '${workspaceRoot}', env: { key: 'value' } });
|
||||
options({ cwd: '${workspaceFolder}', env: { key: 'value' } });
|
||||
testConfiguration(
|
||||
{
|
||||
version: '0.1.0',
|
||||
@@ -1589,7 +1589,7 @@ suite('Bugs / regression tests', () => {
|
||||
windows: {
|
||||
command: 'powershell',
|
||||
options: {
|
||||
cwd: '${workspaceRoot}'
|
||||
cwd: '${workspaceFolder}'
|
||||
},
|
||||
tasks: [
|
||||
{
|
||||
@@ -1612,7 +1612,7 @@ suite('Bugs / regression tests', () => {
|
||||
osx: {
|
||||
command: '/bin/bash',
|
||||
options: {
|
||||
cwd: '${workspaceRoot}'
|
||||
cwd: '${workspaceFolder}'
|
||||
},
|
||||
tasks: [
|
||||
{
|
||||
@@ -1633,14 +1633,14 @@ suite('Bugs / regression tests', () => {
|
||||
builder.task('composeForDebug', 'powershell').
|
||||
command().suppressTaskName(true).
|
||||
args(['-ExecutionPolicy', 'RemoteSigned', '.\\dockerTask.ps1', '-ComposeForDebug', '-Environment', 'debug']).
|
||||
options({ cwd: '${workspaceRoot}' }).
|
||||
options({ cwd: '${workspaceFolder}' }).
|
||||
presentation().echo(true).reveal(Tasks.RevealKind.Always);
|
||||
testConfiguration(external, builder);
|
||||
} else if (Platform.isMacintosh) {
|
||||
builder.task('composeForDebug', '/bin/bash').
|
||||
command().suppressTaskName(true).
|
||||
args(['-c', './dockerTask.sh composeForDebug debug']).
|
||||
options({ cwd: '${workspaceRoot}' }).
|
||||
options({ cwd: '${workspaceFolder}' }).
|
||||
presentation().reveal(Tasks.RevealKind.Always);
|
||||
testConfiguration(external, builder);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user