Skip to content

Loglevel diagnostic is deprecated #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
notpeter opened this issue May 1, 2025 · 0 comments · Fixed by #11
Closed

Loglevel diagnostic is deprecated #10

notpeter opened this issue May 1, 2025 · 0 comments · Fixed by #11

Comments

@notpeter
Copy link
Contributor

notpeter commented May 1, 2025

On LSP startup I get the following warning:

Microsoft.PowerShell.EditorServices.Logging.HostLoggerAdapter: The log level 'Diagnostic' is deprecated and will be removed in a future release. Please update your settings or command line options to use one of the following options: 'Trace', 'Debug', 'Information', 'Warning', 'Error', 'Critical'. |

Here's where the extension passes -LogLevel Diagnostic

let command = format!("Import-Module (Join-Path '{bundle_path}' 'PowerShellEditorServices/PowerShellEditorServices.psd1'); Start-EditorServices -Stdio -SessionDetailsPath '{bundle_path}/powershell-es.session.json' -LogPath '{bundle_path}/logs' -FeatureFlags @() -AdditionalModules @() -HostName zed -HostProfileId 0 -HostVersion 1.0.0 -LogLevel Diagnostic");

Looks like Diagnostic was replaced with Trace here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant