Saving a data source forgets its cached metadata before writing the new
settings, so the refresh that followed found nothing loaded and reloaded only
the source's first level; expanded schemas and tables stayed on Loading.
saveSource now takes what the tree had loaded before forgetting it and hands
that to refresh.
A metadata reply that arrived after its data source was deactivated, deleted, edited or after a project switch could bring back the Connected indicator and the cleared schemas, tables, columns or completion, and an obsolete chain could issue further requests. Requests now carry project / source / target lifetimes (requests.ts); forget() starts a new lifetime, and late replies, introspection steps and follow-up requests of an ended lifetime are dropped. Completed writes keep their result but no longer revive an old connection.
Co-authored-by: LunarFeller <[email protected]>