| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Andy Jordan (@andyleejordan) I think you'll like this new utility function too for taking action on a config change: vscode-powershell/src/utils.ts Lines 89 to 113 in d617194 EDIT: I see a flaw here, will fix :) |
Sorry, something went wrong.
|
Currently pending microsoft/vscode-languageserver-node#1116 otherwise all of our log messages surface as "trace" with a header which is not ideal. |
Sorry, something went wrong.
|
This is going to be so nice though. |
Sorry, something went wrong.
|
No longer pending that, I wrote a new trace handler :). Currently debating if I want to add realtime logging changes based on changing the LSP setting to this PR or save that for another one. |
Sorry, something went wrong.
There was a problem hiding this comment.
Love it, yay.
Sorry, something went wrong.
| vscode.commands.registerCommand("PowerShell.RestartSession", async () => { await this.restartSession(); }), | ||
| vscode.commands.registerCommand(this.ShowSessionMenuCommandName, async () => { await this.showSessionMenu(); }), | ||
| vscode.workspace.onDidChangeConfiguration(async () => { await this.onConfigurationUpdated(); }), | ||
| vscode.workspace.onDidChangeConfiguration((e) => this.restartOnCriticalConfigChange(e)), |
There was a problem hiding this comment.
Ok nice that there's more information now.
Sorry, something went wrong.
… Thanks Copilot...
…ervices from options definitions
| Back | FazBrowse Home | New Git URL |
Implements the LogOutputWindow vscode API for PowerShell extension and PSES logs received via LSP.
Recording.2024-10-18.170017.mp4There will now be 3 separate log output panels:
PowerShell Messages logged for the PowerShell client and messages sent via the LSP adapter (prepended with [PSES])
PowerShell: Trace LSP Traces the LSP messages back and forth. Omnisharp messages will show up as traces here
PowerShell: Trace DAP Traces the DAP messages back and forth (already implemented)
This has several benefits:
Log windows do not appear unless enabled.
Right now the Log Verbosity with "Set Log Level" only controls the client-side logging level, but I hope in a future PR to be able to update the logging level of PSES dynamically. Has a minor LSP performance benefit but difficult to implement due to MEL not having dynamic log level change support natively, but I think I found a way with IOptionsMonitor to do it.
Should be merged with PowerShell/PowerShellEditorServices#2200
Fixes #5079