From 3a0d77a62e1274425a70a0507de8dc26bd9c777a Mon Sep 17 00:00:00 2001 From: Garry Trinder Date: Wed, 21 May 2025 16:11:51 -0700 Subject: [PATCH 1/2] Increment version to 0.23.2 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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" From f99b887e2e1c0fd76d67de0ea8a683c3dcbff8cc Mon Sep 17 00:00:00 2001 From: Garry Trinder Date: Wed, 21 May 2025 16:12:25 -0700 Subject: [PATCH 2/2] Fix version detection. Closes #250 --- CHANGELOG.md | 6 +++++- src/detect.ts | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) 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/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 ""; }