@@ -93,7 +93,7 @@ export class CodeWatcher implements ICodeWatcher {
9393 return this . codeLenses ;
9494 }
9595
96- // IANHU: Add Telemetry
96+ @ captureTelemetry ( Telemetry . DebugCurrentCell )
9797 public async debugCurrentCell ( ) {
9898 if ( ! this . documentManager . activeTextEditor || ! this . documentManager . activeTextEditor . document ) {
9999 return Promise . resolve ( ) ;
@@ -260,42 +260,6 @@ export class CodeWatcher implements ICodeWatcher {
260260 }
261261 }
262262
263- // IANHU: Duplicating too much with run commands, perhaps debug is a parameter on run?
264- //private async debugMatchingCell(range: Range, advance?: boolean) {
265- //const currentRunCellLens = this.getCurrentCellLens(range.start);
266- //const nextRunCellLens = this.getNextCellLens(range.start);
267-
268- //if (currentRunCellLens) {
269- //// Move the next cell if allowed.
270- //if (advance) {
271- //// Either use the next cell that we found, or add a new one into the document
272- //let nextRange: Range;
273- //if (!nextRunCellLens) {
274- //nextRange = this.createNewCell(currentRunCellLens.range);
275- //} else {
276- //nextRange = nextRunCellLens.range;
277- //}
278-
279- //if (nextRange) {
280- //this.advanceToRange(nextRange);
281- //}
282- //}
283-
284- //// Run the cell after moving the selection
285- //if (this.document) {
286- //// Use that to get our code.
287- //const code = this.document.getText(currentRunCellLens.range);
288-
289- //try {
290- //const activeInteractiveWindow = await this.interactiveWindowProvider.getOrCreateActive();
291- //await activeInteractiveWindow.addCode(code, this.getFileName(), range.start.line, this.documentManager.activeTextEditor, true);
292- //} catch (err) {
293- //this.handleError(err);
294- //}
295- //}
296- //}
297- //}
298-
299263 private async runMatchingCell ( range : Range , advance ?: boolean , debug ?: boolean ) {
300264 const currentRunCellLens = this . getCurrentCellLens ( range . start ) ;
301265 const nextRunCellLens = this . getNextCellLens ( range . start ) ;
0 commit comments