Skip to content

Commit

Permalink
Merge pull request #18 from seawerst/master
Browse files Browse the repository at this point in the history
Adding VS Code as supported host
  • Loading branch information
Sebazzz committed Feb 22, 2024
2 parents 49b6fd4 + c5b0541 commit 415503b
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 415503b

Please sign in to comment.