Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Charlie Drage <charlie@charliedrage.com>
  • Loading branch information
cdrage committed Jun 26, 2023
1 parent 5315d2b commit ac29bf2
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ async function runProvider() {
runAtStart = false;
try {
await window.startProvider(provider.internalId);
// wait that status is updated
await new Promise<void>(resolve => {
window.events.receive('provider-change', () => {
resolve();
Expand All @@ -39,11 +38,7 @@ async function runProvider() {
runInProgress = false;
}
onMount(async () => {
// Get the autostart configuration setting. If it's disabled, we do *not* want to start the current container provider.
const autostart = await window.getConfigurationValue<boolean>('preferences.engine.autostart');
runAtStart = autostart || initializationContext.mode === InitializeAndStartMode;
onMount(() => {
if (runAtStart) {
runProvider();
}
Expand Down

0 comments on commit ac29bf2

Please sign in to comment.