瀏覽代碼

Fixes tracker on startup

Resolves chcken/egg issue with tracker and git service
main
Eric Amodio 7 年之前
父節點
當前提交
eeb195797b
共有 3 個文件被更改,包括 9 次插入0 次删除
  1. +1
    -0
      CHANGELOG.md
  2. +4
    -0
      src/container.ts
  3. +4
    -0
      src/trackers/documentTracker.ts

+ 1
- 0
CHANGELOG.md 查看文件

@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
## [Unreleased]
### Fixed
- Fixes [#247](https://github.com/eamodio/vscode-gitlens/issues/247) - File annotations button or ESC key does not turn off file annotations
- Fixes issue where sometimes blame context wasn't available for the open editor when starting vscode
## [7.5.4] - 2018-01-17
### Fixed

+ 4
- 0
src/container.ts 查看文件

@ -19,6 +19,10 @@ export class Container {
context.subscriptions.push(Container._tracker = new DocumentTracker<GitDocumentState>());
context.subscriptions.push(Container._git = new GitService());
// Since there is a chicken/egg problem with the DocumentTracker and the GitService, initialize the tracker once the GitService is loaded
Container._tracker.initialize();
context.subscriptions.push(Container._annotationController = new AnnotationController());
context.subscriptions.push(Container._currentLineController = new CurrentLineController());
context.subscriptions.push(Container._codeLensController = new CodeLensController());

+ 4
- 0
src/trackers/documentTracker.ts 查看文件

@ -63,6 +63,10 @@ export class DocumentTracker extends Disposable {
this.clear();
}
initialize() {
this.onActiveTextEditorChanged(window.activeTextEditor);
}
private onConfigurationChanged(e: ConfigurationChangeEvent) {
const initializing = configuration.initializing(e);

Loading…
取消
儲存