Skip to content

Commit

Permalink
Add home path to debug logs (#16400)
Browse files Browse the repository at this point in the history
  • Loading branch information
DonJayamanne authored Jan 22, 2025
1 parent 9cd4ddb commit 06c8ae1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/extension.common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,12 @@ export async function initializeLoggers(
if (options?.platform) {
standardOutputChannel.appendLine(`Platform: ${options.platform} (${options.arch}).`);
}
standardOutputChannel.appendLine(`Home = ${options?.homePath}`);
standardOutputChannel.appendLine(`Temp Storage folder ${getDisplayPath(await getExtensionTempDir(context))}`);
if (!workspace.workspaceFolders || workspace.workspaceFolders.length === 0) {
standardOutputChannel.appendLine(`No workspace folder opened.`);
} else if (workspace.workspaceFolders.length === 1) {
standardOutputChannel.appendLine(
`Workspace folder ${getDisplayPath(workspace.workspaceFolders[0].uri)}, Home = ${options?.homePath}`
);
standardOutputChannel.appendLine(`Workspace folder ${getDisplayPath(workspace.workspaceFolders[0].uri)}`);
} else {
standardOutputChannel.appendLine(
`Multiple Workspace folders opened ${workspace.workspaceFolders
Expand Down

0 comments on commit 06c8ae1

Please sign in to comment.