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

Commit 54d8a6b

Browse files
committed
Prefer locked context over active item
1 parent 62f5f71 commit 54d8a6b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lib/github-package.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,12 +598,17 @@ export default class GithubPackage {
598598
}
599599
}
600600

601-
// 2 - Follow the active workspace pane item.
601+
// 2 - Use the currently locked context, if one is present.
602+
if (this.lockedContext) {
603+
return this.lockedContext;
604+
}
605+
606+
// 3 - Follow the active workspace pane item.
602607
if (activeItemWorkdir) {
603608
return this.contextPool.getContext(activeItemWorkdir);
604609
}
605610

606-
// 3 - The first open project.
611+
// 4 - The first open project.
607612
if (firstProjectWorkdir) {
608613
return this.contextPool.getContext(firstProjectWorkdir);
609614
}

0 commit comments

Comments
 (0)