Steve Lee
c3cb6df809
Update 'CommandNotFound' fuzzy suggestion to only return unique results ( #8640 )
2019-01-14 14:28:15 -08:00
Steve Lee
71e58f9439
Add the experimental feature 'PSUseAbbreviationExpansion' to support tab completion on abbreviated command names ( #8109 )
2019-01-10 16:11:43 -08:00
Steve Lee
b87cd1c0a3
Add support to show suggestions on CommandNotFound exception ( #8458 )
...
* support fuzzy matching with get-command and on CommandNotFound exception, show suggestion
* fix CodeFactor issues
* change algorithm to use Damerau-Levenshtein Distance which is more useful in finding close matches
2019-01-10 13:35:30 -08:00
Steve Lee
66c72c4366
Change Clear-Host back to using $RAWUI and clear to work over remoting ( #8609 )
2019-01-10 10:02:59 -08:00
Steve Lee
9793ed2c68
Change hashtable to use OrdinalIgnoreCase to be case-insensitive in all Cultures ( #8566 )
...
Ubuntu18.04 seems to default to C.UTF-8 for LANG (representing InvariantCulture) which results in a case-sensitive hashtable since CurrentCultureIgnoreCase doesn't work for that culture. Fix is to use OrdinalIgnoreCase instead.
2019-01-10 09:11:43 +05:00
Kirk Munro
1729a682ee
Make S.M.A.PowerShell.GetSteppablePipeline method public ( #8055 )
...
* make GetSteppablePipeline method public
* updated PowerShell member count
2019-01-09 15:31:09 -08:00
Ilya
d80154430d
Style: Change first char to upper in summary comments ( #8597 )
2019-01-09 13:07:40 -08:00
dependabot[bot]
8fad8c9dd8
Build(deps): Bump System.Security.Cryptography.Pkcs from 4.5.1 to 4.5.2 ( #8614 )
...
Bumps [System.Security.Cryptography.Pkcs](https://github.com/dotnet/corefx ) from 4.5.1 to 4.5.2.
- [Release notes](https://github.com/dotnet/corefx/releases )
- [Commits](https://github.com/dotnet/corefx/commits )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-01-09 22:07:03 +05:00
dependabot[bot]
cc3c3f618e
Build(deps): Bump System.Text.Encoding.CodePages from 4.5.0 to 4.5.1 ( #8613 )
...
Bumps [System.Text.Encoding.CodePages](https://github.com/dotnet/corefx ) from 4.5.0 to 4.5.1.
- [Release notes](https://github.com/dotnet/corefx/releases )
- [Commits](https://github.com/dotnet/corefx/commits )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-01-09 18:51:32 +05:00
Steve Lee
d6000fdea8
Allow Windows users in developer mode to create symlinks without elevation ( #8534 )
2019-01-08 10:43:24 -08:00
Steve Lee
64fcddcb53
Help function should only pass content to pager if content was found (#8528 )
2019-01-08 09:56:56 -08:00
Steve Lee
031cbf0f16
Change clear-host to simply called [console]::clear and remove clear alias from Unix ( #8603 )
...
Based on @PowerShell/powershell-committee decision, standardizing on [Console]::Clear() on all platforms and removing clear alias on non-Windows.
2019-01-08 22:38:56 +05:00
Steve Lee
d51b5fdc30
help function shouldn't use pager for AliasHelpInfo (#8552 )
2019-01-07 13:39:57 -08:00
Ilya
f95dae55f7
Style: Use the type aliases 'char' and 'bool' instead of 'Char' and 'Boolean' ( #8572 )
2019-01-07 11:40:07 -08:00
Kirk Munro
23f6e8ff40
Add S.M.A.PowerShell.Create method overload with Runspace argument ( #8057 )
2019-01-07 11:04:42 -08:00
Ilya
b8f9532b41
Style: Use the type alias 'string' instead of 'String' in places that are appropriate ( #8573 )
2019-01-07 10:46:00 -08:00
Ilya
233b54ed65
Style: Add a space after "//" in comments and remove unneeded comments after "}" ( #8576 )
2019-01-05 17:51:20 -08:00
Ilya
1be3f4cc0e
Style: Add the ending period to the XML document texts ( #8577 )
2019-01-05 15:40:24 -08:00
Ilya
dfd2f69369
Style: Change 'String.' to 'string.' ( #8568 )
2018-12-31 20:44:16 +05:00
Ilya
56569b9315
Style: Replace String.IsNullOrEmpty with string.IsNullOrEmpty ( #8557 )
2018-12-31 15:10:15 +05:00
Ilya
7207db6360
Style: Convert to upper first char in <param> and <exception> doc tags ( #8556 )
2018-12-29 08:25:49 +05:00
Ilya
479fc64aff
Style: Add period before </param> and </exception> doc tags ( #8553 )
2018-12-28 16:39:06 +05:00
Ilya
767c13fca1
Style: Remove extra spaces after <para> and before </para> docs tags ( #8547 )
2018-12-28 11:05:14 +05:00
Steve Lee
9f8d643f70
Fix mistake on deserialization ( #8502 )
...
Replace this.hideHeader with this.repeatHeader
2018-12-27 12:10:59 +05:00
xtqqczze
b850d57c78
Style: Remove preceding spaces from C# preprocessor-type keywords ( #8540 )
2018-12-26 11:59:10 +05:00
Ilya
399574430e
Style: remove '<remarks> </remarks>' ( #8538 )
2018-12-26 08:03:57 +05:00
Ilya
871ce5696d
Style: Add period before returns doc tag ( #8535 )
...
- add period before "</returns>" doc tag
- remove extra space before "</returns>" doc tag
- convert first char after "<returns>" doc tag to upper case
2018-12-25 21:43:03 +05:00
Ilya
1ae1594bd9
Style: Change 'Object[]' to 'object[]' ( #8526 )
2018-12-24 12:32:38 +05:00
Ilya
42ba9d22ce
Style: Change 'Object' to 'object' ( #8522 )
2018-12-24 12:01:44 +05:00
Ilya
d8af22c33b
Style: Change 'Byte{}' to 'byte[]' ( #8525 )
2018-12-24 11:23:18 +05:00
Steve Lee
4af3068566
Code cleanup: Add space after closing brace where needed ( #8530 )
...
* Update TestService
* Update WebListener
* Update Controllers
* Update ExpTest
* Update MyApp
* Update Logic
* Update Logic
* Update MyApp
* Update Microsoft.Management.Infrastructure.CimCmdlets
* Update Microsoft.PowerShell.Commands.Diagnostics
* Update Microsoft.PowerShell.ScheduledJob
* Update Microsoft.WSMan.Management
* Update Microsoft.WSMan.Runtime
* Update ResGen
* Update TypeCatalogGen
* Update commands
* Update Eventing
* Update Reader
* Update utility
* Update ShowCommand
* Update trace
* Update WebCmdlet
* Update Common
* Update CoreCLR
* Update common
* Update format-object
* Update format-wide
* Update out-file
* Update out-printer
* Update out-string
* Update OutGridView
* Update LocalAccounts
* Update Commands
* Update security
* Update CoreCLR
* Update DscSupport
* Update engine
* Update help
* Update logging
* Update namespaces
* Update security
* Update utils
* Update config
* Update perfCounters
* Update tracing
* Update cmdletization
* Update other
* Update cim
* Update xml
* Update CoreCLR
* Update common
* Update DefaultFormatters
* Update out-console
* Update out-textInterface
* Update DisplayDatabase
* Update Utilities
* Update COM
* Update ComInterop
* Update CommandCompletion
* Update debugger
* Update ExperimentalFeature
* Update hostifaces
* Update interpreter
* Update lang
* Update Modules
* Update parser
* Update runtime
* Update client
* Update commands
* Update common
* Update fanin
* Update server
* Update WireDataFormat
* Update Binding
* Update Operations
* Update interface
* Update cmdletization
* Update cim
* Update management
* Update WindowsTaskbarJumpList
* Update msh
2018-12-24 11:20:06 +05:00
Ilya
40223881cb
Style: Change 'System.Boolean' to 'bool' ( #8521 )
2018-12-23 10:41:10 +05:00
Dongbo Wang
289981a017
Change 'String' to 'string' for simple references ( #8519 )
2018-12-22 14:26:06 +05:00
Steve Lee
2eb7ca8309
Fix formatting of header of table when center aligned ( #8497 )
2018-12-22 12:57:44 +05:00
Dongbo Wang
140a66ca73
Change 'Int32' to 'int' for simple references in variable declaration ( #8518 )
2018-12-22 12:33:10 +05:00
Dongbo Wang
c5733f872c
Style: Member access symbols should be followed with member name ( #8517 )
2018-12-22 12:15:47 +05:00
Dongbo Wang
8d27eb44b1
Style: Remove extra space before colon in named parameters ( #8504 )
2018-12-21 10:26:34 -08:00
Dongbo Wang
56ad1d3a65
Style: Use the shorthand of the nullable type ( #8501 )
2018-12-21 10:07:01 -08:00
Dongbo Wang
2bfbcd4f07
Remove empty lines; correct space on closing square brackets, negative signs, and generic brackets ( #8508 )
2018-12-21 12:23:04 +05:00
Dongbo Wang
e999e1dba5
Remove space after new keyword in implicitly typed array allocation ( #8505 )
2018-12-21 12:19:58 +05:00
Dongbo Wang
2fbda4e62b
The static keyword should be right after access modifier ( #8506 )
2018-12-21 11:56:05 +05:00
Dongbo Wang
ff227729d3
Remove comments after closing bracket ( #8503 )
2018-12-21 11:54:10 +05:00
Dongbo Wang
c4f569e758
Remove space character after '!' ( #8507 )
2018-12-21 11:51:15 +05:00
Luke Jeremy
56fc426f8b
Add -UseMinimalHeader to Start-Transcript to minimize transcript header ( #8402 )
2018-12-20 11:12:14 -08:00
Steve Lee
110f78b818
Add -RepeatHeader to Format-Table to enable repeating header for each screen full ( #8481 )
...
When using a screen reader or just getting the output of a table with lots of rows, the header is no longer on the screen and the columns may no longer make sense without the context. This change adds a `-RepeatHeader` switch to `Format-Table` to enable re-outputting the header after every screen full (minus 1 row). Expectation is that the user is piping the output to a pager (e.g. less) which uses the bottom row for pager information. I followed the `AutoSize` parameter as the way to get the parameter from the cmdlet into the deep formatting object where it's needed.
2018-12-20 11:05:34 -08:00
Paul Higinbotham
bc29337460
Fix 'Debug-Runspace' for Unix platforms and properly enable Windows identity impersonation code ( #8451 )
2018-12-19 10:14:53 -08:00
Aditya Patwardhan
551ed10b36
Fix EnvironmentVariable test and add missing null check in CommandHelpProvider ( #8408 )
...
* Disable NewItemUnauthorizedAccessError tests.
* Added expected value for $env:HOMEPATH for user with temporary profile.
* Added a missing null check in CommandHelpProvider.cs
2018-12-11 14:20:22 -08:00
Steve Lee
f17601298b
Reset output attributes if column had ESC char when using Format-Table; Replace ... with unicode ellipsis ( #8326 )
...
change ellipsis when truncating to single unicode character
reset console output if previous column contains ESC
update existing format-table tests
If content included a VT100 ESC sequence (like changing color), this affected all output after that cell in the table. Fix is to detect that a cell contained ESC and reset the console after it. Also, change the 3 character ellipsis `...` to use the single unicode character `…` so that more text is available.
Fix https://github.com/PowerShell/PowerShell/issues/7767
2018-12-11 13:56:46 -08:00
Dongbo Wang
f1bc79f75f
Remove the no longer used RunspaceConfigurationEntry types ( #8424 )
2018-12-09 20:57:26 -08:00
Dongbo Wang
2a12fb53e5
Remove unneeded catch/throw from 'mkdir' and 'oss' functions ( #8425 )
2018-12-09 20:53:32 -08:00