Skip to content

Commit 951f35f

Browse files
committed
slightly improve how versions are shown
1 parent 3a9b7e4 commit 951f35f

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file.
44

55
# Unreleased
66

7+
- Improve how versions are shown
78
- Bump packages
89

910
## 3.1.0 - 2026-01-29

src/lib/sh.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function get_version(executable: string[]): {
2121
major: number
2222
minor: number
2323
patch: number
24-
rest: string
24+
rest: string | undefined
2525
} {
2626
const RENPY_VERSION_REGEX =
2727
/^Ren'Py (?<major>\d+)\.(?<minor>\d+)\.(?<patch>\d+)(?:\.(?<rest>.*))?\s*$/

src/lib/status_bar.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ export class StatusBar {
186186
}
187187

188188
if (executable) {
189-
version = get_version(executable)?.semver
189+
const v = get_version(executable)
190+
version = v.semver + (v.rest?.endsWith("+nightly") ? v.rest : "")
190191
}
191192

192193
if (!sdk_path || !executable || !version) {

0 commit comments

Comments
 (0)