Skip to content

Commit ddff5df

Browse files
committed
Fix version detection. Closes #250
1 parent e40905f commit ddff5df

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
> **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.
99
10-
## [0.23.1] - Unreleased
10+
## [0.23.2] - Unreleased
1111

1212
### Added:
1313

@@ -17,6 +17,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1717

1818
- Snippets: Updated all snippets to use `v0.28.0` schema
1919

20+
### Fixed:
21+
22+
- Detection: Fixed issue with version not showing correctly when log level set lower than information
23+
2024
## [0.22.1] - 2025-05-02
2125

2226
### Added:

src/detect.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ import * as vscode from 'vscode';
77
export const getVersion = async (devProxyExe: string) => {
88
try {
99
const version = await executeCommand(`${devProxyExe} --version`);
10-
return version.trim();
10+
const versionLines = version.trim().split('\n');
11+
const lastLine = versionLines[versionLines.length - 1];
12+
return lastLine.trim();
1113
} catch (error) {
1214
return "";
1315
}

0 commit comments

Comments
 (0)