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
{
include_configs=true,
pwsh_executable="pwsh",
pses_bundle_path-- Default path for PowerShell Editor Services bundle if installed through mason.
}
Powershell launch.json
Launch.json refers to powershell as type = PowerShell, but nvim-dap refers to the filetype, default = ps1.
Dap configurations are expected to be set for PowerShell, and will then work for PowerShell, ps1, psm1 filetypes.
Repl content color correction
Powershell Editor Services send back ANSI color coded error messages. These are not correctly parsed out of the box.
To fix this it is recommended to configure the following after the dapui is initialized:
localdapui=require("dapui")
dapui.setup()
dap.listeners.after.event_initialized["dapui_config"] =function()
dapui.open({})
require('dap-powershell').correct_repl_colors()
end
Custom dap configurations
If you call the require('dap-powershell').setup method it will create a few nvim-dap configuration entries.
These configurations are general purpose configurations suitable for many use cases, but you may need to customize the configurations.
To add your own entries, you can extend the dap.configurations.PowerShell list after calling the setup function: