Skip to content

Commit 0a272ff

Browse files
#183 clear data view status bar on preview panel close
1 parent 844c655 commit 0a272ff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/data.preview.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,11 @@ export class DataPreview {
215215
* Disposes this data preview resources.
216216
*/
217217
public dispose() {
218+
// clear status bar
219+
this._status.text = '';
220+
// remove this instance from tracked open data views
218221
previewManager.remove(this);
222+
// dispose related resources
219223
this._panel.dispose();
220224
while (this._disposables.length) {
221225
const item = this._disposables.pop();

0 commit comments

Comments
 (0)