Skip to content

Commit

Permalink
Request symbols only if document text in cell (#15601)
Browse files Browse the repository at this point in the history
  • Loading branch information
DonJayamanne committed Apr 26, 2024
1 parent d30ce93 commit d18d035
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/standalone/executionAnalysis/symbols.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,10 @@ export class NotebookDocumentSymbolTracker {
});

e.cellChanges.forEach((change) => {
this._requestCellSymbols(change.cell, false).then(noop, noop);
this._updateCellStatus(change.cell, CellExecutionStatus.Stale);
if (change.document) {
this._requestCellSymbols(change.cell, false).then(noop, noop);
this._updateCellStatus(change.cell, CellExecutionStatus.Stale);
}
});
}
})
Expand Down

0 comments on commit d18d035

Please sign in to comment.