Microsoft.PowerShell.GPowerShell A strongly-typed resource class, for looking up localized strings, etc. Returns the cached ResourceManager instance used by this class. Overrides the current thread's CurrentUICulture property for all resource lookups using this strongly typed resource class. Looks up a localized string similar to _Open Add-on Tools Website. Looks up a localized string similar to Add. Looks up a localized string similar to _Add-ons. Looks up a localized string similar to An Add-on tool with the same control has already been added to the vertical or horizontal Add-on tools.. Looks up a localized string similar to An add-on tool with the following name has already been added to the vertical or horizontal add-on tools: {0}. Looks up a localized string similar to Alice Blue. Looks up a localized string similar to All Files. Looks up a localized string similar to Already running a command. Please wait.. Looks up a localized string similar to Alt. Looks up a localized string similar to Antique White. Looks up a localized string similar to Application status. Looks up a localized string similar to Aqua. Looks up a localized string similar to Aquamarine. Looks up a localized string similar to "{0}" should have at least one element.. Looks up a localized string similar to Value must be null.. Looks up a localized string similar to Argument '{0}' must be in the range: [{1},{2}].. Looks up a localized string similar to The argument: '{0}' with value '{1}' must be a full path.. Looks up a localized string similar to "{0}" should be greater than or equal to "{1}".. Looks up a localized string similar to Azure. Looks up a localized string similar to Backspace. Looks up a localized string similar to Beige. Looks up a localized string similar to Bisque. Looks up a localized string similar to Black. Looks up a localized string similar to Blanched Almond. Looks up a localized string similar to Blue. Looks up a localized string similar to Blue Violet. Looks up a localized string similar to Break. Looks up a localized string similar to Brown. Looks up a localized string similar to Burly Wood. Looks up a localized string similar to Cadet Blue. Looks up a localized string similar to _Cancel. Looks up a localized string similar to Cancel. Looks up a localized string similar to Cannot add more than {0} Add-on tools.. Looks up a localized string similar to Cannot add or change items in the collection.. Looks up a localized string similar to Cannot add past the maximum number of items.. Looks up a localized string similar to Cannot add submenus if the {0} property is not null.. Looks up a localized string similar to Cannot close unsaved file: '{0}'.. Looks up a localized string similar to Cannot create element because an exception occurred with the message: {0}.. Looks up a localized string similar to Cannot run script.. Looks up a localized string similar to Cannot run unsaved script.. Looks up a localized string similar to Cannot Find "{0}".. Looks up a localized string similar to Cannot get help for '{0}' while running a command.. Looks up a localized string similar to '{0}' is not available for Add-on tools, it is meant for script use only. You can use '{1}' to get or set the selected file.. Looks up a localized string similar to Cannot add this object to the collection. You can call the {0} method with no parameters or the {1} method.. Looks up a localized string similar to Cannot start "{0}". Interactive console applications are not supported. To run the application, use the Start-Process cmdlet or use "Start PowerShell.exe" from the File menu. To view/modify the list of blocked console applications, use {1}, or consult online help.. Looks up a localized string similar to Cannot modify collection. Looks up a localized string similar to Cannot open pane that has no visible tools. Looks up a localized string similar to Cannot recognize "{0}" as a {1} due to a format error.. Looks up a localized string similar to Cannot recognize "{0}" as a {1} due to an overflow error.. Looks up a localized string similar to Cannot remove saved file.. Looks up a localized string similar to Cannot save the file with the name of an already opened file.. Looks up a localized string similar to The file cannot be saved in the current encoding.. Looks up a localized string similar to {0} cannot be used for Untitled files, please use {1}.. Looks up a localized string similar to Cannot set object in the collection.. Looks up a localized string similar to Cannot show commands on remote session. Looks up a localized string similar to Cannot show command '{0}' while running a command.. Looks up a localized string similar to {0} - {1}. Looks up a localized string similar to CDATA not closed. Looks up a localized string similar to Chartreuse. Looks up a localized string similar to Chocolate. Looks up a localized string similar to Clear Console Pane. Looks up a localized string similar to _Stop. Looks up a localized string similar to C_lose PowerShell Tab. Looks up a localized string similar to Ctrl+W. Looks up a localized string similar to _Close. Looks up a localized string similar to Ctrl+F4. Looks up a localized string similar to Close Tool. Looks up a localized string similar to Col. Looks up a localized string similar to Collapse Script Pane. Looks up a localized string similar to This collection should contain at least one item.. Looks up a localized string similar to Commands. Looks up a localized string similar to {0} ({1}). Looks up a localized string similar to Completed. Looks up a localized string similar to _Computer:. Looks up a localized string similar to Co_nnect. Looks up a localized string similar to Console. Looks up a localized string similar to _Copy. Looks up a localized string similar to Ctrl+Ins. Looks up a localized string similar to {0} copied selected text. Unselect or use {1} to stop operation.. Looks up a localized string similar to Copy. Looks up a localized string similar to Coral. Looks up a localized string similar to Cornflower Blue. Looks up a localized string similar to Cornsilk. Looks up a localized string similar to You will be asked for credentials when you connect.. Looks up a localized string similar to Windows PowerShell ISE Credential Request. Looks up a localized string similar to Crimson. Looks up a localized string similar to Ctrl. Looks up a localized string similar to Cu_t. Looks up a localized string similar to Ctrl+X. Looks up a localized string similar to Shift+Del. Looks up a localized string similar to Cut. Looks up a localized string similar to Cyan. Looks up a localized string similar to Dark Blue. Looks up a localized string similar to Dark Cyan. Looks up a localized string similar to Dark Goldenrod. Looks up a localized string similar to Dark Gray. Looks up a localized string similar to Dark Green. Looks up a localized string similar to Dark Khaki. Looks up a localized string similar to Dark Magenta. Looks up a localized string similar to Dark Olive Green. Looks up a localized string similar to Dark Orange. Looks up a localized string similar to Dark Orchid. Looks up a localized string similar to Dark Red. Looks up a localized string similar to Dark Salmon. Looks up a localized string similar to Dark Sea Green. Looks up a localized string similar to Dark Slate Blue. Looks up a localized string similar to Dark Slate Gray. Looks up a localized string similar to Dark Turquoise. Looks up a localized string similar to Dark Violet. Looks up a localized string similar to DEBUG: {0}. Looks up a localized string similar to Stopped at: {0}. Looks up a localized string similar to _Debug. Looks up a localized string similar to Debug Prompt. Looks up a localized string similar to Deep Pink. Looks up a localized string similar to Deep Sky Blue. Looks up a localized string similar to Lucida Console. Looks up a localized string similar to 9. Looks up a localized string similar to Default options cannot be set.. Looks up a localized string similar to Microsoft Corporation. Looks up a localized string similar to {0} (advanced function). Looks up a localized string similar to {0} (advanced function) - complete. Looks up a localized string similar to Comment block. Looks up a localized string similar to {0} loop. Looks up a localized string similar to Simple {0} with 2 parameters. Looks up a localized string similar to Advanced {0} ({1}) with some {2} and some inline help fields. Looks up a localized string similar to Advanced {0} ({1}) with all {2} and all inline help fields. Looks up a localized string similar to {0} statement. Looks up a localized string similar to {0} exception handling. Looks up a localized string similar to Del. Looks up a localized string similar to End tag for element '{0}' expected. Looks up a localized string similar to Dim Gray. Looks up a localized string similar to *. Looks up a localized string similar to _Disable All Breakpoints. Looks up a localized string similar to _Disable Breakpoint. Looks up a localized string similar to Dodger Blue. Looks up a localized string similar to Down. Looks up a localized string similar to _Edit. Looks up a localized string similar to Editor. Looks up a localized string similar to Alt+Shift+Down. Looks up a localized string similar to Alt+Shift+Up. Looks up a localized string similar to Alt+Shift+Right. Looks up a localized string similar to Alt+Shift+Left. Looks up a localized string similar to Shift+Backspace. Looks up a localized string similar to Ctrl+Backspace. Looks up a localized string similar to Ctrl+Del. Looks up a localized string similar to Shift+Enter. Looks up a localized string similar to Ctrl+U. Looks up a localized string similar to Ctrl+Shift+U. Looks up a localized string similar to Ctrl+Alt+End. Looks up a localized string similar to Ctrl+Alt+Home. Looks up a localized string similar to Ctrl+End. Looks up a localized string similar to Ctrl+Right. Looks up a localized string similar to Ctrl+Left. Looks up a localized string similar to Ctrl+Home. Looks up a localized string similar to Ctrl+Y. Looks up a localized string similar to Alt+Shift+Backspace. Looks up a localized string similar to Ctrl+Down. Looks up a localized string similar to Ctrl+Up. Looks up a localized string similar to Ctrl+A. Looks up a localized string similar to Alt+Left. Looks up a localized string similar to Alt+Right. Looks up a localized string similar to Shift+Down. Looks up a localized string similar to Shift+Up. Looks up a localized string similar to Alt+Down. Looks up a localized string similar to Shift+PgDn. Looks up a localized string similar to Shift+PgUp. Looks up a localized string similar to Alt+Up. Looks up a localized string similar to Ctrl+Shift+End. Looks up a localized string similar to Shift+End. Looks up a localized string similar to Shift+Right. Looks up a localized string similar to Ctrl+Shift+Right. Looks up a localized string similar to Shift+Left. Looks up a localized string similar to Ctrl+Shift+Left. Looks up a localized string similar to Ctrl+Shift+Home. Looks up a localized string similar to Shift+Home. Looks up a localized string similar to Alt+Shift+T. Looks up a localized string similar to Ctrl+Z. Looks up a localized string similar to Alt+Backspace. Looks up a localized string similar to Element name not found. Looks up a localized string similar to _Enable All Breakpoints. Looks up a localized string similar to _Enable Breakpoint. Looks up a localized string similar to End. Looks up a localized string similar to End tag not closed. Looks up a localized string similar to Enter. Looks up a localized string similar to Windows PowerShell ISE - Error. Looks up a localized string similar to Intellisense.... Looks up a localized string similar to Tab Completion.... Looks up a localized string similar to An unexpected error has occurred and {0} must close. The problem might have been caused by an Add-on tool. Some Add-on tools can be added by your profile. To run Windows PowerShell ISE without running your profile, run "{1}".. Looks up a localized string similar to An unexpected error has occurred, and {0} must close.. Looks up a localized string similar to Error running profile: {0}. Looks up a localized string similar to E_xit. Looks up a localized string similar to Alt+F4. Looks up a localized string similar to F10. Looks up a localized string similar to F11. Looks up a localized string similar to F12. Looks up a localized string similar to F1. Looks up a localized string similar to F2. Looks up a localized string similar to F3. Looks up a localized string similar to F4. Looks up a localized string similar to F5. Looks up a localized string similar to F6. Looks up a localized string similar to F7. Looks up a localized string similar to F8. Looks up a localized string similar to F9. Looks up a localized string similar to Failed. Looks up a localized string similar to Failed to refresh. Message: '{0}'.. Looks up a localized string similar to _File. Looks up a localized string similar to A copy of this file is open in another PowerShell Tab. Changes made to this file will affect all open copies.. Looks up a localized string similar to {0}{1}{2} {3}. Looks up a localized string similar to You cannot edit any script files in Windows PowerShell ISE while the debugger is running. To edit a script, stop the debugger.. Looks up a localized string similar to {0}{1}. Looks up a localized string similar to The most recent {0} session did not close normally. All files {1} that were open during the previous session will be reopened.. Looks up a localized string similar to _Find in Script.... Looks up a localized string similar to Find in _selection. Looks up a localized string similar to _Find Next. Looks up a localized string similar to Find _Next in Script. Looks up a localized string similar to F3. Looks up a localized string similar to Find Pre_vious in Script. Looks up a localized string similar to Shift+F3. Looks up a localized string similar to Ctrl+F. Looks up a localized string similar to Find. Looks up a localized string similar to Fi_nd what:. Looks up a localized string similar to Find what text. Looks up a localized string similar to Firebrick. Looks up a localized string similar to Fixed Width. Looks up a localized string similar to Floral White. Looks up a localized string similar to Forest Green. Looks up a localized string similar to Fuchsia. Looks up a localized string similar to Gainsboro. Looks up a localized string similar to Display Call Stac_k. Looks up a localized string similar to Ctrl+Shift+D. Looks up a localized string similar to Ghost White. Looks up a localized string similar to Gold. Looks up a localized string similar to Goldenrod. Looks up a localized string similar to Go To _Console. Looks up a localized string similar to Ctrl+D. Looks up a localized string similar to Ctrl+I. Looks up a localized string similar to Go _to horizontal Add-on tool. Looks up a localized string similar to _Go To Line.... Looks up a localized string similar to Go To Line. Looks up a localized string similar to Ctrl+G. Looks up a localized string similar to Go to _Match. Looks up a localized string similar to Ctrl+Oem6. Looks up a localized string similar to Go to _Script Pane. Looks up a localized string similar to _Go to vertical Add-on tool. Looks up a localized string similar to Windows PowerShell ISE. Looks up a localized string similar to Gray. Looks up a localized string similar to Green. Looks up a localized string similar to Green Yellow. Looks up a localized string similar to _Help. Looks up a localized string similar to F1. Looks up a localized string similar to Hidden. Looks up a localized string similar to Hide Add-on Tools Pane. Looks up a localized string similar to Ctrl+Shift+H. Looks up a localized string similar to Hide Script Pane. Looks up a localized string similar to Hi_de Selected Horizontal Add-on Tool. Looks up a localized string similar to H_ide Selected Vertical Add-on Tool. Looks up a localized string similar to Ctrl+Shift+V. Looks up a localized string similar to Hit {0}. Looks up a localized string similar to Home. Looks up a localized string similar to Honeydew. Looks up a localized string similar to Horizontal add-ons. Looks up a localized string similar to Horizontal Add-on Tools Splitter. Looks up a localized string similar to Hot Pink. Looks up a localized string similar to (including recovered files) . Looks up a localized string similar to Indian Red. Looks up a localized string similar to Indigo. Looks up a localized string similar to Windows PowerShell ISE - Input. Looks up a localized string similar to input description. Looks up a localized string similar to input help message. Looks up a localized string similar to Ins. Looks up a localized string similar to Number not valid. Value must be an integer in the range [1,{0}].. Looks up a localized string similar to Segoe UI. Looks up a localized string similar to Ctrl+Space. Looks up a localized string similar to Intellisense timed out. Looks up a localized string similar to In the future, do not show this message. Looks up a localized string similar to The font name: '{0}' is not valid.. Looks up a localized string similar to Ivory. Looks up a localized string similar to Khaki. Looks up a localized string similar to Lavender Blush. Looks up a localized string similar to Lavender. Looks up a localized string similar to Lawn Green. Looks up a localized string similar to Left. Looks up a localized string similar to Lemon Chiffon. Looks up a localized string similar to Light Blue. Looks up a localized string similar to Light Coral. Looks up a localized string similar to Light Cyan. Looks up a localized string similar to Light Goldenrod Yellow. Looks up a localized string similar to Light Gray. Looks up a localized string similar to Light Green. Looks up a localized string similar to Light Pink. Looks up a localized string similar to Light Salmon. Looks up a localized string similar to Light Sea Green. Looks up a localized string similar to Light Sky Blue. Looks up a localized string similar to Light Slate Gray. Looks up a localized string similar to Light Steel Blue. Looks up a localized string similar to Light Yellow. Looks up a localized string similar to Lime. Looks up a localized string similar to Lime Green. Looks up a localized string similar to Linen. Looks up a localized string similar to Line Number:. Looks up a localized string similar to _List Breakpoints. Looks up a localized string similar to Ctrl+Shift+L. Looks up a localized string similar to Ln. Looks up a localized string similar to The application cannot start because it could not access the user settings file: '{0}'.. Looks up a localized string similar to Error loading source file '{0}' ({1}). Looks up a localized string similar to Magenta. Looks up a localized string similar to Main Menu. Looks up a localized string similar to Windows PowerShell ISE Main Window. Looks up a localized string similar to Manage Themes Button. Looks up a localized string similar to Maroon. Looks up a localized string similar to Match _case. Looks up a localized string similar to Medium Aquamarine. Looks up a localized string similar to Medium Blue. Looks up a localized string similar to Medium Orchid. Looks up a localized string similar to Medium Purple. Looks up a localized string similar to Medium Sea Green. Looks up a localized string similar to Medium Slate Blue. Looks up a localized string similar to Medium Spring Green. Looks up a localized string similar to Medium Turquoise. Looks up a localized string similar to Medium Violet Red. Looks up a localized string similar to The menu '{0}' has already been added to a parent menu.. Looks up a localized string similar to Midnight Blue. Looks up a localized string similar to Mint Cream. Looks up a localized string similar to Minus. Looks up a localized string similar to Misty Rose. Looks up a localized string similar to Moccasin. Looks up a localized string similar to Mov_e Selected Horizontal Add-on Tool to Vertical. Looks up a localized string similar to Move Script Pane Right.. Looks up a localized string similar to Move Script Pane Up.. Looks up a localized string similar to _Move Selected Vertical Add-on Tool to Horizontal. Looks up a localized string similar to This name is already in use.. Looks up a localized string similar to Navajo White. Looks up a localized string similar to Navy. Looks up a localized string similar to Nested Prompt. Looks up a localized string similar to New Remote _PowerShell Tab.... Looks up a localized string similar to New Remote PowerShell Tab. Looks up a localized string similar to Ctrl+Shift+R. Looks up a localized string similar to N_ew PowerShell Tab. Looks up a localized string similar to Ctrl+T. Looks up a localized string similar to _New. Looks up a localized string similar to Ctrl+N. Looks up a localized string similar to New Script. Looks up a localized string similar to No corresponding start element. Looks up a localized string similar to End tag not found. Looks up a localized string similar to No help is available for {0}.. Looks up a localized string similar to Not started. Looks up a localized string similar to ]. Looks up a localized string similar to _OK. Looks up a localized string similar to OK. Looks up a localized string similar to Old Lace. Looks up a localized string similar to Olive. Looks up a localized string similar to Olive Drab. Looks up a localized string similar to _Options.... Looks up a localized string similar to _Open.... Looks up a localized string similar to Ctrl+O. Looks up a localized string similar to Open Script. Looks up a localized string similar to Blue. Looks up a localized string similar to Green. Looks up a localized string similar to Hexadecimal. Looks up a localized string similar to Red. Looks up a localized string similar to (Custom Color). Looks up a localized string similar to (Customized Theme). Looks up a localized string similar to Are you sure you want to permanently delete '{0}'?. Looks up a localized string similar to The following errors occurred while validating the settings. Please correct them and try again: {0}. Looks up a localized string similar to The following errors occurred while importing the theme: {0}. Looks up a localized string similar to Export Theme. Looks up a localized string similar to The file you specified does not exist.. Looks up a localized string similar to Import Theme. Looks up a localized string similar to The font "{0}" specified in the theme file is not installed on your computer. The current font will be preserved.. Looks up a localized string similar to The font size "{0}" specified in the theme file is not in the valid range of {1} to {2}. The current font size will be preserved.. Looks up a localized string similar to ISE Color Themes ({0}). Looks up a localized string similar to The theme file exists but could not be imported. {0}. Looks up a localized string similar to Cancel. Looks up a localized string similar to Delete.... Looks up a localized string similar to Export.... Looks up a localized string similar to Import.... Looks up a localized string similar to Rename.... Looks up a localized string similar to The theme name cannot be empty or consist only of white space characters.. Looks up a localized string similar to Manage Themes. Looks up a localized string similar to "Number of recent files to show" must be between {0} and {1}.. Looks up a localized string similar to {0} (1). Looks up a localized string similar to Reset all settings to their default values?. Looks up a localized string similar to Restore Defaults Confirmation. Looks up a localized string similar to The theme cannot be renamed because another theme already exists with that name.. Looks up a localized string similar to Enter the new name for the theme:. Looks up a localized string similar to Rename Theme. Looks up a localized string similar to This is Character Data.. Looks up a localized string similar to 'Length:'. Looks up a localized string similar to This is some normal output text.. Looks up a localized string similar to This is a PowerShell comment.. Looks up a localized string similar to This is a quoted string, surrounded by quotation marks.. Looks up a localized string similar to Write-Error "This is an Error." : This is an Error.. Looks up a localized string similar to WARNING: This is a Warning.. Looks up a localized string similar to DEBUG: This is Debug output.. Looks up a localized string similar to VERBOSE: This is Verbose output.. Looks up a localized string similar to This is a Comment, surrounded by Comment Delimiters.. Looks up a localized string similar to This is Text.. Looks up a localized string similar to The theme file couldn't be saved.\r\n{0}. Looks up a localized string similar to This is an example of a text file in the script pane.. Looks up a localized string similar to The numbers of keys and specified values in the theme file do not match.. Looks up a localized string similar to Dark Console, Dark Editor. Looks up a localized string similar to Dark Console, Light Editor (default). Looks up a localized string similar to Light Console, Dark Editor. Looks up a localized string similar to Light Console, Light Editor. Looks up a localized string similar to Monochrome Green. Looks up a localized string similar to Presentation. Looks up a localized string similar to Apply. Looks up a localized string similar to _Apply. Looks up a localized string similar to Attribute. Looks up a localized string similar to Attribute. Looks up a localized string similar to AutoSave inter_val for scripts in minutes:. Looks up a localized string similar to AutoSave. Looks up a localized string similar to Background. Looks up a localized string similar to Background. Looks up a localized string similar to Error Background. Looks up a localized string similar to Warning Background. Looks up a localized string similar to Verbose Background. Looks up a localized string similar to Debug Background. Looks up a localized string similar to Cancel. Looks up a localized string similar to _Cancel. Looks up a localized string similar to CharacterData. Looks up a localized string similar to Colors and Fonts. Looks up a localized string similar to Command Argument. Looks up a localized string similar to Command Parameter. Looks up a localized string similar to Command. Looks up a localized string similar to Comment Delimiter. Looks up a localized string similar to Comment. Looks up a localized string similar to Comment. Looks up a localized string similar to Console Pane. Looks up a localized string similar to Console Tokens. Looks up a localized string similar to Current Theme:. Looks up a localized string similar to Element Name. Looks up a localized string similar to Enter Selects Intellisense. Looks up a localized string similar to Enter Selects Intellisense. Looks up a localized string similar to _Enter selects Intellisense items in the Console Pane. Looks up a localized string similar to Enter selects Intellisense ite_ms in the Script Pane. Looks up a localized string similar to Fixed-_width fonts only. Looks up a localized string similar to Font Family. Looks up a localized string similar to _Font Family:. Looks up a localized string similar to Font Size. Looks up a localized string similar to Font _Size:. Looks up a localized string similar to Foreground. Looks up a localized string similar to Error Foreground. Looks up a localized string similar to Warning Foreground. Looks up a localized string similar to Verbose Foreground. Looks up a localized string similar to Debug Foreground. Looks up a localized string similar to General Settings. Looks up a localized string similar to Group End. Looks up a localized string similar to Group Start. Looks up a localized string similar to Options. Looks up a localized string similar to Intellisense. Looks up a localized string similar to Keyword. Looks up a localized string similar to Line Continuation (Back-tick). Looks up a localized string similar to Loop Label. Looks up a localized string similar to _Manage Themes.... Looks up a localized string similar to Markup Extension. Looks up a localized string similar to Maximized. Looks up a localized string similar to Member. Looks up a localized string similar to Number. Looks up a localized string similar to OK. Looks up a localized string similar to _OK. Looks up a localized string similar to Operator. Looks up a localized string similar to Other Settings. Looks up a localized string similar to Output Streams. Looks up a localized string similar to Position. Looks up a localized string similar to Script Pane posi_tion:. Looks up a localized string similar to Prompt to Save Before Run. Looks up a localized string similar to _Prompt to save scripts before running them. Looks up a localized string similar to Quoted String. Looks up a localized string similar to Quote. Looks up a localized string similar to Recent Files. Looks up a localized string similar to Number of recent _files to show:. Looks up a localized string similar to Restore. Looks up a localized string similar to _Restore Defaults. Looks up a localized string similar to Right. Looks up a localized string similar to Sample:. Looks up a localized string similar to Sample. Looks up a localized string similar to Script Pane Behavior. Looks up a localized string similar to Script Pane Tokens. Looks up a localized string similar to Script Pane. Looks up a localized string similar to Show in the Console Pane. Looks up a localized string similar to Show _Intellisense in the Console Pane. Looks up a localized string similar to Show in the script pane. Looks up a localized string similar to Show Intellisense i_n the Script Pane. Looks up a localized string similar to Show Line Numbers. Looks up a localized string similar to S_how line numbers in the Script Pane. Looks up a localized string similar to Show Outlining. Looks up a localized string similar to _Show outlining in the Script Pane. Looks up a localized string similar to Show ToolBar. Looks up a localized string similar to Show the Tool_Bar. Looks up a localized string similar to Statement Separator (Semicolon). Looks up a localized string similar to String. Looks up a localized string similar to Tag. Looks up a localized string similar to Text Background. Looks up a localized string similar to Text. Looks up a localized string similar to Time-out Period In Seconds. Looks up a localized string similar to Intellisense timeout in secon_ds:. Looks up a localized string similar to Top. Looks up a localized string similar to Type. Looks up a localized string similar to Use Default Snippets. Looks up a localized string similar to _Use default snippets. Looks up a localized string similar to Use Local Help. Looks up a localized string similar to Use _local help content instead of online content. Looks up a localized string similar to Variable. Looks up a localized string similar to Warn About Duplicate Files. Looks up a localized string similar to _Warn me when I edit duplicate files. Looks up a localized string similar to XML Tokens. Looks up a localized string similar to Orange. Looks up a localized string similar to Orange Red. Looks up a localized string similar to Orchid. Looks up a localized string similar to Pale Goldenrod. Looks up a localized string similar to Pale Green. Looks up a localized string similar to Pale Turquoise. Looks up a localized string similar to Pale Violet Red. Looks up a localized string similar to Papaya Whip. Looks up a localized string similar to {0}: . Looks up a localized string similar to Parse errors detected. Looks up a localized string similar to password input. Looks up a localized string similar to _Paste. Looks up a localized string similar to Ctrl+V. Looks up a localized string similar to Shift+Ins. Looks up a localized string similar to Paste. Looks up a localized string similar to Peach Puff. Looks up a localized string similar to Peru. Looks up a localized string similar to PgDn. Looks up a localized string similar to PgUp. Looks up a localized string similar to Pink. Looks up a localized string similar to Plum. Looks up a localized string similar to Plus. Looks up a localized string similar to Powder Blue. Looks up a localized string similar to PowerShell Data Files. Looks up a localized string similar to PowerShell Files. Looks up a localized string similar to PowerShell Script Modules. Looks up a localized string similar to PowerShell Scripts. Looks up a localized string similar to PowerShell Session Configuration Files. Looks up a localized string similar to PowerShell XML files. Looks up a localized string similar to Press {0} to leave the editable area.. Looks up a localized string similar to Progress Indicator. Looks up a localized string similar to {0}. {1}, {2} remaining, {3}.. Looks up a localized string similar to {0}. {1}, {2} remaining.. Looks up a localized string similar to {0}. {1}, {2}.. Looks up a localized string similar to {0}. {1}.. Looks up a localized string similar to Prompt. Looks up a localized string similar to (Type {0} for Help.). Looks up a localized string similar to Prompt. Looks up a localized string similar to You can choose an empty string with {0}, {1} with {2} and exclamation point with {3}.. Looks up a localized string similar to Cannot display the prompt for "{0}" because type "{1}" cannot be loaded.. Looks up a localized string similar to Provide Text. Looks up a localized string similar to Purple. Looks up a localized string similar to [Read Only]. Looks up a localized string similar to (Recovered). Looks up a localized string similar to Red. Looks up a localized string similar to _Redo. Looks up a localized string similar to Redo. Looks up a localized string similar to Regular e_xpressions. Looks up a localized string similar to _Remove All Breakpoints. Looks up a localized string similar to Ctrl+Shift+F9. Looks up a localized string similar to R_eplace in Script.... Looks up a localized string similar to Replace _All. Looks up a localized string similar to Replace All. Looks up a localized string similar to _Replace. Looks up a localized string similar to Replace. Looks up a localized string similar to Ctrl+H. Looks up a localized string similar to Re_place with:. Looks up a localized string similar to Replace with text. Looks up a localized string similar to Run/_Continue. Looks up a localized string similar to Right. Looks up a localized string similar to Rosy Brown. Looks up a localized string similar to Royal Blue. Looks up a localized string similar to Run Command. Looks up a localized string similar to Running script / selection. Press {0} to stop.. Looks up a localized string similar to _Run. Looks up a localized string similar to F5. Looks up a localized string similar to Run Script ({0}). Looks up a localized string similar to R_un Selection. Looks up a localized string similar to F8. Looks up a localized string similar to Run Selection ({0}). Looks up a localized string similar to PowerShell Tab. Looks up a localized string similar to PowerShell {0}. Looks up a localized string similar to PowerShell Tabs. Looks up a localized string similar to Saddle Brown. Looks up a localized string similar to Salmon. Looks up a localized string similar to Sandy Brown. Looks up a localized string similar to The script you are about to run will be saved.. Looks up a localized string similar to _Save. Looks up a localized string similar to Save _As.... Looks up a localized string similar to Save {0}?. Looks up a localized string similar to Ctrl+S. Looks up a localized string similar to Save Script. Looks up a localized string similar to The application cannot save the user settings file: '{0}'.. Looks up a localized string similar to Script. Looks up a localized string similar to Script expander. Looks up a localized string similar to {0}. Looks up a localized string similar to Script pane. Looks up a localized string similar to Script Splitter. Looks up a localized string similar to Script Tools. Looks up a localized string similar to Sea Green. Looks up a localized string similar to Search _up. Looks up a localized string similar to Sea Shell. Looks up a localized string similar to Select _All. Looks up a localized string similar to Selection can only be set to a member of the collection.. Looks up a localized string similar to Shift. Looks up a localized string similar to The menu '{0}' uses shortcut '{1}', which is already in use by the menu or editor functionality.. Looks up a localized string similar to The shortcut '{0}' does not have the required keyboard modifier for non function keys.. Looks up a localized string similar to Show _Command Window. Looks up a localized string similar to Copy. Looks up a localized string similar to Insert. Looks up a localized string similar to Run. Looks up a localized string similar to Show Command A_dd-on. Looks up a localized string similar to Ctrl+F1. Looks up a localized string similar to Show on Startup. Looks up a localized string similar to Show _Horizontal Add-on Tools Pane. Looks up a localized string similar to Show _Line Numbers. Looks up a localized string similar to Show Outli_ning (Regions). Looks up a localized string similar to Show PowerShell Tab. Looks up a localized string similar to Show Script. Looks up a localized string similar to Show Script Pane _Maximized. Looks up a localized string similar to Ctrl+3. Looks up a localized string similar to Show Script Pane _Right. Looks up a localized string similar to Ctrl+2. Looks up a localized string similar to Show Script Pane _Top. Looks up a localized string similar to Ctrl+1. Looks up a localized string similar to Ctrl+J. Looks up a localized string similar to Show _Vertical Add-on Tools Pane. Looks up a localized string similar to Sienna. Looks up a localized string similar to Silver. Looks up a localized string similar to {0} expected. Looks up a localized string similar to Sky Blue. Looks up a localized string similar to Slate Blue. Looks up a localized string similar to Slate Gray. Looks up a localized string similar to Preference variables that control runtime behavior. Looks up a localized string similar to Another example of how to use this cmdlet. Looks up a localized string similar to Another example of how to use this workflow. Looks up a localized string similar to Snippet file "{0}" XML is not valid. Looks up a localized string similar to Saves (persists) the current workflow state and output. Looks up a localized string similar to cleaning up .... Looks up a localized string similar to The component this cmdlet belongs to. Looks up a localized string similar to Divide by zero exception. Looks up a localized string similar to Example of how to use this cmdlet. Looks up a localized string similar to Example of how to use this workflow. Looks up a localized string similar to The functionality that best describes this cmdlet. Looks up a localized string similar to Inputs to this cmdlet (if any). Looks up a localized string similar to Inputs to this workflow (if any). Looks up a localized string similar to Unable to find or access the file {0}. Looks up a localized string similar to Unable to find or access the folder {0}. Looks up a localized string similar to Long description. Looks up a localized string similar to General notes. Looks up a localized string similar to Optional workflow common parameters such as -PSComputerName and -PSCredential. Looks up a localized string similar to Other exception. Looks up a localized string similar to Output from this cmdlet (if any). Looks up a localized string similar to Output from this workflow (if any). Looks up a localized string similar to Param1 help description. Looks up a localized string similar to Param2 help description. Looks up a localized string similar to Param3 help description. Looks up a localized string similar to The role this cmdlet belongs to. Looks up a localized string similar to Workflow common parameters are available as variables such as:. Looks up a localized string similar to The functionality that best describes this workflow. Looks up a localized string similar to Short description. Looks up a localized string similar to Missing {0} under {1}. Looks up a localized string similar to {0} under {1} is missing or not valid. Looks up a localized string similar to Module not found.. Looks up a localized string similar to {0} cannot contain the following sequence of characters: "{1}".. Looks up a localized string similar to Module {0} doesn't contain a {1} folder. Looks up a localized string similar to Set the progress message ParentActivityId. Looks up a localized string similar to Workflow runtime information can be accessed by using the following variables:. Looks up a localized string similar to Suspends the workflow. Looks up a localized string similar to Built-in. Looks up a localized string similar to Description: {0}. Looks up a localized string similar to Path: {0}. Looks up a localized string similar to Snippets must have the {0} extension. Looks up a localized string similar to Snow. Looks up a localized string similar to Space. Looks up a localized string similar to Spring Green. Looks up a localized string similar to Start _Intellisense. Looks up a localized string similar to Start PowerS_hell.exe. Looks up a localized string similar to Start PowerShell.exe in a separate window.. Looks up a localized string similar to Ctrl+Shift+P. Looks up a localized string similar to Start _Snippets. Looks up a localized string similar to Start tag not closed. Looks up a localized string similar to Steel Blue. Looks up a localized string similar to _Step Into. Looks up a localized string similar to F11. Looks up a localized string similar to Step O_ut. Looks up a localized string similar to Shift+F11. Looks up a localized string similar to Step O_ver. Looks up a localized string similar to F10. Looks up a localized string similar to S_top Operation. Looks up a localized string similar to Ctrl+C. Looks up a localized string similar to S_top Debugger. Looks up a localized string similar to Shift+F5. Looks up a localized string similar to Ctrl+Break. Looks up a localized string similar to Stop Operation ({0}). Looks up a localized string similar to Stopped. Looks up a localized string similar to Stopping. Looks up a localized string similar to Stopping Intellisense. Looks up a localized string similar to {0}.... Looks up a localized string similar to The menu '{0}' is a parent menu of '{1}'.. Looks up a localized string similar to Subtract. Looks up a localized string similar to Tab. Looks up a localized string similar to Tan. Looks up a localized string similar to Teal. Looks up a localized string similar to Text Files. Looks up a localized string similar to text input. Looks up a localized string similar to Thistle. Looks up a localized string similar to The operation has timed out.. Looks up a localized string similar to To_ggle Breakpoint. Looks up a localized string similar to F9. Looks up a localized string similar to Alt+Shift+H. Looks up a localized string similar to Toggle _Outlining (Regions) Expansion. Looks up a localized string similar to Ctrl+M. Looks up a localized string similar to Show Scr_ipt Pane. Looks up a localized string similar to Ctrl+R. Looks up a localized string similar to Show Tool_Bar. Looks up a localized string similar to Alt+Shift+V. Looks up a localized string similar to Tomato. Looks up a localized string similar to ToolBar. Looks up a localized string similar to _Tools. Looks up a localized string similar to Cannot enter nested prompt because too many nested prompts are already running.. Looks up a localized string similar to Transparent. Looks up a localized string similar to Turquoise. Looks up a localized string similar to The type should be a Control. Looks up a localized string similar to The type '{0}' should have a default constructor.. Looks up a localized string similar to The control type should implement IAddOnToolHostObject. Looks up a localized string similar to Unable to load {0}: {1}. Looks up a localized string similar to Unable to perform host dependent operation.. Looks up a localized string similar to Unable to save {0}: {1}. Looks up a localized string similar to Unable to start {0}.. Looks up a localized string similar to _Undo. Looks up a localized string similar to Undo. Looks up a localized string similar to Save changes to the following files? {0}. Looks up a localized string similar to Untitled. Looks up a localized string similar to _Update Windows PowerShell Help. Looks up a localized string similar to {0} You have added Unicode characters that are not supported by the original file encoding. To preserve the new characters, the application will save the file in the Unicode format. • Click OK to save the file as Unicode and preserve all the new characters • Click Cancel to cancel the operation. . Looks up a localized string similar to Up. Looks up a localized string similar to _User name:. Looks up a localized string similar to {0} = {1}. Looks up a localized string similar to VERBOSE: {0}. Looks up a localized string similar to Vertical Add-ons. Looks up a localized string similar to Vertical add-on tools splitter. Looks up a localized string similar to _View. Looks up a localized string similar to Violet. Looks up a localized string similar to Windows PowerShell ISE - Warning. Looks up a localized string similar to WARNING: {0}. Looks up a localized string similar to Wheat. Looks up a localized string similar to White. Looks up a localized string similar to White Smoke. Looks up a localized string similar to _Whole word. Looks up a localized string similar to _Windows PowerShell ISE Help. Looks up a localized string similar to Administrator: . Looks up a localized string similar to {0}{1}{2}. Looks up a localized string similar to Advanced workflow that accesses common workflow parameters and other pre-defined variables.. Looks up a localized string similar to Runs isolated blocks of PowerShell script. Place optional workflow common parameters at the end of the script block.. Looks up a localized string similar to Run commands in parallel. Operation order is not determined.. Looks up a localized string similar to Runs the contents of the {0} block in parallel. Run order is not determined.. Looks up a localized string similar to Runs command in sequential order.. Looks up a localized string similar to Basic workflow.. Looks up a localized string similar to (x86). Looks up a localized string similar to XML Files. Looks up a localized string similar to Yellow. Looks up a localized string similar to Yellow Green. Looks up a localized string similar to Zoom. Looks up a localized string similar to _Zoom In. Looks up a localized string similar to Ctrl+Add. Looks up a localized string similar to Ctrl+Shift+Add. Looks up a localized string similar to Ctrl+Plus. Looks up a localized string similar to Ctrl+Shift+Plus. Looks up a localized string similar to {0}%. Looks up a localized string similar to Zoom O_ut. Looks up a localized string similar to Ctrl+Subtract. Looks up a localized string similar to Ctrl+Shift+Subtract. Looks up a localized string similar to Ctrl+Minus. Looks up a localized string similar to Ctrl+Shift+Minus. Looks up a localized string similar to Zoom Selection. Application class App value indicating whether we should prompt for exceptions. This is set to true from tests and after prompting to prevent multiple prompts Initializes a new instance of the App class. Auto saves files in the case of an unexpected shut down event sender event arguments InitializeComponent Gets or sets a value indicating whether we should prompt for exceptions. This is set to true from tests and after prompting to prevent multiple prompts Tab control for horizontal and vertical tools AddOnToolTabControl The current ItemsSource used to disconnect from listenning to changest in the SelectedFile. Initializes a new instance of the AddOnToolTabControl class. Called when the Items property has changed to: 1) Set the SelectedItem to the Selected AddOn tool 2) Start tracking changes to the SelectedAddOnTool in order to change the selecting when it changes 3) Select a recently added tab event arguments - Sets the Close AddOn Pane automation id to this automation id plus the automation if of the close button so they have distinct automation ids - Sets the Command property for the close pane button event sender event arguments - Sets the Command property for the close tool button event sender event arguments Called when the ReadOnlyISEAddOnCollection in the ItemsSouce changes in order to set the SelectedItem in the control. event sender event arguments InitializeComponent Interaction logic for FindAndReplaceDialog.xaml FindAndReplaceDialog gui find text gui replace text current state gui match case current state gui whole word current state gui search reverse current state gui regular expressions current state The data used for find operations True when we are changing the selection in the editor as the result of a match Current Regex in use, if FindAndReplaceDialog.findData.FindOptions has UseRegularExpression. When we are searching within the selection this member indicates the range for the search, otherwise it is null. The string to search typed by the user in the dialog. This string might be replaced by a pattern in findData if it ends with $, so we preserve it here if we have to show it to the user when there are no more matches. Initializes a new instance of the FindAndReplaceDialog class. Sets up the dialog for finding true for find, false for replace Searches the next or previous match in the editor true to search up parent window in case we should show there are no matches editor to search in Called after the findData has been set to perform the search and select the match. true for the first find in selection true to search up parent window editor to search in selection span being searched, null when not searching in selection true when calling this from test code. sets the findData fileds for a new search editor to search text to search true to match case true to search up true to search with regular expressions true to search whole word true if successfully set findData Expands all regions containing the span, selects the given span in the editor and scrolls the pan into view the editor we are searching span to select and view Shows the no matches dialog Parent window. Gets the position we should start our search on the editor we are searching true if this is the first call during "Find In Selection" true to search up the position we should start our search on Copies the selection text to the find what text box Sets the state of IsChecked and IsEnabled for the FindInSelection checkbox depending on the current selection. Resets height properties to their initial state and starts listening to LayoutUpdated to prevent vericat resizing Called to prevent vertical resizing event sender event arguments Closes the dialog on Esc since modeless dialogs don't seem to respect IsCancel=true evemt sender event arguments stores the current dialog values for the next time this dialog is opened evemt sender event arguments sets the findData fileds for a new search the editor we are searching true if successfully set findData Finds the next word on the selected editor event target event arguments Replace/find the next word on the selected editor event target event arguments Replaces all matching occurrences of the given string. All writable spans will be replaced by this method. Read only spans will be left in place. The number of matches found, or -1 if the call to CanSetFindData failed Replaces all matches of the search string event target event arguments sets e.CanExecute to true if there is a current editor with some text event sender event arguments Called to close the dialog event sender event arguments InitializeComponent Gets the find data currently in use. Gets the file currently selected. Interaction logic for NewRemotePowerShellTabDialog.xaml NewRemotePowerShellTabDialog last value of the connectBox last value of the userBox Initializes a new instance of the NewRemotePowerShellTabDialog class. Called to selct all text on focus event sender event arguments Called to selct all text on focus event sender event arguments Called to set the enabled state of the connect button event sender event arguments Called to set the dialog result event sender event arguments Called to set the dialog result and save dialog text. event sender event arguments InitializeComponent MessageBox with a "skip this message" checkbox SkippableMessageBox Initializes a new instance of the SkippableMessageBox class. window owner message to be displayed Shows a message dialog if showAgain is true, setting showAgain with the dialog checkbox boolean determining if a dialog should be displayed window owner message to be displayed false if the dialog has been displayed and cancelled, true otherwise Called to set the dialog result and close the window event sender event arguments Called to set the dialog result and close the window event sender event arguments InitializeComponent This control has all the script editor tabs EditorTabControl The current ItemsSource used to disconnect from listenning to changest in the SelectedFile. Initializes a new instance of the EditorTabControl class. Called when the Items property has changed to: 1) Set the SelectedItem to the SelectedFile 2) Start tracking changes to the SelectedFile in order to change the selecting when it changes 3) Select a recently added tab event arguments Called when the ISEFileCollection in the ItemsSouce changes in order to set the SelectedItem in the control. event sender event arguments Called when the selection changes to set the focus on the Tab's Editor and update currentPowerShellTab.Files.SelectedFile event sender event arguments Sets the scripting pane visibility to true/false event sender event arguments Sets e.CanExecute to true if there is at least one script in the current runspace tab event sender event arguments Closes a Script file tab event target event arguments Updates the selected tab when the file selected in the runspace changes PowerShellTab sending the event event arguments Set the CloseTabButton automation id to filename.btnCloseTab event sender event arguments This fixes a problem when clicking on the header of a selected editor tab stealing the focus from the editor event sender event arguments InitializeComponent Used to Convert an object to an object's property value even if the property is internal. XAML does not support Binding to internal properties and this converter is meant to address that problem. Converts to the resulting object obtained from retrieving the property value in (or property values if contains dots) out of . In the spirit of WPF's Binding, this method traces instead of throwing exceptions so that it supports an eventual value of null and other problems without throwing. The object we are trying to Convert. is unused. The property path out of . This can include dots, but not indexed properties. is unused. The resulting object obtained from retrieving the property value in (or property values if contains dots) out of . This method is not supported and throws an exception when called. The parameter is not used. The parameter is not used. The parameter is not used. The parameter is not used. Nothing since an exception will be thrown. Wraps an object exposing its private properties as if they where public. This serves as a workarround for the fact that WPF DataBinding cannot see internal properties. This class is meant to be the DataContext of objects and therefore can be internal. There is no need to use this class if all properties in a property path are public. The property values returned here are also InternalObjects if the PropertyType is in this assembly (actually, in Application.Current.MainWindow.GetType().Assembly). This means that: 1) This class can be used even if more than one property in a property binding path is internal. 2) If a property binding path only contains objects declared in this assembly then the final binding value is going to be an InternalObject and it is only going to be useful for its string value. Object being wrapped. Type of the object being wrapped. Initializes a new instance of the InternalObject class. object being wrapped. If the baseObject is null Returns this.BaseObject's ToString. this.BaseObject's ToString Repassed the static method with the same name in TypeDescriptor. The returnValue from the static method with the same name in TypeDescriptor. Repassed the static method with the same name in TypeDescriptor. The returnValue from the static method with the same name in TypeDescriptor. Repassed the static method with the same name in TypeDescriptor. The returnValue from the static method with the same name in TypeDescriptor. Repassed the static method with the same name in TypeDescriptor. The returnValue from the static method with the same name in TypeDescriptor. Repassed the static method with the same name in TypeDescriptor. The returnValue from the static method with the same name in TypeDescriptor. Repassed the static method with the same name in TypeDescriptor. The returnValue from the static method with the same name in TypeDescriptor. Repassed the static method with the same name in TypeDescriptor. The paramter is repassed the static method with the same name in TypeDescriptor. The returnValue from the static method with the same name in TypeDescriptor. Repassed the static method with the same name in TypeDescriptor. The parameter is repassed the static method with the same name in TypeDescriptor. The returnValue from the static method with the same name in TypeDescriptor. Repassed the static method with the same name in TypeDescriptor. The returnValue from the static method with the same name in TypeDescriptor. Returns PropertyDescriptors for all public and private properties. This parameter is ignored. PropertyDescriptors for all public and private properties. Returns PropertyDescriptors for all public and private properties. PropertyDescriptors for all public and private properties. Returns this.BaseObject. This parameter is ignored. returns this.BaseObject Repasses change notifications in the base object to potential listeners to the InternalObject's notifications. event sender event handler Notifies callers of changes in the BaseObject's properties. Gets the object being wrapped. PropertyDescriptor returned by InternalObject's GetProperties method The PropertyInfo used to get and set values. Set to true if the property type is in this assembly. Initializes a new instance of the InternalObjectPropertyDescriptor class. the PropertyInfo used to get and set values. Returns false. This parameter is ignored always returns false. Gets the calue of the property descriptor in the component. InternalObject that owns the property. the calue of the property descriptor in the component. This method has no effect. This parameter is ignored. Sets the value of the property in the component. InternalObject that owns the property. Property value to set the property to. Gets the value true. this parameter is ignored. the value true. Gets the value typeof(InternalObject). Gets a value indicating tf the property cannot be written to. Gets the property type. A provider for a margin that will be the corner element Returns the corner element to serve as a margin the host, which is not used the container, which is not used the corner element to serve as a margin A simple margin with one border with Control background The element returned in the VisualElement property Initializes a new instance of the ISECornerMargin class Gets the margin by name name of the margin to get the margin by name Disposes of resources Gets the GUI for this marin Gets the MArginSize for this, which is not used Gets a value indicating whether the margin is enabled Main Window class MainWindow Minimum Height below which the ScriptPane is considered collapsed Array of brush names. their classic theme and high contrast colors. The classic theme brushes build of brushColorArray The high contrast keys built of brushColorArray Dictionary where default brushes are saved Current color mode the main window is on. Used not to set colors more than once if we receive multiple high contrast/theme messages. Gesture used for stopping a command and copying text(Ctrl+C in English). The application exit code manager for MRU files Initializes a new instance of the MainWindow class. Called when high contrast changes or when window is loaded to change control colors Zooms in our out responding to Ctrl+ Mouse wheel. event arguments. Marks the event as handled so that the editor does not start a drag operation for files event arguments Deals with files being dropped in the application. event arguments Sets the visual effects of drag to indicate only files can be dropped. event arguments Previews keys before the editor gets a chance to see them. This is necessary in order to overide some shortcuts that are also used in the editor's DefaultKeyProcessor (Control+W) and (Control+T). It is also used to ensure Enter and Escape will only work in AddOn tools if the focus is on the AddOn tools event arguments Called from OnPreviewKeyDown to handle the Enter key event arguments Called from OnPreviewKeyDown to handle the Escape key event arguments Returns true if one of the editors is focused currently selected PowerShellTab rue if one of the editors is focused Returns true if any child control of the addon tools is focused currently selected PowerShellTab true if any child control of the addon tools is focused Returns true if the double is a valid positive number value to test true if the double is a valid positive number Retrieves from a string collection with files being dropped or null if there are no files being dropped event arguments a string collection with files being dropped or null if there are no files being dropped Called after the aplication initializes to create bursh dictionaries main window Gets the High Contrast Brush for the given brush name brush name to retrieve the brush from The High Contrast Brush for the given brush name Called when high contrast changes to set the proper brushes main window Returns true if we are currently debugging event sender event arguments Opens a file from the MRU list event sender event arguments Toggles showing outlining event sender event arguments Toggles showing embedded commands event sender event arguments Sets e.CanExecute to true if it will be possible to toggle the embedded commands event sender event arguments Toggles the display of line numbers event sender event arguments Toggles expanding outlining event sender event arguments Sets e.CanExecute to true if it will be possible to toggle outlining expansion event sender event arguments Sets e.CanExecute if it will be possible to start intellisense event sender event arguments Starts intellisense event sender event arguments Sets e.CanExecute to true if it will be possible to insert a snippet event sender event arguments Inserts a snippet event sender event arguments sets the focus in the Script Editor event target event arguments sets the focus in the console event target event arguments Sets e.CanExecute to true if there is at least one script in the current runspace tab event sender event arguments Goes to a line in the script editor. event sender event arguments Returns true if the "GoToLine" command can be executed event sender event arguments Sets e.CanExecute to true if there is at least one script in the current runspace tab event sender event arguments Saves the current script event target event arguments Sets e.CanExecute to true if the "Save As" command can be executed event target event arguments Saves the current script with the Save dialog event target event arguments Closes a Script file tab event target event arguments Sets the ToolBar visibility to true/false event sender event arguments Sets the scripting pane visibility to true/false event sender event arguments Shows the script pane on the top event sender event arguments Sets e.CanExecute to false if the scripts are already on right event sender event arguments Sets e.CanExecute to false if the scripts are already on top event sender event arguments Sets e.CanExecute to false if the scripts are already maximized event sender event arguments Shows the script pane on the right event sender event arguments Shows the script pane maximized event sender event arguments Sets e.CanExecute to false if the focus is not in any editor event sender event arguments Selects all text in the editor event sender event arguments Sets e.CanExecute to false if the focus is not in the script editor or input controller or if there is nothing to undo event sender event arguments Undos the last action on input or script editor event sender event arguments Sets e.CanExecute to false if the focus is not in the script editor or input controller or if there is nothing to redo event sender event arguments Redo the last action on input or script editor event sender event arguments Sets e.CanExecute to false if the focus is not in the script editor or input controller, or if no text is selected event sender event arguments Cut text from focused window event sender event arguments Sets e.CanExecute to false if the focus is not in the script editor or input controller or output window, or if no text is selected event sender event arguments Copy text from focused window event sender event arguments Sets e.CanExecute to false if the focus is not in the script editor or input controller, or if there is nothing in the clipboard event sender event arguments Paste text into focused window event sender event arguments Opens a new script event target event arguments Finds text in script event sender event arguments Sets e.CanExecute to true if there is a script with text to be found event sender event arguments Finds text in script event sender event arguments Finds the next match in the script editor event sender event arguments Sets e.CanExecute to true if there is a script with text to be found event sender event arguments Finds the previous match in the script editor event sender event arguments Sets e.CanExecute to true if there is a script with text to be found event sender event arguments Creates a new script tab event sender event arguments Clears the output event sender event arguments Runs the current script event target event arguments Sets e.CanExecute to true if there is a script to run event sender event arguments Runs the current selection event target event arguments Sets e.CanExecute to true if there is a selection to run event sender event arguments stops command execution event target event arguments Sets e.CanExecute to true if can stop execution event sender event arguments Sets e.CanExecute to false when we already have the maximum number of runspaces event sender event arguments Creates a new runspace tab event sender event arguments Creates a new remote runspace tab event sender event arguments Sets e.CanExecute to true if this is not the last runspace event sender event arguments Closes the current runspace event sender event arguments Shows the requested runspace event sender event arguments Shows the requested script event sender event arguments Shows the requested script event sender event arguments Sets e.CanExecute to true if there the pipeline is free event sender event arguments Opens the options dialog event sender event arguments Starts PowerShell event sender event arguments Invokes the help file event sender event arguments Invokes the update-help command event sender event arguments Follows the link to online AddOn information event sender event arguments Invokes the show-command event sender event arguments Handles ApplicationExit command event sender event arguments Executes the "step into" debugger command event sender event arguments Executes the "step over" debugger command event sender event arguments Executes the "step out" debugger command event sender event arguments Sets e.CanExecute to true if Run/Continue can be executed event sender event arguments Resumes execution of the debugger event sender event arguments Stops the debugger event sender event arguments Returns true if we are currently debugging event sender event arguments Toggles the breakpoint on the current line event sender event arguments Returns true if the "toggle breakpoint" command can be executed event sender event arguments Enables the breakpoint on the current line event sender event arguments Returns true if the "enable breakpoint" command can be executed event sender event arguments Disables the breakpoint on the current line event sender event arguments Returns true if the "disable breakpoint" command can be executed event sender event arguments Deletes all the breakpoints on the current runspace event sender event arguments Returns true if the "remove all breakpoints" command can be executed event sender event arguments Enables all the breakpoints on the current runspace event sender event arguments Returns true if the "enable all breakpoints" command can be executed event sender event arguments Disables all the breakpoints on the current runspace event sender event arguments Returns true if it is possible to go to a matching character event sender event arguments Goes to a matching character event sender event arguments Returns true if the "disbale all breakpoints" command can be executed event sender event arguments Executes the "get callstack" command event sender event arguments Executes the "list breakpoints" command event sender event arguments Sets e.CanExecute to true if can execute the command event sender event arguments decreases the font. event sender event arguments Sets e.CanExecute to true if we can decrease the font. event sender event arguments Increases the font. event sender event arguments Sets e.CanExecute to true if we can increase the font. event sender event arguments Handles the command to move a vertical tool to horizontal ignored event sender ignored event arguments Handles the command to move a horizontal tool to vertical ignored event sender ignored event arguments Handles the command to tab into the vertical addon tool ignored event sender ignored event arguments Handles the command to tab into the horizontal addon tool ignored event sender ignored event arguments Handles the command to show and select an AddOn tool ignored event sender ignored event arguments Handles the command to hide a vertical AddOn tool ignored event sender ignored event arguments Handles the command to hide a horizontal AddOn tool ignored event sender ignored event arguments Sets e.CanExecute to true if there is a horizontal tool to hide ignored event sender ignored event arguments Sets e.CanExecute to true if there is a vertical tool to hide ignored event sender ignored event arguments Handles the command to toggle the horizontal AddOn tool pane visibility ignored event sender ignored event arguments Handles the command to toggle the vertical AddOn tool pane visibility ignored event sender ignored event arguments Sets e.CanExecute to true when it is possible to toggle the horizontal AddOn tool pane visibility ignored event sender ignored event arguments Sets e.CanExecute to true when it is possible to toggle the vertical AddOn tool pane visibility ignored event sender ignored event arguments Called to set UserSettings.Default.MainWindowMaximized event sender event arguments Called to set UserSettings.Default.MainWindowTop and UserSettings.Default.MainWindowLeft event sender event arguments Called to set UserSettings.Default.MainWindowWidthSetting and UserSettings.Default.MainWindowHeightSetting event sender event arguments Called when closing the window to prompt for saving files event sender event arguments Handles Theme and High Contrast switches and end session caused by restart manager or logoff window handle message received part of message parameters other part of message parameters to be set to true if we want to be the only handlers of messages returns IntPtr.Zero At the moment, this is used to catch Alt related messages. There 2 current uses for this: 1) Routing Alt+Shift messages so that they reach the keyboard processor of the editors to allow for box selection. 2) Handling Alt+Enter to stop it from executing the default buttons for AddOn tools Message to process set to true if the message was handled Called to update the Runspace visibility event sender event arguments Restore the values from the settings to the actual window position, size and state. Called to update visual states event sender event arguments InitializeComponent Gets the high contrast foreground brush used for text in the editors and the editor caret Gets the high contrast foreground color used for text in the editors and the editor caret Gets the high contrast background color used for some control colors and, in non high contrast mode, for the text color of non script editors, and the caret of all editors Gets the high contrast color used for tab items on mouse over. Gets the current color mode the main window is on. Used not to set colors more than once if we receive multiple high contrast/theme messages. Gets the manager for MRU files Gets or sets the application exit code Color modes the main window might be on, High Contrast mode. Classic, non high contrast mode. Non classic and non High Contrast mode Initial value of currentColorScheme Process Editor Keys before the editor DefaultKeyProcessor. This class has 2 purposes: 1) Allowing us to call BeforeDefaultKeyProcessor.InternalKeyDown for custom key handling/interception in the rest of the application 2) "Unhardcode" most shortcuts hardcoded in Nautilus DefaultKeyProcessor. Unhardcode means that those shortcuts should be localizable. In order for the default key processor shortcuts be localizable we have to repeat here what the default key processor does, but use the shortcuts from the resources. this is done with BeforeDefaultKeyProcessor.shortcutMethods. We also have to prevent the default key processor to handle the shortcuts we localize. This is done with BeforeDefaultKeyProcessor.defaultKeyProcessorHardcodedShortcuts Table of shortcuts to the methods that implement them Hardcoded shortcuts in the default key processor we should handle here. In English, this array has the same shortcuts than the localized shortcuts in BeforeDefaultKeyProcessor.shortcutMethods. If the resource for one of the shortcuts changed, BeforeDefaultKeyProcessor.shortcutMethods will no longer have an entry for it, but we still have to handle the old shortcut so the Nautilus DefaultKeyProcessor doesn't. Not all hardcoded shortcuts in the DefaultKeyProcessor are here. The following functionality is still implemented in the DefaultKeyProcessor: - Unmodified (no shift/control) keys like Enter, Left, Right, etc. We cannot build shortcuts from such keys and it is too much customization to allow those keys to have a different behavior. - Tab and Shift+Tab. Tab beacuse it cannot be a shortcut and Ctrl+Tab because it is Tab's counterpart in the Indent/Unindent operation. It would be strange to customize/localize Unindent to be other shortcut than Ctrl+Tab while leaving Tab for Indent. Ctrl+T and Ctrl+W are also implemented in the DefaultKeyProcessor but they are handled in the main window to create and close runspaces instead of the the editor functionality (select word and transpose character). MainWindow's PreViewKeyDown will handle those shortcuts and they will not reach BeforeDefaultKeyProcessor or DefaultKeyProcessor unless they are localized. In that case their presence in the table below will ensure that the DefaultKeyProcessor will not handle them. We don't want to introduce new functionality due to localization. Contains the elements from defaultKeyProcessorHardcodedShortcutsArray for faster lookup The IWpfTextView this processor is for editor operations editor undo registry Initializes a new instance of the BeforeDefaultKeyProcessor class The IWpfTextView this processor is for Editor operations Editor undo registry This is the main entry point of the key processor. event arguments Adds the shortcut to BeforeDefaultKeyProcessor.shortcutMethods if shortcut is not null. shortcut to be added method to be added sees if the given gesture is one of the hardcoded shortcuts gesture to check true if the given gesture is one of the hardcoded shortcuts Tries to get a shortcut method for the given shortcut shortcut to get a method from method to be retrieved true if it was possible to get a method Tries to get a shortcut method for the given gesture gesture to get a method from method to be retrieved true if it was possible to get a method Adds an entry for shortcut that is the same as the entry fr shortcutToCopy, if shortcut and shortcutToCopy are not null shortcut to be added shortcut with method to be copied, previouslly added to the table Populates BeforeDefaultKeyProcessor.shortcutMethods. The implementation of each shortcut seen here has been taken from Nautilus DefaultKeyProcessor. KeyDown Event. Renamed not to colide with the KeyDown class member. Gets the table of shortcuts to the methods that implement them Factory for BeforeDefaultKeyProcessor Creates a new key processor provider for the given WPF text view host Wpf-based text view host to create key processor for A valid key processor Exposes all the editor factories and other services Singleton value for this class Text Editor Factory The aggregator used to enumerate classifications for tests The aggregator used to get tags The service used for searching text The TextBuffer Factory The provider responsible for the breakpoint marker Retrieves an IContentType necessary for creating a text buffer Used in the classifier to retrieve Exported ClassificationTypeDefinition's Used to retrieve the Exported EditorFormatDefinition assossiated with a ClassificationTypeDefinition and its corresponding TextFormattingRunProperties used to set classification text properties like colors Retrieves the ITextBufferUndoManager for a buffer Retrieves the IEditorOperations for a TextView Retrieves the ITextStructureNavigatorProvider for a TextView The factory to create ITextDocument factory used to retrieve IEditorFormatMap factory used to create editor options Allows the creation and dismissal of intellisense Allows outlining expand/collapse calls into MEF in order to initialize editor imports and exports Gets the service used for searching text Gets the provider responsible for the breakpoint marker Gets the aggregator used to enumerate classifications for tests Gets the aggregator used to enumerate error tags Gets the Undo provider Gets the ITextStructureNavigatorProvider for a TextView Gets the IEditorOperations for a TextView Gets the service used in the classifier to retrieve Exported ClassificationTypeDefinition's Gets the service used to retrieve the Exported EditorFormatDefinition assossiated with a ClassificationTypeDefinition and its corresponding TextFormattingRunProperties used to set classification text properties like colors Gets the IContentType necessary for creating a text buffer Gets the TextBuffer Factory Gets the Text Editor Factory Gets the factory to create ITextDocument Gets the factory used to retrieve IEditorFormatMap Gets the factory used to create editor options Gets an object that allows the creation and dismissal of intellisense Gets an object that allows outlining expand/collapse Gets the object with all editor imports, performing MEF composition on the first time Wraps a basic completion from the basic System.Management.Automation implementation with extra information required by the ISE image source for types image source for namespaces image source for commands image source for provider containers image source for provider items image source for history items image source for methods image source for parameter names image source for parameter values image source for properties Image source for variables Image source for text information Prevents a default instance of the ISECompletion class from being created Creates a new instance of the ISECompletion class. the basic System.Management.Automation completion the newly created instance Retrieves the ImageSource corresponding to the from the cached or constructs a new one and stores it in for the next retrieval. the cached ImageSource, or null if it has not been retrieved yet. the ImageSource path the ImageSource corresponding to the from the cached or constructs a new one and stores it in Gets the ImageSource corresponding to . The basic CompletionResult from System.Management.Automation the ImageSource corresponding to . Class used to override filtering and selection behavior for ISE Intellisense Completions of this set The span used for filtering span from the beginning of the line up to the beginning of applicableTo used for transition to tab completion initial text of lineStartToApplicableTo True to select an item even if the filter text is empty Initializes a new instance of the ISECompletionSet class. The unique, non-localized identifier for the completion set. The localized name of the completion set. The tracking span to which the completions apply. The list of completions. The list of completion builders. The span to be used for filtering span from the beginning of the line up to the beginning of applicableTo True to select an item even if the filter text is empty Filters the results in the list to the ones whose DisplayText match this.filterSpan Selects the best match that will be the one whose displayText contains the filter closest to the beginning of DisplayText Gets the completions of this set Gets the span used for filtering Gets the span from the beginning of the line up to the beginning of applicableTo Gets the initial text of LineStartToApplicableTo Starter for an intellisense session. The AugmentCompletionSession is the only useful method of this class. Used un Dispose() textBuffer where intellisense is starting Initializes a new instance of the ISECompletionSource class. the buffer needing the ICompletionSource Adds an ISECompletionSet to . The ICompletionSession which is ignored The collection to add the ISECompletionSet Disposes of this class Provider for the ICompletionSource used to start intellisense returns a new ICompletionSource for the given . the buffer in need of an ICompletionSource a new ICompletionSource for the given Establishes the FontSize for intellisense as a proportion of FontSize and Zoom This is the number we multiply the font size by so that it is possible to read the text at the default font size and default zoom The current intellisense typeface Gets the font for the non selected completions Gets the font for the selected completions Gets the font for intellisense tooltips Gets the font size returned for all fonts Gets the TypeFace for all fonts Basic class for all classifier that will always add the classifier as a property to the buffer and that will expose a mechanism to force reclassification The two categories for script editors used to set classification type font colors in those categories classification type definition classification type definition Contains the IClassificationType added above to be used for unknown tokens and for gaps between tokens. Contains the IClassificationType added above used for high contrast. The editor buffer Initializes a new instance of the ISEClassifier class editor buffer Called to update the buffer classifier property and then to call the virtual GetClassificationSpans span to get classifications from The return from VirtualGetClassificationSpans Sets the font color for gaps in the editor Color to set the gap classification foreground color to Called when toggling to high contrast or loading the editor to set the color for the high contrast classification and the gap classification Returns true if this classification is happening under high contrast. span we are classifying buffer associated with the classifier Classifications list to add one global classification for the whole span if we are in high contrast true if this classification is happening under high contrast Called to set the colors for the tokens according to the tokencolors passed. Collection of token colors. Collection of all default colors used to clear the brushes not specified in classification prefix classification sufix Enumeration to be used as the dictionary key Called to set the Text font color. text color to set classification type to set the font color to category in which to set the font color Returns the text properties for the given classification classification type The category to get tje text properties from the text properties for the given classification Callled to trigger ClassificationChanged span to reclasify Gets the classifications for the span span to get classifications from the classifications for the span Updates the buffer classifier property used by ISEEditor's reclassification Event used to force reclassification Gets the IClassificationType used for unknown tokens and for parts of the span with no corresponding token. Gets the IClassificationType used for high contrast Gets the editor buffer Mouse processor for Zoom Gets a new processor for the text view the view we need a mouse processor for the new processor for the text view Mouse processor for Zoom and for console clicking going to input region Text view this processor is for Initializes a new instance of the ISEZoomMouseProcessor class view for this mouse processor Responds to a click to set the caret to input region of console if click came from outside the console event arguments Processes the mouse wheel to zoom in/out event arguments Works arround an issue with the editor displaying the first line of picels for characters like f in some font sizes in the Lucida Console font name by adding one extra pixel to the first line This is the equivalent of a non-transform, no line on top or bottom and 1:1 scale Transform with one line on top Initializes a new instance of the LineTransformSource class Works arround an issue with the editor displaying the first line of picels for characters like f in some font sizes in the Lucida Console font name by adding one extra pixel to the first line The line to apply the transform to Current canvas position The relative position of the transform A 1 line on top transform for the first line and no transform for other lines Provider for the LineTransformSource used in all editors, hence the base text contentType Gets the LineTransformSource used in all editors the editor's TextView returns the LineTransformSource used in all editors Classifies non script text in the ScriptPane. Declares a new content type called TextOutput, derived from text and used for the classifications classification type contains the IClassificationType added above. Initializes a new instance of the NonScriptClassifier class. text buffer corresponding to the classifier Given a SnapshotSpan, this method returns a list of ClassificationSpans that we want to classify in the given SnapshotSpan span to classify classification (ClassificationSpans) Gets the IClassificationType returned in all classifications of this classifier Provides the IClassifier for non script text in the ScriptPane Provides the IClassifier for the output editor text buffer we're classifying the IClassifier for PowerShell syntax highlighting Span and its background/foreground colors span containing the color The classification type to be used for the span. Initializes a new instance of the OutputColorSpan class. span the colors correspond to The classification type to be used. Gets the span. Gets the classification type to be used for the span. Classifies output text PowerShellClassifier provides the bridge between PowerShell's Tokenize() API and the text editor's text coloring system. It is given the buffer it will classify as a constructor parameter; thereafter, each time the buffer is changed, this classifier will tokenize the contents, and map the appropriate classifier (see Productions and Consumptions region) to the spans being updated by the editor. the rendering size is in device independent pixels, we need to convert it from points pt = 1 / 72 inch dip = 1 / 96 inch Character Width in the current font Declares a new content type called powershell, derived from text and used for the classification classification type definition classification type definition classification type definition classification type definition classification type definition classification type definition classification type definition classification type definition classification type definition classification type definition classification type definition classification type definition classification type definition classification type definition classification type definition classification type definition classification type definition classification type definition classification type definition classification type definition classification type definition classification type definition classification type definition classification type definition classification type definition classification type definition classification type definition classification type definition classification type definition classification type definition classification type definition classification type definition classification type definition classification type definition classification type definition classification type definition classification type definition classification type definition classification type definition map of tokens into classification types for the script map of tokens into classification types for the console classification for tokens within a breakpoint Initializes static members of the PowerShellClassifier class Initializes a new instance of the PowerShellClassifier class. buffer to classify Fills the gaps between classifications The list of all classifications where we will be adding the filler The span of the last ClassificationSpan added to classifications The new classification span about to be added The buffer snapshot The classification type used to fill the gap Fills the gaps before the first classification and after the last The complete span being classified The list of all classifications The buffer snapshot The classification type used to fill the gap ant beginning and end Called to set the colors for the tokens according to the tokencolors passed. Collection of token colors. Collection of all default colors used to clear the brushes not specified in siffix for the classification type Update the character width based on M of the current font. Object containing font information. Gets the classification type corresponding to token we want the classification from true if we should use console classifications he classification type corresponding to Adds the classifications corresponding to the PSTokenSpans text buffer span being classified list to add classifications to Last classification added. Thishelps filling the space gaps between tokens with a classification so that the script editors are not affected by a change in the "Text" classification type font name Classification type for gaps Delegate used to deal with adding classifications in breakpoints. The OutptClassifier will pass null for this parameter classification used in for breakpoints The OutptClassifier will pass null for this parameter List of breakpoints used in The OutptClassifier will pass null for this parameter Given a SnapshotSpan, this method returns a list of ClassificationSpans that we want to classify in the given SnapshotSpan span to classify classification (ClassificationSpans) Classifies the given token if it is within a breakpoint span snapshot being classified classification for breakpoints Classifications for the token are added to this list Spans for current breakpoints The token classification True if the token was classified, or false if the token is not within a breakpoint span Returns the breakpoints within the given span the span to check spans for the breakpoints Gets the Character Width in the current font Delegate that classifies the given token if it is within a breakpoint span snapshot being classified classification for breakpoints Classifications for the token are added to this list Spans for current breakpoints The token classification True if the token was classified, or false if the token is not within a breakpoint span Used to define the color for a breakpoint line Initializes a new instance of the BreakpointMarkerDefinition class Declares a new content type called TextOutput, derived from text and used for the classifications classification type definition the classification type used in the output to fill gaps between classifications Map of all cached classification types used in the output Initializes a new instance of the OutputClassifier class. text buffer corresponding to the classifier Gets a cached classification type for given colors or adds one to the cache and returns it if not cached yet foreground color background color output background color a cached classification type for given colors or adds one to the cache and returns it if not cached yet Sets the font color for gaps in the output Color to set the gap classification foreground color to Given a SnapshotSpan, this method returns a list of ClassificationSpans that we want to classify in the given SnapshotSpan span to classify classification (ClassificationSpans) Gets the classification type used in the output to fill gaps between classifications Provides the IClassifier for the output editor Provides the IClassifier for the output editor text buffer we're classifying the IClassifier for PowerShell syntax highlighting Tags matching braces/quotes and other paired characters Initializes a new instance of the PowerShellBraceMatchingTagger class the editor view the editor buffer Returns the brace matching tags for the giving span span to retrieve tags for the brace matching tags for the giving span Triggers the event that will force retagging a span span to tag Gets a span starting at position with length 1 span start position a span starting at position with length 1 Called when the caret moves from a PageDn/PgUp, for instance to update the caret position event sender event arguments Called when the caret position changes to update the caret position event sender event arguments Called when the caret position changes to set this.CurrentChar and to force the retagging for brace matches new caret position Removes the instance of this object added in the constructor in case the content changes event sender event arguments Event that will force retagging a span Gets or sets the editor view Gets or sets the editor buffer Gets or sets the current caret character Class used to define the color for brace matching so that it is visible in both dark and light backgrounds Initializes a new instance of the BraceHighlightMarkerDefinition class Provides the PowerShellBraceMatchingTagger for the "powershell" content Creates the PowerShellBraceMatchingTagger for the "powershell" content type of tagger editor TextView editor Buffer the PowerShellBraceMatchingTagger for the "powershell" content Provides the IClassifier for PowerShell syntax highlighting Provides the IClassifier for PowerShell syntax highlighting text buffer we're classifying the IClassifier for PowerShell syntax highlighting Provides the error tags for the "powershell" content Initializes a new instance of the PowerShellErrorTagger class the editor view the editor buffer Returns the error tags for the giving span span to retrieve tags for the error tags for the giving span Triggers the event that will force retagging a span span to tag Removes the instance of this object added in the constructor in case the content changes event sender event arguments Event that will force retagging a span Gets or sets the editor view Gets or sets the editor buffer Provides the PowerShellErrorTagger for the "powershell" content Creates the PowerShellErrorTagger for the "powershell" content type of tagger editor TextView editor Buffer the PowerShellErrorTagger for the "powershell" content Provides the outline tags for the "powershell" content Initializes a new instance of the PowerShellOutliningTagger class the editor buffer Returns the outline tags for the giving span span to retrieve tags for the outline tags for the giving span Helper to GetTags that allows the tagger to return the previous set of tags untill they change. All of the other taggers work something like this with the help of the tokenization service: 1 - When the tokenization is starting, all tags are removed (for instance, there will be no colors) 2 - When the tokenization is done, the OnTagsChanged method is called causing the GetTags to be called again 3 - GetTags will then retrieve the tokenization information and return the latest tags For regions, the steps below don't work. The outlining manager keeps track of collapsed regions and step #1 , which removes all regions, causes the following trouble in the tokenizer: An assertion is triggered informing the "tagger has bisbehaved" and pottentially, collapsed regions are expanded and loose their plus/minus sign control that allows them to be collapsed. Becausae of this tracking for collapsed regions we need a different approach: 1 - When the tokenization starts, GetTags will still return the previous outlining regions. 2 - Once the tokenization is done, OnTagsChanged is called to return the new set of regions. The way this is achieved is for the method below to cache the returned tags in a buffer property named . When the tokenization is done, the new tag information is placed in and is deleted so that when this method is called again (when OnTagsChanged is called), the cache is refreshed. the editor buffer name of the property with tag information name of the property with the last tags returned from this method The tags corresponding to the tokenized tag information Triggers the event that will force retagging a span span to tag Removes the instance of this object added in the constructor in case the content changes event sender event arguments Event that will force retagging a span Gets or sets the editor buffer Provides the PowerShellOutliningTagger for the "powershell" content Creates the PowerShellOutliningTagger for the "powershell" content type of tagger editor Buffer the PowerShellOutliningTagger for the "powershell" content Provides an indentation provider with the same number of spaces as the previous line view associated with this object Initializes a new instance of the SmartIndent class. view associated with this object Returns the same number of spaces from the previous line, if there is a previous line current line the same number of spaces from the previous line, if there is a previous line Part of the public interface, but there is nothing to dispose specifically in this implementation Provides an ISmartIndent implementation for all files in powershell ISE (ContentType("text")) Provides an ISmartIndent implementation for all files in powershell ISE (ContentType("text")) The view associated with the ISmartIndent An ISmartIndent implementation for all files in powershell ISE (ContentType("text")) Class containing all data about a Snippet Icon for Snippets Display title which shows in the drop down Schema Version of this snippet A few lines describing the intent and usage of the snippet The author, which may be a person or organization The code fragment that is inserted into the editor if the snippet is chosen Whether the snippet was loaded via a command into the tab false, if it was loaded from the user folder onstartup, or was a default snippet True if and only if this is a default hardcoded snippet Location on disk from where this was loaded The number of chars the caret must be moved after this snippet is inserted. -1 indicates no movement, which leaves it at the end of the snippet true (default) - indent the snippet based on the position of insertion false - do not indent this snippet; insert as specified in the XML file, unchanged Hash value to facilitate comparisons to avoid duplication The completion corrosponding to this snippet which will be passed to the editor Initializes a new instance of the ISESnippet class This ctor is used to create global default snippets, hence it does not need a path name Title displayed in the snippet dropdown Schema version of the snippet The Description Author person or organization Text that would be inserted into the editor by the snippet Caret offset from start after the snippet is inserted Initializes a new instance of the ISESnippet class This ctor is used to create all disk snippets - global ones from the user folder and tab specific ones when Load.. commands are used Title displayed in the snippet dropdown Schema version of the snippet The Description Author person or organization Text that would be inserted into the editor by the snippet Disk location of the snippet true iff it is tab specific Caret offset from start after the snippet is inserted True iff the snippet should be indented based on the point of insertion (This is now only used by unit tests) Equality of snippets used to prevent double-loading into an ISESnippetCollection. The other snippet in comparison true iff they may be deemed equal Creates a Snippet Title displayed in the snippet dropdown Schema version of the snippet The Description Author person or organization Text that would be inserted into the editor by the snippet Disk location of the snippet true iff it is a default hardcoded snippet true iff it is tab specific Caret offset from start after the snippet is inserted True iff the snippet should be indented based on the point of insertion Computes the unique hashcode for the snippet making use of the fact we never have a null char in the four distinguishing fields of the snippet. the computed hash Gets the Display Title Gets the Schema Version Gets the Snippet Description Gets the Author Gets the Code Fragment Gets a value indicating whether the snippet is Tab Specific Gets a value indicating whether the snippet is a default one Gets the FullPath Gets the Completion for this snippet Gets the number of chars from start by which the caret must be moved after the snippet is inserted Gets a value indicating whether the snippet should be indented based on the point of insertion Gets the unique hashcode used to prevent double loading Collection of ISESnippet Namespace for the snippets XML schema Standard extension for the snippet xml files on the disk Schema version These user snippets are loaded once at start of app and never again -1: not simulated, 0: simulated initial tab, 1: simulated successive tab Object used for locking true if the Snippets functionality is enabled false when the snippets are in the process of loading Lookup table used to check for a snippet by it's hashcode to avoid duplication All snippets accessed via $psISE.CurrentPowerShellTab.Snippets[..] All snippet completions given to the editor if showdefaultsnippets = true Non-default snippet completions given to the editor if showdefaultsnippets = false Authorization Manager used to read files, so that they are not read in if the policy is restricted Initializes a new instance of the ISESnippetCollection class and initializes it with default and disk snippets common to all tabs. Authorization manager to be used to read the disk files Loads a single snippet XML file (which could contain multiple snippets). Unlike all other Load..() methods, this Load method - * works synchronously.. so a large file will make the prompt unavailable for a while * throws meaningful exceptions for malformed snippets and file read errors instead of silently ignoring them Full path and name of the file to be loaded Required to support looping by foreach The Enumerator over the snippets Required to support looping by foreach This never really gets called, but i need it to support the IEnumerable T-in-angle-bracket GetEnumerator() and this is the only way i can do a good foreach Called artificially from unit test only The Enumerator over the snippets For unit test only true if it is the first tab Used by unit tests only File name or "Default" XPath navigator at root target list the number of snippets added to the target list Updates the object specific (tab specific) snippet lists of all tabs based on the userSnippetBank and enables the functionality This is used by unit tests to find if a snippet is in this collection The snippet to look for true iff the snippet exists in the collection Uses XPath to parse out required fields from a XML string, creates a completion, and adds it to the list Name of the disk file with full path, or 'Default', if it is a default snippet The XPath document Target list to load into the number of snippets added to the target list Uses XPath to parse out required fields from a XML string, creates a completion, and adds it to the list Name of the disk file with full path, or 'Default', if it is a default snippet The XPath document Target list to load into true if and only if InvalidOperationException must be thrown on the first encountered error in the XML structure. If this is false (default) the function ignores malformed snippets silently. the number of snippets added to the target list Adds a snippets to the list if it is not there already The snippets to add whether it is a default snippet true if it was added Loads snippets from a folder location and returns them in a list The disk location to load from true if subfolders should be included list containing loaded snippets Loads all the snippets from a single snippets.ps1xml file and returns them in a list. Unlike the other Load methods, it does not ignore malformed snippets - it throws InvalidOperationException with relevant messages, and stops on the first encountered error Full path with name of file to load List of all snippets from the file Gets the number of snippets in this collection Gets a value indicating whether the snippets functionality is enabled Gets the list of completions - default + user + tab Gets the list of completions - user + tab but not default Gets the ISESnippet at position [index] 0 based position of element to retrieve the snippet requested One instance of this serves the entire app, as the display of snippets is not dependent on context. This is created (once) and served to the editor through the ISESnippetCompletionSourceProvider. The editor calls AugmentCompletionSession in this class for each session to get the completions populated. Comparer for completions to get them sorted by display name This will be called from within the editor for each completion session, and gives us the opportunity to populate the list of completion sets with ours. We should populate only if the session is a Snippets session and not an intellisense session, and we determine that by looking for the "SessionOrigin" property The completion session to be augmented The target list to add completion sets into This will be called just before GC. Nothing we need to do, as we do not maintain any system handles. There is nothing at class level that needs careful disposal The lists of Snippet Completions are just a reference to memory we do not need anymore This comparer is used to sort the completion itemsas per their display names Comparer to sort snippets by display name the first completion the completion to compare against 0/-/+ value depending on which completion is greater This is a MEF exported class that is imported by the editor to provide completion functionality. The editor will call the TryCreateCompletionSource method and register the completion source object provided by it. For each completion session, the editor will give all registered sources a chance to add to the CompletionSet List by calling their AugmentCompletionSession(..) This is the only snippet completion source in the system. We show the same snippet source object through the app though the actual completions shown are stored in the tab's SnippetCollection. Snippets are not context dependent, so there is no reason to tie the CompletionSource to the textBuffer.. it is the same one across all text buffers Will be called from editor the text buffer from the editor The completion source Contains default harcoded snippets that are always available unless the .options.ShowDefaultSnippets is set to $false. Code for harcoded snippet for if Condition Code for harcoded snippet for if..else Condition Code for harcoded snippet for a for loop Code for harcoded snippet for a foreach loop Code for harcoded snippet for a function with 2 parameters Code for harcoded snippet for an advanced function Code for harcoded snippet for an advanced and big function with all bells and whistles Code for harcoded snippet for a switch statement Code for harcoded snippet for a while statement Code for harcoded snippet for a do-while loop Code for harcoded snippet for a do-until loop Code for harcoded snippet for a try-catch-finally block Code for harcoded snippet for a try-finally block Code for harcoded snippet for a comment block The code segment for workflow inline script The code for parallel workflow The code for sequence workflow The code for sequence workflow code for simple workflow snippet code for advanced workflow snippet A harcoded snippet for if Condition A harcoded snippet for if else A harcoded snippet for a for loop A harcoded snippet for a foreach loop A harcoded snippet for a function with 2 params A harcoded snippet for a advanced function (ScriptCmdlet) with some attributes and, inline help fields and Begin,Process,End blocks A harcoded snippet for a advanced function (ScriptCmdlet) with all attributes and all inline help fields A harcoded snippet for a switch statement A harcoded snippet for a while loop A harcoded snippet for a do-while loop A harcoded snippet for a do-until loop A harcoded snippet for a try-catch-finally block A harcoded snippet for try-finally exception handling A harcoded snippet for a comment block A harcoded snippet for a workflow inline script A hardcoded snippet for parallel workflow A hardcoded snippet for sequence workflow A hardcoded snippet for sequence workflow snippet for simple workflow snippet snippet for advanced workflow Default snippets hardcoded below Provided largely to facilitate unit tests Display name the snippet with this name This is called on application load to assemble the strings into a list. Not expected to be time consuming because they are harcoded strings in the code, not on external disk files. The default snippets as strings containing full XML Replaces resource markers in with the corresponding resource string the string to replace resource markers the string with resource markers replaced Gets default snippets This is the only method called by the completion source to get the available default snippets Manages Snippet operations. It is currently a thin static wrapper over the functionality provided by the Completion broker, in addition to keeping track of the active session and selected completion. It can be static today because we never have more than one snippet session at a point in time in the whole app. If that were to change, we would make this non-static and have one instance of this for every snippet session The current active session, if any True if the current active session is not being committed Selected snippet Tracking span for the insertion from the currently selected snippet Session Committed Event Handler hooked to all sessions The handler objects are created once and used throughout Session Dismissed Event Handler hooked to all sessions The handler objects are created once and used throughout Selection Changed Event Handler hooked to all Completion sets in all sessions The handler objects are created once and used throughout This initiates a completion session and shows a completion drop-down visually. It is called from the menu as well as from the keyboard shortcut. In both cases, it is invoked from ISEEditor. The text view in which completion is triggered true if the Snippet drop-down has been shown and the key event, if any, may be deemed handled. false if the snippets were not shown for any reason and the key event, if any should be relayed to other handlers. Commits the current completion true if the key (Tab/ Enter) may be deemed handled This gets called when user types chars after bringing up the snippets pane to filter the result. The activeSession.Filter() in turn causes the editor to call the .Filter() of each completion set on display at that time Calculates and returns the blank string of required length to produce indentation based on the current caret position Current caret position where the completion session is started A blank string to be prepended to each line Handler hooked when the session is initiated. This is called when the session is committed by TAB or ENTER The event sender, normally the Session Event argument that can be used to find how the session was committed Handler hooked when the session is initiated. This is called when the session is dismissed by ESC or other typing, or change of focus.. or any other way The event sender, normally the Session Event argument that can be used to find how the session was committed Handler hooked just after the session is initiated. This is called when the selected completion changes, and we use it to keep track of the selected snippet to position the caret accordingly if it the session ended with this selection The event sender, normally the CompletionSet Event argument Gets the Active session Exposing it as an internal to be able to unit test easily Interaction logic for OutputControl.xaml OutputControl Content associated with this control Initializes a new instance of the OutputControl class. InitializeComponent Gets or sets the control content Contents of a Runsapce Tab containing the InputAndOutputControl and an EditorTabControl RunspaceControl Initializes a new instance of the RunspaceControl class. Called when the selection changes in the GUI to set the corresponding property in the object model collection containing the new selected tool new selected tool Called when the editor or console change sizes to store the widths and heights of rows and columns. The sizes are stored as a proportion to the height for their use in UpdateRowAndColumnSizes. event sender event arguments For High Contrast mode, new RunspaceControl's are being created for some reason. We want the new control to display the PowerShellTab object correctly, if it is expanded, side by side, etc. Just after creation, the RunspaceControl will appear as if the ScriptEditor is expanded which is fine for when the application starts but not fine when the application is up and the ScriptEditor is expanded and we switch to high contrast. event sender event arguments Called when the selection changes in the horizontal AddOnTools tab control to set the corresponding object model property the tab control where the selection changed ignored event arguments Called when the selection changes in the vertical AddOnTools tab control to set the corresponding object model property the tab control where the selection changed ignored event arguments InitializeComponent TabControl with Runspaces (RotatedRunspaceControl). RunspaceTabControl Initializes a new instance of the RunspaceTabControl class. Set the CloseTabButton automation id to filename.btnCloseTab event sender event arguments Called when the runspace is loaded event sender event arguments Called when the PowerShellTab collection is changed to select the new runspace event sender event arguments Called to start listening to the Layout update. event senders event arguments Called to ensure the presenter is going to be able to find the runspaceControl before changing PSGHostInternal.Current.PSGData.PowerShellTabs.SelectedPowerShellTab event sender event arguments InitializeComponent Gets the selected RunspaceControl Interaction logic for ScriptExpander.xaml ScriptExpander Initializes a new instance of the ScriptExpander class. InitializeComponent Interaction logic for ShowCommandAddOnControl.xaml ShowCommandAddOnControl Interface implemented by AddOnTools to give them access to the host object Gets or sets the host object. This will be set on ISE before the control is displayed with the root of the object model. ViewModel used for the controls root of the ISE object model Initializes a new instance of the ShowCommandAddOnControl class. Initializes this controls with its data the data used in the control Sets up the listening of events in the ViewModel and the DataContexts Monitors this tool being added or removed to update this.hostObject.CurrentPowerShellTab.ShowCommands event sender event arguments Monitors this tool changing visibility to update this.hostObject.CurrentPowerShellTab.ShowCommands event sender event arguments Monitors this tool pane being opened/closed to update this.hostObject.CurrentPowerShellTab.ShowCommands event sender event arguments Called when the Refresh button is pressed event sender event arguments Called when the import-module button is pressed event sender event arguments Refreshes the ViewModel and reposition the selected module/command if those parameters are not null command selected when the refresh was requested name of the selected command parent module when the refresh was requested module selected when the refresh was requested tab where this tool is Called when help is needed for the selected command event sender event arguments Copies the script into the clipboard event sender event arguments Runs the selected command event sender event arguments Called when the selected command needs to be run event sender event arguments Runs the current script Inserts the command text in the console pane event sender event arguments InitializeComponent Gets or sets the root of the ISE object model Interaction logic for StatusAndSizingBar.xaml StatusAndSizingBar Initializes a new instance of the StatusAndSizingBar class. InitializeComponent Helper classes for WPF functionality Maximum number of lines in GetMaxLines Maximum number of characters in GetFirstNonEmptyLine Auxiliar in finding topmost-leftmost controls String Array Constant used in Sting.split Char Array Constant used in Sting.split Value indicating whether the SendToUIThread can dispatch to the UI thread. This flag is set in SendToUIThreadAndBlock to avoid locking on the UI thread. In the watch window example, that makes use of InvokeSynchronous, this will prevent watching "write-debug 'abc' -debug" or "write-debug" to cause an application hang. Lock ensuring only one thread at a time verifies canSendToUIThread Returns true if the current mode is high contrast true if the current mode is high contrast Gets the Color specified in the native color constant constant used to retrieve a color The Color specified in the native color constant Retrieves a KeyGesture with no display name key gesture string A KeyGesture for the given gestureString or null if one could not be produced Searches for K in T, considering T is sorted Type for a List in Binary search Type for a key compared against all items items being searched key compared to all items delegate that actually performs the comparison of items against the keys the item matching the key or -1 if it has not been found (30, delegate(PSToken token, int position) { // a position of 48 looking for a token ending at position 30 // would return 18 below which would cause the binary search to search in the second half return position - (token.Start + token.Length); }); ]]> Returns a KeyGesture for the given gestureString or null if one could not be produced key gesture string A KeyGesture for the given gestureString or null if one could not be produced Given the gestureString looks for the propper display string by looking up resources ending up with KeyboardDisplayName The gesture string we are trying to get the display string for the propper display string evaluated by looking up resources ending up with KeyboardDisplayName Returns a KeyGesture for the given modifier and key or null if one could not be produced key to be passed to the KeyGesture constructor modifier to be passed to the keygesture constructor A KeyGesture for the given modifier and key or null if one could not be produced Removes \r and \n from source string to normalize source with no \r or \n Starts the process and puts up a message box if any exceptions have been found. process to start Shows an "Ok" MessageBox for the Exception Exception to show the message box for Shows an "Ok" MessageBox for the Exception Message to show the message box for Invokes SaveFileDialog SaveFileDialog's file extension SaveFileDialog's filter SaveFileDialog's file name the saved file name or null if the dialog was cancelled Invokes OpenFileDialog OpenFileDialog's file extension OpenFileDialog's filter OpenFileDialog's initial directory the file name or null if the dialog was cancelled Returns the first child of that satisfies the criteria in or null if no child satisfies the criteria. The parent of children we are searching for delegate that provides search criteria the first child of that satisfies the criteria in or null if no child satisfies the criteria. Searchs the logical tree for a ContentPresenter with "SelectedContent" as its source. Typically used to find the content of a TabControl. The header is easily found with... parent control to search for the ContentPresenter for the Selected Content or null if there is none Returns true if a child of is focused the parent control we want to if it is focused true if a child of is focused Sets the ficus in a subcontrol of with the lowest tab index or, if tab indexes have not been set, to the topmost leftmost control parent control we want to set the focus to Calls dispatcherMethod in the UI thread, blocking future calls to SendToUIThread requiring SynchronizationContext.Send dispatcher method to call dispatcherMethod 's return value if the method throws an exception If there is a pending call to this method. Tries deleting the file corresponding to fullPath full path to delete true if it was able to delete the file Calls sendMethod in the UI thread method to call if the method throws an exception If there is a pending call to SendToUIThreadAndBlock and it is necessary to use SynchronizationContext.Send Calls dispatcherMethod in the UI thread dispatcher method to call dispatcherMethod 's return value if the method throws an exception If there is a pending call to SendToUIThreadAndBlock and it is necessary to use SynchronizationContext.Send Gets the first non empty line and limits it to WPFHelper.GetFirstNonEmptyLineMaxCharacters the string to the first line from the first non empty line limitted to WPFHelper.GetFirstNonEmptyLineMaxCharacters Gets the first non empty line and limits it to WPFHelper.GetFirstNonEmptyLineMaxCharacters the string to the first line from maximum number of characters in line, -1 for no restriction the first non empty line limitted to WPFHelper.GetFirstNonEmptyLineMaxCharacters Limits a string to limit charachters the string to be limited the limit of characters in the return (not considering ellipsis or localized continuation) the limited string Gets the first lines of . string we want to limit the number of lines The first lines of . Verifies if a file can be executed in the authorization manager, and returns its contents if it can be executed path to the file being verified and read Authorization Manager contents as a string if the file can be executed, otherwise null Verifies if a file can be executed in the authorization manager, and returns its contents if it can be executed path to the file being verified and read Authorization Manager true if this method should throw exceptions contents as a string if the file can be executed, otherwise null Tries to get a registry value in HKLM key in HKLM containing the value name of the value to get A value in HKLM or null if it could not be retrieved Retrieves the Color from a native colorConstant Color constant retrieved from GetColor The Color from a native colorConstant Calls dispatcherMethod or sendMethod in the UI thread, blocking future calls to SendToUIThread requiring SynchronizationContext.Send sendMethod method to call dispatcher method to call true if WPFHelper.canSendToUIThread should be checked The return of dispatcherMethod or nothing if sendMethod was used if the method throws an exception If there is a pending call to this method. Auxiliar delegate for FindFirst child to be checked true if the child satisfies some criteria Delegate used in BinarySearch that is supposed to return 0 if key matches item's key a negative value if the key is smaller than item's key and a positive value if the key is larger then item's key Type for a List in Binary search Type for a key compared against all items item being searched key compared to all items 0 if key matches item, a negative value if the key is smaller than item and a positive value if the key is larget than item's key see BinarySearch Custom Commands used by GPowerShell that do not show up in the main menu Custom command to enable the breakpoint on the current line Custom command to disable the breakpoint on the current line Gets a command used to enable the breakpoint on the current line Gets a command used to disable the breakpoint on the current line Common functionality meant to be shared between powershell_ise.exe and Microsoft.PowerShell.GPowerShell.dll If a mutex is abandoned, in our case, it is ok to proceed The mutex to wait on. If it is null, a new one will be created The mutex name. A working mutex. If the mutex was abandoned, a new one is created to replace it Custom Commands used by GPowerShell Custom command used to add a new remote powershell tab Custom command used to open the options dialog Custom command used to find the next text in the script pane Custom command used to find the previous text in the script pane Custom command to start powershell Custom command to go to a script line Custom command to toggle the scripting pane visibility Custom command used to toggle the horizontal tool pane visibility Custom command used to toggle the vertical tool pane visibility Custom command used to hide the selected horizontal tool Custom command used to hide the selected vertical tool Custom command used to move the selected horizontal tool to vertical Custom command used to move the selected vertical tool to horizontal Custom command used to go to the selected vertical tool Custom command used to go to the selected horizontal tool Custom command used to show and select an AddOn tool Custom command used to toggle the ToolBar visibility Custom command used to display scripts on the right Custom command used to display scripts on the top Custom command used to display scripts maximized Custom command to exit the application Custom command to replace all text Custom command to run a script Custom command to run the selection Custom command to stop a script Custom command to close a runspace tab Custom command to get a new runspace tab Custom command to show a runspace tab Custom command to show a Script tab Custom command to run a custom script Custom command to move script to the top or right. Custom command to clear the output Custom command used to go to the console pane Custom command to go to the script editor Custom command to execute "step into" in the debugger Custom command to execute "step over" in the debugger Custom command to execute "step out" in the debugger Custom command to resume execution of the debugger Custom command to stop the debugger Custom command to toggle (add/remove) the breakpoint on the current line Custom command to remove all breakpoints Custom command to enable all breakpoints Custom command to disable all breakpoints Custom command to get the callstack Custom command to list all breakpoints Custom command to zoom in. Custom command to zoom out. Command used to find text in any editor Command used to replace text in any editor Command used to create a new script Command used to open a new script Command used to save a script Command used to save a script as another file name Command used to close a script Command used to undo the last action Command used to redo the last action Command used to cut text from input or from scripts Command used to copy text from any editor Command used to paste text in the input or in scripts Command used to get help Command used to select all text in any editor Custom command to go to the the matching character Custom command to start intellisense Custom command to insert a snippet Custom command used to open a file from the MRU list Custom command used to toggle outlining Custom command used to show the embedded show-command window Custom command used to toggle line numbers Custom command used to toggle Outlining Custom command used to run update-help Custom command used to display AddOn information Custom command used to display the show-command popup window Adds the KeyGesture corresponding to to the 's InputBindings if can be converted to a KeyGesture. command whose InputBindings we'll add the gesture. string rpresentation of a gesture to be added Gets a command used to open a file from the MRU list Gets a command used to go to the the matching character Gets a command used to find text in any editor Gets a command used to replace text in any editor Gets a command used to create a new script Gets a command used to open a new script Gets a command used to save a script Gets a command used to save a script as another file name Gets a command used to close a script Gets a command used to undo the last action Gets a command used to redo the last action Gets a command used to cut text from input or from scripts Gets a command used to copy text from any editor Gets a command used to paste text in the input or in scripts Gets a command used to get help Gets a command used to select all text in any editor Gets a command used to increase the font. Gets a command used to decrease the font. Gets a command used to start powershell Gets a command used to start powershell Gets a command used to toggle the ToolBar visibility Gets a command used to toggle the scripting pane visibility Gets a command used to toggle the horizontal tool pane visibility Gets a command used to toggle the vertical tool pane visibility Gets a command used to move the selected horizontal tool to vertical Gets a command used to move the selected vertical tool to horizontal Gets a command used to go to the selected vertical tool Gets a command used to go to the selected horizontal tool Gets a command used to show and select an AddOn tool Gets a command used to hide the selected horizontal tool Gets a command used to hide the selected vertical tool Gets a command used to show scripts maximized Gets a command used to show scripts on the top Gets a command used to show scripts on the right Gets a command used to go to the console pane Gets a command used to exit the application Gets a command used to go to the script editor Gets a custom command used to add a new remote powershell tab Gets a custom command used to open the options dialog Gets a command used to find the next text in the script pane Gets a command used to find the previous text in the script pane Gets a command used to replace all text Gets a command used to clear the output Gets a command used to move script to the top or right Gets a command used to run a script Gets a command used to run the selection Gets a command used to stop a script Gets a command used to add a new runspace Gets a command used to close a runspace Gets a command used to show a runspace Gets a command to run a custom script. Gets a command used to show a script Gets a command used to execute "step into" in the debugger Gets a command used to execute "step over" in the debugger Gets a command used to execute "step out" in the debugger Gets a command used to resume the debugger Gets a command used to stop the debugger Gets a command used to toggle (add/remove) the breakpoint on the current line Gets a command used to remove all the breakpoints Gets a command used to enable all the breakpoints Gets a command used to disable all the breakpoints Gets a command used to get the callstack Gets a command used to get the callstack Gets a command used to start intellisense Gets a command used to toggle outlining Gets a command used to toggle the embedded show-command Gets a command used to toggle line numbers Gets a command used to toggle outlining expansion Gets a command used to run update-help Gets a command used to insert a snippet Gets a command used to display AddOn information Gets a command used to call show-command GPowerShell PSHostRawUserInterface imlpementation Default width return by BufferSize when no width has been set. Minimum width return by BufferSize. Maps ConsoleColors to colors Cursor position. This is not actually internally used, but instead of throwing in the CursoPosition property setter and getter we just return the last position set so that a default cls function works. The default cls function is used in remoting. The PowerShellTab associated with this host initial host Size Initializes a new instance of the GPSHostRawUserInterface class. the PowerShellTab associated with this host Returns true if color is a valid ConsoleColor color to check true if color is a valid ConsoleColor Reads a pressed, released, or pressed and released keystroke from the keyboard device, blocking processing until a keystroke is typed that matches the specified keystroke options. A bit mask of the options to be used when reading from the keyboard. Either IncludeKeyDown, IncludeKeyUp or both must be specified. A KeyInfo object that describes the key. The object is returned when a keystroke is made that matches the specified keystroke options. Flushes the input buffer of all input records. Gets a rectangular region of the screen buffer. A Rectangle object that identifies the sides of the rectangle. An array of BufferCell objects extracted from the rectangle region. The returned array is organized in row-major order for performance even though the screen buffer is organized in column-major order. For example, a character originally appearing at position [X=10,Y=2] (column 10, row 2) will appear in the resulting array at position [2,10] (row 2, column 10). Crops a region of the screen buffer. A Rectangle structure that identifies the region of the screen to be scrolled. A Coordinates structure that identifies the upper-left coordinates of the region of the screen to receive the source region contents. A Rectangle structure that identifies the region of the screen to include in the operation. If a cell does not fall within the clip region, it will be unchanged. A BufferCell structure that identifies the character and attributes to be used to fill all cells within the intersection of the source rectangle and clip rectangle that are left "empty" by the move. Copies a given character, foreground color, and background color to a region of the screen buffer. This is not implemented here, but we do clear the screen when called so that the default cls implementation (used in remoting) works. A Rectangle structure that defines the area to be filled. If the structure specifies a top, bottom, left , or right side of -1, the entire screen buffer is filled. A BufferCell structure that defines the fill character. Copies an array of buffer cells into the screen buffer at a specified location. A Coordinates structure that identifies the top-left corner region to be filled. A BufferCell array that describes a region of cells. Returns the length of in buffer cells. String we want to know the length of. The length of in buffer cells. same as the implementation in the base class; included here to make it easier to keep the other overload in sync: LengthInBufferCells(string, int) Returns the length of in buffer cells starting at . String we want to know the length of. Offset within . The length of in buffer cells starting at . This is an alternative to the default implementation provided by PSHostRawUserInterface that is more performant. Gets and sets the background color used to render characters on the screen buffer. Gets and sets the foreground color used to render characters on the screen buffer. Gets or sets the current size of the screen buffer. Cursor position. This is not actually internally used, but instead of throwing in the CursoPosition property setter and getter we just return the last position set so that a default cls function works. The default cls function is used in remoting. Gets and sets the cursor size as a percentage of a buffer cell. Gets a value indicating whether a key press is available in the input stream. Gets the largest window possible for the current font and display hardware, ignoring the current buffer dimensions Gets the size of the largest window possible for the current buffer, current font, and current display hardware. Gets and sets the position, in characters, of the view window relative to the screen buffer. Gets and sets the current size of the view window. Gets and sets the title bar text of the current view window. GPowerShell PSHostUserInterface imlpementation implementation of ReadLineDialog and PromptForCredential value of the RawUI property The PowerShellTab associated with this host Initializes a new instance of the GPSHostUserInterface class. the PowerShellTab associated with this host Prompts the user for input. The caption or title of the prompt. The description of the prompt. A collection of FieldDescription objects that describe each field to prompt for. A dictionary object with results of the user prompts. The keys of the dictionary are the field names from the FieldDescription objects. The dictionary values are objects that represent the values of the corresponding fields as collected from the user. Presents a dialog that enables the user to choose an option, a choice, from a set of options. The caption or title of the prompt. The message that describes the choice. A collection of ChoiceDescription objects that describe each choice. The index of the label in the ChoiceDescription collection that represents the choice presented to the user as the default choice. Always choose the most secure default choice. To indicate no default, set to -1. The index of the ChoiceDescription object that corresponds to the option selected by the user. Prompts the user for credentials using a specified prompt window caption, prompt message, user and target name, credential types allowed to be returned, and UI behavior options. The caption for the message window. The text of the message. The name of the user whose credential is to be prompted for. If this parameter set to null or an empty string, the function will prompt for the user name first. The name of the target for which the credential is collected. An PSCredentialTypes enumeration constant that identifies the type of credentials that can be returned. An PSCredentialUIOptions enumeration constant that identifies the UI behavior when it gathers the credentials. A PSCredential object that contains the credentials for the target. Prompts the user for credentials with a specified prompt window caption, prompt message, user name, and target name. The caption for the message window. The text of the message. The name of the user whose credential is to be prompted for. If this parameter set to null or an empty string, the function will prompt for the user name first. The name of the target for which the credential is collected. A PSCredential object that contains the credentials for the target. Reads characters entered by user until a newline (carriage return) is encountered. The characters entered by the user. Reads characters entered by the user until a newline (carriage return) is encountered and returns the characters as a secure string. A SecureString object that contains the characters entered by the user. Writes characters to the output display of the host with possible foreground and background colors. The foreground color of the display. The background color of the display. The characters to be written. Writes characters to the output display of the host. The characters to be written. Displays a debug message to the user. Debug message supplied by the cmdlet. Writes a line to the error display of the host. The characters to be written. Writes a line of characters to the output display of the host and appends a carriage return. The characters to be written. Writes a progress report for display to the user. Unique identifier of the source of the record. An int64 is used because the 'this' pointer of the command where the record originated from is used, and that may be from a remote runspace on a 64-bit computer. A ProgressRecord object that contains the progress record to be displayed. Writes a verbose line for display to the user. The verbose message to be displayed. Writes a warning line to be displayed the user. The warning message to be displayed. Converts to considering and and placing the result in string to convert type to convert the string to true if targetType is SecureString true if this conversion is being attempted in a remote host result from conversion conversion exception, if any Wraps a string performing an action with each segment string to wrap wrap segment size last line length currently being displayed to be subtracted from wrapLength for the first line true if we should add a new line after the last segment action to perform on each segment foreground color background color If is transparent returns PSGInternalHost.Current.Options.ConsolePaneBackgroundColor otherwise returns . Background color to return the resulting color from The propper background color considering transparency Writes source to the output wrapping, if needed string to be written to the output true if we should add a new line after adding source The foreground color. The background color. Retrieves the corresponding value to considering prompt commands The value we want to get the corresponding value from the value's targetType true if is SecureString the corresponding value to considering prompt commands Called from WrapString to perform the action on each segment and do some bookkeeping firstLineLength to be set to 0 action delegate to be performed segment to perform action on and clean repassed as is to the action delegate The foreground color. The background color. Adds a line to the output line to br added true if a new line should be added after adding the element The foreground color. The background color. Prompts in the console overall prompt message set to true if the prompt has been canceled input read from the console Prompts with a dialog or in the console The caption or title of the prompt. The description of the prompt. true if retrieving a SecureString overall prompt message One of the values passed to prompt The description type the result converted from string the result as a string faklse if the prompt has been canceled, true otherwise Gets the hosting application implementation of the PSHostRawUserInterface interface. Gets or sets the implementation of ReadLineDialog and PromptForCredential Delegate to be called for each segment out of WrapString segment out of WrapString true if a new line should be added after adding the element The foreground color. The background color. GPowerShell PSHost implementation The host private data. This is static since it points to the static options. Value saved for the CurrentCulture property Value saved for the CurrentUICulture property culture evaluation lock InstanceId of this host Host Version The PowerShellTab associated with this host Host UI that actually performs the GUI functionality Initializes a new instance of the GPSHost class. the PowerShellTab associated with this host Instructs the host to interrupt the currently running pipeline and start a new nested input loop. An input loop is the cycle of prompt, input, and execute. Instructs the host to the currently running input loop. Notifies the host that the Windows PowerShell runtime is about to execute a legacy command-line application. A legacy application is defined as a console-mode executable that may perform any of the following operations: read from stdin, write to stdout, write to stderr, or use any of the win32 console APIs. Notifies the host that the Windows PowerShell engine has completed the execution of a legacy command. A legacy application is defined as a console-mode executable that may perform any of the following operations: read from stdin, write to stdout, write to stderr, or use any of the Windows console APIs. Request to end the current runspace. The Windows PowerShell runtime calls this method to request that the host application shut down and terminate the host root runspace. returns the exit code for the host See base class. new runspace to push See base class. Handles state changed event of the remote runspace. If the remote runspace gets into a broken or closed state, writes a message and pops out the runspace event sender arguments describing this event Gets the host private data that corresponds to the options. Gets the culture that the runspace will use to set the current culture on new threads. Gets the UI culture that the runspace and cmdlets will use to do resource loading. Gets the identifier that uniquely identifies this instance of the host. Gets the user-friendly name of the hosting application. Gets the hosting application's implementation of the PSHostUserInterface base class. Gets the version number of the hosting application. Gets a value indicating whether a runspace is pushed Gets the current runspace associated with this host. Localizable AutomationNames "text input" "password input" "Resource String: OK" "input description" "input help message" "Resource String: Cancel" "Resource String: Manage Themes Button" "Resource String: Options Window Font Size ComboBox" "Resource String: Options Window Cancel Button" "Resource String: Options Window Enter Selects Intellisense CheckBox" "Resource String: Options Window AutoSave Text Box" "Resource String: Options Window Use Default Snippets CheckBox" "Resource String: Options Window Show in the Console Pane CheckBox" "Resource String: Options Window Show Line Numbers Check Box" "Resource String: Options Window Font Family Combo Box" "Resource String: Options Window Apply Button" "Resource String: Options Window Prompt to Save Before Run CheckBox" "Resource String: Options Window Sample Rich Text Box" "Resource String: Options Window Timeout In Seconds Combo Box" "Resource String: Options Window Recent Files Text Box" "Resource String: Options Window Restore Button" "Resource String: Options Window Use Local Help CheckBox" "Resource String: Options Window Position Combo Box" "Resource String: Options Window Warn About Duplicate Files CheckBox" "Resource String: Options Window Show Outlining CheckBox" "Resource String: Options Window Show ToolBar CheckBox" "Resource String: Options Window Show in the Script Pane CheckBox" "Resource String: Options Window Enter Selects Intellisense CheckBox" "Resource String: Options Window OK Button" "Resource String: Fixed Width Checkbox" Strings used in host GUI Windows PowerShell ISE Host prompt command = "!!" prompt command = "!?" prompt command = "!$null" prompt command = "!\"\"" prompt command = "$null" Host GUI implementation strings "Resource String: _Stop" "Resource String: {0}.\r\n {1}, {2} remaining, {3}." "Resource String: {0}.\r\n {1}, {2}." "Resource String: {0}.\r\n {1}, {2} remaining." "Resource String: {0}.\r\n {1}." "Resource String: _OK" "Resource String: _Cancel" "Windows PowerShell ISE - Input" "Resource String: {0} - {1}" "Invalid Number. A number between 1 and {0} is expected." "DEBUG: {0}" "WARNING: {0}" "VERBOSE: {0}" "Windows PowerShell ISE Credential Request" "You can choose an empty string with !"", $null with !$null and exclamation point with !!." "You can choose an empty string with {0}, {1} with {2} and exclamation point with {3}." Initializes static members of the HostGuiStrings class. This ensures the proper sequence when initializing these fields HostTextWriter bridges System.Console to the Host The host used in the Erite calls. Previous out used, for instance, in tests where hostOnThread might be null. Initializes static members of the HostTextWriter class. Prevents a default instance of the HostTextWriter class from being created. Called inside a runspace to register it The runspace host exposed in $host.UI Write to host output message to be written Write line to host output message to be written Use the Consoles encoding Test helper interface that allows the replacement of a host modal dialog with a non interactive alternative Prompts a dialog to read a line true if retrieving a SecureString true if prompt request came from a remote host type of the result object dialog title overall prompt message element label element help message resulting object resulting string false if the dialog has been canceled Prompts the user for credentials using a specified prompt window caption, prompt message, user and target name, credential types allowed to be returned, and UI behavior options. The caption for the message window. The overall prompt message. The name of the user whose credential is to be prompted for. If this parameter set to null or an empty string, the function will prompt for the user name first. The name of the target for which the credential is collected. An PSCredentialTypes enumeration constant that identifies the type of credentials that can be returned. An PSCredentialUIOptions enumeration constant that identifies the UI behavior when it gathers the credentials. A PSCredential object that contains the credentials for the target. Implementation of IHostGUI that actually promts modal dialogs Prompts a dialog to read a line true if retrieving a SecureString true if prompt request came from a remote host type of the result object dialog title overall prompt message element label element help message resulting object resulting string false if the dialog has been canceled Prompts the user for credentials using a specified prompt window caption, prompt message, user and target name, credential types allowed to be returned, and UI behavior options. The caption for the message window. The text of the message. The name of the user whose credential is to be prompted for. If this parameter set to null or an empty string, the function will prompt for the user name first. The name of the target for which the credential is collected. An PSCredentialTypes enumeration constant that identifies the type of credentials that can be returned. An PSCredentialUIOptions enumeration constant that identifies the UI behavior when it gathers the credentials. A PSCredential object that contains the credentials for the target. Implements the dialog used in PromptForChoice PromptForChoiceDialog Dialog result. -1 the dialog has been cancelled Initializes a new instance of the PromptForChoiceDialog class. dialog title dialog message/question choices to be presented indicates the default choice Used to handle Esc to set the result and close the dialog event sender event parameters Called to make the width of all buttons uniform. event sender event arguments Called when any button has been clicked to set the result and close the dialog. event sender event arguments InitializeComponent Gets the dialog result. -1 the dialog has been cancelled Interaction logic for ReadLineDialog.xaml ReadLineDialog type of object we are reading the resulting object that should have the type targetType True to use PasswordBox instead of TextBox True to not do type conversions (bug Windows 7: #381643) + its bad to have potential side effects from casting on the client (think casting to a FileStream) True if only digits should be allowed Message to display if digitOnly is true and could not convert to type Initializes a new instance of the ReadLineDialog class. true if retrieving a SecureString true if prompt request came from a remote host type of the result object dialog title overall prompt message Original text to populate the text box control element label element help message true if only digits should be allowed Message to display if digitOnly is true and could not convert to type Initializes a new instance of the ReadLineDialog class. true if retrieving a SecureString true if prompt request came from a remote host type of the result object dialog title overall prompt message Original text to populate the text box control element label element help message true if only digits should be allowed Message to display if digitOnly is true and could not convert to type An alternative owner window Returns true if is text that can be turned into a positive integer. This can come from drag and drop or paste operations. true if is text that can be turbned into a positive integer. Receives each character as it is typed to filter out non digits. event sender. event arguments. Called when dropping to cancel an invalid data drop. event sender. event arguments. Called when dragging over to set the effect for valid data. event sender. event arguments. Previews paste to validate text changes. event sender. event arguments. Called when the dialog is loaded to set the minumum width of the dialog event sender event arguments Returns a value indicating the resulting object has been correctly set a value indicating the resulting object has been correctly set sets the result and closes the dialog event sender event arguments InitializeComponent Gets a value indicating whether we use PasswordBox instead of TextBox Gets the resulting object that should have the type targetType Gets the type of object we are reading Information we keep regarding a ProgressRecord, ready to be displayed if bound to GUI. This can be considered a Tree Node class. The tree itself is ProgressSource The Margin arround each progress bar that is not affected by its level Number multiplied by the level to determine the total margin of a progress bar The underlying ProgressRecord encapsulated by this ProgressBarInformation The parent ProgressBarInformation idntified by the ProgressRecord's ParentActivityId. This is null if the ProgressRecord's ParentActivityId is -1. Subprogresses of this progress Nesting depth of this progress on its parent progresses. This is 0 if the ProgressRecord's ParentActivityId is -1. The progress' Source Id Initializes a new instance of the ProgressBarInformation class. the progress' Source Id the underlying ProgressRecord encapsulated by this class Copies the source progress to the ProgressRecord properly notifying of changes. This is called when a new ProgressRecord with the same ActivityId as this.ProgressRecord.ActivityId is written. new progress record Notifies callers of property changes. Gets the font size for progress text Gets the underlying ProgressRecord's PercentComplete Gets the text representation of this progress Gets The underlying ProgressRecord encapsulated by this ProgressBarInformation Gets the margin that could be used for a ProgressBar considering the nesting depth. Gets the margin that could be used for a text inside a ProgressBar considering the nesting depth. Gets or sets the Nesting depth of this progress on its parent progresses. This is 0 if the ProgressRecord's ParentActivityId is -1. Gets or sets the parent ProgressBarInformation idntified by the ProgressRecord's ParentActivityId. This is null if the ProgressRecord's ParentActivityId is -1. Gets the subprogresses of this progress Gets the progress' Source Id Tree of current ProgressBarInformations Dictionary of activity id into corresponding progress information Progresses with no parent progresses Flatenned view of the tree of progresses The tab that owns this progress source Timer used to send messages to the UI thread flag indicating AddOrUpdate has been called and the updates have not yet been sent to the UI thread Initializes a new instance of the ProgressSource class tab that owns this object Clear the whole tree of ProcessBarInformations Called for each new progress entry to evaluate the need to Add a new ProgressBarInformation or updating an existing one. source id for newProgress new progress Rebuilds this.flattenedProgresses reflecting the tree in this.rootProgresses Used in UpdateFlattenedProgresses to add each node to this.flattenedProgresses node to be added to this.flattenedProgresses Sets the level of the node and all subnodes node to set the level for Used in SetNodeAndSubnodesLevel to set the level of each node node to set the level for Visit all nodes performing the given action on each node action to be taken for each node Called from VisitAllNodes() for each of the root progresses to perform actionforNode action to be taken for each node one of the root progresses 1) Sets progressToBeAdded Parent 2) Sets progressToBeAdded and subProgresses Level's 3) Adds progressToBeAdded to (A) this.rootProgresses or (B) its parent suprogresses. 4) Adds progressToBeAdded to this.allProgresses 5) Calls this.UpdateFlattenedProgresses() progress to be added If progressToBeAdded.ProgressRecord.ParentActivityId is not -1 and is not in this.allProcesses. If progressToBeAdded.ProgressRecord.ParentActivityId would cause progressToBeAdded to be added under itself Called when a new progress matches an existing and its parent has not changed to copy the properties from the new progress to the existing one existing progress new progress Removes the node when it is marked as completed node to remove Removes from this.allProgresses progress to be removed Called when a new progress matches an existing one and its parent has changed to move the progress to the new parent and copy the properties of the new progress to the existing one existing progress new progress Removes the node from either this.rootProgresses or its parent progress node to be removed from its parent Gets the flatenned view of the tree of progresses Delegate used in VisitAllNodes and VisitNode to perform node actions node to perform the action on Control used to indicate progress ProgressControl Initializes a new instance of the ProgressControl class InitializeComponent Adds some functionality to the underlying AllModulesViewModel that is specific to the ISE value indicating whether the Insert button should be enabled value indicating whether the Copy button should be enabled value indicating whether can run and not in remote session The viewModel we are wrapping The PowerShellTab containing this tool Initializes a new instance of the AllModulesViewModelWrapper class. The viewModel to be wrapped The powershelltab containing the ShowCommand AddOn tool Called from the constructor, when CanRun changes or when CanInvoke changes Called from the constructor or when CanInvoke changes Called from the constructor, when CanCopy changes or when CanInvoke changes Monitors changes in CanInvoke for the PowerShellTab, since it will affect CanRun and CanInsert event sender event arguments Monitors changes to CanRun and CanCopy in the wrapped ViewModel since they affect this.CanRun, this.CanInsert and this.CanCopy event sender event arguments Used internaly to notify of a property change name of the property that changed Notifies of property changes Gets a value indicating whether the Insert button should be enabled Gets a value indicating whether the Copy button should be enabled Gets a value indicating whether the Run button should be enabled Gets a value indicating whether can run and not in remote session Console Editor Base class for all Editors: Input, Output and Script Characters recognized as word separators in GetHelpCartetText Filter for intellisense parameter values results Filter for intellisense member results Filter for intellisense member or type results Filter for intellisense provider results Filter for intellisense command or parameter name results Filter for intellisense variable results Helper used in EnsureSpanVisible to store the span to ensure visible the current Intellisense completion session Position of the new character in the buffer Set to true when a character has been deleted from the buffer so intellisnese can filter tghe current set last character that has been added to the buffer so we can decide when to trigger intellisense current intellisense session trigger position position of a space character typed before it has been tokenized position of a space character typed after it has beeen tokenized and determined to succede a parameter position of a . character typed before it has been tokenized position of a . character typed after it has beeen tokenized and determined to not be in the same token as a wildcar character A non trivial (1 character add/delete) buffer change took place outlining manager used to collapse/expand regions The undo history manager The editor buffer The textView for this editor nautilus editor An object used to perform editor operations Allows for text marking as in the Mark method Text Navigation helper current read only region associated with the editor Whether the editor is in debug mode Last tracked caret line. This helps minimizing notifications regarding changes in the CaretLine property. Last tracked caret column. This helps minimizing notifications regarding changes in the CaretColumn property. The key processor for this text view The service responsible for tokenization Initializes a new instance of the ISEEditor class. The editor content type Selects the line containing the caret Replaces the selection with or inserts at the current caret position. Text to insert. can be used as a way to specify the position to insert text at. Gets the line length for the line at . Nunber of the line to get the length of. The line length for the line at . Scrolls the editor so that the line corresponding to is visible. Number of the line we want to ensure is visible. Sets the caret position at and . Caret line number. Caret column number Selects the region from , to , . Line where the selection starts. Column within where the selection starts. Line where the selection ends. Column within where the selection ends. To select a line can be set to + 1. Clears the text in the editor. Sets the focus to the editor. Goes to the character matching the character in the current caret position, if there is a matching character Toggles all Outlining (region) Expansion Sets the caret brushes for the given categories category with the caret brushes normal caret brush overwrite caret brush Returns true if the parameters for a SnapshotSpan or TrackingSpan construcor are valid snapshot we would create a SnapshotSpan in start we would pass to the constructor length we would pass to the constructor true if the parameters for a SnapshotSpan or TrackingSpan construcor are valid Returns true if the parameters for a SnapshotSpan or TrackingSpan construcor are valid start we would pass to the constructor length we would pass to the constructor true if the parameters for a SnapshotSpan or TrackingSpan construcor are valid Sets the colors for selection and inactive selection selection color inactive selection color Used by test to gets the selection colors active selection color inactive active selection color Handles the special key processing for alt and shift keys that has to be trapped at the WndProc level since it does not reach the keyboard processor key that was pressed. true if the editor is focused and the keuboard processor can handle the shortcut Gets the positions of all visible adornments on screen the positions of all visible adornments on screen Called to setup tokenization on construction or content type change Content type to set tokenization for Called to ter down tokenization on content type change Content type to tear down tokenization for Selects the span, ensures it is visible and moves the caret to the beggining of the selection. Span to select. Sets the line number margin visibility. true if we want the margin to be visible Sets the outlining margin visibility. true if we want the margin to be visible Sets the zoom control visibility. true if we want the zoom control to be visible Returns true if the zoom control is visible true if the zoom control is visible Returns true if the outlining margin is visible true if the outlining margin is visible Returns true if the line number is visible true if the line number is visible Sets the glyph number margin visibility. true if we want the margin to be visible Queries for the current line The current line Gets the line number corresponding to a view position view position line number Gets all classifications in the current textbuffer all classifications in the current textbuffer Gets all error tags in the current textbuffer all error tags in the current textbuffer Gets all text marker tags in the current textbuffer all text marker tags in the current textbuffer Gets all outline tags in the current textbuffer all text marker tags in the current textbuffer Forces a reclassification of the editor span to reclassify Gets the breakpoint and active statement marks added by MarkLine and MarkPosition the breakpoint and active statement marks added by MarkLine and MarkPosition Clears the given mark The mark to remove Sets the font name and size of this editor according to the options Marks with the line to mark The possible markings are "bookmark", "breakpoint", "currentstatement", "returnstatement" and "stepbackcurrentstatement" The adorment mark Marks with the starting at and ending at . line to mark start of the position in the line to mark end of the position in the line to mark The possible markings are "bookmark", "breakpoint", "currentstatement", "returnstatement" and "stepbackcurrentstatement" he adorment mark Replaces the line up to the caret position with text text to be inserted the index where replacement should start the length of the replacement If there is a selection with no new line, returns it, otherwise returns the text next to caret or null if the caret is not next to a word Rturns the selection or text next to caret returns the word next to the caret or null if caret is not next to a word the word next to the caret or null if caret is not next to a word remove read only region so we can add the output lines and Mark all the content of the editor as read only Raises the RequestContextMenuItems event event arguments Resets this.undoHistoryManager to clear the undo stack PLaces the caret at the new position and ensures it is visible position to place the caret in Called when intellisense results are available to start the intellisense popup intellisense results position of the line start position of the last word for future replacement when intellisense is commited length of the last word for future replacement when intellisense is commited position used for filtering of the list True to select an item even if the filter text is empty Starts insertion of snippets for the editor explicitly Starts intellisense for the editor explicitly Returns true if intellisense can be started true if intellisense can be started Used by tests to prevent the automatic dismissal of Intellosense when the editor's TextView is not visible, allowing unit tests to test scenarios where intellisense should be dismissed by certain keystrokes. Without this, intellisense is always dismissed a while after it is started so we will not be able to tell if the dismissal was caused by ISEEditor code or by the automatic dismissal. Details: Intellisense adds a spacereservation agent. The manager of the agents called space reservation manager will set the agent to null if the TextView is not visible. Intellisense monitors changes in the agent and when it is set to null, it dismisses intellisense. What we do in the code below is to remove the reservation agent as soon as it is added by Intellisense This prevents intellisense from monitoring a change in the agent to null and dismissing intellisense. Gets a SnapshotSpan of the whole editor a SnapshotSpan of the whole buffer Returns a tracking span spanning the whole editor A tracking span spanning the whole editor Sets the caret position at . position to set the caret to Forces the tagging of braces Gets the position that the line containing starts position we want to get the line start from the position that the line containing starts Adds a command to the context menu command to add ID used for testing Calls this.EditorViewHost.TextView.ViewScroller.EnsureSpanVisible but only after ViewportWidth is not 0 To avoid an issue trying to set the position just after the editor is loaded miscalculating because the ViewPort is 0 span to ensure visible Returns true if c is a space character character to be checked true if c is a space character Starting at start goes forward untill finds a space and returns its index. Returns str.Length-1 if there is no space or the space is at the last position. This always returns a valid index in the str. string to look for space where to start looking index of a space starting at start and going forward or str.Lenth-1 if no space found Starting at start goes back untill finds a space and returns its index. Returns 0 if there is no space or if the space is at 0. This always returns a valid index in the str. string to look for space where to start looking index of a space starting at start and going backwards or 0 if no space found returns the word next to the caret or null if caret is not next to a word line containing the caret caret position word next to the caret or null if caret is not next to a word Gets a SnapshotSpan of the whole buffer buffer to get a SnapshotSpan from a SnapshotSpan of the whole buffer Creates the host and views for the buffer buffer to create host and views for appearance category to use the new host Called from EnsureSpanVisible to call this.EditorViewHost.TextView.ViewScroller.EnsureSpanVisible as soon as the ViewportWidth is not 0 event sender event arguments Called to setup tokenization when the new script content type is powershell or when the editor is the console Expands all regions in thes span to collapse regions Collapses all regions in thes span to collapse regions Called when the content type changes to setup tokenization for powershell files event sender event arguments Forces refreshing of errors Forces the refresh of outlined regions Forces the reclassification and retagging of the editor when the powershell tokenization is complete event sender event arguments Forces the reclassification of the editor when the xml tokenization is complete event sender event arguments Sets up the ContextMenu Called from the constructor to setup event listening Sets this.undoHistoryManager with a new undo history manager Gets the point corresponding to the mouse events in coordinates that can be used for comparison with rendered text lines mouse event arguments The point corresponding to the mouse events in coordinates that can be used for comparison with rendered text lines Raises the RequestContextMenuItems when the mouse is right-clicked the editor control event arguments Raises the RequestContextMenuItems when the mouse is right-clicked the editor control event arguments Returns the zero based editor line number the zero based editor line number Returns the zero based editor column number the zero based editor column number Called to update the caret position and scrollbar visibility when the layout changes as a result of text being typed. event sender. event arguments. Called to update the caret position when the caret moves arround by using the arrow keys. This is not triggered by entering text so we also need to update the caret position in TextView_LayoutChanged. event sender. event arguments. Called when the buffer changes to track the characters that can trigger intellisense in UpdateCaretPosition event sender event arguments As soon as the buffer changes this is called to reset braces, errors and outlining to none and start tokenization. Called from RemoveCompletionManager to actually remove the agent event sender event parameters Called when the intellisense session is dismissed to reset fields used to control the session event sender event arguments Helper to get text and position information for intellisense buffer position for the caret position where the line wityh the caret starts text for the line up to the caret position Updates the line and column of the caret, and monitors characters for intellisense since the intellisense infrastructure is only prepared to be triggered after buffer and layout changes happen Called from UpdateCaretPosition to handle a space after a parameter name caret position in the buffer Called from UpdateCaretPosition to handle a dot after non wild card caret position in the buffer Called from UpdateCaretPosition to handle a new character caret position in the buffer Trigers the PropertyChangedEvent if there are listeners. Property that changed. Used to notify property changes. The editor raises this event to request for any additional context menu items when the mouse is right-clicked or the Applications key is pressed. The event subscriber must provide the menu items using the RequestContextMenuItemsEventArgs.MenuItems property. Gets the total line count. Gets the line number containing the caret. Gets the line column containing the caret Gets or sets and sets the editor's text Gets the editor's selected text Gets the text of the line containing the caret Gets a value indicating whether the caret is at a charcter with a matching character to go to Gets the position where input starts Gets the current line up to the caret position Gets a value indicating whether the content type is "powershell" Gets the outline manager used to collapse/expand regions Gets or sets the view Zoom. This is used from tests and XAML binding Gets the zoom level directly from the control transform Gets the editor buffer Gets the textView for this editor Gets a value indicating whether the vertical scrollbar is visible Gets the undo history manager Gets the text navigation object corresponding to this editor Gets the editor control Gets an object used to perform editor operations Gets the editor's caret Gets the caret position Gets the editor Gets a value indicating whether the editor is in the read-only state Gets or sets a value indicating whether the debug mode is true. Gets a value indicating whether the editor is Focused Gets the current Intellisense completion session Gets the service responsible for tokenization Gets a value indicating whether intellisense is enabled Gets and sets the context menu. Arguments for the RequestContextMenuItems event Value of the Position property Value of the MenuItems property Initializes a new instance of the RequestContextMenuItemsEventArgs class. Position of the request given as an index within the text view Gets the position of the request given as an index within the text view; -1 indicates that the click occurred outside the text view. If the context menu is requested with a mouse click the position corresponds to the coordinates of the click; if it is requested with the "Application" key the position corresponds to the position of the caret. Gets the items for the context menu provided by the event subscriber The subscriber to the RequestContextMenuItems event add to this collection any menu items it desires to display. Localized shortcut name for Ctrl+Left Localized shortcut name for Ctrl+PageUp Localized shortcut name for Ctrl+Up /// The content type for the output editor InputText saved before executing something that will need to restore it value indicating whether the runspace is executing a command that should block editor input First of the two regions that when combined produce a single region only editable at the end Second of the two regions that when combined produce a single region only editable at the end current text for the writeable part of the console Set to true when the host wants to read input like in read-host. This flag will be set to true from the pipeline thread (in a read-host, for instance). It will be set to false in the UI thread (in the stop command or on Enter keyboard processor). I don't see the setting to true/false ever to be concurrent, because the pipeline setting will happen before the Enter/Stop so I am not adding a lock for inputMode access position of the buffer end in the last call to FlushOutput used to determine the non read only region of the Console Event used in the Input method that is fired when Enter is typed Event used in the Input method that is fired when the pipeline is stopped forcefully (Ctrl+C) Output accumulated but not yet written to the control the Length of the editor's last line The color spans currently present in the editor Length of the output yet to be flushed Value for the Exiting property Initializes a new instance of the ConsoleEditor class. Finalizes an instance of the ConsoleEditor class Clears the text in the output editor. Dispose method in IDisposeable Returns true if intellisense can be started true if intellisense can be started Moves the caret to the end of the input text Moves the caret to the end of the input text Returns true if the caret is at the same line as the input text true if the caret is at the same line as the input text Returns true if caret is at input region true if caret is at input region Returns true if there is a selection totaly the input region true if there is a selection totaly the input region Returns true if caret is at beginning of input region true if caret is at beginning of input region Returns true if the caret is at the last line true if the caret is at the last line Called after we are done with output to prevent the customer from editing output Removes the read only regions so output can be produced Start input taking. Input can end with: 1) Enter 2) The pipeline ending true if input was canceled returned input Ends the inputMode the Input method is waiting on when the pipeline is stopped Called to handle key presses in the console pane event arguments keyboard modifiers the PowerShellTab this output belongs to Clears the undo and redo stack Used by test to verify the buffers are empty true if the indo and redo buffers are empty Flushes the pending output Clears the InputText saved before executing something the saved input to set Saves the current InputText before executing script or selection fopr a later restoration with RecoverInputTextInOutputAfterExecutingScript Restores the InputText that was previously saved in SaveInputTextBeforeExecutingScript Adds line to the pending output line to be added true if line should have a \r\n appended to it Adds line to the pending output line to be added true if line should have a \r\n appended to it foreground color background color Adds lines to the pending output. Intermediate lines will have \r\n appened to it. The last line might have \r\n appeneded to it, depending on finishWithCrLf. lines to be added true if the last line should have a \r\n appended to it Adds lines to the pending output. Intermediate lines will have \r\n appened to it. The last line might have \r\n appeneded to it, depending on finishWithCrLf. lines to be added true if the last line should have a \r\n appended to it foreground color background color Gets the position for the start of the line containing position we want to get the line start position from The position for the start of the line containing Returns true if will add text to the editor event arguments true if will add text to the editor Returns true if is numeric or aplphabetical event arguments true if is numeric or aplphabetical Returns true if is one of the punctuation keys event arguments true if is one of the punctuation keys Not at the beginning of inputArea or Control pressed, return = do nothing Output Control+Left message event arguments keyboard modifiers tab containing the editor true if the caret is in the beginning of the input region Returns true if there is a selection that includes the start of the input area. Another way to say this: Returns true if there is a selection starting at the readonly region and ending at the editable region true if there is a selection that includes the start of the input area. Called to mark the output as read only when the editor is loaded. event sender event arguments Triggers the InputTextChanged event Called to update the InputText event sender event arguments Ends the inputMode the Input method is waiting on when Enter is typed true if there was an input mode to be ended Ends the input mode by setting an event event to be set true if there was an input mode to be ended Udpates the InputText when the buffer changes Gets a span with the read only region of the output a span with the read only region of the output Implements IDisposable logic true if being called from Dispose Called after a caret movement from to potentially extend a current selection from to the current caret location true if the selection should be extended, false to clear an existing selection position before a recent caret movement if control is pressed allways move one line up (for consistency) and return if caret not at input return if at first line of input and shift is on go to previous history and if at first history output Control+Up message else (if not at fitst line of input area) move up limited by beginning of input end if event arguments keyboard modifiers tab containing the editor true if the caret is in the input region if control is pressed allways move one line down (for consistency with control up) and return if caret not at input return if caret is at last line and shift is on go to next history event arguments keyboard modifiers tab containing the editor true if the caret is in the input region If Control is pressed do a regular unlimited PgDn or PgUp If caret not in input return if at first input line and shift is not on Move to top of history and print message and return else Do a PageUp limited by input and considering shift event arguments keyboard modifiers tab containing the editor true if the caret is in the input region if control is pressed allways move one line down (for consistency with control PgUp) and return if caret not at input return if caret is at last line and shift is on go to bottom of history event arguments keyboard modifiers tab containing the editor true if the caret is in the input region Outside of inputArea, return = do nothing Go to beginning of input extending selection if Shift is pressed in the following cases: Home or Shift+Home in first line Ctrl+Home or Ctrl+Shift+Home event arguments keyboard modifiers tab containing the editor true if the caret is in the input region If the modifier is Control and in the input area input area, selects the input. Leave it unhandled otherwise event arguments keyboard modifiers tab containing the editor true if the caret is in the input region Called after moving the caret to ensure it does not go beyond the beginning of input event arguments tab containing the editor true if shift is on position before caret movement shortcut to be added to message Modifiers is not none, return otherwise EndInpout, dismiss or commit completion and/or run command event arguments keyboard modifiers tab containing the editor Handles keys that only need to be customized for the case where there are no modifiers event arguments Event fired when the InputText changes Gets or sets the console input text Gets and sets the editor's text Gets the position where input starts Gets the line up to the caret within the InputText Gets the Length of the editor's last line Gets or sets a value indicating whether the application is exiting; when true, output is discarded Gets or sets a value indicating whether the runspace is executing a command that should block editor input Gets a value indicating whether the output is in input mode Gets or sets a value indicating whether the output is gathering input (like in a read-host case, for instance) Manages setting the backgrounds and carets for editors. The background has to be set in each editor. The carets have to be set by editor category (Output, Command, Script). The 3 categories have been created because there are 3 background colors in the object model. Value used in AreColorsDifferentEnough as a threshold for when two collors are different Brush for the output background Brush for the script background Brush for the output, command and script background when in high contrast Brush for the output normal caret Brush for the script normal caret Brush for the output, command and script normal caret when in high contrast Brush for the output overwrite caret Brush for the script overwrite caret Brush for the output, command and script overwrite caret when in high contrast Called when the script background changes to change the background and caret of all scripts Called when the output background changes to change the background and caret of all outputs Called when a new editor is created to set the background of the editor editor to change the background Verifies if two colors are different enough first color to compare second color to compare true if the two colors are different enough Returns first if it is different enough from second or the complement of first if they are not background color that comes from an editor background selection color that comes from a SystemColor first if it is different enough from second or the complement of first if they are not If currentBrush is null or of the wrong color, refresh it desired color current brush field reference returns currentBrush If currentBrush is null or of the wrong color, refresh it desired color current brush field reference desired opacity returns currentBrush If currentBrush is null or of the wrong color, refresh it with a semi transparent brush by that color desired color current brush field reference returns currentBrush If currentBrush is null or of the wrong color, refresh it with a brush with the complementary color complement of desired color current brush field reference returns currentBrush If currentBrush is null or of the wrong color, refresh it with a brush with the complementary color and semi transparent complement of desired color current brush field reference returns currentBrush Returns the complement of the given color color to get the complement of The complement of the given color Sets the background of the editor with nonHighContrastBrush if outside of high contrast or with ISEEditorBackgroundManager.HighContrastBackgroundBursh if in high contrast editor to set the background of brush to be used outside of high contrast Sets the caret brushes for the given categories to either caretNormalBrush and caretOverwriteBrush if outside of hish contrast or, in high contrast, to ISEEditorBackgroundManager.HighContrastNormalCaretBursh and ISEEditorBackgroundManager.HighContrastOverwriteCaretBursh category to set the caret brushes to brush for the normal caret when outside of high contrast brush for the overwrite caret when outside of high contrast Gets the brush for the output background Gets the brush for the output normal caret Gets the brush for the output overwrite caret Gets the brush for the script background Gets the brush for the script normal caret Gets the brush for the script overwrite caret Gets the brush for output, command and script background when in high cnontrast Gets the brush for output, command and script normal caret when in high cnontrast Gets the brush for output, command and script overwrite caret when in high cnontrast A file opened in the application The content type for the scripts The content type for non scripts The content type for xml last number used for untitled files The doc instance used to save the file, load and save file contents true if the file has never been saved false if the file has been changed since last saved editor used to display/edit the file The mark for the current line The mark for the current line Breakpoints on the current file indexed by line number Whether the file is in debug mode Indicates this file has been recovered from auto-saved The last path in this.doc.FilePath before a SaveAs Prevents a default instance of the ISEFile class from being created. This is explicitly private to force the use of Add methods in ISEFileCollection. Saves the file to disk. If the file is not titled. If could not save the file. Saves the file to disk. Encoding to save the file with. If the file is untitled. If could not save the file. Writes the editor contents to disk. file name to save. If is null. If is empty. If could not save the file. Writes the editor contents to disk. file name to save. Encoding to save the file with. If is null or empty. If could not save the file. Constructs a new file and reads its contents into the editor. The file is not going to be untitled. Full path to the file. If could not load the file. A new file and reads its contents into the editor. Creates a new Untitled file. Extension of the file being created. The newly created Untitled file. Gets an untitled file name for the given extension The file name's extension an untitled file name for the given extension Searches folder for the last file name to be used (like Untitled 9.ps1) Something like '.ps1' The number we would like to get the untltled name numberd with. If the name has been taken in UserSettings.Default.LastFilePath we will try higher numbers. The last file name that was found on folder Returns true if encoding is not uncode and if there are characters in the editor that have to be saved as unicode. Encoding the file is going to be saved on Editor whoith text to check true if encoding is not uncode and if there are characters in the editor that have to be saved as unicode. Sets the full path of a recovered file after the file has been loaded from its auto saved location. We do not use the public properties because they could trigger a file reloading from the fullPath and this is called when the editor already has the correct text from the auto saved path. full path to be set Tries to save a copy of the file to disk in the given path full path of the file to save true if it was a succesfull write Writes the file to disk in the given path full path of the file to save encoding to be used If could not save the file. Highlights the current line at the given position and scrolls the editor target line start position end position Removes the highlight from the current line Queries for the current line The current line Queries for breakpoints on the given line The line to look for A list of the breakpoints on the given line, or null if there are no breakpoints Sets the given breakpoint Breakpoint to set Removes the given breakpoint Breakpoint to remove Updates the status (enable/disabled) of the given breakpoint Breakpoint to update Returns the status of the breakpoints at the given line Line to check breakpoint status at the given line Clears the breakpoints on the current file Returns true if the extension is ps1 Extension to check true if the extension is ps1 Returns true if the extension is ps1, psm1, psd1 or pssc Extension to check true if the extension is ps1, psm1 or psd1 or pssc Returns true if the extension is xml, xaml or ps1xml Extension to check true if the extension is xml, xaml or ps1xml Gets the content type for the given extension extension to retrieve the content type from The content type for the given extension Looks for the BreakpointInfo of a given breakpoint The breakpoint to look for The BreakpointInfo associated to the given breakpoint, or null if the breakpoint is not found The index of the breakpoint within BreakpointInfo, or -1 if the breakpoint is not in the list true if the breakpoint was found Updates the given BreakpointInfo Adornment and Status The item to update Creates an adorment for the given breakpoint breakpoint information the marking for the breakpoint Read the file from the full path and create the corresponding Editor object full path to the file to read If could not load the file. The exception message can be displayed to the end user. Creates this.editor and this.doc setting the FullPath file full path Creates the Editor object when the extension changes Called when the IsDirty state of the document changes to update this.IsSaved event sender event arguments Called when the text is changing in the editor to pottentially prevent changes during debugging event sender event arguments Updates the breakpoints when the editor text changes the text buffer event arguments Sets the editor's context menu the editor control event arguments Reads the contents of the file into the editor the file contrns as a string If could not load the file. The exception message can be displayed to the end user. Called to invoke this.PropertyChanged, if needed, when the property has changed property name Raises the RequestBreakpointUpdate event event arguments For INotifyPropertyChanged This event is raised when the breakpoints need to be updated as the result of changes in the editor text Gets a value indicating whether the file has not been saved since last modified Gets a value indicating whether the file has never been previously saved Gets the full path of the file Gets the editor used for this file Gets the display name of this file Gets the original file encoding Gets a value indicating whether this file has been recovered from auto-saved Gets the content type for the scripts Gets the content type for the xml Gets a value indicating whether the extension is Ps1 Gets a value indicating whether if the extension is PS1 (script) or PSM1 (module) Gets a value indicating whether the extension is Ps1 and there is text in the script Gets a value indicating whether the file is not untitled and the file is unsaved Gets a value indicating whether the file has at least one breakpoint Gets the extension of this file Gets the file name Gets the line the debugger is stopped at, or 0 if none Gets or sets a value indicating whether debug mode is true Status of the breakpoints on a given line the line has no breakpoints at least one breakpoint on the line is enabled all the breakpoints on the the line are disabled Arguments for the RequestBreakpointUpdate event value of the MoveUpdates property value of the RemoveUpdates property value of the OverwriteUpdates property Initializes a new instance of the RequestBreakpointUpdateEventArgs class. Gets the breakpoints that need to be removed Gets the scripts whose breakpoints need to be overwritten Gets the breakpoints that need to be moved Data for move breakpoint updates value of the Breakpoints property value of the TargetLine property Initializes a new instance of the BreakpointMoveUpdate class. Creates a request to move breakpoints within the same file breakpoints to move line to move to Gets the breakpoints that need to be moved Gets the line to move the breakpoints to Data for move breakpoint overwrites value of the Breakpoints property value of the TargetScript property Initializes a new instance of the BreakpointOverwriteUpdate class. Creates a request to overwrite the breakpoints on a given file breakpoints to move script to overwrite Gets the breakpoints that need to be moved Gets the script whose breakpoints will be overwritten Information about the breakpoints on a given line Value of the Breakpoints property Value of the Adornment property Value of the Adornment property Gets the breakpoints on a given line Gets or sets the adornment, or null if the breakpoints are outside the editor range Gets or sets status of the breakpoints on the line Collection of ISEFile dictionary of all files in the collection The file currently selected Initializes a new instance of the ISEFileCollection class. Selects the . File to be selected. Removes the file. file to remove true to remove the file even if it has not been saved. Adds a new file to the collection. file name. the added file Adds a new untitled .ps1 file. the added file Gets the list of files as a string files to join in a string returns the list of files as a string Updates the tables with files when savedAsFile is saved as name before the save as file after the saveAs Returns true if currentName is not newPath and if the newPath is already opened in any runspace current file path previous file path true if currentName is not newName and if the newName is already opened in any runspace Returns true and the file when an file by the name fileName is opened in any runspace with the name fileName fileName for the file ISEFile returned if found true when an file by the name fileName is opened in any runspace with the name fileName Selects the . This allows setting the selected opende file to null. File to be selected. Returns true and the file when an ISEFile by the name fileName is opened in this collection fileName for the ISEFile ISEFile returned if found true when a file by the name fileName is opened in this collection Adds the file if not present, otherwise returns existing file. where to add the file file to be added the file added or present Overridden to throw an exception to block a direct Insert or an Add given that there is no constructor for . index of the item to be inserted item to be inserted When calling this method Overridden to throw an exception blocking a set. index of the item to be set. new PowerShellTab at the . When calling this method Makes sure ClearItems calls RemoveItem on each item. Moves the file at position to . position to move file from. position to move fole to. Overrides default behavior to throw if IsDirty is set to false index of the item to remove Called from ApplicationUpdateSavedAsFile to update a single table after a SaveAs operation in savedAsFile table to be updated name before the save as file after the saveAs Gets or sets the currently selected file. Gets the dictionary of all files in the collection Manages the layout of controls in the GUI Used in SetBindings to indicate the runspaceControl Used in SetBindings to indicate the mainWindow Used in FindNameSplit stores the information set in SetBindings and used in SetControlProperties regarding setting property values stores the information set in SetBindings and used in SetControlProperties regarding adding and removing columns to a grid stores the information set in SetBindings and used in SetControlProperties regarding adding and removing rows to a grid value indicating whether embedded commands are being displayed Visibility of the progress control ScriptExpander Visibility EditorTabControl Visibility Output Visibility Visibility of splitter betwwen Script Pane (when it is on top) and the input/output to the bottom Visibility of splitter betwwen Script Pane (when it is on the right) and the input/output to the left ToolBar Visibility true if the toobar is displayed true if the outlining is shown true if the line numbers are shown EditorTabControl's Column editorTabControl's RowSpan EditorTabControl's ColumnSpan horizontalTool and splitter's ColumnSpan verticalToolSplitter's Column verticalTool's Column row for the horizontal tool row for the horizontal tool splitter True when ScriptPane is expanded True when ScriptPane is Maximized True when ScriptPane is to the right True when ScriptPane is on top editor's Row Height outputRow's Height horizontalToolRow's Height potentialScriptColumn's Width inputAndOutputColumn's Width verticalToolColumnWidth's Width vertical tools pane and splitter visibility horizontal tools pane and splitter visibility Layout is an internal property in PowerShellTab, so regular DataBinding doesn't work. There are two workarrounds in the current code for the issue of Binding to internal properties: - InternalPropertyBindingConverter, which was not used for 2 reasons: 1) It doesn't update controls when properties change. We could use explicit update, but we would need code similar to the code below to fetch individual BindingExpressions and manually update the targety. 2) DataBinding for Grid's rows and columns doesn't work well without TwoWay, but TwoWay doesn't work without setting a Path in the Binding, which breaks the InternalPropertyBindingConverter. - Wrapping objects in InternalObject, which is not used because wrapping the PowerShellTab causes too many side effects. mainWindow control for some of the bindings runspaceControl for some other bindings Considers the Side By Side and script editor Expanded states to layout the controls correctly. Setting the visibility to collapsed as opposed to row heights and column widths to 0 is an accesibility requirement since narrator reads zero sized controls. Called when the editor or console pane change sizes to store the widths and heights of rows and columns. The sizes are stored as a proportion to the height for their use in UpdateRowAndColumnSizes. editorRow's ActualHeight output's ActualHeight potentialScriptColumn's ActualWidth inputAndOutputColumn's ActualWidth horizontalTool's ActualHeight verticalTool's ActualWidth Populate Layout.gridColumnMaintenanceInformation with the columns that have to be removed/added according to visibility properties main window dfor the application control for the current PowerShellTab Populate Layout.gridRowMaintenanceInformation with the rows that have to be removed/added according to visibility properties main window dfor the application control for the current PowerShellTab Gets the control corresponding to the control name in either mainWindow or runspacecontrol the main window the runspaceCon trol control name the control corresponding to the control name in either mainWindow or runspacecontrol Gets the PropertyInfo from this class for the given property name property name to get the PropertyInfo from The PropertyInfo from this class for the given property name Returns the element starting at and following the control names in . Root element to search control path to seach The element starting at and following the control names in . Gets a valid column or width corresponding to size. the original size the valid version of size Called from UpdateLayoutGridLengths to update the settings for rows when the horizontal tools is present editorRow's ActualHeight output's ActualHeight horizontal tools pane's ActualWidth Called from UpdateLayoutGridLengths to update the settings for rows when the horizontal tools is not present editorRow's ActualHeight output's ActualHeight Called from UpdateLayoutGridLengths to update the settings for columns when the horizontal tools pane is *not* opened potentialScriptColumn's ActualWidth inputAndOutputColumn's ActualWidth Called from UpdateLayoutGridLengths to update the settings for columns when the horizontal tools pane is *not* opened potentialScriptColumn's ActualWidth inputAndOutputColumn's ActualWidth vertical tool's pane ActualWidth Updates Visibilities, Rows, Columns and ColumnSpans Sets the values of all properties in this.controlPropertyInformation Reads user setting widths and heights into property values. Uses the stored values of columns and widths to properly size the internal grids. The proportional sizes and the use of GridUnitType.Star here are essential since SridsSplitters will push items away from the screen (including the splitter themselves!) if GridUnitType.Star is not used for both columns/rows surrounding the splitter. Reads user settings into row heights when the horizontal tool pane is visible Reads user settings into row heights when the horizontal tool pane is *not* visible Reads user settings into column widths when the vertical tool pane is *not* visible Reads user settings into column widths when the vertical tool pane is visible Gets a value indicating ScriptExpander Visibility Gets the visibility for the progress control Gets a value indicating EditorTabControl Visibility Gets a value indicating Output Visibility Gets a value indicating Visibility of splitter betwwen Script Pane (when it is on top) and the input/output to the bottom Gets a value indicating Visibility of splitter betwwen Script Pane (when it is on the right) and the input/output to the left Gets a value indicating ToolBar Visibility Gets a value indicating whether the toolbar is displayed Gets a value indicating whether outlinings are displayed Gets a value indicating whether line numbers are displayed Gets a value indicating EditorTabControl's Column Gets a value indicating editorTabControl's RowSpan Gets a value indicating EditorTabControl's ColumnSpan Gets a value indicating horizontalTool and its splitter's ColumnSpan Gets a value indicating verticalToolSplitter's Column Gets a value indicating verticalTool's Column Gets the row for the horizontal tool Gets the row for the horizontal tool splitter Gets a value indicating whether the ScriptPane is expanded Gets a value indicating whether the embedded commands are displayed Gets a value indicating whether the ScriptPane is Maximized Gets a value indicating whether the ScriptPane is to the right Gets a value indicating whether the ScriptPane is on top Gets a value indicating editor's Row Height Gets a value indicating outputRow's Height Gets a value indicating horizontalTool's Height Gets a value indicating potentialScriptColumn's Width Gets a value indicating inputAndOutputColumn's Width Gets a value indicating verticalToolColumnWidth's Width Gets a value indicating the vertical tools pane and splitter visibility Gets a value indicating whether the horizontal tools pane and splitter visibility Gets a value with the information set in SetBindings and used in SetControlProperties Gets a value with the information set in SetBindings and used in SetControlProperties regarding adding and removing columns to a grid Gets a value with the information set in SetBindings and used in SetControlProperties regarding adding and removing rows to a grid A runspace object to be opened by the application Maximum total number of AddOn tools. Internal for test use. Default timeout for calling InvokeSynchronous Number of miliseconds between output flushes. This might make it into an Options dialog. synchronization object used for intellisense timeout The show-command displayed in this tab value indicating whether the state of the ShowCommand window should be updated on UpdatePrompt value indicating whether we are displaying the embedded show-command in this tab The nested prompt level The current progress objects in this PowerShellTab set to true while intellisense is being evaluated and queried when running the Console pane. It is only set and queried in the UI thread Timer used while intellisense is being evaluated to eventually stop intellisense flag used to regulate if stopping intellisense should leave a timeput message value indicating whether the console was the last editor that got focus This is used in ISEZoomMouseProcessor to allow for a click from outside the Console to go to input Timer used for output window the output editor Index that the Up/Down Arrow are currently seeing from the CommandHistory Set to true when the command run is a previous history command so that up will go tp that command and up will go to the next. This is equivalent of placing the history index between the history run and the next command set with the text in the console so that an arrow up followed by an arrow down doesn't loost the current typed text Used to know if the scratchInputBuffer should be updated on buffer changed Command completion object The replacement length, used after the first tab completion to keep track of how much was replaced last position where command completion was executed last editor where command completion was executed. Initial command to be run after running the profiles a pending command to be run once the PowerShellTab is not running a command Used by show-command to run a pending command Value indicating the initial command has already run The root of the tools menu. invocation settings instructing the command should be added to the history True if the scripts are visible True if the horizontal AddOn tools pane is opened True if the vertical AddOn tools pane is opened the display name Files opened in the PowerShell tab. prompt displayed Prompt displayed Prompt bracket displayed Prompt automation name execution status comand history Reference to runspace used for command execution The current PowerShell instance used for command execution PowerShell instances saved when entering a nested prompt Data added to this buffer will be displayed in the output control Arguments of the DebuggerStop event; null if we are not in the debugger The pre-processor for debugger commands The PowerShell instance that entered the debugger The file where the debugged code is When in a nested prompt, this event signals the thread executing the parent pipeline that it needs to execute an action This event is signaled by the the pipeline thread when it completes an action The action that the pipeline thread must execute Breakpoints in the current runspace List of files that have been marked as read-only while the debugger is active Count of enabled breakpoints Count of disabled breakpoints Flag set to false at the beginning of an asynchronous operation and reset to true when the operation is completelly done. This is used from test code The host associated with this runspace Table with the unsupported console applications PSGHost used as a value to $psIse. Root of the object model for AddOnTools Auxiliar used to stop monitoring GotFocus on a previouslly selected ISEFile editor. Last editor between input, output and script editors that got the keyboard focus. This is used when going back and forth between runspaces so we place the focus on the same place where it was left. True when the current instance is being disposed used to layout controls Horizontal AddOn tools Vertical AddOn tools Subset of with visible tools. Subset of with visible tools. Indicates whether there is no pending asynchronous operation and no pipeline running The state for the current powerShellInvoker that changes when we enter a nested prompt like in the debugger scenario. indicates whether the nested pipeline is running in the runspace Indicates we should not notify that the CanINvoke property changed Set with information that allows a transition from tab completion to intellisense Set with information a list of all snippets loaded into this tab This includes references to global snippets (incl default ones) Initializes static members of the PowerShellTab class. Installs the keyboard filter for all editors Initializes a new instance of the PowerShellTab class. Executes the given script in the runspace. script to be executed. if script is null if cannot execute Executes the given script in the runspace. script to be executed. if script is null if cannot execute Invokes the script synchronouslly returning the results instead of placing them in the output By default, scripts are executed in a local scope and will time out if they take longer than half a second to run. This method is intended for the quick evaluation of a script, with minimal side effects for applications like a watch window. The script to run. The results of running the script. if script is null. if an script is already running. For any errors executing the script. If multiple errors are found running the script, only the first will be thrown as an exception. If half a second has passed and the command has not completed. Invokes the script synchronouslly returning the results instead of placing them in the output By default scripts will time out if they take longer than half a second to run. This method is intended for the quick evaluation of a script, with minimal side effects for applications like a watch window. The script to run. True to use a new scope The results of running the script. if script is null. if an script is already running. For any errors executing the script. If multiple errors are found running the script, only the first will be thrown as an exception. If half a second has passed and the command has not completed. Invokes the script synchronouslly returning the results instead of placing them in the output By default, scripts are executed in a local scope and will time out if they take longer than half a second to run. This method is intended for the quick evaluation of a script, with minimal side effects for applications like a watch window. The script to run. The results of running the script. if script is null. if an script is already running. For any errors executing the script. If multiple errors are found running the script, only the first will be thrown as an exception. If half a second has passed and the command has not completed. Invokes the script synchronouslly returning the results instead of placing them in the output By default scripts will time out if they take longer than half a second to run. This method is intended for the quick evaluation of a script, with minimal side effects for applications like a watch window. The script to run. True to use a new scope The results of running the script. if script is null. if an script is already running. For any errors executing the script. If multiple errors are found running the script, only the first will be thrown as an exception. If half a second has passed and the command has not completed. Invokes the script synchronouslly returning the results instead of placing them in the output This method is intended for the quick evaluation of a script, with minimal side effects for applications like a watch window. The script to run. True to use a new scope The number of milliseconds to wait, or a negative value like TimeOut.Infinite to wait indefinitely. The results of running the script. if script is null. if an script is already running. For any errors executing the script. If multiple errors are found running the script, only the first will be thrown as an exception. If millisecondsTimeout have passed and the command has not completed. Executes the command currently in the console pane. If CanExecuteConsolePane is false Executes the currently selected script Executes the text currently selected in the script editor Stops the current command asynchronouslly. Adds an error to the output. error message Executes the script and calls back with the output when it is done script to execute method to call when the execution is done Exists the nested prompt Enters the nested prompt Executes the "step into" debugger command Executes the "step over" debugger command Executes the "step out" debugger command Resumes execution of the debugger Stops the debugger Toggles (add/remove) the breakpoint on the current line Clears the output and refreshes the prompt Invokes the get-psbreakpoint cmdlet Invokes the get-pscallstack cmdlet Invokes the update-help cmdlet Executes the given script echoing the script in the output. script to be executed true if the script was succesfully executed Executes the given script echoing the script in the output. script to be executed true if the command are the contents of a script, and false if the command is a script name true if the script was succesfully executed Executes the given script echoing the script in the output. script to be executed true if the command are the contents of a script, and false if the command is a script name true to add the script to input history true if the script was succesfully executed Enables the breakpoints on the current line Disables the breakpoints on the current line Deletes all the breakpoints on the current runspace Enable all the breakpoints on the current runspace Disable all the breakpoints on the current runspace Code executed when the host enters a remote session Code executed when the host exits a remote session Refreshes the debugger adornments on all the files in the current runspace is not used. Refreshes the debugger adornments (highlights for breakpoints and current line) on the given file The file to refresh Starts running the prompt function. Performs tab completion in the editor editor to perform tab completion in true to look forward, false for backward true if the tab completion has been handled Goes to the next history when the user presses down Goes to the previous history when the user presses up Goes to the first history when the user presses PageUp Goes to the last history when the user presses PageDown Adds a line to the output editor meant as a separator between commands Runs the profile PSCommand synchronouslly command to run Runs the profile command synchronouslly command to run Executes input command to execute true if the command are the contents of a script, and false if the command is a script name true if the command should be added to history true if the input should run in a new scope. Use false to dot-source the input. true if it was able to execute the command Called by the editor to start intellisense completion retrieval in a separate thread editor requestiong intellisense results position for the start of the line position of the caret where intellisense is starting line text up to caret True for when a timeout should be used True to select an item even if the filter text is empty Called by the editor to start intellisense completion retrieval in a separate thread editor requestiong intellisense results position for the start of the line position of the caret where intellisense is starting line text up to caret filter for result types True fir when a timeout should be used True to select an item even if the filter text is empty Gets the completion results for tests the completion results for tests Disposes of the resources used by this runspace asynchronouslly. Synchronouslly stopping the runspace in the UI thread is not possible since some runspaces can be stuck in a call like [console]::readkey(). this.runspaceRef.Runspace.Dispose will synchronouslly stop the runspace therefore it has to be done in a separate thread. The thread being used to dispose of the runspace. Updates the visibility of the embedded Show-Command for this tab Finds the show-command tool in the vertical or horizontal panes, or returns null if not found true if we want to open the pane the tool is found on, false to close the tool and null to take no action on tool or pane the show-command tool in the vertical or horizontal panes, or null if not found Sets ShowCommands and does not throw an exception if in remote session new value for ShowCommands Raises the SelectedFileNeedsFocus event event arguments Handles KeyDown for operations common to multiple editors event sender event arguments Processes the tab key for all 3 editors event sender keyboard arguments seleceted PowerShellTab Called from the constructor to creates and open the runspace the host to be used the newly created runspace Called from the constructor to create the add to history settings the add to history invocation settings Helper used in AddOnTools_CollectionChanging to check if adding would duplicate names or windows in . Tool about to be added Collection the tool will be aqdded to Creates a PSCommand to set a breakpoint on a given script and line. The rest of the command arguments are taken from the 'breakpoint' parameter. Script to set the breakpoint Line to set the breakpoint on Provides the rest of the paramenters for the set breakpoint command A command to set the breakpoint Get the parameters needed to call the engine's api for tab completion. the editor the position of the cursor, from the editor's point of view returns the ast from the buffer returns the tokens from the buffer returns the position (from the Ast point of view) of the cursor Completion routine for invocations of the Prompt() function; it simply forwards the call to DoUpdatePrompt on the UI thread Output buffer for the Prompt() function Sets the prompt property with the local or remote string The prompt string value to set the property with Refreshes the prompt synchronously. Called from InvokeSynchronous Updates the prompt with the result of a PowerShell invocation Output buffer for the Prompt() function Closes the addon tool where it is (vertical or horizontal pane) Tries to find the tool containing this.showCommandControl in the collection collection of tools to look for this control on the tool containing this.showCommandControl in the collection Listens to PropertyChanged after ExecuteCommand is called while intellisense was running in order to catch a change in CanInvoke to true resulting from intellisense stopping event sender event arguments Starts untellisense and calls the editor back when the results are ready editor where Intellisense is to start position for the start of the line position of the caret where intellisense is starting line text up to caret filter for completion results True fir when a timeout should be used True to select an item even if the filter text is empty Stops intellisense by calling BeginStopCurrentCommand. This method is called when intellisense times out or when we want to execute something in the console pane true if this is called from the intellisense time out so we leave a message in the Status bar Calls GetNextCompletionMatch on either this.intellisenseToTabTransition or this.commandCompletion editor line the ast from the last tokenization the tokens from the last tokenization the position of the cursor true if we are moving forward the return of GetNextCompletionMatch on either this.intellisenseToTabTransition or this.commandCompletion This is the function that actually performs the tab completion; note that this code must be executed outside the UI thread editor to perform tab completion in editor line up to the caret the position of the caret true to look forward, false for backward Called when the console buffer changes to update the scratch buffer event sender event arguments Common method between ReportException and ReportTokenizationErrors to add an error to the output. error message error file error line error column Reports an Exception to the output as the ones we get from runing the profile or from a command's InvocationstateInfo.Reason when the pipeline fails exception to report Reports an Exception by outputing the exception to the pipeline exception to report Reports a tokenization error like the ones we can get by running the console pane, untitled or script selection tokenization errors Used to monitor changes in the SelectedFile so that we can monitor the focus on the currently SelectedFile and propperly set this.lastEditorWithFocus event sender. event arguments. Called when the selected file got focus to set this.lastEditorWithFocus event sender. event arguments. Called when the output got focus to set this.lastEditorWithFocus event sender. event arguments. Called by the timer to flush the output cache event sender event args Called to run the profiles event sender event arguments Moves the progress control to the editor grid Triggers the AddOnToolPaneClosed event collection where the event happened true if the pane has been opened Triggers the AddOnToolClosed event tool where the event happened Triggers the AddOnToolRemoved event tool where the event happened true if the tool has been added Monitors the CollectionChangingEvent to block additions past MaxAddOnToolCount and duplicated names or windows. Vertical or Horizontal tool collection, though this parameter is ignored since we will check the new tool against both vertical and horizontal collections event arguments Listens to CollectionChanged in Vertical or Horizontal tools to: 1) Update the listening of PropertyChanged events in each tool responsible for traching changes to IsVisible properties in each tool that cause changes in the VisibleCollections 2) Update the visible collections when tools are added/removed to/from Vertical or Horizontal tools. Vertical or Horizontal tool collections event arguments Called when IsVisible changes in Vertical or Horizontal to update the visible collections The ISEAddOnTool that changed event arguments Called from when the AddOnTool IsVisble property changes or when members are added/removed to Vertical/Horizontal AddOnTools. Vertical or Horizontal ISEAddOnToolCollection Visible collection corresponding to Sets the new Input text to newHistoryIndex new history index If is not the same as the top history and if is true: - Adds the command to history - Sets the history index to the top input to add to history true if we should add to history Sets the file in debug mode if it is PowerShell source file The file to mark True if the file was marked Sets the value of this.unsupportedConsoleApplications and initializes $psUnsupportedConsoleApplications. Called from the constructor to create the timer and set its event handler Called to invoke this.PropertyChanged, if needed, when the property has changed property name Returns true if the command is in the list of blocked commands command to check true if the command is in the list of blocked commands Posts the event to the UI thread PowerShell instance event arguments Called when the execution state changes PowerShell instance event arguments State of runpace Called when data has to be added to the buffer of the output control event sender event arguments Signals to the debugger thread that it should resume execution of the suspended pipeline debugger action to be taken Starts an asynchronous invoke on the current PowerShell instance the commands to execute Event handler for debugger breakpointsById/steps event sender event arguments Updates the UI when entering the debugger Updates the UI when exiting the debugger Ensures that the given file is opened Full path of the file to load True if the file was already in the files collection The ISEFile instance associted to the file Adds a line (formatted as a debugger message) to the pending output line to be added true if line should have a \r\n appended to it Saves the current state and updates the UI when entering a nested prompt thread object unused here Sets the prompt bracket text Restores the saved state and updates the UI when exiting a nested prompt thread object not used in this method Posts the given action to the pipeline thread The action to execute Indicates whether to wait for the action to complete Updates the breakpointsById when the runspace notifies that a change has occurred Debugger instance raising the event event arguments Sets the initial breakpoints when a new file is added the ISEFile collection event arguments Evaluates an expression and returns its value event sender event arguments Updates the breakpoints as requested by the editor the ISEFile hosting the editor event arguments Called each time the current (nested) powerShellInvoker changes state to set this.CurrentState event sender event arguments Called when any of the 2 properties IsReadyForNextCommand depends on changes (IsAsynchronousOperationDone or IsPipelineRunning) to set this.IsReadyForNextCommand Called when CurrentState changes to set IsPipelineRunning For INotifyPropertyChanged Triggered when an AddOn tool pane is closed Triggered when an AddOn tool is closed Triggered when an AddOn tool is removed Triggered when the state of the current command execution changes Raised when the runspace changes the selected file Raised when the display name is changing to let the ISEPowerShellTabCollection throw an exception for duplicate names Gets the root of the tools menu. Gets the Ruunspace status text Gets or sets a value indicating whether scripts are expanded Gets or sets a value indicating whether we are displaying the embedded show-command in this tab Gets or sets a value indicating whether the horizontal AddOn tools pane is opened Gets or sets a value indicating whether the vertical AddOn tools pane is opened Gets the current prompt text. Gets the output editor. Gets or sets the display name. Gets the script files currently opened. Gets the tab specific snippets for this tab currently loaded. Gets a value indicating whether a script can be executed with the method. Gets the Horizontal AddOn tools Gets the Vertical AddOn tools Gets the subset of with visible tools. Gets the subset of with visible tools. Gets or sets a pending command to be run once the PowerShellTab is not running a command Gets the show-command displayed in this tab Gets or sets a value indicating whether the state of the ShowCommand window should be updated on UpdatePrompt Gets the index that the Up/Down Arrow are currently seeing from the CommandHistory Gets the nested prompt level Gets the current progress objects in this PowerShellTab Gets or sets the initial command to be run after running the profiles Gets or sets a value indicating whether the console was the last editor that got focus This is used in ISEZoomMouseProcessor to allow for a click from outside the Console to go to input Gets or sets the last editor between input, output and script editors that got the keyboard focus. This is used when going back and forth between runspaces so we place the focus on the same place where it was left. Gets the PSGHost used as a value to $psIse. Gets a value indicating whether there is a current running command true if there is a current running command Gets a value indicating whether we can execute the Console pane. Gets a value indicating whether we can execute the currently selected script. Gets a value indicating whether we can execute the text currently selected in the script editor. Gets the output editor. Gets a value indicating whether we can execute any of the debugger commands Gets a value indicating whether we can execute the "Run/Continue" command Gets a value indicating whether we can execute the "toggle breakpoint" command Gets a value indicating whether we can execute the "enable breakpoint" command Gets a value indicating whether we can execute the "disable breakpoint" command Gets a value indicating whether we can execute the "remove all breakpoints" command Gets a value indicating whether we can execute the "enable all breakpoints" command Gets a value indicating whether we can execute the "disable all breakpoints" command Gets a value indicating whether we can execute the "list breakpoints" command Gets a value indicating whether the runspace is in a nested prompt Gets a value indicating whether the runspace is in the debugger Gets the graphical prompt to be displayed. Gets the prompt bracket to be displayed. Gets the prompt automation name. Gets the command history Gets a reference to the runspace pool used by this class. Gets or sets a value indicating whether we are running a command. This is set to false at the beginning of an asynchronous operation and reset to true when the operation is completelly done. This is used from test code Gets or sets the GPSHost associated with this runspace Gets or sets a value indicating whether there is no pending asynchronous operation and no pipeline running Gets a value used to layout controls Gets a value indicating whether any snippets would be displayed upon 'Show Snippets' Gets a value indicating whether the current runspace is remote Gets a value indicating whether we can execute any of the breakpoint commands (toggle, enable, disable, remove) Gets or sets a value indicating whether there is a pipeline running in the runspace Gets or sets the current powerShellInvoker that changes when we enter a nested prompt like in the debugger scenario. Used in ExecuteAndCallback to call back when the script is done executing the results of script execution errors running the script Used as a helper to create delegates Types of graphical prompts The normal prompt Debugger prompt Prompt for nested powershells PowerShellInvoker is a helper class that wraps a PowerShell instance and executes Invoke on the correct thread depending on the state of the PowerShellTab. It is also used to save state when entering a nested prompt. PowerShell object to be used in invocations in this prompt Runspace in use save the status text when entering a nested prompt save the prompt when entering a nested prompt Indicates that the current instance is exiting a nested prompt; once exit begins no further calls to Invoke should be done on this PowerShellInvoker instance (because the pipeline thread is resuming execution). Initializes a new instance of the PowerShellInvoker class associated with the given runspace the runspace in use Initializes a new instance of the PowerShellInvoker class previous powerShellInvoker this nested prompt is going to cover Initializes a new instance of the PowerShellInvoker class This is the common constructor PowerShell object to be used in invocations in this prompt Runspace in use Invokes the current command, and does not return while the command is not finished or millisecondsTimeout have not passed. Maximum time allowed for the command to complete The results of running the current command If running the command caused an exception to be thrown. If millisecondsTimeout have passed and the command has not completed. Create a nested instance the nested instance that has been created Assynchronous invocation method input type output type command input command output invocation settings callback method context object Synchronous invoke the output type the result of the synchronous invocation Asynchronous stop Pass-thru to the internal PowerShell Dispose sets the history string on the underlying powershell history string to set Pass-thru of the InvocationStateChanged for the internal PowerShell instance event sender event arguments Event raised when the state of the current invocation changes Gets the PowerShell instance wrapped by this instance Sets the Commands property(Pass-thru) of the internal PowerShell object. Gets the InvocationStateInfo property of the internal PowerShell(Pass-thru) Gets or sets the saved status text when entering a nested prompt Gets or sets the saved prompt when entering a nested prompt Gets or sets a value indicating whether the current instance is exiting a nested prompt; once exit begins no further calls to Invoke should be done on this PowerShellInvoker instance ( because the pipeline thread is resuming execution). Arguments for the event raised when the DisplayName property is about to change The old value for displayName The new value for displayName Initializes a new instance of the DisplayNameEventArgs class. old DislpayName value new DisplayName value Gets the Displayname's old value Gets the DisplayName's new value ReturnValue for GetNextCompletionMatch The match text The replacement index The replacement length Initializes a new instance of the CompletionMatch class The match text The replacement index The replacement length Gets the match text Gets the replacement index Gets the replacement length Manages the transition from intellisense to tab completion considering both share the same completion results. If intellisense is up and tab is pressed the desired behavior is that of tab completion. When "get-" is pressed and intellisense is up, pressing tab will cause intellisense to be dismissed and the existing completion results obtained for intellisense will be cycled through for tab completion. There is no problem there. The problem comes in the following scenario: "get-" starts intellisense and then p is typed to filter the intellisense results. The completion results have been obtained for "get-" and p was only used to filter the intellisense results. At this moment, TAB should cycle through the results that would have been obtained for a tab after "get-p". We have two approaches to obtain that result. 1) obtain another set of completion results for "get-p" 2) filter the resuts we already have for "get-" to the ones that start with "get-p" and cycle trough them There is one additional complication for both scenarios: If the currently selected intellisense result does not start with "get-p" since intellisense filter uses "Contains" instead of "StartsWith", then the intellisense session has to be commited, since this is the intellisense desired behavior for tab, and there will be no cycling through tab completion. This class implements approach 2) above to avoid calling another tab completion and because approach 1) would require a careful synchronization of the new completion results with the intellisense selection once the tab completion results are retrieved on a separate thread Set in GetIntellisenseToTabCompletionTransition to a subset of intellisense resuts that start with the intellisense filter Similar to the lastInput field of CommandCompletion this field is used to monitor the fact we are still cycling this set of results Added to each one of the completion result texts in GetNextMatch The current completion index in completions The start index for the replacement The length of the text to replace Prevents a default instance of the IntellisenseToTabCompletionTransition class from being created Creates a new IntellisenseToTabCompletionTransition object The set of completions The ISE editor the selected intellisense completion true if we are going forward. This is used to set currentCompletionIndex a new IntellisenseToTabCompletionTransition object or null if the does not start with filter in . Gets the next completion match for the given and sets the currentCompletionIndex according to editor line true if we are going forward the next completion match for the given Safely sets the value of currentCompletionIndex so it does not go beyond the limits of completions and so it cycles through to begining/end new value of currentCompletionIndex Collection of . Maximum number of runspaces that can be opened last runspace number The currently selected PowerShellTab tracks the first tab added Used to prevent renaming a PowerShellTab to an already existing name. Note: If you want to use this table and expect it to be in POwerShellTab addition order (the same order as in this collection) you're out of luck. PowerShellTab renames will cause a tab to be removed and inserted at the end of the dictionary which will change the order here. This is the list of threads used to dispose of the runspace. The thread might be blocked if the runspace is unable to close. Initializes a new instance of the PowerShellTabCollection class. Selects the . PowerShellTab to be selected. Adds a new to the collection. The PowerShellTab that has been added. If there are too many PowerShellTabs already BeginDispose a PowerShellTab runspace in the collection. The Runspace thread is added to a watch where we can decide if the processed needs to be closed with force. tab with runspace to be disposed Returns true if any of the PowerShellTabs in this collection has vertical or horizontal AddOn tools true if any of the PowerShellTabs in this collection has vertical or horizontal AddOn tools Overridden to throw an exception to block a direct Insert or an Add given that there is no constructor for index of the item to be inserted item to be inserted When calling this method Moves a PowerShellTab from one position to another. index to move from. index to move to. Overridden to throw an exception blocking a set. index of the item to be set. new PowerShellTab at the . When calling this method Overridden to throw an exception indicating there must be at least one runspace in the collection. Removes a PowerShellTab at the specified position. index of the item to be removed. Monitors changes in the collection to update this.firstTab and the event we listen on it event sender event arguments Monitors PropertyChanged on the first tab to set the UserSettings.Default.ShowCommandsOnFirstPowerShellTab when ShowCommands changes event sender event arguments Sent to the UI thread in Add to actually add a new PowerShellTab. ignored parameter to meet DispatcherOperationCallback signature. The PowerShellTab that has been added. Calls Clear on on the files in the PowerShellTab corresponding to so that an exception can be raised regarding removing a runspace with unsaved files. index of the item about to be removed. Called when the DisplayName property is changing in any item in the collection to give the collection a chance to prevent the change. event sender event arguments Gets or sets the currently selected PowerShellTab. Gets a value indicating whether a Runspace can be added to the collection Gets a value indicating whether Runspaces can be removed from the collection. The last Runspace can't. Gets the list of Runspace threads to attempt to dispose. If they cannot be disposed, cleanup needs to be forced Tokenizes ITextBuffer for powershell scripts in a separate thread. Base class for all tokenization services. Starts tokenization in a separate thread. When the tokenization is done, places token information in the buffer properties and then triggers the event TokenizationComplete.The information is placed in buffer properties because Editor buffer Controls access to StartTokenizeBuffer so that there is only one thread tokenizing at a time The span to tokenize Event used by the output to pause tokenization while output is being produced Initializes a new instance of the PSBufferTokenizationService class editor buffer Finalizes an instance of the PSBufferTokenizationService class Dispose method in IDisposeable Performs the post construction virtual calls to initialize the service. Virtual methods cannot be called from constructors. Called to tokenize the buffer in a separate thread and to call the callback when tokenization is done Called to set initial empty tokenization results Called when the buffer tokenization is accurate for the last buffer version To set the results of tokenization as buffer properties Removes properties used as a tag cache Called from a separate thread to do the tokenization span we are tokenizing text to be tokenized Sets the property value in the buffer, removing it if the property is already present key of the property to set value of the property to set Called to trigger the TokenizationComplete event Implements IDisposable logic true if being called from Dispose Event triggered when the tokenization is done Gets or sets the span being tokenized in StartTokenizeBuffer Gets the event used by the output to pause tokenization while output is being produced Gets the editor buffer Name for the start region comment Name for the end region comment Used to map {([ to })] Empty collection of PSTokens used as an initial result Empty dictionary to be used as an initial value for the brace matching results Empty region list used as an initial result Empty classifications Empty error tags Flag to let us know what we can skip trying to load the workflow module Tokenization tokens Tokenization ast Dictionary of start braces to end braces Dictionary of end braces to start braces Regions found when parsing The error tags retrieved true to return classifications for the console classifications retrieved Initializes a new instance of the PowerShellTokenizationService class editor buffer true to use the console classifications Called after the tokenization is done to figure out which brace matchings should be present The text we want spans from the position where the text starts in the buffer tokenization result dicitionary of end brace positions into start brace positions dicitionary of start brace positions into end brace positions list of regions Called to set initial empty tokenization results Called from a separate thread to do the tokenization span to tokenize text to tokenize Called when the buffer tokenization is accurate for the last buffer version To set the results of tokenization as buffer properties Removes properties used as a tag cache Called from GetRegionsAndBraceMatchingInformation to deal with comment tokens The position where the text starts in the buffer outline regions text being tokenized stach of #region commentsd already found token with comment Called from GetRegionsAndBraceMatchingInformation to deal with string tokens the position where the text starts in the buffer dictionary of start braces dictionary of end braces outline regions text being tokenized string token Finds c in braces from end to the begining. If c is not in braces, null is returned otherwise returns the corresponding match and removes it from braces list character to look for list of current braces found If c is not in braces, null is returned otherwise returns the corresponding match Add an outline region to the position where the text starts in the buffer region text list we are adding the region to region start region end Add an outline region to the position where the text starts in the buffer region text list we are adding the region to region start region end text for the region when collapsed Add an outline region to the position where the text starts in the buffer region text list we are adding the region to region start region end text for the region when collapsed tooltip for the region when collapsed Adds matching information in startBraces and endBraces the position where the text starts in the buffer staer brace dictionary end brace dictionary start position end position Load the PSWorkflow module if it hasn't already been loaded. We do this so we get Intellisense/tab completion on workflow parameters as well as syntax errors specific to workflows. The module is loaded into a throwaway runspace because we really only need the right assemblies loaded. Add the spans for the tokens nested in an expandable string token. The expandable string token with nested tokens. The start of the full span we tokenized Add a span for the given parameters. The token we want to add a span for The start of the full span we tokenized Add a span (if appropriate) for the given parameters. The classification type The start of the span The length of the span Adds ErrorTags in addinf ofset the start of the span we are tokenizing errors to add tags for Gets the array used to map {([ to })] Information about a brace found in the editor The brace character The position of the brace Initializes a new instance of the BraceInformation struct the brace character the position of the brace Information used to create the TagSpan of T in the UI thread type of tag error start error length tag from start to start + length Initializes a new instance of the TagInformation struct the error start the error length the tag from start to start + length Called from the UI thread to get the error tag if it is valid or null otherwise buffer snapshot the error tag if it is valid or null otherwise Information used to create a classification in the UI thread classification start classification length classification type from start to start + length Initializes a new instance of the ClassificationInformation struct the classification start the classification length classification type from start to start + length Gets the classification length Gets the classification start Gets the classification type from start to start + length Host functionality Register the HostTextWriter to the runspace Set output encoding to the Console Output encoding so that findstr etc work on Non-Default locales more function psEdit function Command to import the ise module value indicating we should use a test profile name The controller used to run profiles Initializes a new instance of the ProfileInvoker class. The runspace used to run profiles Adds the variable. runspace where to set the variable. variable name. variable value. variable options. Used in tests to get the profile file names. shell id, null for all hosts. true for current user, false for al users. The profile file name corresponding to the shellId and forCurrentUser. Sets the variables specific to this host Runs all profiles Sets $profile. This is also done in HostUtilities.GetProfileCommands but if NoProfile us used It has toi be set here Gets or sets a value indicating whether we should use a test profile name The root of the application's logic layer PowerShellTabs currently opened Initializes a new instance of the PSGData class. Gets the PowerShellTabs in the application Script Editor Tooltip used to display variables Content of the tooltip used to display variables tooltip request that is currently being processed Timer used to simulate the mouse hover event Initializes a new instance of the ScriptEditor class. content type Raises the TooltipRequest event event arguments Returns the span for the ast if the ast can be safely evaluated by the debugger for the purposes of displaying a tooltip with the expressions value. The ast to find the span for A span, or null Ensures that the tooltip is displayed only when DisplayTooltip is true event sender event arguments Starts the timer that displays the tooltip event sender event arguments Disables the tooltip when the mouse leaves the editor control event sender event arguments Starts an asynchronous request for the tooltip The parameter is not used Returns the ast at the current mouse position The full ast Ast, or null if there is no ast at the current mouse position Completes an asyncrhonous request for a tooltip tooltip request value of the tooltip Event raised to request the value of the tooltip Gets a value indicating whether to display the tooltip or not Callback for the TooltipRequest event The original request The value of the tooltip Arguments to the TooltipRequest event Expression to evaluate Callback for tooltip request Initializes a new instance of the TooltipRequestEventArgs class. Initializes the arguments with an expression expression to evaluate request callback Gets the expression to evaluate Gets the the subscriber must call this function with the result of the evaluating the expression Collection that performs all update actions in the UI thread and that therefore can be used as the type for a variable exposed to scripts and used internally. The type of the elements in the collection. Used in notifications if an empty list is needed The underlying collection used to implement the interfaces. Indicates if the collection is read only Initializes a new instance of the UICollection class. Adds an item to the collection. The object to add to the collection. Removes all items from the collection. Determines whether the collection contains a specific value. The object to locate in the collection. true if item is found in the collection; otherwise, false. Copies the elements of the collection to an Array, starting at a particular Array index. The one-dimensional Array that is the destination of the elements copied from collection. The Array must have zero-based indexing. The zero-based index in array at which copying begins. Removes the first occurrence of a specific object from the collection. The object to remove from the collection. true if item was successfully removed from the collection; otherwise, false. This method also returns false if item is not found in the original collection. Returns an enumerator that iterates through the collection. An enumerator that iterates through the collection. Returns an enumerator that iterates through the collection. An enumerator that iterates through the collection. Determines the index of a specific item in the collection. The object to locate in the collection. The index of item if found in the list; otherwise, -1. Inserts an item to the collection at the specified index. The zero-based index at which item should be inserted. The object to insert into the collection. Removes the collection item at the specified index. The zero-based index of the item to remove. Notifies of a change in the collection. event sender. event arguments. Repasses changes in the underlying collection to this collection. event sender. event arguments. Notifies the collection is about to change and returns true if the operation should be canceled. event arguments. True if the operation should be canceled; Occurs when the collection changes. Occurs when the collection is about to change. Gets the number of elements contained in the collection. Gets a value indicating whether the collection is read-only. Gets or sets the element at the specified index. The zero-based index of the element to get or set. The element at the specified index. Class used as parameters for an event sent before performing an action; Event action. New item added to the collection. Old item removed from the collection. Set to true if the action should be cancelled. Initializes a new instance of the NotifyCollectionChangingEventArgs class. Event action. New Items. Old Items. If the action is Add, Move or Replace and is null or If the action is Remove, Move or Replace and is null. If any item in is null. If any item in is null. If is invalid or If is Add or Reset and is not null or If is Remove or Reset and is not null Gets the old item. Gets the event action. Gets the new item. Gets or sets a value indicating whether the action should be cancelled. Manages the saving and restoring of auto save information. Timer used to save the files Path where files should be saved Path where information about auto save files should be saved The full path to the file where the information in autoSaveInformation is saved Set to true when all paths required for auto saving are available Value indicating whether recovery is being performed Used to prevent concurrent access to the auto save file information files Used for the id of the current processto name the auto save information file and for the name of the current process to detect if previous auto save informations should be retrieved in PErformRecovery Dictionary with the auto save information. The first key is the PowerShellTab. The second key is ISEFile FullPath. Called when the application starts to perform auto save initialization path where files are auto saved Gets the two booleans representing recovery state True if it has recovered files, but they are all titled and saved. Titled and saved files will not have an auto save file. True if it has recovered any files at all, with or without auto save files. Sets the path where files are auto saved config file path Starts listening for changes in Options' AutoSaveMinuteIntervalStarts to reset the timer when it changes Called to discard auto save information Starts the Auto Save timer Reads the information from one of the auto save files restoring the files True if it was able to recover all files Ensures we have the correct auto save information for all files, deleting information no longer used and generating the necessary information to reflect the current files. Performing these steps: 1) Delete auto save information for files that have been closed, and auto save files for files that have been saved. 2) Create Auto Save information for new files (titled, untitled, saved or unsaved) 3) Save the auto save information in a file Called from DiscardAutoSave to delete all AutoSave information Returns true if it is possible to find the process with processId and it has the same name as the current process Process id of the process we want to find true if it is possible to find the process with processId and it has the same name as the current process Tries to get a list of the files under path directory we want to get files from list of the files under path or null if it could not be retrieved Tries to create the directory iof it does not exist directory to create false if it could not be created Called when the Options properties change to reinstall the timer if AutoSaveMinuteInterval changes event sender event arguments Installs the auto save timer initially or when AutoSaveMinuteInterval changes Stops the auto save timer, if present Calls the auto save step method ignored event sender ignored event parameter Step #1 of 3 of the AutoSave_Tick, delete auto save information for files that have been seved or closed Step #2 of 3 of the AutoSave_Tick, create Auto Save information for new files (titled, untitled, saved or unsaved) Step #3 of the AutoSave_Tick, saves the AutoSaveInformation file to disk Called from PerformRecovery to Fill in the tabs collection with newly created tabs the newly created tabs list of all the auto save informations True if it was bossible to create all tabs Called from PerformRecovery to add the info to AutoSaveManager.autoSaveInformation the AutoSaveFileInformation to be added Called from PerformRecovery to add a new ISEFile based on info to its proper PowerShellTab.files collection. The PowerShellTab is retrieved from powerShellTabs. Information used to add a new ISEFile List of all current PowerShellTabs true if it was able to add the new ISEFile Called from TryAddISEFile to actually try to add a new ISEFile based on the auto save information from its parameters collection to add the new ISEFile to The AutoSavedInformation we are basing the new ISEFile on The newly added ISEFile or null if it could not be added Called from TryAddAutoSaved to extract the Untitle number auto of the file name and try to get another Untitled file name with the same number, if possible Untitled file name A new Untitled file name, possibly using on the same number as the one found in fileName or a larger number if that one is already taken. Gets a value indicating whether all paths required for auto saving are available Gets a value indicating whether recovery is being performed. Auto save information about one ISEFile True for when the file has been auto saved, false for when the file has been saved, and does not need an auto save file. Saved files also require auto save information so they can be restored. They do not required an auto save file. Buffer version from the last time the file has been auto saved PowerShellTab the file is in The path to the auto saved file. This is only valid if isautoSaved is true. The full path that comes from ISEFile's FullPath property The FileName that comes from ISEFile's FileName property The IsUntitled flag that comes from ISEFile's IsUntitled property Used because we cannot compare buffer versions if the ISEFile is the same. The HashCode would probably work fine for this purpose as well There is only one condition where an ISEFile with the same full path would be different, if an ISEFile has been opened, an AutoStep happened, and the ISEFile has been closed and opened again. In this case we can't compare buffer versions. They can both be 1. Initializes a new instance of the AutoSaveFileInformation class File this auto save information is going to track Tab the file belongs to Prevents a default instance of the AutoSaveFileInformation class from being created from outside this class. This constructor is called in this classes' ReadFromSerializedXmlString static method. Deserializes fullPath into a List of AutoSaveFileInformation deserialized xml path A List of AutoSaveFileInformation from the deserialized fullPAth Attempts to write the auto save information file in fullPath with the serialized version of autoSaveFiles AutoSaveFileInformation to be saved to fullPath path of the file to serialize autoSaveFiles to true if succesfully serialized Tries to save the auto save file to disk if the ISEFile has not been saved ISEFile with the WriteFileToDisk method we will need true if it was able to save Tries to delete the AutoSaved file if it is indeed aut saved and its path is found Returns true if it can use the auto save information autosaveveinformation to validate true if it can use the auto save information Gets a well formed file name with no spaces or more than 20 characters This is meant to make the auto saved file names a bit more related to their original file names. fullPath we want to get the well formed name from a well formed file name with no spaces or more than 20 characters Tries to get the FileStream from File.OpenRead out of the path. path to get the FileStream from the FileStream from File.OpenRead or null if it could not be retrieved Tries to get the FileStream from File.Create out of the path. path to get the FileStream from the FileStream from File.Create or null if it could not be retrieved Attempts to get the last write time of the file full path to the file we want to know the last write time the last write time of the file or null if iot could not be retrieved Gets an auto save file path when one is needed in the AutoSavedFilePath property an auto save file path when one is needed in the AutoSavedFilePath property Gets or sets a value indicating whether the file has been auto saved. Gets or sets the full path that comes from ISEFile's FullPath property Gets or sets the file name that comes from ISEFile's FileName property Gets or sets a value indicating whether the ISEFile corresponding to this information is untitled. This value comes from ISEFile's IsUntitled property Gets or sets the buffer version from the last time the file has been auto saved Gets or sets the PowerShellTab name the file came from Gets or sets the AutoSavedFilePath from the file. This is onli valid is this.IsAutoSaved is true. Basic command implementation to be accessed from all toolbars and menus Keeps the current dialog while it is opened, and null if it has never been opened or has been closed. Auxilliar in SenderControl_LayoutUpdated Flag that indicates if the application has exited from session ending so that it does not try to exit the application again when the application receives a Window Closing event set from test to indicate there should be no GUI sets the focus in the Script Editor sets the focus in the console pane Editor Goes to a line of the script editor. Returns true if it is possible to go to a line in the script editor. true if it is possible to go to a line in the script editor. Clears the output Creates a new (Untitled) script Opens a new script Gets the filter to use on the Open and Save dialogs filter string Tries to open all files prompting with a MessageBox if failed file names false if any file could not be opened Opens a new MRU file file to be opened Closes a Script file tab returns true if a script can be closed true if a script can be closed returns false if the focus is not in the script editor or command, or if there is nothing in the clipboard false if the focus is not in the script editor or command, or if there is nothing in the clipboard Paste text into command or script editors returns false if the focus is not in the script editor or command, or if no text is selected false if the focus is not in the script editor or command, or if no text is selected Cut text from command or script returns false if the focus is not in the script editor or command or output window, or if there is no text false if the focus is not in the script editor or command or output window, or if no text is selected Selects all text text from command output or script returns false if the focus is not in the script editor or command or output window, or if no text is selected false if the focus is not in the script editor or command or output window, or if no text is selected Copy text from command output or script Undos the last action on command or script editor returns false if the focus is not in the script editor or command or if there is nothing to undo false if the focus is not in the script editor or command or if there is nothing to undo returns false if the focus is not in the script editor or command or if there is nothing to redo false if the focus is not in the script editor or command or if there is nothing to redo Undos the last action on command or script editor Opens the Find dialog Finds the next or previous match in the script editor true to search up. Opens the Find dialog Returns true if it has an editor with text to be found true if it has an editor with text to be found Returns true if can execute the current script true if can execute the current script Executes the current script Returns true if can execute the text currently selected in the script editor true if can execute the text currently selected in the script editor Executes the text currently selected in the script editor Returns true if there is no editor with a selection true if there is no editor with a selection Returns true if can execute the current script true if can execute the current script Executes the current script Inserts in the console ig it is at the input region or at the end of the input region if it is not texct to be insterted in the console Runs layout Runs layout and sets the focus on last editor Considers the Side By Side and script editor Expanded states to layout the controls correctly. Setting the visibility to collapsed as opposed to row heights and column widths to 0 is an accesibility requirement since narrator reads zero sized controls. Expands/collapses script editor Saves the current script Determines whether "Save As" can be executed true if the command can be executed Saves the current script with the Save dialog Returns true if we can increase the font. True if we can increase the font. Returns true if we can decrease the font. True if we can decrease the font. Zooms out for all editors Zooms in for all editors Toggles the display of outlining Returns true if there is a selected file to toggle outline expansion true if there is a selected file to toggle outline expansion Toggles the display of embedded commands Returns true if can tooggle embedded comands true if can tooggle embedded comands Toggles the expansion of outlining Toggles the display of line numbers Invokes help, context sensitive or not Calls show-command on the command arround the caret Calls the update-help command in the current runspace Follows the link to online AddOn information Exits the application normally (Alt+F4, close the application, etc.). true if closing the application should be canceled Exits the application due to a restart/logoff or update install from the restart manager. true when we the user is loggingOff false for a shut down from instalation applications true if closing the ending the session should be canceled Prompts for saving files and disposes of all PowerShellTabs if we are really exiting true if we should not exit the application Returns true if a new runspace can be created true if a new runspace can be created Creates a new Runspace Creates a new remote Runspace Returns true if a runspace can be closed true if a runspace can be closed Closes the current runspace Executes the "step into" debugger command Executes the "step over" debugger command Executes the "step out" debugger command Returns true if the Run/Continue command can be executed true if the Run/Continue command can be executed Resumes execution of the debugger Stops the debugger Returns true if debugger commands can be executed true if debugger commands can be executed Toggles (add/remove) the breakpoint on the current line Enables the breakpoint on the current line Disables the breakpoint on the current line Deletes all the breakpoints on the current runspace Enables all the breakpoints on the current runspace Disable all the breakpoints on the current runspace Lists the breakpoint on the current runspace Returns true if the "list breakpoints" command can be executed true if the command can be executed Lists the call stack on the current runspace Returns true if the "toggle breakpoint" command can be executed true if the command can be executed Returns true if the "enable breakpoint" command can be executed true if the command can be executed Returns true if the "disable breakpoint" command can be executed true if the command can be executed Returns true if the "remove all breakpoints" command can be executed true if the command can be executed Returns true if the "enable all breakpoints" command can be executed true if the command can be executed Returns true if the "disable all breakpoints" command can be executed true if the command can be executed Returns true if the runspace is free true if the runspace is free Sets the proper visibility for unique runspace and new runspace tabs Update list of runspaces in runspaces menu Opens a new instance of the options dialog Shows and selects the given addOn tool tool to show and select Moves the selected vertical tool to horizontal Sets the focus on the first focusable control in the selected vertical AddOn tool Sets the focus on the first focusable control in the selected horizontal AddOn tool Moves the selected horizontal tool to vertical Returns true if there is a selected horizontal tool true if there is a selected horizontal tool Returns true if there is a selected vertical tool true if there is a selected vertical tool Hides the selected horizontal tool Hides the selected vertical tool Toggles the vertical AddOn tool pane visibility Toggles the horizontal AddOn tool pane visibility Returns true if it is possible to toggle the horizontal AddOn Pane's visibility true if it is possible to toggle the horizontal AddOn Pane's visibility Returns true if it is possible to toggle the vertical AddOn Pane's visibility true if it is possible to toggle the vertical AddOn Pane's visibility Starts intellisense explicitly This is the starting point for menu commands that are common between command and script editors like undo, paste, etc. Gets the editor which has focus (if any), either the selected script editor or the console pane editor The script, console or input editor with focus Returns a value indicating intellisense can be started true if intellisense can be started Starts Insert Snippets explicitly Returns a value indicating Insert Snippet can be started true if Insert Snippet can be started Starts the powershell.exe link or executable Goes to a matching character Returns true if the caret is in a position that has a matching character true if the caret is in a position that has a matching character Sets the focus on the child of CommandImplementation.controlToReceiveFocus that is first in tab order event sender event arguments Moves the selected horizontal tool from the visible collection from one collection to the other the visible collection with the selected tool to move the collection to move the tool from the collection to move the tool to Hides the selected AddOn tool in the collection collection with the tool to hide Calls the Find or Replace dialogs, activating it if it is already opened and creating a new one if it is closed true for find true to search up Resets CommandImplementation.findAndReplaceDialog to null event sender event arguments Adds to unsavedFiles and unsavedTable unsaved files from runspaceControl list of unsaved files dictionary of unsaved files potentially unsaved files Get All Unsaved files from all open runspaces in one list unsaved files Performs all cleanup necessary before exiting the application Returns true if there are no Unsaved Files or if the user wants to discard them list of unsaved files true if there are no Unsaved Files or if the user wants to discard them Gets the encoding to save the filw with. This is usually the file encoding unless its encoding needs to be upgraded file to get the encoding for the encoding we should save the file with Calls the Saveas dialog file to save as final file name Calls SaveAs (if Untitled) or current.Save() the editor null if BasicSaveAs was cancelled or if cirrent.Save threw an exception or current.FullPath if saving was succesfull Calls SaveAs and updates fields in the current editor current editor true if SaveAs returned non null returns false if editor is null or there is no undo operation and updates the Undo menu name editor to check for an undo operation false if editor is null or there is no undo operation returns false if editor is null or there is no undo operation and updates the Undo menu name editor to check for an undo operation false if editor is null or there is no undo operation Returns the script, editor or output editors if any of those is selected or null otherwise the script, editor or output editors if any of those is selected or null otherwise Returns the output control for Copy operation, if it is focused output control if it is focused Collapses the script pane if it is maximized, so we can perform operations like going to input and output Gets or sets a value indicating whether there should be GUI Set from test to indicate there should be no GUI Default value for properties in the Options class Color converter used to read colors in user settings Readonly dictionary with script and input token colors Readonly dictionary with console token colors Readonly dictionary with xml token colors Converts a StringCollection to a dictionary of token type into color token type enumeration string collection dictionary of token type into color default token colors to be used if there is a token color missing from Converts a dictionary of token color into color to a string collection token type enumeration dictionary of token type into color string collection Returns the color corresponding to or if no such color exists. color string from the user setting default color to return if is not valid the color corresponding to or if no such color exists. Reads the default token colors from the User Settings default value token type enumeration USer Setting property name the default token colors from the User Settings default value Gets the default state for the script pane when it is expanded. Gets a value indicating whether the default value dor ToolBar visibility is true or false. Gets a value indicating whether we should see line numbers. Gets a value indicating whether we should see outlining. Gets the default colors for the input and script editor tokens Gets the default colors for the console tokens Gets the default colors when editing an xml file Gets the default font size used in the application. Gets the default font zoom used in the application. Gets the minimum font size Gets the maximum font size Gets the minimum zoom Gets the Maximum value for MruCount Gets the maximum zoom Gets the zoom increment Gets the default font size used in the scripts and console pane. Gets the default foreground color for errors. Gets the default background color for errors. Gets the default foreground color for warnings. Gets the default background color for warnings. Gets the default foreground color for verbose messages. Gets the default background color for verbose messages. Gets the default foreground color for debug messages. Gets the default background color for debug messages. Gets the default background color for console text blocks. Gets the default background color for the whole console area. Gets the default foreground color for the console text. Gets the default background color for scripts. Gets the default foreground color for non script files in the script pane. The default foreground color for script files is specified in . Gets a value indicating whether the default vaue for displaying a warning message when opening the same file in different runspaces regarding the fact that the same editor will be used is true or false. Gets a value indicating whether the default vaue for displaying a warning message when saving a script before running is true or false. Gets a value indicating whether the default value indicating help should be consulted locally is true or false. Gets a value indicating the default interval in minutes for auto saving files. Gets a value indicating whether we should display default snippets. Gets a value indicating the maximum number of MRU entries Gets a value indicating whether we should display Intellisense in the console pane Gets a value indicating whether we should Intellisense in the script pane Gets a value indicating whether enter selects from the intellisense list in the console pane Gets a value indicating whether Enter selects from the intellisense list in the Script pane Gets the default timeout for intellisense in seconds A tool to be added to ISE The tool name indicates if the tool is visible The window with the tool user interface Initializes a new instance of the ISEAddOnTool class. Internal since we want the Add Method in AddOnCollection to be used AddOn's Name Window with the AddOn GUI If name or control are null. Trigers the PropertyChangedEvent if there are listeners. Property that changed. Notifies of changes in property values Gets the tool name Gets or sets a value indicating whether the tool is visible Gets a value for the window with the tool user interface Gets a value exposed so tests can monitor if the events are being listened to Arguments for the AddOnTool events collection where the event happened Value indicating the tool has been added Initializes a new instance of the ISEAddOnToolAddedOrRemovedEventArgs class. tool where the event happened value indicating whether the tool has been added Gets a value indicating whether the tool has been added Gets the collection where the event happened Collection of ISEAddOnTool Initializes a new instance of the ISEAddOnToolCollection class. Made internal to prevent the creation of this class Adds a new ISEAddOnTool to the collection with IsVisible set to false AddOn tool name tool control type the tool that was added If name or controlType are null If: name or controlType are null there is no default constructor for controlType or it could not create an instance of the controlType or the instance of controlType is not a Control the instance of controlType does not implement IAddOnToolHostObject Adds a new ISEAddOnTool to the collection with IsVisible set to false AddOn tool name tool control type true if the tool is supposed to be visible the tool that was added If name or controlType are null If: name or controlType are null there is no default constructor for controlType or it could not create an instance of the controlType or the instance of controlType is not a Control the instance of controlType does not implement IAddOnToolHostObject Returns true if this collection contains an AddOn tool with the control control we want to check for membership to the collection true if this collection contains an AddOn tool with the control Adds a new ISEAddOnTool to the collection AddOn tool name tool control true if the tool is supposed to be visible the tool that was added Adds a new ISEAddOnTool to the collection with IsVisible set to false AddOn tool name tool control the tool that was added Arguments for the AddOnTool events collection where the event happened Initializes a new instance of the ISEAddOnToolEventArgs class. tool where the event happened Gets the collection where the event happened Arguments for the ISEAddOnToolCollection events collection where the event happened Value indicating the pane has been opened Initializes a new instance of the ISEAddOnToolPaneOpenOrClosedEventArgs class. collection where the event happened value indicating the pane has been opened Gets the collection where the event happened Gets a value indicating whether the pane has been opened Extension menu item. Used to retrieve the string representation of a KeyGesture Shortcut to the menu item. Submenus of this menu item. Script to be executed. Name to be displayed in the menu. Parent menu item. There is only one parent, so the same item is prevented from being added twice as a submenu. Initializes a new instance of the ISEMenuItem class. Name to be displayed in the menu. Script to be executed. Shortcut to the menu item. If the is null or if the is not null, but the is null. If the is empty. Returns the string representation of the . key gesture we want a string representation from. The string representation of the . Sets a newItem's parent and propagate changes to this.parent. event sender. event arguments. Performs validation of new items added to SubMenus to make sure there are no loops or shortcut repetitions. This method considers the scenario where the tree containing this, and the trees with root in the new Items are merged, and checks for loops and shortcut conflicts in the merge. event sender. event parameters. Gets the script to be executed. Gets the name to be displayed in the menu. Gets the shortcut to the menu item. Gets the submenus of this menu item. Gets the display name for the shortcut. Collection of menu item. Initializes a new instance of the ISEMenuItemCollection class. Adds a new ISEMenuItem to the collection returning the item just added. Name to be displayed in the menu. Script to be executed. Shortcut to the menu item. If the is null or if the is not null, but the is null. If the is empty. The ISEMenuItem added in this call. Settings for the Windows Powershell Graphical host. The default options The font size of all editors The zoom of all editors State of the script pane. true to show the toolbar true to show line numbers true to show outlining true to warn before saving on run true to warn before opening the same file in a different PowerShellTab The colors for the input and script editor tokens. The colors for the console tokens The colors for xml file tokens True when the public properties cannot be set (for default options). Font name in use. Foreground color for errors Background color for errors Foreground color for warnings Background color for warnings Foreground color for debug Background color for debug Foreground color for verbose Background color for verbose Background color for the console text. Background color for the console. The foreground color for the console text. Background color for the files. Foreground color for non script files in the script pane. The foreground color for script files is specified in TokenColors. Indicates help should be consulted locally. Indicates the interval in minutes for auto saving files. Use a negative number to turn off the auto save feature. The tipe is short because short.MaxValue works fine when used in the timspan of a dispatchTimer, int.MaxValue throws an exception. short.MaxValue in minutes is 22.75 days. That sounds like way past what one would want for the interval. Indicates default snippets should be displayed Maximum number of MRU files value indicating whether Intellisense should be displayed in the console pane value indicating whether Intellisense should be displayed in the script pane value indicating whether Enter should select an item from the console pane intellisense value indicating whether Enter should select an item from the script pane intellisense Indicates the intellisense timeout in seconds Initializes a new instance of the ISEOptions class. Restores the dafault values for all options. Restores the default values of the TokenColors property. Restores the default values of the ConsoleTokenColors property. Restores the default values of the TokenColors property. Loads the option values from the user settings. Verifies that a SelectedScriptPaneState is valid value to verify true if the SelectedScriptPaneState is valid Gets an ISEOptions object with all the properties set to the default values An ISEOptions object with all the properties set to the default values Loads the user setting font name and size if they are valid, or uses the default font name and size otherwise Used internaly to notify of a property change name of the property that changed For INotifyPropertyChanged Gets or sets the state of the script pane when it is expanded. Gets or sets a value indicating whether the default snippets should be displayed Gets or sets a value indicating whether the toolbar is visible Gets or sets a value indicating whether outlining should be displayed Gets or sets a value indicating whether line numbers should be displayed Gets the colors for the input and script editor tokens. Gets the colors for the console editor tokens. Gets the colors for xml file tokens. Gets the default values for the options. Gets or sets the font size used in the output, input and script editors. Gets or sets the zoom used in the output, input and script editors. Gets or sets the font name currently in use in the script editors and console pane. Gets or sets the foreground color for errors. Gets or sets the background color for errors. Gets or sets the foreground color for warnings. Gets or sets the background color for warnings. Gets or sets the foreground color for verbose messages. Gets or sets the background color for verbose mesages. Gets or sets the foreground color for debug messages. Gets or sets the background color for debug mesages. Gets or sets the background color for the whole conosle area. Gets or sets the background color for output text blocks. Gets or sets the foreground color for the console text. Gets or sets the background color for scripts. Gets or sets the Foreground color for non script files in the script pane. The foreground color for script files is specified in . Gets or sets a value indicating whether there should be a warning message when opening the same file in different runspaces regarding the fact that the same editor will be used. Gets or sets a value indicating whether there should be a warning message when saving a script before running. Gets or sets a value indicating whether help should be consulted locally. Gets or sets a value indicating the interval in minutes for auto saving files. Use a negative number to turn off the auto save feature. Gets or sets a value indicating whether the toolbar is visible Gets or sets a value indicating whether Intellisense should be displayed in the console pane Gets or sets a value indicating whether Intellisense should be displayed in the script pane Gets or sets a value indicating whether Enter should select an item from the console pane intellisense Gets or sets a value indicating whether Enter should select an item from the console pane intellisense Gets or sets a value indicating the intellisense timeout in seconds Gets the colors for the input and script editor tokens in the internal type. Gets the colors for the console editor tokens in the internal type. Gets the colors for the xml file tokens in the internal type Gets the label for a zoom control Contains the code to deal with MRU (Most Recently Used) files main window where the menu is built Initializes a new instance of the MruManager class main window where the menu is built Adds the at the top of the list. If is already present, it is removed from its previous position before added to the top. The menu is updated after the addition. path to be added to the MRU Removes from the MRU because it could not be opened, for instance. /// The menu is updated after the removal. path to be removed from the MRU Sets the maximum count of MRU entries removing existing entries past that count. The menu is updated after setting. maximum count of MRU items Updates the menu after additions/removals from the MRU or explicitly when the main window is constructed Gets the position for in the MRU or -1 if it is not found path to get the position from the position for in the MRU or -1 if it is not found Called when the options properties change to update the maximum count event sender event arguments Host object representing the whole application. The current PowerShellTab associated with this host object. The current ISEFile associated with this host object. value indicating whether this object is used in AddOn tools. True if it is used in an AddOn tool, false if it is used in ISE The currently visible horizontal AddOn tools The currently visible vertical AddOn tools Initializes a new instance of the ObjectModelRoot class. the current PowerShellTab associated with this host object. true if this object is going to be used in AddOnTools Gets the current PowerShellTab associated with this host object. Gets the current associated with this host object. Gets the current visible horizontal associated with this host object. Gets the current visible vertical associated with this host object. Gets the application options. Gets the Runspaces in the application. Dictionary that: 1) Notifies of changes 2) Can be set to read only 3) Access its data in the UI Thread The type of keys in the dictionary. The type of values in the dictionary. The underlying dictionary passed to the constructor. Returns true if this collection is readonly Initializes a new instance of the ObservableDictionary class. true if Adding Removing and setting should not be allowed. the comparer to be used for the keys. Initializes a new instance of the ObservableDictionary class. true if Adding Removing and setting should not be allowed. Adds an element with the provided key and value to the IDictionary. The object to use as the key of the element to add. The object to use as the value of the element to add. When calling the method and readonly has been passed to the contructor. Determines whether the IDictionary contains an element with the specified key. The key to locate in the IDictionary. true if the IDictionary contains an element with the key; otherwise, false. Removes the first occurrence of a specific object from the ICollection. The object to remove from the ICollection. true if item was successfully removed from the ICollection; otherwise, false. This method also returns false if item is not found in the original ICollection. When calling the method and readonly has been passed to the contructor. Gets the value associated with the specified key. The key whose value to get. When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized. true if the object that implements IDictionary contains an element with the specified key; otherwise, false. Adds an item to the ICollection. The object to add to the ICollection. When calling the method and readonly has been passed to the contructor. Removes all items from the ICollection. Determines whether the ICollection contains a specific value. The object to locate in the ICollection. true if item is found in the ICollection; otherwise, false. Copies the elements of the ICollection to an Array, starting at a particular Array index. The one-dimensional Array that is the destination of the elements copied from ICollection. The Array must have zero-based indexing. The zero-based index in array at which copying begins. Removes the first occurrence of a specific object from the ICollection. The object to remove from the ICollection. true if item was successfully removed from the ICollection; otherwise, false. This method also returns false if item is not found in the original ICollection. When calling the method and readonly has been passed to the contructor. Returns an enumerator that iterates through a collection. An IEnumerator object that can be used to iterate through the collection. Returns an enumerator that iterates through a collection. An IEnumerator object that can be used to iterate through the collection. Resets the underlying dictionary with the values in . new values for the underlyingDictionary Called to notify of major changes to the dictionary. Called to notify of additions to the dictionary. Item added. Called to notify of removales to the dictionary. Item removed. Called to notify when an item is replaced in the dictionary. the old value the new value Notifies changes in the collection. Gets the number of elements in a sequence. Gets a value indicating whether the ICollection is read-only. Gets an ICollection containing the keys of the IDictionary. Gets an ICollection containing the values in the IDictionary. Gets or sets the element with the specified key. The key of the element to get or set. The element with the specified key. When setting the value and readonly has been passed to the contructor. Host object representing the whole application. This class to be unique in the application. It is internal since an object of type ObjectModelRoot will be used to expose its public properties along with its own CurrentPowerShellTab and CurrentFile. The synchronization context used internally to send/post UI execution. The instance of this class that is in current use. The main window. Dictionary of all the existing shortcut keys, used to prevent adding custom menus with repeated shortcuts. We use a dictionary for easy lookup. The starting point for the data displayed in the application user interface. The application options. Populated with the initial key bindings from main since this collection is recreated when custom menus are inserted. Last runspace that was selected. value indicating whether we run the profile for PowerShellTabs value indicating whether we use the MTA option in PowerShellTabs Initializes static members of the PSGInternalHost class. Initializes a new instance of the PSGInternalHost class. Initializes a new instance of the PSGInternalHost class. value indicating whether we use the MTA option in PowerShellTabs value indicating whether we run the profile for PowerShellTabs Creates Options, PSGData and MainWindow Checks if the given keyGesture is already present in our dictionary of KeyGestures keyGesture to check true if it is already present Causes the reclassification of all output editors when toggling high contrast Causes the reclassification on all editors when high contrast is toggled. Called when this.lastPowerShellTab changes or an item is added to lastSelectedPowerShellTab.AddOnsMenu to update the current Tools window menu item (if any) with the menu items derived from lastSelectedPowerShellTab.AddOnsMenu Adds the given gesture to the dictionary of KeyGestures keyGesture to add resource id with the gesture Gets the resource id corresponding to the gesture keyGesture to look up The resource ide corresponding to gesture Validate that all shortcut resources are valid InputGestures, that there are no duplicate shortcuts Gets the index of _ not followed by another _ string to get the _ index from the index of _ not followed by another _ Called from VerifyMainWindowAccelerators to check for an accelerator duplication table with current accelerators header containing accelerator Called to monitor the state of the ExpandedScript property to actually expand or collapse the editor event sender event arguments Expands script editor the runspace in which to collapse the script editor Collapses script editor the runspace in which to collapse the script editor Adds menu items to show tools in toolCollection parent menu item to add submenus to collection with the tools to be turned into menu items to show them currently selected tool in the collection position to insert the items in Checks for duplicate accelerators Monitors changes in the SelectedAddOnTool property to update the menus when it changes event sender event arguments Monitors changes to the tools submenu of the all AddOnTools collections to potentially populate The Window menu if the collection changed in the current PowerShellTab event sender event arguments Called to load the options and respond to their initial values. event sender. event arguments. Callled when the collection of PowerShellTabs changes. event sender event arguments Adds the menu items corresponding to add on tools parent menu item to add submenus to Monitors changes to the tools submenu of the all PowerShellTabs to potentially populate The Window menu if the collection changed in the current PowerShellTab event sender event arguments Called to update the state of the run/stop buttons when the pipeline stops event sender event arguments Called when the Option's TokenColors change to reset the classifications event sender event arguments Called when the Option's ConsoleTokenColors change to reset the classifications event sender event arguments Called when the Option's XmlTokenColors change to reset the classifications event sender event arguments Montitors changes in the options starting the appriopriate GUI response. event sender. event arguments. Updates the Zoom and Scroll Visibility in all editors, as well as the font name and size Called when the SelectedPowerShellTab changes. event sender event arguments Monitors the changes in this.lastSelectedPowerShellTab.Files. event sender. event arguments. Gets the current Application. Gets the application options. Gets the PowerShellTabs in the application. Gets the main window. Gets or sets synchronization context used internally to send/post UI execution. Gets the starting point for the data displayed in the application user interface. Gets a value indicating whether we use the MTA option in PowerShellTabs Gets a value indicating whether we run the profile for PowerShellTabs Collection used in the Visible ISEAddOnTool collections allowing the internal code to change the collection in response to changes in the ISEAddOnTool collections flag that allows internal modifications to the collection The ISEAddOnTool that is currently selected Initializes a new instance of the ReadOnlyISEAddOnToolCollection class. Returns true if this collection contains an AddOn tool with the control control we want to check for membership to the collection true if this collection contains an AddOn tool with the control Returns true if the collection contains an AddOn tool with the control collection that might contain control we want to check for membership to the collection true if this collection contains an AddOn tool with the control Selects the . This allows setting the selected tool to null. File to be selected. Called from internal code to add new members to the collection tool to be added Called from internal code to clear the collection Called when modifications to the collection are attempted event sender event arguments Used internaly to notify of a property change name of the property that changed For INotifyPropertyChanged Gets or sets the currently selected Add-on tool The possible visualizations of the script pane when it is expanded. Script pane is to the top Script pane is to the right Script pane is maximized Interaction logic for ColorPicker.xaml ColorPicker The number of rows in the rectangle grid The number of columns in the rectangle grid A standard factor for dimming colors when the control is disabled A standard floor for dimming colors when the control is disabled A flag indicating whether the control has already been initialized An array of predefined colors A lookup collection of standard .net colors A flag to toggle whether to respond to events The current selected color A combo box item that indicates the current color isn't a standard .net color A collection of colors in their Enabled state A collection of colors in their Disabled state The state of the hexadecimal checkbox Initializes a new instance of the ColorPicker class and then sets up the bright and dim colors This method generates a color on a scale from a starting color to black The maximum range of the scale How far along the axis we've progressed The color we started out with A scaled color This method defines the colors for the color rectangles and creates a corresponding set of dim colors Handle the event when the control is initially loaded A reference to the sender Arguments which tell us more about the event Handles the click event for rectangles A reference to the sender Arguments which tell us more about the event This method retrieves the current color from the contents of the text boxes A color represented by the contents of the text boxes Handles the event when the red text box is changed A reference to the sender Arguments which tell us more about the event Handles the event when the green text box is changed A reference to the sender Arguments which tell us more about the event Handles the event when the blue text box is changed A reference to the sender Arguments which tell us more about the event Handles the event when the hexadecimal check box is checked A reference to the sender Arguments which tell us more about the event Handles the event when the hexadecimal check box is unchecked A reference to the sender Arguments which tell us more about the event Handles the event when the red slider is moved A reference to the sender Arguments which tell us more about the event Handles the event when the green slider is moved A reference to the sender Arguments which tell us more about the event Handles the event when the blue slider is moved A reference to the sender Arguments which tell us more about the event Handles the event when the combo box is changed A reference to the sender Arguments which tell us more about the event This method sets the current color and optionally updates some controls on the UI to match it The new color The controls to update This method does the real work of updating the controls in the UI The new color The controls to update Do the work to disable or enable subordinate controls when the main control is disabled or enabled Handle the event that happens when the control is disabled or enabled A reference to the sender Arguments which tell us more about the event InitializeComponent This event is raised to indicate that the current color has changed Gets or sets the current selected color This enum lets the caller specify what UI elements to update when the color is changed Flag to select text boxes Flag to select sliders Flag to select the combo box This is a serializable class that represents a named set of ISE UI colors and a font and font size selection. It also abstracts storage for a set of predefined and user customizable color themes. The registry key under HKEY_CURRENT_USER where themes are stored. The maximum size for a sanitized theme name -- slightly less than MAX_PATH The name of the theme The name of the font The size of the font Keys for the color collection Values for the color collection This operator overload allows the caller to compare two themes by value, excluding the Name property One of the themes to compare The other theme True or False, depending on whether the contents are the same This is the not-equals counterpart to == The first object to compare The second object to compare True or false This is equivalent to == The object to compare true or false This override creates a hashcode based on XORs of the hashcodes of the font name, font size, colors, and color keys An integer hashcode that corresponds to the settings in the theme This method clones an existing color theme object The theme to clone A new theme with the same contents This method creates a color theme from an ISE options object The object The name to give the new theme A new theme This method deserializes an XML string and returns a new theme object The XML to deserialize A new theme object This method reads XML out of a file and deserializes it into a theme object The full path and name of the file. A new theme object This method enumerates the names of the stored themes. Note that these aren't the actual names in the themes, but whatever names the store uses to identify them. (e.g. Registry value names or file names) A list of unique strings This method retrieves one theme from the store The store-specific unique name of the theme A new theme object This method saves one theme to the store The theme object to store This method deletes one theme from the store The theme to delete This method returns true or false depending on whether a color key is defined in the theme. The key to look up True or false Gets a name that's sanitized so it can be used in a file path, etc. True or false depending on whether you want to remove or escape non-alphanumeric characters A name that can be used in a file path, etc. This method applies the settings in a theme to an ISE options object. The object to apply settings to. This method attempts to apply a color theme to an ISEOptions object and returns a collection of error messages A theme with known good values to fall back to A collection of error messages This method serializes a theme to XML. True to make it human-readable, false to make it a single line of text Serialized XML This method serializes a theme and writes it to a file. The full path and name of the file. This generic method safely gets a color from a dictionary or returns a default if it's not defined. The type of the key The dictionary to get the color from The key to look up The color to return if the key doesn't exist A color or the default Gets the keys collection so it's available for serialization. Gets the values collection so it's available for serialization. Gets or sets the name of the theme Gets or sets the name of the font Gets or sets the size of the font Gets a list of available themes, including all of the themes in the store as well as all of the preset themes. This indexer implements dictionary-like behavior using two arrays. It doesn't actually index the keys, so it's less performant than a real dictionary, but the number of entries in the collection will always be low, and (most importantly) it's easily serializable to XML. The key to look up The value, or 'Black' if the item isn't in the collection This indexer allows the caller to pass in a default value to be returned if the key isn't in the list. The key to look up The default color to return A color Interaction logic for ManageThemesWindow.xaml ManageThemesWindow Wildcard filter for enumerating theme files The extension for a theme file The full extension for a theme file The name of the selected theme The actual selected theme The current active theme A collection of available themes, cached so we don't have to look them up every time A flag to indicate whether the current theme matches one of the available themes Initializes a new instance of the ManageThemesWindow class and opens a new instance of the window with an initial, potentially unsaved, theme selected. The initial theme Check whether a theme is one of the presets, so we can disable the delete and rename buttons. The name of the theme to check. True or false Initialize the UI. A reference to the sender Arguments which tell us more about the event If the selection in the list box is changed, look the selected theme up in the list of available themes. A reference to the sender Arguments which tell us more about the event Import a new theme from a file. A reference to the sender Arguments which tell us more about the event Export the selected theme to a file. A reference to the sender Arguments which tell us more about the event Delete the selected theme. A reference to the sender Arguments which tell us more about the event Rename the selected theme. If the user renames the 'custom' theme, this really saves it to the store. A reference to the sender Arguments which tell us more about the event Close the dialog box and return 'true' to indicate the selected theme has changed. A reference to the sender Arguments which tell us more about the event Close the dialog box and return 'false' to indicate that we shouldn't change the current theme. A reference to the sender Arguments which tell us more about the event Get a list of available themes from the store and cache them in a local list. Enumerate the available themes and populate the list box according to them. InitializeComponent Gets the theme the user selected. Options dialog GUI implementation strings Resource string: "Options" Resource string: "Restore _Defaults" Resource string: "_Cancel" Resource string: "_Apply" Resource string: "_OK" Resource string: "General" Resource string: "Script Pane Behavior" Resource string: "_Show Outlining" Resource string: "S_how Line Numbers" Resource string: "_Warn About Duplicate Files" Resource string: "_Prompt to Save Before Run" Resource string: "Position:" Resource string: "_Top" Resource string: "_Right" Resource string: "_Maximized" Resource string: "Intellisense" Resource string: "Sh_ow in the Console Pane" Resource string: "Show i_n the Script Pane" Resource string: "_Enter Selects Intellisense" Resource string: "Ente_r Selects Intellisense" Resource string: "Timeout in Seconds:" Resource string: "Other Settings" Resource string: "Use _Local Help" Resource string: "Show the tool bar" Resource string: "_Use Default Snippets" Resource string: "_Autosave Interval in Minutes:" Resource string: "Recent _Files to Show:" Resource string: "Colors and Fonts" Resource string: "Manage Themes..." Resource string: "_Fixed-Width Fonts Only" Resource string: "Sample:" Resource string: "Font Family:" Resource string: "Font Size:" Resource string: "Current Theme:" Resource string: "Background" Resource string: "Text Background" Resource string: "Foreground" Resource string: "Console Pane" Resource string: "Background" Resource string: "Script Pane" Resource string: "PowerShell Tokens" Resource string: "Attribute" Resource string: "Command" Resource string: "Command Argument" Resource string: "Command Parameter" Resource string: "Comment" Resource string: "Group End" Resource string: "Group Start" Resource string: "Keyword" Resource string: "Line Continuation" Resource string: "Loop Label" Resource string: "Member" Resource string: "Number" Resource string: "Operator" Resource string: "Statement Separator" Resource string: "String" Resource string: "Type" Resource string: "Variable" Resource string: "PowerShell Tokens" Resource string: "Attribute" Resource string: "Command" Resource string: "Command Argument" Resource string: "Command Parameter" Resource string: "Comment" Resource string: "Group End" Resource string: "Group Start" Resource string: "Keyword" Resource string: "Line Continuation" Resource string: "Loop Label" Resource string: "Member" Resource string: "Number" Resource string: "Operator" Resource string: "Statement Separator" Resource string: "String" Resource string: "Type" Resource string: "Variable" Resource string: "XML Tokens" Resource string: "Comment" Resource string: "Comment Delimiter" Resource string: "Element Name" Resource string: "Markup Extension" Resource string: "Attribute" Resource string: "Quote" Resource string: "Quoted String" Resource string: "Tag" Resource string: "Text" Resource string: "CharacterData" Resource string: "Output Streams" Resource string: "Background" Resource string: "Foreground" Resource string: "Background" Resource string: "Foreground" Resource string: "Background" Resource string: "Foreground" Resource string: "Background" Resource string: "Foreground" Resource string: "Red" Resource string: "Green" Resource string: "Blue" Resource string: "Hexadecimal" Resource string: "Import..." Resource string: "Export..." Resource string: "Delete" Resource string: "Rename" Resource string: "Cancel" Resource string: "The theme cannot be renamed because another theme already exists with that name." Resource string: "{0} (1)" Resource string: "The font "{0}" specified in the theme file isn't installed on your computer. The current font will be preserved." Resource string: "The font size "{0}" specified in the theme file isn't in the valid range of 6 to 32. The current font size will be preserved." Resource string: "The following errors occurred while importing the theme:\r\n\r\n{0}" Resource string: "# This is a PowerShell comment." Resource string: "'Length:'" Resource string: "This is a Quoted String, surrounded by Quotes." Resource string: " This is a Comment, surrounded by Comment Delimiters." Resource string: "This is Text." Resource string: "This is Character Data." Resource string: "This is some normal output text." Resource string: "Write-Error \"This is an Error.\" : This is an Error." Resource string: "WARNING: This is a Warning." Resource string: "VERBOSE: This is Verbose output." Resource string: "DEBUG: This is Debug output." Resource string: "Dark Console, Light Editor (default)" Resource string: "Light Console, Dark Editor" Resource string: "Dark Console, Dark Editor" Resource string: "Light Console, Light Editor" Resource string: "Monochrome Green" Resource string: "Presentation" Resource string: "The value entered for the number of recent files to show must be between {0} and {1}." Resource string: "The following errors occurred while validating the settings. Please correct them and try again:" Resource string: "Restore defaults?" Resource string: "Restore Defaults Confirmation" Resource string: "The theme name can't be empty or consist only of whitespace characters." Resource string: "This is an example of some text in the script pane." Resource string: "Manage Themes" Interaction logic for MainWindow.xaml OptionsWindow The current ISEOptions object passed in by the caller The color theme the dialog is currently working on The color theme we started out with, so we can tell if it has changed since the UI opened The current state of the general settings controls The original state of the general settings controls The current selected item from the tree view Initializes a new instance of the OptionsWindow class and initializes it Initializes a new instance of the OptionsWindow class based on a set of ISE options. The current options. This method updates the UI based on the current settings in the options object. This method resets all of the options based on the defaults specified in $psise.options.defaultoptions Populate the font name and size combo boxes. Populate the name of the currently selected theme, or indicate that it's a user-customized theme. This method validates whether the current settings are valid and displays a message box if they aren't True or false, depending on whether the settings were valid Handle the event from clicking the restore defaults button An object representing the sender of the event An object containing information about the event Handle the event when the color picker's current color is changed An object representing the sender of the event An object containing information about the event Handle the event when the fixed-width-only checkbox is checked An object representing the sender of the event An object containing information about the event Handle the event when someone selects a different tree view item An object representing the sender of the event An object containing information about the event Update the rich-text sample box based on the currently selected colorable item, or the default if none is selected. Update the state of the buttons based on whether the user has changed any settings Handle the event when the show outlining checkbox is checked An object representing the sender of the event An object containing information about the event Handle the event when the show outlining checkbox is unchecked An object representing the sender of the event An object containing information about the event Handle the event when the show line numbers checkbox is checked An object representing the sender of the event An object containing information about the event Handle the event when the show line numbers checkbox is unchecked An object representing the sender of the event An object containing information about the event Handle the event when the duplicate files checkbox is checked An object representing the sender of the event An object containing information about the event Handle the event when the duplicate files checkbox is unchecked An object representing the sender of the event An object containing information about the event Handle the event when the prompt to save checkbox is checked An object representing the sender of the event An object containing information about the event Handle the event when the prompt to save checkbox is unchecked An object representing the sender of the event An object containing information about the event Handle the event when someone selects a different script pane position An object representing the sender of the event An object containing information about the event Handle the event when the console pane intellisense checkbox is checked An object representing the sender of the event An object containing information about the event Handle the event when the console pane intellisense checkbox is unchecked An object representing the sender of the event An object containing information about the event Handle the event when the enter selects in console pane checkbox is checked An object representing the sender of the event An object containing information about the event Handle the event when the enter selects in console pane checkbox is unchecked An object representing the sender of the event An object containing information about the event Handle the event when the intellisense in script pane checkbox is checked An object representing the sender of the event An object containing information about the event Handle the event when the intellisense in script pane checkbox is unchecked An object representing the sender of the event An object containing information about the event Handle the event when the enter selects in script pane checkbox is checked An object representing the sender of the event An object containing information about the event Handle the event when the enter selects in script pane checkbox is unchecked An object representing the sender of the event An object containing information about the event Handle the event when someone selects a different intellisense timeout An object representing the sender of the event An object containing information about the event Handle the event when the use local help checkbox is checked An object representing the sender of the event An object containing information about the event Handle the event when the use local help checkbox is unchecked An object representing the sender of the event An object containing information about the event Handle the event when the show console pane on top checkbox is checked An object representing the sender of the event An object containing information about the event Handle the event when the show console pane on top checkbox is unchecked An object representing the sender of the event An object containing information about the event Handle the event when the use default snippets checkbox is checked An object representing the sender of the event An object containing information about the event Handle the event when the use default snippets checkbox is unchecked An object representing the sender of the event An object containing information about the event Handle the event when someone changes the autosave interval An object representing the sender of the event An object containing information about the event Handle the event when someone changes the MRU count An object representing the sender of the event An object containing information about the event Handle the event from clicking the cancel button An object representing the sender of the event An object containing information about the event Handle the event from clicking the apply button An object representing the sender of the event An object containing information about the event Handle the event from clicking the OK button An object representing the sender of the event An object containing information about the event Handle the event from changing the font selection An object representing the sender of the event An object containing information about the event Handle the event from changing the font size selection An object representing the sender of the event An object containing information about the event If the user clicks "Manage Themes...", open the UI that lets them add, edit, delete, etc. A reference to the sender An object containing information about the event If the tree view gets focus and there's no selected node, select the first node. This makes the node visible for keyboard navigation. A reference to the sender An object containing information about the event InitializeComponent This class exposes a collection of preset color and font themes. A dictionary collection for storing preset themes This theme contains the default ISE colors. This theme contains light console and dark editor settings This theme contains light settings for both the console and editor This theme contains dark settings for both the console and editor. This theme contains monochrome green settings This theme has high contrast and a large font for doing demos Gets the dictionary This class abstracts a 'sample', which is a list of colored tokens for displaying text coloring settings before they're applied to the actual UI. A sample consists of a series of 'part' objects, that each have a foreground color, an optional background color, a piece of text, and an optional CRLF. This constant is added to the font size in documents to make it roughly match what the ISE displays at zoom level 100. This is a buffer value in device-independant pixels to be added to line measurements so the anti-word-wrap magic works. A static collection of samples to display when different tree view items are selected A list of colored text parts for the sample The color theme for the sample The key representing the background color of the sample The typeface for the font This method renders the current sample as a FlowDocument that can be passed to a RichTextBox control The FlowDocument This method builds a sample for the script pane, when the script pane displays a text file A new rich text sample object This method builds a sample for the script pane A new rich text sample object This method builds a sample for the script pane A new rich text sample object This method builds a sample for the script pane A new rich text sample object This method builds a sample for the script pane A new rich text sample object This method looks up the typeface for the current font and stores it so we don't have to look it up for every subsequent measurement of a text part The name of the current font This method measures a single text part in the current font The string to measure The font size The width of the rendered string in pixels Gets the predefined samples Gets the list of text parts for this sample Sets the color theme Sets the color theme key that indicates the background color to use Gets the background color, as translated from the background color key This class contains helper methods for working with colors and fonts This is the offset of the one-byte PANOSE number in the Unicode version of the OUTLINETEXTMETRIC structure. Graphics context for loading and testing fonts The handle of the graphics context Collection for storing a list of font family objects so they don't have to be generated every time we reference them Collection for keeping track of which fonts are symbol fonts like WingDings, so their names can be displayed in a human-readable font in the UI Collection for keeping track of which fonts are not symbol fonts like WingDings, so their names can be displayed in a human-readable font in the UI Returns a sorted list of available font names Flag to specify monospace only An additional font name to include in the list The list of font names This method tests whether a font is truly monospace, based on comparing the width of the 'A' and 'l' characters. If they're equal, the font is considered monospace. The name of the font True or false This method dims a color by multiplying the R, G, and B values by a decimal number The color to scale How much to scale (0 to 1 inclusive) A value to add to make the resulting color not be dark A dimmed color This method returns either black or white, depending on which color has the higher contrast ratio with the background color provided. The background color Colors.Black or Colors.White This method tests whether a font has been identified as a symbol font, so its name can be displayed in the UI with a human-readable font The name of the font True or false depending on whether it's a symbol font This method calculates a luminance factor for one color channel to support finding the overall contrast ratio between two colors. The color to whump on The luminance factor This method calculates the combined luminance for three color channels of a color The color to evaluate The luminance This method calculates the contrast ratio between two display colors, based on the formula in the W3C Web Content Accessibility Guidelines at http://www.w3.org/TR/WCAG20-TECHS/. The foreground color The background color The contrast ratio Gets a dictionary of cached font families This class stores the state of options dialog settings before they are applied to the live options object How frequently to save edited scripts Intellisense timeout How many files to show in the MRU list Whether the script pane should be on top, right, or maximized Whether to show default snippets Enables intellisense in the console pane Enables intellisense in the script pane Shows line numbers in the editor Shows outlining in the editor Toggles the tool bar Enables warnings before automatically saving scripts Enables warnings when you edit duplicate scripts Enables using enter to select intellisense in the console pane Enables using enter to select intellisense in the script pane Enables using local help This override does the same as Equals() The first object to compare The second object to compare True or false This does the opposite of == The first object to compare The second object to compare True or false This isn't currently used anywhere, so just return the default The default hash code from .Net This override compares two instances of this type by comparing all of the fields The other instance True or false This method creates an instance of the type from an existing ISEOptions object The ISE options A new instance of this type This method applies the settings in this instance to an ISEOptions object The ISE options This method applies the settings in this instance to an ISEOptions object and returns a collection of error strings if some of the settings can't be applied The ISE options The collection to populate This method validates the settings object by applying it to a dummy ISEOptions object A collection of error messages to populate True or false depending on whether the settings are correct Gets or sets how frequently to save edited scripts Gets or sets the intellisense timeout Gets or sets how many files to show in the MRU list Gets or sets whether the script pane should be on top, right, or maximized Gets or sets a value indicating whether to show default snippets Gets or sets a value indicating whether to enable intellisense in the console pane Gets or sets a value indicating whether to enable intellisense in the script pane Gets or sets a value indicating whether to show line numbers in the editor Gets or sets a value indicating whether to show outlining in the editor Gets or sets a value indicating whether to show the tool bar Gets or sets a value indicating whether to show before automatically saving scripts Gets or sets a value indicating whether to show warnings when you edit duplicate scripts Gets or sets a value indicating whether to enable using enter to select intellisense in the console pane Gets or sets a value indicating whether to enable using enter to select intellisense in the script pane Gets or sets a value indicating whether to enable using local help This class abstracts a single section of colored text in a sample. The text content of the part The key to the color dictionary that represents the foreground color of the part The key to the color dictionary that represents the background color of the part A flag to indicate whether this part is followed by a new line Initializes a new instance of the RichTextPart class with all the settings. Foreground color key Background color key The text to use as the content A flag indicating an optional linefeed Initializes a new instance of the RichTextPart class with no background color defined. Foreground color key The text to use as the content A flag indicating an optional linefeed Initializes a new instance of the RichTextPart class with no background color or linefeed defined Foreground color key The text to use as the content Gets the text in the text part Gets the foreground color key Gets the background color key Gets a value indicating whether the text part is followed by a new line Interop methods, constants and structures needed for named pipes. Constant used in the call to SystemParametersInfo WindowText color constant Window color constant ActiveCaption color constant Button Shadow (SystemColors.ControlDarkDarkColor) color constant Item(s) selected in a control. Default color used by the editor for selection Grayed (disabled) text. This color is set to 0 if the current display driver does not support a solid gray color. Default color used by the editor for sinactive election Flag to check in the true return of SystemParametersInfo Message received to indicate a system color change that will be triggered for High Contrast. Message received when the theme changes. The WM_QUERYENDSESSION message is sent when the user chooses to end the session or when an application calls one of the system shutdown functions. The WM_ENDSESSION message is sent to an application after the system processes the results of the WM_QUERYENDSESSION message. The WM_ENDSESSION message informs the application whether the session is ending. Posted to the window with the keyboard focus when a nonsystem key is pressed. A nonsystem key is a key that is pressed when the ALT key is not pressed. Posted to the window with the keyboard focus when the user presses the F10 key (which activates the menu bar) or holds down the ALT key and then presses another key. It also occurs when no window currently has the keyboard focus; in this case, the WM_SYSKEYDOWN message is sent to the active window. The window that receives the message can distinguish between these two contexts by checking the context code in the lParam parameter. The user is logging off in WM_QUERYENDSESSION or WM_ENDSESSION. Constant used in HtmlHelpDisplayTopic to display a help topic. Constant used in HtmlHelpDisplayTopic to close all help windows. Gets a System Color. Color index the System Color corresponding to . Retrieves or sets the value of one of the system-wide parameters. This function can also update the user profile while setting a parameter. The system-wide parameter to be retrieved or set. We only used it with NativeMethods.SPI_GETHIGHCONTRAST. size of pvParam. HIGHCONTRAST structure Boolean that, if a system parameter is being set, specifies whether the user profile is to be updated, and if so, whether the WM_SETTINGCHANGE message is to be broadcast to all top-level windows to notify them of the change. True if it was able to retrieve the parameter. API used to figure out if we are in classic mode False if we are in classic mode. Closes all help windows. Called to display a particular help topic caller from the unmanaged API file and help topic link the return value of the underlying native API This function maps a wide-character string to a new character string. The new character string is not necessarily from a multibyte character set. The code page used to perform the conversion. The handling of unmapped characters. wide-character string to be converted. The number of Unicode (16-bit) characters in the string pointed to by the lpWideCharStr parameter buffer to receive the translated string The size in bytes of the buffer pointed to by the lpMultiByteStr parameter. Pointer to the character used if a wide character cannot be represented in the specified code page. If this parameter is NULL, a system default value is used. flag that indicates whether a default character was used If cbMultiByte is nonzero, the number of bytes written to the buffer pointed to by lpMultiByteStr indicates success. If cbMultiByte is zero, the required size, in bytes, for a buffer that can receive the translated string indicates success. Zero indicates failure. Registers the active instance of an application for restart. A pointer to a Unicode string that specifies the command-line arguments for the application when it is restarted. The maximum size of the command line that you can specify is RESTART_MAX_CMD_LINE characters. Do not include the name of the executable in the command line; this function adds it for you. If this parameter is NULL or an empty string, the previously registered command line is removed. If the argument contains spaces, use quotes around the argument. One of the options specified in RestartFlags This function returns S_OK on success or one of the following error codes: E_FAIL for internal error. E_INVALIDARG if rhe specified command line is too long. Native API for getting extended properties of fonts. This is used by the options dialog to tell whether a font is a symbol font like WingDings Handle of the device context to use Number of bytes to return Buffer in which to return bytes The number of bytes written to the buffer Native API for loading a font into a device context Handle to the device context Handle to the object (font) to load Handle of the previous loaded object Basic native API for help file invocation the help caller the help file the help command the command data the return of the underlying native API Flags for the RegisterApplicationRestart function None of the options below. Do not restart the process if it terminates due to an unhandled exception. Do not restart the process if it terminates due to the application not responding. Do not restart the process if it terminates due to the installation of an update. Do not restart the process if the computer is restarted as the result of an update. Structure used in WPFHelper's IsHighContrast Size of the structure Return value from SystemParametersInfo IntPtr.Zero in our call to SystemParametersInfo Contains all the strings that should not be localized. The comments in each field are the justification for the strings not to be localized category sufix = "Console" String used in outlining to represent more information = "..." buffer property = "PSXMLTokens" buffer property = "PSXMLErrors" buffer property = "PSXMLRegions" buffer property = "PSXMLRegionTags" buffer property = "PSTokens" buffer property = "PSAst" buffer property = "PSSpanTokenized" buffer property = "PSTokenSpans" buffer property = "PSStartBrace" buffer property = "PSEndBrace" buffer property = "PSTokenErrors" buffer property = "PSTokenErrorTags" buffer property = "PSRegions" buffer property = "PSRegionTags" help link = "218008" help link = "3bde9a96-97b3-4a50-8e81-a1fef66b71b5" method name = "Save" method name = "SaveAse" progress tracing message = "Progress with id {0} cannot be added under itself." progress tracing message = "Progress with id {0} was not found." command name= "{0} {1} {2}" function name= "AddConsoleInputBlockingFunction" function name= "Launch" executable name= "powershell.exe" Undo stack marker id = "TopMarker" Resource identifier for the application = "GuiStrings" Open/Save dialog filter = "{0}(*.ps1, *.psm1, *.psd1, *.ps1xml, *.pssc, *.cdxml)|*.ps1;*.psm1;*.psd1;*.ps1xml;*.pssc..." command = "out-default" command = ". {0}" command = "profile" command = "psUnsupportedConsoleApplications" command = "$psUnsupportedConsoleApplications" command = "psLocalHelp" command = "psOnlineHelp" command = "$psLocalHelp" command = "$psOnlineHelp" command = "psISE" command = "http://go.microsoft.com/fwlink/?LinkID={0}" command = "{0}::/html/{1}.htm" command = "$pshome" default prompt = "PS> " error stripper helper = "+ " Extension for scripts = ".ps1" Extension for modules = ".psm1" Extension for data files = ".psd1" Extension for session configuration files = ".pssc" Content type for xml = "PS1Xml" Extension for powershell xml = ".ps1xml" Extension for xml = ".xml" Extension for xaml = ".xaml" Extension for cdxml = ".cdxml" Extension for cdxml = ".xsl" Extension for cdxml = ".xsd" line break = "\n" complete line break = "\r\n" editor content type = "text" text buffer property name = "GPSColorSpansForOutputClassifier" text buffer property name = "TextMarkerProvider" text buffer property name = "GPSTokenColorsForPowerShellClassifier" control identifyer = "TextOutput" classification type = "PS1ConsoleGaps" classification typ = "PS1ScriptGaps" classification typ = "PS1HighContrast" control identifyer = "NonScript" editor content type = "powershell" Help file name = "WindowsPowerShellHelp.chm" command string = "prompt" resource name = "pack://application:,,,/Microsoft.PowerShell.GPowerShell;component/StyleDictionary.xaml" assembly name = "Microsoft.PowerShell.Editor,Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" ShellId = "Microsoft.GPowerShell" Control name = "runspaceControl" Control presenter ContentSource = "SelectedContent" command name = "bookmark" command name = "breakpoint" command name = "currentstatement" command name = "returnstatement" command name = "stepbackcurrentstatement" Error location not localized in powershell.exe = "At {0}:{1} char:{2}" Error line not localized in powershell.exe = "line" Error format not localized in powershell.exe = "{0}\r\n{1}\r\n + CategoryInfo : {2}\r\n + FullyQualifiedErrorId : {3}" shortcut functionality name used in assertion = "Unindent" Hardcoded because Tab is Hardcoded = "Shift+Tab" command = "\r\nif ($?) {{$psISE.CurrentPowerShellTab.DisplayName = '{0}'}}" command = "enter-pssession {1}\r\nif ($?) {{$psISE.CurrentPowerShellTab.DisplayName = '{0}'}}" command = "enter-pssession {1} -credential:{2}\r\nif ($?) {{$psISE.CurrentPowerShellTab.DisplayName = '{0}'}}" Lucida Console command name = "KeyboardDisplayName" command name = "powershell_ise.exe -noprofile" command name = "Literaly: GPowerShellAutoSaveMutex" command name = "Literaly: AutoSaveFiles" command name = "Literaly: AutoSaveInformation" Format string = "PS1OutputForeground{0:X2}{1:X2}{2:X2}{3:X2}Background{4:X2}{5:X2}{6:X2}{7:X2}" buffer property = "LastWordReplacementSpan" buffer property = "LineUpToReplacementSpan" buffer property = "SelectOnEmptyFilter" Note name that identifies an error = "writeErrorStream" Error category for errors that do not contain an ErrorRecord = "ISE.ReportException" Subset of non localizable strings that are property names property name = "CaretColumn" property name = "CaretLine" property name = "ExecuteScript" property name = "Prompt" property name = "GraphicalPrompt" property name = "PromptBracket" property name = "GraphicalPromptAutomationName" property name = "StatusText" property name = "ExecuteEnabled" property name = "IsSaved" property name = "IsRecovered" property name = "DisplayName" property name = "Extension" property name = "ExpandedScript" property name = "ShowCommands" property name = "IsUntitled" property name = "FullPath" property name = "FullPath" property name = "MainWindowTop" property name = "MainWindowLeft" property name = "MainWindowWidthSetting" property name = "MainWindowHeightSetting" property name = "FontSize" property name = "Zoom" property name = "ZoomLabel" property name = "FontName" property name = "ErrorForegroundColor" property name = "ErrorBackgroundColor" property name = "WarningForegroundColor" property name = "WarningBackgroundColor" property name = "DebugForegroundColor" property name = "DebugBackgroundColor" property name = "VerboseForegroundColor" property name = "VerboseBackgroundColor" property name = "ConsolePaneBackgroundColor" property name = "ConsolePaneTextBackgroundColor" property name = "ConsolePaneForegroundColor" property name = "ScriptPaneBackgroundColor" property name = "ScriptPaneForegroundColor" property name = "SelectedPowerShellTab" property name = "SelectedFile" property name = "SelectedAddOnTool" property name = "PowerShellTabs" property name = "ShowWarningForDuplicateFiles" property name = "ShowWarningBeforeSavingOnRun" property name = "SelectedScriptPaneState" property name = "ShowDefaultSnippets" property name = "ShowToolBar" property name = "ShowOutlining" property name = "ShowLineNumbers" property name = "UseLocalHelp" property name = "IsVisible" property name = "HorizontalAddOnToolsPaneOpened" property name = "VerticalAddOnToolsPaneOpened" property name = "CanInvoke" property name = "AutoSaveMinuteInterval" property name = "MruCount" property name = "TokenColors" property name = "ConsoleTokenColors" property name = "XmlTokenColors" property name = "ShowIntellisenseInConsolePane" property name = "ShowIntellisenseInScriptPane" property name = "UseEnterToSelectInConsolePaneIntellisense" property name = "UseEnterToSelectInScriptPaneIntellisense" property name = "IntellisenseTimeoutInSeconds" Subset of non localizable strings that are member names member name = "Add" member name = "Move" Subset of non localizable strings that are command names command name = "OpenMruFile" command name = "GoToMatch" command name = "Find" command name = "Replace" command name = "NewScript" command name = "OpenScript" command name = "SaveScript" command name = "SaveScriptAs" command name = "CloseScript" command name = "Undo" command name = "Redo" command name = "Cut" command name = "Copy" command name = "Paste" command name = "Help" command name = "SelectAll" command name = "ShowScriptPaneRight" command name = "ShowScriptPaneTop" command name = "ShowScriptPaneMaximized" command name = "StartPowerShell" command name = "GoToLine" command name = "ToggleScriptingPane" command name = "ToggleToolBar" command name = "GoToConsolePane" command name = "GoToEditor" command name = "Exit" command name = "FindNext" command name = "NewRemotePowerShellTab" command name = "OpenOptionsDialog" command name = "FindPrevious" command name = "RunScript" command name = "RunSelection" command name = "Stop" command name = "NewRunspace" command name = "CloseRunspace" command name = "ShowRunspace" command name = "ShowScript" command name = "CustomScript" command name = "StepInto" command name = "StepOver" command name = "StepOut" command name = "ResumeDebugger" command name = "StopDebugger" command name = "ToggleBreakpoint" command name = "ToggleBreakpoint" command name = "ToggleBreakpoint" command name = "RemoveAllBreakpoints" command name = "ClearOutput" command name = "FindDialogReplaceAll" command name = "MoveScriptToTopOrRightCmd" command name = "EnableAllBreakpoints" command name = "DisableAllBreakpoints" command name = "GetCallStack" command name = "ListBreakpoints" command name = "ZoomIn" command name = "ZoomOut" command name = "ToggleHorizontalAddOnPane" command name = "ToggleVerticalAddOnPane" command name = "HideHorizontalAddOnTool" command name = "HideVerticalAddOnTool" command name = "MoveHorizontalAddOnToolToVertical" command name = "MoveVerticalAddOnToolToHorizontal" command name = "GoToVerticalAddOnTool" command name = "GoToHorizontalAddOnTool" command name = "ShowAndSelectAddOnTool" command name = "StartIntellisense" command name = "ShowOutlining" command name = "ToggleEmbeddedCommands" command name = "ShowLineNumbers" command name = "ToggleOutliningExpansion" command name = "UpdateHelp" command name = "ShowSnippet" command name = "AboutAddOnTools" command name = "ShowPopupCommand" Subset of non localizable strings that are keyboard shortcuts shortcut = "Ctrl+T" shortcut = "Ctrl+W" Subset of non localizable strings that are automation id's Automation Id = "CustomMenu" Automation Id = "GraphicalPowerShellMainWindow" Automation Id = "Output" Automation Id = "DirectInput" Automation Id = "Editor" Automation Id = "ContextMenu" Automation Id = "ContextMenuCut" Automation Id = "ContextMenuCopy" Automation Id = "ContextMenuPaste" Automation Id = "StartIntellisense" Automation Id = "ShowSnippet" Automation Id = "ContextMenuToggleBreakpoint" Automation Id = "ContextMenuDisableBreakpoint" Automation Id = "ContextMenuEnableBreakpoint" Automation Id = "ContextMenuRunSelection" Entry point class True while the program is starting Valid system font names to validate font changes. Initializes the non visual aspects of the application Returned -1 if initialization failed or 0 if it succeded Called from NamedPipeServer when we receive a file name from another instance of powershell_ise.exe list of files to open Creates an application object and displays the main window files to be opened on startup true to start ISE on the MTA mode true not to run the profile callback to be called when the window is loaded Checks if the font in fontName is valid font name to check for true if the font in fontName is valid Looks up a font name and returns the same with standard capitalization. For example, 'aRiAl' returns 'Arial'. The font name to re-case The same font name in standard case Verifies thtat the default font is valid and falls back to "Lucida Console" if it is not Tries to save the configuration file path to be used in error message true if it was possible to save the config file Tries to get and load the configuration the configuration object Displays a message if there is auto save information true if the auto save information is only for titled and saved files true if there is any auto save information Provides an error message for problems before we have a parent main window message caption message string Fill in strings that mention shortcuts with the localized shortcut names. Gets the display string for the given shortcut shortcut to get the display string from The display string for the given shortcut Creates and the application object and initializes resources the application object Called for a one time focus set to the console or output on the first Runspace event sender event arguments Gets a value indicating whether the program is starting Gets and constructs a dictionary of installed fonts Localizable Text inside of Controls "Resource String: Progress Indicator" "Resource String: Vertical AddOn Splitter" "Resource String: Vertical AddOn" "Resource String: Horizontal AddOn Splitter" "Resource String: Horizontal AddOn" "Resource String: ToolBar" "Main Window" "Replace Text" "Find what text" "Resource String: Output" "Resource String: Editor" "Main Menu" "PowerShell Tab" "PowerShell Tabs" "Script Pane" "Script Tools" "Collapse Script Pane" "Application Status" "Font Size Selection" "Script Splitter" "Script Expander" "Debug Prompt" "Nested Prompt" "Resource String: Prompt" Color Names used in options Color Name = AliceBlue Color Name = AntiqueWhite Color Name = Aqua Color Name = Aquamarine Color Name = Azure Color Name = Beige Color Name = Bisque Color Name = Black Color Name = BlanchedAlmond Color Name = Blue Color Name = BlueViolet Color Name = Brown Color Name = BurlyWood Color Name = CadetBlue Color Name = Chartreuse Color Name = Chocolate Color Name = Coral Color Name = CornflowerBlue Color Name = Cornsilk Color Name = Crimson Color Name = Cyan Color Name = DarkBlue Color Name = DarkCyan Color Name = DarkGoldenrod Color Name = DarkGray Color Name = DarkGreen Color Name = DarkKhaki Color Name = DarkMagenta Color Name = DarkOliveGreen Color Name = DarkOrange Color Name = DarkOrchid Color Name = DarkRed Color Name = DarkSalmon Color Name = DarkSeaGreen Color Name = DarkSlateBlue Color Name = DarkSlateGray Color Name = DarkTurquoise Color Name = DarkViolet Color Name = DeepPink Color Name = DeepSkyBlue Color Name = DimGray Color Name = DodgerBlue Color Name = Firebrick Color Name = FloralWhite Color Name = ForestGreen Color Name = Fuchsia Color Name = Gainsboro Color Name = GhostWhite Color Name = Gold Color Name = Goldenrod Color Name = Gray Color Name = Green Color Name = GreenYellow Color Name = Honeydew Color Name = HotPink Color Name = IndianRed Color Name = Indigo Color Name = Ivory Color Name = Khaki Color Name = Lavender Color Name = LavenderBlush Color Name = LawnGreen Color Name = LemonChiffon Color Name = LightBlue Color Name = LightCoral Color Name = LightCyan Color Name = LightGoldenrodYellow Color Name = LightGray Color Name = LightGreen Color Name = LightPink Color Name = LightSalmon Color Name = LightSeaGreen Color Name = LightSkyBlue Color Name = LightSlateGray Color Name = LightSteelBlue Color Name = LightYellow Color Name = Lime Color Name = LimeGreen Color Name = Linen Color Name = Magenta Color Name = Maroon Color Name = MediumAquamar Color Name = MediumBlue Color Name = MediumOrchid Color Name = MediumPurple Color Name = MediumSeaGreen Color Name = MediumSlateBlue Color Name = MediumSpringGreen Color Name = MediumTurquoise Color Name = MediumVioletRed Color Name = MidnightBlue Color Name = MintCream Color Name = MistyRose Color Name = Moccasin Color Name = NavajoWhite Color Name = Navy Color Name = OldLace Color Name = Olive Color Name = OliveDrab Color Name = Orange Color Name = OrangeRed Color Name = Orchid Color Name = PaleGoldenrod Color Name = PaleGreen Color Name = PaleTurquoise Color Name = PaleVioletRed Color Name = PapayaWhip Color Name = PeachPuff Color Name = Peru Color Name = Pink Color Name = Plum Color Name = PowderBlue Color Name = Purple Color Name = Red Color Name = RosyBrown Color Name = RoyalBlue Color Name = SaddleBrown Color Name = Salmon Color Name = SandyBrown Color Name = SeaGreen Color Name = SeaShell Color Name = Sienna Color Name = Silver Color Name = SkyBlue Color Name = SlateBlue Color Name = SlateGray Color Name = Snow Color Name = SpringGreen Color Name = SteelBlue Color Name = Tan Color Name = Teal Color Name = Thistle Color Name = Tomato Color Name = Transparent Color Name = Turquoise Color Name = Violet Color Name = Wheat Color Name = White Color Name = WhiteSmoke Color Name = Yellow Color Name = YellowGreen Localizable AutomationNames "Resource String: Ln" "Resource String: Col" "Resource String: _File" "_New Script" "_Open Script..." "_Save Script" "Save Script _As..." "_Run Script" "R_un Selection" "_Close Script" "C_lose Runspace" "Resource String: E_xit" "Resource String: _Edit" "Resource String: _Paste" "Resource String: Cu_t" "Resource String: _Copy" "Resource String: _Undo" "Resource String: _Redo" "Select _All" "_Find in Script..." "Go to _Match" "Find _Next in Script" "Find Pre_vious in Script" "R_eplace in Script..." "Resource String: _View" "_Zoom In" "_Zoom Out" "Start PowerShell" "New Remote PowerShell Tab" "Resource String: _Tools" "New Remote PowerShell Tab" "_Go To Line..." "Line Number:" "Go To Line" "Show Sc_ript Pane" "Show ToolBar" "Show Script Pane Right" "Show Script Pane Top" "Show Script Pane Maximized" "Resource String: Administrator:" "Resource String: Find" "Resource String: _Replace" "Resource String: _Help" "Windows PowerShell ISE" "The file you are about to open is already opened in another PowerShell Tab. The same editor will be shared in both runspaces." "You cannot edit any script files in Windows PowerShell ISE while the debugger is running. To edit a script, stop the debugger." "The script you are about to run will be saved." "Windows PowerShell Help" "Replace _All" "Regular e_xpressions" "Search _up" "Re_place with:" "_Find Next" "Fi_nd what:" "Match _case" "_Whole word" "Resource String: Cancel" In the future, do not show this message Resource String: "Replace" "Find in _selection" "Resource String: Debug" "Resource String: _AddOns" "Resource String: Script" "Resource String: Completed" "Resource String: Stopping" "Resource String: Running" "Not Started" "Resource String: Failed" "Resource String: Stopped" "New Remote PowerShell Tab" "_User name:" "Resource String: _Computer:" "You will be asked for credentials when you connect." "Resource String: Co_nnect" "Show-Command button text: Run" "Show-Command button text: Copy" "Show-Command button text: Insert" "Show-Command text: Show On Startup" Color Names used in options Error Message = Module not found. Module {0} doesn't contain a {1} folder {0} cannot contain the following sequence of characters: "{1}". Localizable ToolTips "Close Tool" "Move Script Pane Right." "Move Script Pane Up." "Resource String: Cut" "Resource String: Copy" "Resource String: Paste" "Run Command" "Stop Execution (Ctrl+Brk)" "Resource String: Prompt" "Run Script (F5)" "Run Selection (F8)" "Clear Console" "Open Script" "Save Script" "Resource String: Undo" "Resource String: Redo" "New Script" "Hide Script Pane" "Hide AddOn Tools Pane" "Font Size" "Start PowerShell.exe in a separate window" Contains all the strings that should be localized. The comments in each field are supposed to be the string itself and should be kept in sync with the resources files. "Resource string: {0} = {1}" "Resource string: {0}..." Cannot start {0}. Interactive console applications are not supported. To run the application, use the Start-Process cmdlet or use "Start PowerShell.exe" from the File menu. To view/modify the list of blocked console applications, use {1}, or consult online help." "Resource string: {0}" "Unable to start {0}." "Replace All" "Resource string: Untitled" "_New PowerShell Tab" "Resource string: {0}{1}" "Go to _Script Pane" "Resource string: Stop" "The files below have not been saved. Do you really want to {0}?\n\n{1}" "Windows PowerShell ISE - Warning" "Windows PowerShell ISE - Error" "PowerShell Scripts" "PowerShell Files" "Text Files" "XML Files" "PowerShell Script Modules" "PowerShell XML files" "PowerShell Data files" "All Files" "_Close PowerShell Tab" "Show Runspace" "Show Script" "PowerShell {0}" "Save {0}?" "Resource string: *" "[Read Only]" "Resource string: {0}{1} {2}" "Parse errors detected" "Already running a command. Please wait" "Cannot Find "{0}"." "{0}\nSome of the character(s) in the script are not supported in the orignal file encoding. Saving the file in the original encoding may cause data loss. Do you want to save the file in the Unicode encoding?" "_Step Into" "Step O_ver" "Step O_ut" "S_top Debugging" Resource string: "_Continue" "_Toggle Breakpoint" "Enable Breakpoint" "Disable Breakpoint" "Remove All Breakpoints" "Enable All Breakpoints" "Disable All Breakpoints" "Display Call Stack" "List Breakpoints" "Hit breakpoint {0}" "Error loading source file '{0}' ({1})" "Stopped at: {0}" "Error executing profile: {0}" "Resource string: _Add-ons" "Warning: Control+C will copy the selected text to the clipboard. If you wish to stop the running command, either unselect the text or use Control+Break." "'Lucida Console' for English, and 'MS Gothic' for Japanese" "Description: {0}" "Path: {0}" "Default (used in Snippet tooltip for default snippets)" Calls String.Format with CultureInfo.CurrentUICulture is repassed to String.Format is repassed to String.Format the return of String.Format Localizable error messages Cannot add or change items in the collection. Default options cannot be set. The argument: '{0}' must be a full path. The font name: '{0}' is not valid. Cannot add submenus if the {0} property is not null. "{0}" should have at least one element. Value must be null. Cannot add this object the collection. You can call the {0} method with no parameters and the {1} method. Cannot set object in the collection. "{0} should be greater than or equal to {1}." "Selection can only be set to a member of the collection." "The menu '{0}' uses shortcut '{1}', which is already in use by the menu or editor functionality." "The shortcut '{0}' does not have the required keyboard modifier for non function keys." "The menu '{0}' has already been added to a parent menu." "The menu '{0}' is a parent menu of '{1}'." "Cannot execute script." "Cannot execute unsaved script." "The file cannot be saved in the current encoding." "{0} cannot be used for Untitled files, please use {1}." "Cannot close unsaved file: '{0}'." "Cannot add a runspace past the maximum number." "This collection should contain at least one Runspace." "Unable to save {0}: {1}" "Unable to load {0}: {1}" "Cannot save the file with the name of an already opened file." "Cannot enter nested prompt because too many nested prompts are already running." "The application cannot start because it could not access the user settings file: '{0}'." "The application cannot save the user settings file: '{0}'." Localizable host error messages Cannot display the prompt for "{0}" because type "{1}" cannot be loaded." Localizable shortcuts "Resource string: Ctrl+Alt+Home" "Resource string: Ctrl+Alt+End" "Resource string: Ctrl+Shift+M" "Resource string: Shift+Backspace" "Resource string: Shift+Right" "Resource string: Shift+Left" "Resource string: Shift+Up" "Resource string: Shift+Down" "Resource string: Shift+Home" "Resource string: Shift+End" "Resource string: Shift+PageUp" "Resource string: Shift+Next" "Resource string: Shift+Return" "Resource string: Ctrl+Shift+Right" "Resource string: Ctrl+Shift+Left" "Resource string: Ctrl+Shift+Home" "Resource string: Ctrl+Shift+End" "Resource string: Ctrl+Shift+U" "Resource string: Alt+Shift+T" "Resource string: Alt+Left" "Resource string: Alt+Right" "Resource string: Alt+Down" "Resource string: Alt+Up" "Resource string: Ctrl+Backspace" "Resource string: Ctrl+Delete" "Resource string: Ctrl+A" "Resource string: Ctrl+Right" "Resource string: Ctrl+Left" "Resource string: Ctrl+Home" "Resource string: Ctrl+End" "Resource string: Ctrl+Up" "Resource string: Ctrl+Down" "Resource string: Ctrl+U" "Resource string: Ctrl+Z" "Resource string: Alt+Back" "Resource string: Ctrl+Y" "Resource string: Alt+Shift+Back" "Resource string: F1" "Resource string: Control+Add" "Resource string: Control+F" "Resource string: Control+[" "Resource string: Ctrl+H" "Resource string: Ctrl+N" "Resource string: Ctrl+O" "Resource string: Ctrl+S" "Resource string: Ctrl+F4" "Resource string: Control+Shift+Add" "Resource string: Control+Plus" "Resource string: Control+Shift+Plus" "Resource string: Control+Subtract" "Resource string: Control+Shift+Subtract" "Resource string: Control+Minus" "Resource string: Control+Shift+Minus" "Resource string: Control+G" "Resource string: Control+Shift+P" "Resource string: Control+R" "Resource string: Control+1" "Resource string: Control+2" "Resource string: Control+3" "Resource string: Control+I" "Resource string: Alt+F4" "Resource string: Control+Q" "Resource string: F3" "Resource string: Shift+F3" "Resource string: Control+V" "Resource string: Shift+Ins" "Resource string: Control+X" "Resource string: Shift+Del" "Resource string: Control+C" "Resource string: Control+Ins" "Resource string: F5" "Resource string: F8" "Resource string: Control+Break" "Resource string: Control+T" "Resource string: Control+W" "Resource string: F11" "Resource string: F10" "Resource string: Shift+F11" "Resource string: Shift+F5" "Resource string: F9" "Resource string: Control+Shift+F9" "Resource string: Control+Shift+D" "Resource string: Control+Shift+L" Helper class to call PSParser.Tokenize Calls PsParser.Tokenize with script and errors The parameter is repassed to Parser.ParseInput The parameter is repassed to Parser.ParseInput The parameter is repassed to Parser.ParseInput The return value of PsParser.Tokenize Class used to classify xml editor buffers Declares a new content type called powershell, derived from text and used for the classification classification type definition classification type definition classification type definition classification type definition classification type definition classification type definition classification type definition classification type definition classification type definition classification type definition Initializes a new instance of the PSXmlClassifier class. buffer to classify Called to set the colors for the tokens according to the tokencolors passed. Collection of token colors. Collection of all default colors used to clear the brushes not specified in Given a SnapshotSpan, this method returns a list of ClassificationSpans that we want to classify in the given SnapshotSpan span to classify list of ClassificationSpans that we want to classify in the given SnapshotSpan Provides the IClassifier for PowerShell syntax highlighting Provides the IClassifier for PowerShell syntax highlighting text buffer we're classifying the IClassifier for PowerShell syntax highlighting Provides the error tags for the "xml" content Initializes a new instance of the PSXmlErrorTagger class the editor view the editor buffer Returns the error tags for the giving span span to retrieve tags for the error tags for the giving span Triggers the event that will force retagging a span span to tag Removes the instance of this object added in the constructor in case the content changes event sender event arguments Event that will force retagging a span Gets or sets the editor view Gets or sets the editor buffer Provides the PSXmlErrorTagger for the "ps1xml" content Creates the PSXmlErrorTagger for the "powershell" content type of tagger editor TextView editor Buffer the PSXmlErrorTagger for the "powershell" content Token colors for XML Angle brackets Attribute value Delimiter for comments Xml comments Element name Xml Attribute All other xml elements String quote Xaml markup extension CDATA section Provides the outline tags for the "ps1xml" content Initializes a new instance of the PSXmlOutliningTagger class the editor buffer Returns the outline tags for the giving span span to retrieve tags for the outline tags for the giving span Triggers the event that will force retagging a span span to tag Removes the instance of this object added in the constructor in case the content changes event sender event arguments Event that will force retagging a span Gets or sets the editor buffer Provides the PSXmlOutliningTagger for the "PS1XML" content Creates the PSXmlOutliningTagger for the "PS1XML" content type of tagger editor Buffer the PSXmlOutliningTagger for the "PS1XML" content Color information about an XML token xml token type token start token length Initializes a new instance of the XmlTokenInformation class. token start token length token type Gets the xml token type Gets the token start Gets or sets the token length Tokenizes ITextBuffer for xml files in a separate thread. Used as an initial value for errors Used as an initial value for outlines Used as an initial value for tokens Tokenizer used in Tokenize() Initializes a new instance of the XmlTokenizationService class. editor text buffer Called to set initial empty tokenization results Called when the buffer tokenization is accurate for the last buffer version To set the results of tokenization as buffer properties Removes properties used as a tag cache Called from a separate thread to do the tokenization span to tokenize span to tokenize text Tokenizes xml string content characters opening a CDATA section characters closing a CDATA section Resulting tokens Main tokenization state Detailed tokenization state Position within the xml string string being tokenized Index of the last color added in AddClassification List of errors in the xml List of outlined regions in the xml Set to true in the initial parsing when the last classification was a tag to avoid merging angle brackets closing an element with angle brackets opening the next element Initializes a new instance of the XmlTokenizer class Parses the XMl adding information about tokens, regions and errors the xml text Returns true if is a white space character we want to check if it is a white space true if is a white space Called to set the ElementName when it is found element to set the ElementName from text for the element name Returns true if the character at pos+1 is ? or ! character position true true if the character at pos+1 is ? or ! Reads the tokens creating errors and regions Reads a CDATA Element CDATA token CDATA token text Adds an error when an element name has not been found element missing the ElementName Adds an outlining to this.outlines information about the opening tag Adds an outlining to this.outlines position of outlining start position of outlining end Adds an error to this.errors token with error error message Parses the xml string Parses after the start angle bracket has been found Called when close angle bracket has been found as a tag preceeded or not by a forward slash Parses xml comments Parses xml attribute values Uses either PSXmlTokenType.MarkupExtension or PSXmlTokenType.QuotedString depending on the attribute value classification offset repassed to AddClassification Adds the token classification with the given offset start position of the classification classification to be added Gets the tokens parsed Gets the parsing errors Gets the parsing outlines Main tokenization state Initial state After the start angle brackets After a single quote After a comment After an element name After a xaml extension attribute value After a double quote Detailed tokenization state Initial state After the start angle brackets After the ! start comment character After the !- start comment characters After the first - in the end comment characters --close angle bracket After the seconf - in the end comment characters --close angle bracket Possible states when reading the Xml tags in ReadElements Out of any XML tag After an open angle bracket of the xml tag After an open angle bracket and slash of the xml tag Information kept about open and close tags in ReadElements token information for open angle bracket opening a tag Token information for the close angle bracket corresponding to Token information for the open angle bracket closing the tag Element name Gets or sets the token information for open angle bracket opening a tag Gets or sets the token information for the close angle bracket corresponding to Gets or sets the token information for the open angle bracket closing the tag Gets or sets the element name GeneratedInternalTypeHelper CreateInstance GetPropertyValue SetPropertyValue CreateDelegate AddEventHandler