Skip to content

Commit 8ffa087

Browse files
committed
Send non-prerelease version to PowerShell Editor Services
1 parent 107763a commit 8ffa087

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/session.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ export class SessionManager {
9393
.packageJSON
9494
.version;
9595

96+
// Fix the host version so that PowerShell can consume it.
97+
// This is needed when the extension uses a prerelease
98+
// version string like 0.9.1-insiders-1234.
99+
this.hostVersion = this.hostVersion.split('-')[0];
100+
96101
this.registerCommands();
97102
this.createStatusBarItem();
98103
}

0 commit comments

Comments
 (0)