Skip to content
This repository was archived by the owner on May 19, 2025. It is now read-only.

Commit c574ece

Browse files
committed
allow create on all OSes
Signed-off-by: lstocchi <[email protected]>
1 parent 60bca51 commit c574ece

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

src/extension.ts

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -402,20 +402,19 @@ async function createProvider(
402402

403403
extensionContext.subscriptions.push(provider);
404404

405-
// enable factory - only on mac atm as i'm using it for testing
406-
if (extensionApi.env.isMac) {
407-
provider.setContainerProviderConnectionFactory({
408-
create: (
409-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
410-
params: { [key: string]: any },
411-
logger?: extensionApi.Logger,
412-
token?: extensionApi.CancellationToken,
413-
) => {
414-
return createVM(macadam, params, logger, token);
415-
},
416-
creationDisplayName: 'Virtual machine',
417-
});
418-
}
405+
// enable factory
406+
provider.setContainerProviderConnectionFactory({
407+
create: (
408+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
409+
params: { [key: string]: any },
410+
logger?: extensionApi.Logger,
411+
token?: extensionApi.CancellationToken,
412+
) => {
413+
return createVM(macadam, params, logger, token);
414+
},
415+
creationDisplayName: 'Virtual machine',
416+
});
417+
419418

420419
return provider;
421420
}

0 commit comments

Comments
 (0)