Browse Source

Fixes issue where remote commands are missing

main
Eric Amodio 7 years ago
parent
commit
89dbefb0e4
2 changed files with 5 additions and 3 deletions
  1. +3
    -0
      CHANGELOG.md
  2. +2
    -3
      src/git/gitContextTracker.ts

+ 3
- 0
CHANGELOG.md View File

@ -23,6 +23,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
### Removed
- Removes `gitlens.theme.*` settings - now using built-in theme support
### Fixed
- Fixes issue where `Open * in Remote` commands are sometimes missing
## [6.1.2] - 2017-11-21
### Fixed
- Fixes [#207](https://github.com/eamodio/vscode-gitlens/issues/207) - Applying and deleting stashes suddenly stopped working

+ 2
- 3
src/git/gitContextTracker.ts View File

@ -156,15 +156,14 @@ export class GitContextTracker extends Disposable {
}
if (editor !== undefined) {
const uri = editor.document.uri;
this._context.uri = await GitUri.fromUri(editor.document.uri, this.git);
const repo = await this.git.getRepository(uri);
const repo = await this.git.getRepository(this._context.uri);
if (repo !== undefined) {
this._context.repo = repo;
this._context.repoDisposable = repo.onDidChange(this.onRepoChanged, this);
}
this._context.uri = await GitUri.fromUri(uri, this.git);
this._context.state.dirty = editor.document.isDirty;
tracked = await this.git.isTracked(this._context.uri);
}

Loading…
Cancel
Save