We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a65330d commit 2af035cCopy full SHA for 2af035c
src/views/dependencyExplorer.ts
@@ -35,9 +35,8 @@ export class DependencyExplorer {
35
});
36
37
this._dataProvider.onDidChangeTreeData(() => {
38
- const currentDocument = window.activeTextEditor.document.uri;
39
- if (currentDocument) {
40
- this.reveal(currentDocument);
+ if (window.activeTextEditor) {
+ this.reveal(window.activeTextEditor.document.uri);
41
}
42
43
0 commit comments