Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- PostgreSQL: the selected schema now stays applied to editor queries after an automatic reconnect, so unqualified table names keep resolving against it instead of falling back to the default schema. (#1540)
- Import now detects the Setapp edition of TablePlus and reads connections from its data folder. It was reported as not installed before. (#1528)
- Favorite keyword suggestions now show in the editor autocomplete when you type the keyword. They were being dropped before reaching the popup.
- Editor autocomplete now refreshes when you switch schema, so it suggests the new schema's tables and columns instead of the previous one's.

## [0.47.0] - 2026-06-01

Expand Down
11 changes: 11 additions & 0 deletions TablePro/Views/Main/MainContentCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ final class MainContentCoordinator {
@ObservationIgnored private var terminationObserver: NSObjectProtocol?
@ObservationIgnored private var postConnectCancellable: AnyCancellable?
@ObservationIgnored private var externalFileModCancellable: AnyCancellable?
@ObservationIgnored private var schemaSwitchCancellable: AnyCancellable?

var fileConflictRequest: FileConflictRequest?

Expand Down Expand Up @@ -423,6 +424,15 @@ final class MainContentCoordinator {
self.checkOpenTabsForExternalModification()
}

schemaSwitchCancellable = services.appEvents.currentSchemaChanged
.receive(on: RunLoop.main)
.sink { [weak self] changedConnectionId in
guard let self, changedConnectionId == self.connectionId else { return }
Task { @MainActor in
await self.refreshTables()
}
}

self.filterCoordinator = FilterCoordinator(parent: self)
self.queryExecutionCoordinator = QueryExecutionCoordinator(parent: self)
self.paginationCoordinator = PaginationCoordinator(parent: self)
Expand Down Expand Up @@ -619,6 +629,7 @@ final class MainContentCoordinator {
}
postConnectCancellable = nil
externalFileModCancellable = nil
schemaSwitchCancellable = nil
fileWatcher?.stopWatching(connectionId: connectionId)
fileWatcher = nil
currentQueryTask?.cancel()
Expand Down
Loading