diff --git a/CHANGELOG.md b/CHANGELOG.md index d72dac5..7bd4524 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 > **Note**: odd version numbers, for example, `0.13.0`, are not included in this changelog. They are used to test the new features and fixes before the final release. -## [0.23.1] - Unreleased +## [0.23.2] - Unreleased ### Added: @@ -17,6 +17,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Snippets: Updated all snippets to use `v0.28.0` schema +### Fixed: + +- Detection: Fixed issue with version not showing correctly when log level set lower than information + ## [0.22.1] - 2025-05-02 ### Added: diff --git a/package-lock.json b/package-lock.json index b2f7d29..f5d9f6f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "dev-proxy-toolkit", - "version": "0.23.1", + "version": "0.23.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "dev-proxy-toolkit", - "version": "0.23.1", + "version": "0.23.2", "dependencies": { "json-to-ast": "^2.1.0" }, diff --git a/package.json b/package.json index 58ab162..a16a62a 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "dev-proxy-toolkit", "displayName": "Dev Proxy Toolkit", "description": "Makes it easy to create and update Dev Proxy configuration files.", - "version": "0.23.1", + "version": "0.23.2", "publisher": "garrytrinder", "engines": { "vscode": "^1.89.0" diff --git a/src/detect.ts b/src/detect.ts index 87d14bc..2925b03 100644 --- a/src/detect.ts +++ b/src/detect.ts @@ -7,7 +7,9 @@ import * as vscode from 'vscode'; export const getVersion = async (devProxyExe: string) => { try { const version = await executeCommand(`${devProxyExe} --version`); - return version.trim(); + const versionLines = version.trim().split('\n'); + const lastLine = versionLines[versionLines.length - 1]; + return lastLine.trim(); } catch (error) { return ""; }