We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e69ace9 commit 2e0a058Copy full SHA for 2e0a058
src/poshy-wrap-vscode.psm1
@@ -3,7 +3,7 @@ $ErrorActionPreference = "Stop"
3
Set-StrictMode -Version Latest
4
5
6
-if ((-not $Env:VSCODE) -and (-not (Test-Command code)) -and (-not $Global:PWSHRC_FORCE_MODULES_EXPORT_UNSUPPORTED)) {
+if ((-not $Env:VSCODE) -and (-not (Test-Command code)) -and (-not (Get-Variable -Name PWSHRC_FORCE_MODULES_EXPORT_UNSUPPORTED -Scope Global -ValueOnly -ErrorAction SilentlyContinue))) {
7
return
8
}
9
0 commit comments