From c5b05415e4ca1a25dab6f79466b6c60e8fbeb812 Mon Sep 17 00:00:00 2001 From: Marc Date: Wed, 21 Feb 2024 19:02:02 -0500 Subject: [PATCH] Adding VS Code as supported host --- PSMenu/Private/Test-HostSupported.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PSMenu/Private/Test-HostSupported.ps1 b/PSMenu/Private/Test-HostSupported.ps1 index 3a92310..c0986a8 100644 --- a/PSMenu/Private/Test-HostSupported.ps1 +++ b/PSMenu/Private/Test-HostSupported.ps1 @@ -1,7 +1,7 @@ function Test-HostSupported() { - $Whitelist = @("ConsoleHost") + $Whitelist = @("ConsoleHost","Visual Studio Code Host") if ($Whitelist -inotcontains $Host.Name) { Throw "This host is $($Host.Name) and does not support an interactive menu." } -} \ No newline at end of file +}