Skip to content

Commit 871c51f

Browse files
authored
Log the current Swift extension version on activation (#1813)
I noticed we don't actually print the current extension version anywhere in the logs, making the Capture Diagnostics command less useful. Print the version of the extension the user is running in the log line printed during extension activation.
1 parent 13cd4a4 commit 871c51f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/extension.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ export async function activate(context: vscode.ExtensionContext): Promise<Api> {
6161
"swift-vscode-extension.log"
6262
);
6363
context.subscriptions.push(logger);
64-
logger.info("Activating Swift for Visual Studio Code...");
64+
logger.info(
65+
`Activating Swift for Visual Studio Code ${context.extension.packageJSON.version}...`
66+
);
6567

6668
checkAndWarnAboutWindowsSymlinks(logger);
6769

0 commit comments

Comments
 (0)