Skip to content

Commit

Permalink
Adds more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed Apr 1, 2019
1 parent 9d67f5a commit 8d38b7b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/annotations/lineAnnotationController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { isTextEditor } from '../constants';
import { Container } from '../container';
import { LinesChangeEvent } from '../trackers/gitLineTracker';
import { Annotations } from './annotations';
import { log } from '../system';

const annotationDecoration: TextEditorDecorationType = window.createTextEditorDecorationType({
after: {
Expand Down Expand Up @@ -70,6 +71,7 @@ export class LineAnnotationController implements Disposable {
return !this._enabled || this._suspended !== undefined;
}

@log()
resume(reason: 'debugging' | 'user' = 'user') {
this.setLineTracker(true);

Expand All @@ -92,6 +94,7 @@ export class LineAnnotationController implements Disposable {
return false;
}

@log()
suspend(reason: 'debugging' | 'user' = 'user') {
this.setLineTracker(false);

Expand Down

0 comments on commit 8d38b7b

Please sign in to comment.