Skip to content

Commit 89dbefb

Browse files
committed
Fixes issue where remote commands are missing
1 parent fdc2e89 commit 89dbefb

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
2323
### Removed
2424
- Removes `gitlens.theme.*` settings - now using built-in theme support
2525

26+
### Fixed
27+
- Fixes issue where `Open * in Remote` commands are sometimes missing
28+
2629
## [6.1.2] - 2017-11-21
2730
### Fixed
2831
- Fixes [#207](https://github.com/eamodio/vscode-gitlens/issues/207) - Applying and deleting stashes suddenly stopped working

src/git/gitContextTracker.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,15 +156,14 @@ export class GitContextTracker extends Disposable {
156156
}
157157

158158
if (editor !== undefined) {
159-
const uri = editor.document.uri;
159+
this._context.uri = await GitUri.fromUri(editor.document.uri, this.git);
160160

161-
const repo = await this.git.getRepository(uri);
161+
const repo = await this.git.getRepository(this._context.uri);
162162
if (repo !== undefined) {
163163
this._context.repo = repo;
164164
this._context.repoDisposable = repo.onDidChange(this.onRepoChanged, this);
165165
}
166166

167-
this._context.uri = await GitUri.fromUri(uri, this.git);
168167
this._context.state.dirty = editor.document.isDirty;
169168
tracked = await this.git.isTracked(this._context.uri);
170169
}

0 commit comments

Comments
 (0)