Skip to content

Commit 9f6e02f

Browse files
committed
Log VS Code version and process architecture information at startup
1 parent 53b9d82 commit 9f6e02f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/session.ts

+8
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,14 @@ export class SessionManager implements Middleware {
7777
.packageJSON
7878
.version;
7979

80+
let osBitness = this.platformDetails.isOS64Bit ? "64-bit" : "32-bit";
81+
let procBitness = this.platformDetails.isProcess64Bit ? "64-bit" : "32-bit";
82+
83+
this.log.write(
84+
`Visual Studio Code v${vscode.version} ${procBitness}`,
85+
`PowerShell Extension v${this.hostVersion}`,
86+
`Operating System: ${OperatingSystem[this.platformDetails.operatingSystem]} ${osBitness}\n`);
87+
8088
// Fix the host version so that PowerShell can consume it.
8189
// This is needed when the extension uses a prerelease
8290
// version string like 0.9.1-insiders-1234.

0 commit comments

Comments
 (0)