Skip to content

Fix how we set execution policy #1208

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Feb 26, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update src/PowerShellEditorServices/Services/PowerShellContext/PowerS…
…hellContextService.cs

Co-Authored-By: Patrick Meinecke <SeeminglyScience@users.noreply.github.com>
  • Loading branch information
rjmholt and SeeminglyScience authored Feb 26, 2020
commit 069ee0962ba4f244e1eb6bccbc2542c85601970e
Original file line number Diff line number Diff line change
Expand Up @@ -2113,7 +2113,7 @@ private void SetExecutionPolicy()

if ((ExecutionPolicyScope)policyObject.Members["Scope"].Value == ExecutionPolicyScope.Process)
{
continue;
break;
}

var executionPolicy = (ExecutionPolicy)policyObject.Members["ExecutionPolicy"].Value;
Expand Down