Skip to content

Commit 75ec7fd

Browse files
Detect unpushed changes
1 parent 7239875 commit 75ec7fd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

vscode-ext/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"publisher": "solarspace",
44
"displayName": "Solar Space",
55
"description": "Sharable URLs for GitHub codespaces",
6-
"version": "0.0.4",
6+
"version": "0.0.5",
77
"license": "GPL-3.0-only",
88
"engines": {
99
"vscode": "^1.90.0"

vscode-ext/src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ async function pendingChanges() : Promise<boolean> {
7777
const bPath = b.rootUri.path.split('/').length;
7878
return aPath - bPath;
7979
})[0];
80-
if (rootRepo.state.workingTreeChanges.length > 0 || rootRepo.state.indexChanges.length > 0) {
80+
if (rootRepo.state.workingTreeChanges.length > 0 || (rootRepo.state.HEAD?.ahead ?? 0 > 0)) {
8181
return true;
8282
}
8383
return false;

0 commit comments

Comments
 (0)