Pārlūkot izejas kodu

Adds more logging

main
Eric Amodio pirms 5 gadiem
vecāks
revīzija
8d38b7ba66
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. +3
    -0
      src/annotations/lineAnnotationController.ts

+ 3
- 0
src/annotations/lineAnnotationController.ts Parādīt failu

@ -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: {
@ -70,6 +71,7 @@ export class LineAnnotationController implements Disposable {
return !this._enabled || this._suspended !== undefined;
}
@log()
resume(reason: 'debugging' | 'user' = 'user') {
this.setLineTracker(true);
@ -92,6 +94,7 @@ export class LineAnnotationController implements Disposable {
return false;
}
@log()
suspend(reason: 'debugging' | 'user' = 'user') {
this.setLineTracker(false);

Notiek ielāde…
Atcelt
Saglabāt