Show tagged global records in workspace views

This commit is contained in:
2026-06-28 04:00:50 +08:00
parent 4a1550acf6
commit 8010d6c601
4 changed files with 47 additions and 2 deletions
+4 -1
View File
@@ -387,10 +387,13 @@
}
return api.settings.read().then(function (settings) {
var scopedEvents = normalizeStoredEvents((settings || {})[scope.key], scope.key);
var globalEvents = normalizeStoredEvents((settings || {})[GLOBAL_KEY], GLOBAL_KEY).filter(function (item) {
return item.workspaceRootPath === scope.workspaceRoot;
});
var legacyEvents = normalizeStoredEvents((settings || {})[LEGACY_KEY], LEGACY_KEY).filter(function (item) {
return item.workspaceRootPath === scope.workspaceRoot;
});
events = sortEvents(scopedEvents.concat(legacyEvents));
events = sortEvents(scopedEvents.concat(globalEvents, legacyEvents));
}).catch(function (err) {
statusText = 'Could not load activity: ' + (err && err.message ? err.message : String(err));
statusClass = 'error';
+4 -1
View File
@@ -421,10 +421,13 @@
}
return api.settings.read().then(function (settings) {
var scopedCaptures = normalizeStoredCaptures((settings || {})[scope.key], scope.key);
var globalCaptures = normalizeStoredCaptures((settings || {})[GLOBAL_KEY], GLOBAL_KEY).filter(function (item) {
return item.workspaceRootPath === scope.workspaceRoot;
});
var legacyCaptures = normalizeStoredCaptures((settings || {})[LEGACY_KEY], LEGACY_KEY).filter(function (item) {
return item.workspaceRootPath === scope.workspaceRoot;
});
captures = sortCaptures(scopedCaptures.concat(legacyCaptures));
captures = sortCaptures(scopedCaptures.concat(globalCaptures, legacyCaptures));
if (!selectedId && captures[0]) selectedId = captures[0].captureId;
}).catch(function (err) {
statusText = 'Could not load inbox: ' + (err && err.message ? err.message : String(err));