removes unused vscode changes (#5533)

This commit is contained in:
Anthony Dresser
2019-05-21 21:48:57 -07:00
committed by GitHub
parent 48a6157efb
commit 2ca39b571a
10 changed files with 6 additions and 51 deletions

View File

@@ -122,11 +122,6 @@ export class ConnectionManagementService extends Disposable implements IConnecti
this._register(this._onAddConnectionProfile);
this._register(this._onDeleteConnectionProfile);
// Refresh editor titles when connections start/end/change to ensure tabs are colored correctly
this.onConnectionChanged(() => this.refreshEditorTitles());
this.onConnect(() => this.refreshEditorTitles());
this.onDisconnect(() => this.refreshEditorTitles());
}
public providerRegistered(providerId: string): boolean {
@@ -1219,7 +1214,6 @@ export class ConnectionManagementService extends Disposable implements IConnecti
public editGroup(group: ConnectionProfileGroup): Promise<any> {
return new Promise<string>((resolve, reject) => {
this._connectionStore.editGroup(group).then(groupId => {
this.refreshEditorTitles();
this._onAddConnectionProfile.fire(undefined);
resolve(null);
}).catch(err => {
@@ -1339,12 +1333,6 @@ export class ConnectionManagementService extends Disposable implements IConnecti
return matchingGroup.color;
}
private refreshEditorTitles(): void {
if (this._editorGroupService instanceof EditorPart) {
this._editorGroupService.refreshEditorTitles();
}
}
public removeConnectionProfileCredentials(originalProfile: IConnectionProfile): IConnectionProfile {
return this._connectionStore.getProfileWithoutPassword(originalProfile);
}