transient workspaces - add tests (#119695)
This commit is contained in:
parent
49e1f99198
commit
482da3fb80
1 changed files with 8 additions and 0 deletions
|
@ -242,6 +242,10 @@ flakySuite('WorkspacesManagementMainService', () => {
|
|||
|
||||
const resolvedInvalid = await service.resolveLocalWorkspace(workspace.configPath);
|
||||
assert.ok(!resolvedInvalid);
|
||||
|
||||
fs.writeFileSync(workspace.configPath.fsPath, JSON.stringify({ transient: true, folders: [] })); // transient worksapce
|
||||
const resolvedTransient = await service.resolveLocalWorkspace(workspace.configPath);
|
||||
assert.ok(resolvedTransient?.transient);
|
||||
});
|
||||
|
||||
test('resolveWorkspaceSync', async () => {
|
||||
|
@ -261,6 +265,10 @@ flakySuite('WorkspacesManagementMainService', () => {
|
|||
|
||||
const resolvedInvalid = service.resolveLocalWorkspaceSync(workspace.configPath);
|
||||
assert.ok(!resolvedInvalid);
|
||||
|
||||
fs.writeFileSync(workspace.configPath.fsPath, JSON.stringify({ transient: true, folders: [] })); // transient worksapce
|
||||
const resolvedTransient = service.resolveLocalWorkspaceSync(workspace.configPath);
|
||||
assert.ok(resolvedTransient?.transient);
|
||||
});
|
||||
|
||||
test('resolveWorkspaceSync (support relative paths)', async () => {
|
||||
|
|
Loading…
Reference in a new issue