Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 0e1d4c6

Browse files
committed
Use workdirCache for resolving projects without a git repo top level
1 parent 1622486 commit 0e1d4c6

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

lib/github-package.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,12 @@ export default class GithubPackage {
191191
const activeDirectory = this.project.getDirectories().find(directory => {
192192
return directory.contains(item.getBuffer().getPath());
193193
});
194-
const activeRepositoryPath = activeDirectory ? activeDirectory.getPath() : undefined;
195-
this.scheduleActiveContextUpdate({activeRepositoryPath}, {item});
194+
195+
this.workdirCache.find(activeDirectory.getPath()).then(activeRepositoryPath => {
196+
this.scheduleActiveContextUpdate({activeRepositoryPath}, {item});
197+
}).catch(e => {
198+
throw e;
199+
});
196200
};
197201

198202
const handleUseProjectFromActivePanelChange = newValue => {

0 commit comments

Comments
 (0)