Closed
Description
Prerequisites
- I have written a descriptive issue title.I have searched all issues to ensure it has not already been reported.
Summary
VS Code version 1.76 has a "Developer: Set Log Level..." command. I tried using the command while I had a PowerShell project loaded. But I did not see an explicit option for the PowerShell extension. I'm not sure if the extension outputs to a generic log or if the PowerShell extension should be represented on this list.
'Set Log Level' seems like a useful command. Please take a look at it and see if the PowerShell extension can support this VS Code command.
References
Proposed Design
No response
Metadata
Metadata
Assignees
Type
Projects
Status
Done
Activity
JustinGrote commentedon Apr 10, 2023
Thanks for the Issue Submit!
So this is a fairly new API that logging has to be explicitly written for:
https://code.visualstudio.com/updates/v1_73#_log-output-channel
The PowerShell extension has its own logger implementation and would need to be updated for this new API.
https://vscode.dev/github/powershell/vscode-powershell/blob/019a9f8cf8509eaffff994af82b804b39e19d883/src/logging.ts#L49
And then wired up so that
writeAtLevel
andwriteLine
and related code paths submit properly to the output channel api, then the existing log level setting would need to be retired.juvtib commentedon Apr 11, 2023
Thanks for taking a look at it.
For reference, here is that logging line without Visual Studio Code for the Web.
vscode-powershell/src/logging.ts
Line 49 in 019a9f8
fix(logging): "debug" messages not shown in "AWS Toolkit Logs" channel
fix(logging): no "debug" messages in "AWS Toolkit Logs" channel #4289
JustinGrote commentedon Nov 1, 2024
Working on this in #5065 but there's some upstream vscode bugs I need addressed.
andyleejordan commentedon Nov 15, 2024
Justin got this done!
3 remaining items