Skip to content

Commit a000330

Browse files
chore: call RefreshContainers after discovery has finished
This makes the experience nicer when starting the workspace. It makes found devcontainers become visible on the website sooner and at a more consistent speed (as it no longer relies on the updaterLoop).
1 parent 2f13214 commit a000330

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

agent/agentcontainers/api.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,10 @@ func (api *API) discover() {
419419
if err := api.discoverDevcontainerProjects(); err != nil {
420420
api.logger.Error(api.ctx, "discovering dev container projects", slog.Error(err))
421421
}
422+
423+
if err := api.RefreshContainers(api.ctx); err != nil {
424+
api.logger.Error(api.ctx, "refreshing containers after discovery", slog.Error(err))
425+
}
422426
}
423427

424428
func (api *API) discoverDevcontainerProjects() error {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy