You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am sure this issue is with PowerShell Editor Services itself and does not reproduce in a standalone PowerShell instance, and is not an issue with my editor.
I have verified that I am using the latest version of PowerShell Editor Services.
Some diagnostic show in vscode with powershell extension but not in neovim.(warning, errors are fine)
Is there a default config I've missed for PSScriptAnalyzer or something else?
[START][2025-04-04 22:18:33] LSP logging initiated
[WARN][2025-04-04 22:18:33] ...lsp/handlers.lua:564 "Microsoft.PowerShell.EditorServices.Logging.HostLoggerAdapter: The log level 'Normal' 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'. | "
The text was updated successfully, but these errors were encountered:
I don't believe that rule is included by default. I was only able to get that warning to show by manually setting my PSScriptAnalyzerSettings.psd1 file to include @{ IncludeRules = @('PSAvoidTrailingWhitespace') }. Try that?
If you need to change the path to the PSScriptAnalyzerSettings.psd1 settings file for the project/workspace, the setting is powershell.scriptAnalysis.settingsPath and you'd have to pass that it in through your client's configuration.
Oh indeed, it's not a server problem. I think powershell extension does have some default rules enabled, PSAvoidTrailingWhitespace is just one of them(at least it is on my machine). Where can I find full list of these pre-included rules? Is it possible to set these rules as default even when PSScriptAnalyzerSettings.psd1 is absent in project root?
Prerequisites
Summary
Some diagnostic show in vscode with powershell extension but not in neovim.(warning, errors are fine)
Is there a default config I've missed for PSScriptAnalyzer or something else?
PowerShell Version
Editor Version
Configured by
nvim-lspconfig
LspInfo:
PowerShell Editor Services Version
idk how to attach it in neovim
Steps to Reproduce
Visuals
No response
Logs
The text was updated successfully, but these errors were encountered: