Skip to content

Commit b8cca29

Browse files
authored
Ensure query history state is persisted after new query is added (#1451)
1 parent 4cbf104 commit b8cca29

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

extensions/ql-vscode/src/query-history.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,14 +560,16 @@ export class QueryHistoryManager extends DisposableObject {
560560
}
561561

562562
private registerToRemoteQueriesEvents() {
563-
const queryAddedSubscription = this.remoteQueriesManager.onRemoteQueryAdded(event => {
563+
const queryAddedSubscription = this.remoteQueriesManager.onRemoteQueryAdded(async (event) => {
564564
this.addQuery({
565565
t: 'remote',
566566
status: QueryStatus.InProgress,
567567
completed: false,
568568
queryId: event.queryId,
569569
remoteQuery: event.query,
570570
});
571+
572+
await this.refreshTreeView();
571573
});
572574

573575
const queryRemovedSubscription = this.remoteQueriesManager.onRemoteQueryRemoved(async (event) => {

0 commit comments

Comments
 (0)