Skip to content

Commit

Permalink
Merge 90aefa4 into c6cbe31
Browse files Browse the repository at this point in the history
  • Loading branch information
Aditya Bist committed Feb 20, 2020
2 parents c6cbe31 + 90aefa4 commit 1b76b47
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/models/sqlOutputContentProvider.ts
Expand Up @@ -284,17 +284,17 @@ export class SqlOutputContentProvider {
*/
public onDidCloseTextDocument(doc: vscode.TextDocument): void {
for (let [key, value] of this._queryResultsMap.entries()) {
// closed text document related to a results window we are holding
// closes text document related to a results window we are holding
if (doc.uri.toString(true) === value.queryRunner.uri) {
value.flaggedForDeletion = true;
}

// "closed" a results window we are holding
// "closes" a results window we are holding
if (doc.uri.toString(true) === key) {
value.timeout = this.setRunnerDeletionTimeout(key);
this.closeResultsTab(doc.uri.toString());
}
}
this.closeResultsTab(doc.uri.toString());
}

/**
Expand Down Expand Up @@ -411,7 +411,6 @@ export class SqlOutputContentProvider {
let controller = this._panels.get(uri);
controller.dispose();
this._panels.delete(uri);
this._queryResultsMap.delete(uri);
}

// PRIVATE HELPERS /////////////////////////////////////////////////////
Expand Down

0 comments on commit 1b76b47

Please sign in to comment.