ソースを参照

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

読み込み中…
キャンセル
保存