if (options?.emitNotification !== false) {
// its later flush emit incremental updates and what makes
// `markSessionPersisted` a no-op. Provisional sessions
// intentionally skip both until they are persisted.
this._summaryNotifier.announce(key, summary);
this._onDidEmitNotification.fire({
type: 'root/sessionAdded',
channel: ROOT_STATE_URI,
summary,
});
}
return state;