Skip to content

Commit

Permalink
Adding VS Code as supported host
Browse files Browse the repository at this point in the history
  • Loading branch information
seawerst committed Feb 22, 2024
1 parent 49b6fd4 commit c5b0541
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PSMenu/Private/Test-HostSupported.ps1
Original file line number Diff line number Diff line change
@@ -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."
}
}
}

0 comments on commit c5b0541

Please sign in to comment.