Skip to content

Commit 208fbe8

Browse files
authored
Merge pull request #11 from aGitForEveryone/bugfix/powershell-integration
Added section to ZooCode PowerShell profile that runs JetBrains PowerShell activation scripts
2 parents 738db6f + 34d98b8 commit 208fbe8

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • jetbrains_plugin/src/main/resources/run-vs-agent-shell-integrations/vscode-powershell

‎jetbrains_plugin/src/main/resources/run-vs-agent-shell-integrations/vscode-powershell/profile.ps1‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ if ($env:VSCODE_INJECTION -eq "1") {
4242
$env:VSCODE_INJECTION = $null
4343
}
4444

45+
$jetbrainsScript = $env:ORIGINAL_POWERSHELL_SCRIPT
46+
if ($jetbrainsScript -and (Test-Path -LiteralPath $jetbrainsScript)) {
47+
. $jetbrainsScript
48+
}
49+
$env:ORIGINAL_POWERSHELL_SCRIPT = $null
50+
4551
$Global:__VSCodeOriginalPrompt = $function:Prompt
4652
$Global:__LastHistoryId = -1
4753
$Global:__VSCodeIsInExecution = $false

0 commit comments

Comments
 (0)