Last active
April 27, 2017 03:56
-
-
Save gerane/e56382c61b83d3b06a2da75597471bef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Register-EditorCommand ` | |
-Name "Demo.Editors" ` | |
-DisplayName "Editors Demo" ` | |
-SuppressOutput ` | |
-ScriptBlock { | |
param([Microsoft.PowerShell.EditorServices.Extensions.EditorContext]$context) | |
$SelectedText = $Context.CurrentFile.GetText($context.SelectedRange) | |
New-TestFromText -Text $SelectedText | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment