Archived
1
0

feat: add version of Code OSS to output (#4925)

Show the bundled version of Code OSS in the text-based output
for --version and --help, in addition to the JSON output
(--version --json)

Closes: #4874
This commit is contained in:
Jonathan Yu
2022-03-01 12:20:43 -08:00
committed by GitHub
parent 506d3f43ed
commit 2c785779b5
3 changed files with 9 additions and 13 deletions

View File

@ -60,7 +60,9 @@ describe("constants", () => {
})
it("should return a human-readable version string", () => {
expect(constants.getVersionString()).toStrictEqual(`${mockPackageJson.version} ${mockPackageJson.commit}`)
expect(constants.getVersionString()).toStrictEqual(
`${mockPackageJson.version} ${mockPackageJson.commit} with Code ${mockCodePackageJson.version}`,
)
})
it("should return a machine-readable version string", () => {
@ -124,7 +126,7 @@ describe("constants", () => {
it("should return a human-readable version string", () => {
// this string is not super useful
expect(constants.getVersionString()).toStrictEqual("development development")
expect(constants.getVersionString()).toStrictEqual("development development with Code development")
})
it("should return a machine-readable version string", () => {