File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -85,6 +85,9 @@ export class DiagnosticRenderer {
8585 ExtensionApi . diagnostics . diagnosticsUpdated ( this . onDiagnosticUpdated , this , ctx . subscriptions ) ;
8686
8787 workspace . onDidChangeTextDocument ( ( { document } ) => {
88+ if ( document . uri . scheme !== 'file' ) {
89+ return ;
90+ }
8891 // Clear bug step decorations when there are unpersisted changes in the current active text editor.
8992 const editor = window . activeTextEditor ;
9093 if ( document . uri . fsPath === editor ?. document . uri . fsPath ) {
Original file line number Diff line number Diff line change @@ -113,7 +113,6 @@ export class ReportsView implements TreeDataProvider<ReportTreeItem> {
113113 private treeItems : Map < string , ReportTreeItem > = new Map ( ) ;
114114 private selectedTreeItems : ReportTreeItem [ ] = [ ] ;
115115 private dynamicTreeItems : Map < string , ReportTreeItem > = new Map ( ) ;
116- private rootItems : ReportTreeItem [ ] = [ ] ;
117116
118117 constructor ( ctx : ExtensionContext ) {
119118 ctx . subscriptions . push ( this . _onDidChangeTreeData = new EventEmitter ( ) ) ;
@@ -122,7 +121,11 @@ export class ReportsView implements TreeDataProvider<ReportTreeItem> {
122121 if ( editor === undefined ) {
123122 return ;
124123 }
125- // this.refreshBugList();
124+
125+ if ( editor . document . uri . scheme !== 'file' ) {
126+ return ;
127+ }
128+
126129 this . updateStatus ( ) ;
127130 } , this , ctx . subscriptions ) ;
128131
@@ -171,6 +174,9 @@ export class ReportsView implements TreeDataProvider<ReportTreeItem> {
171174 } ) ;
172175
173176 workspace . onDidChangeTextDocument ( event => {
177+ if ( event . document . uri . scheme !== 'file' ) {
178+ return ;
179+ }
174180 if ( event ?. document === window . activeTextEditor ?. document ) {
175181 this . updateStatus ( ) ;
176182 }
You can’t perform that action at this time.
0 commit comments