mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
Await task config updates
This commit is contained in:
parent
e8f5186722
commit
2d536914ea
|
@ -80,8 +80,8 @@ import { assertNoRpc } from '../utils';
|
|||
// Set up dependsOn task by creating tasks.json since this is not possible via the API
|
||||
// Tasks API
|
||||
const tasksConfig = workspace.getConfiguration('tasks');
|
||||
tasksConfig.update('version', '2.0.0');
|
||||
tasksConfig.update('tasks', [
|
||||
await tasksConfig.update('version', '2.0.0', ConfigurationTarget.Workspace);
|
||||
await tasksConfig.update('tasks', [
|
||||
{
|
||||
label: 'taskToDependOn',
|
||||
type: 'shell',
|
||||
|
@ -125,7 +125,7 @@ import { assertNoRpc } from '../utils';
|
|||
assert.notStrictEqual(startEvent1.processId, startEvent2.processId);
|
||||
|
||||
// Clear out tasks config
|
||||
tasksConfig.update('tasks', []);
|
||||
await tasksConfig.update('tasks', []);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue