Browse Source

Adds more logging

main
Eric Amodio 5 years ago
parent
commit
8d38b7ba66
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/annotations/lineAnnotationController.ts

+ 3
- 0
src/annotations/lineAnnotationController.ts View File

@ -15,6 +15,7 @@ import { isTextEditor } from '../constants';
import { Container } from '../container'; import { Container } from '../container';
import { LinesChangeEvent } from '../trackers/gitLineTracker'; import { LinesChangeEvent } from '../trackers/gitLineTracker';
import { Annotations } from './annotations'; import { Annotations } from './annotations';
import { log } from '../system';
const annotationDecoration: TextEditorDecorationType = window.createTextEditorDecorationType({ const annotationDecoration: TextEditorDecorationType = window.createTextEditorDecorationType({
after: { after: {
@ -70,6 +71,7 @@ export class LineAnnotationController implements Disposable {
return !this._enabled || this._suspended !== undefined; return !this._enabled || this._suspended !== undefined;
} }
@log()
resume(reason: 'debugging' | 'user' = 'user') { resume(reason: 'debugging' | 'user' = 'user') {
this.setLineTracker(true); this.setLineTracker(true);
@ -92,6 +94,7 @@ export class LineAnnotationController implements Disposable {
return false; return false;
} }
@log()
suspend(reason: 'debugging' | 'user' = 'user') { suspend(reason: 'debugging' | 'user' = 'user') {
this.setLineTracker(false); this.setLineTracker(false);

Loading…
Cancel
Save