mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 17:31:43 +00:00
No-op extensions controller should mark initial extensions as loaded (#41300)
This was an oversight when I created the no-op extensions controller that was discovered while I fixed tests for #41129. When the no-op extensions controller is enabled, the actions sidebar is stuck in the loading state because the subscribeable is never updated. Since there are no extensions to load in this version, we can always mark them as loaded right away.
This commit is contained in:
parent
ade60d6dc7
commit
65daae3701
@ -32,6 +32,9 @@ export function createNoopController(platformContext: PlatformContext): Controll
|
||||
)
|
||||
const extensionHostAPI = pretendRemote(createExtensionHostAPI(extensionHostState))
|
||||
|
||||
// We don't have to load any extensions so we are already done
|
||||
extensionHostState.haveInitialExtensionsLoaded.next(true)
|
||||
|
||||
resolve(extensionHostAPI)
|
||||
})
|
||||
}),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user