소스 검색

Add docstrings for exported CellManager functions

Jeremy Tuloup 5 년 전
부모
커밋
cea51438a5
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      src/handlers/cell.ts

+ 9 - 0
src/handlers/cell.ts

@@ -273,12 +273,21 @@ export namespace CellManager {
     type: SessionTypes;
   }
 
+  /**
+   * Highlight the current line of the frame in the given cell.
+   * @param cell The cell to highlight.
+   * @param frame The frame with the current line number.
+   */
   export function showCurrentLine(cell: Cell, frame: Callstack.IFrame) {
     const editor = cell.editor as CodeMirrorEditor;
     cleanupHighlight(cell);
     editor.editor.addLineClass(frame.line - 1, 'wrap', LINE_HIGHLIGHT_CLASS);
   }
 
+  /**
+   * Remove all line highlighting indicators for the given cell.
+   * @param cell The cell to cleanup.
+   */
   export function cleanupHighlight(cell: Cell) {
     if (!cell || cell.isDisposed) {
       return;