Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register container on load of all the files #822

Merged
10 changes: 8 additions & 2 deletions src/web/client/common/worker/webworker.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ class AzureFluidClient {
}
}

let intital = false;

async function loadContainer(config, swpId, entityInfo) {
try {
const { container, audience, map } =
Expand All @@ -88,8 +90,12 @@ async function loadContainer(config, swpId, entityInfo) {

if (audience && myself) {
const myConnectionId = audience['container'].clientId;
const entityIdObj = new Array(entityInfo.rootWebPageId);
selectionSharedMap.set(myConnectionId, entityIdObj);
if (intital) {
const entityIdObj = new Array(entityInfo.rootWebPageId);
selectionSharedMap.set(myConnectionId, entityIdObj);
} else {
intital = true;
}
}

audience.on("memberRemoved", (clientId, member) => {
Expand Down
2 changes: 1 addition & 1 deletion src/web/client/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ export function processWorkspaceStateChanges(context: vscode.ExtensionContext) {
entityInfo
});
}
WebExtensionContext.quickPickProvider.updateQuickPickItems(entityInfo);
WebExtensionContext.quickPickProvider.refresh();
}
}
}
Expand Down
Loading