You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const all = services.shared.workspace.IndexManager.allElements();
const toWriteX = new MultiMap<string, SerDesc>();
for (const d of all) {
toWriteX.add(d.documentUri.toString(), {
name: d.name,
type: d.type,
path: d.path,
});
}
const toWrite = [];
for (const e of toWriteX.keys()) {
toWrite.push([e, toWriteX.get(e)]);
}
with
async sideloadIndex(exportsList: [string,SerDesc[]][]) {
for (const [uri, exports] of exportsList) {
// TODO is this always correct
const ux = URI.parse(uri);
this.symbolIndex.set(
uri,
exports.map((e) => ({
type: e.type,
name: e.name,
documentUri: ux,
path: e.path,
}))
);
this.symbolByTypeIndex.clear(uri);
}
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
hi, is there somewhere a util to serialize and deserialize
AstNodeDescriptionsAll reactions