keep title up to date when connection changes (#15306)

This commit is contained in:
Alan Ren
2021-04-30 22:41:55 -07:00
committed by GitHub
parent 7a726e5dfa
commit 088d6353f0
4 changed files with 10 additions and 1 deletions

View File

@@ -156,6 +156,10 @@ export abstract class QueryEditorInput extends EditorInput implements IConnectab
}
}));
this._register(this.connectionManagementService.onConnectionChanged(e => {
this._onDidChangeLabel.fire();
}));
this._register(this.configurationService.onDidChangeConfiguration(e => {
if (e.affectedKeys.indexOf('queryEditor') > -1) {
this._onDidChangeLabel.fire();