Parcourir la source

Fixes tracker on startup

Resolves chcken/egg issue with tracker and git service
main
Eric Amodio il y a 7 ans
Parent
révision
eeb195797b
3 fichiers modifiés avec 9 ajouts et 0 suppressions
  1. +1
    -0
      CHANGELOG.md
  2. +4
    -0
      src/container.ts
  3. +4
    -0
      src/trackers/documentTracker.ts

+ 1
- 0
CHANGELOG.md Voir le fichier

@ -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 Voir le fichier

@ -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 Voir le fichier

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

Chargement…
Annuler
Enregistrer