瀏覽代碼

Adds more logging

main
Eric Amodio 5 年之前
父節點
當前提交
8d38b7ba66
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. +3
    -0
      src/annotations/lineAnnotationController.ts

+ 3
- 0
src/annotations/lineAnnotationController.ts 查看文件

@ -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);

Loading…
取消
儲存