Skip to content

Commit 2e0a058

Browse files
committed
✨ Updates Module Implementation
1 parent e69ace9 commit 2e0a058

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/poshy-wrap-vscode.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ $ErrorActionPreference = "Stop"
33
Set-StrictMode -Version Latest
44

55

6-
if ((-not $Env:VSCODE) -and (-not (Test-Command code)) -and (-not $Global:PWSHRC_FORCE_MODULES_EXPORT_UNSUPPORTED)) {
6+
if ((-not $Env:VSCODE) -and (-not (Test-Command code)) -and (-not (Get-Variable -Name PWSHRC_FORCE_MODULES_EXPORT_UNSUPPORTED -Scope Global -ValueOnly -ErrorAction SilentlyContinue))) {
77
return
88
}
99

0 commit comments

Comments
 (0)