Skip to content

Loglevel diagnostic is deprecated #10

Closed
@notpeter

Description

@notpeter

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions