Steve Lee
cb66974b25
Update upgrade notification message ( #10777 )
2019-10-17 10:19:38 -07:00
Steve Lee
d8d32d79c2
Implement Get-Error cmdlet as Experimental Feature ( #10727 )
2019-10-15 14:32:14 -07:00
Tobias Käs
8b68a4cd99
Cleanup COM interfaces in jump list code - fix PreserveSig attributes ( #9899 )
2019-10-15 11:13:13 -07:00
Dongbo Wang
a08d5ee103
Support notification on pwsh startup when a new release is available ( #10689 )
2019-10-08 15:53:14 -07:00
Dongbo Wang
ec105da3f1
Some code cleanup work ( #10698 )
...
* Move Utils.GetUserConfigurationDirectory to Platform.ConfigDirectory
* Unify the use of Platform.ConfigDirectory and Platform.CacheDirectory
2019-10-07 14:15:01 +05:00
Steve Lee
8cf9c01800
Add ConciseView for $ErrorView ( #10641 )
2019-10-04 16:52:57 -07:00
Sotiris Nanopoulos
f69f30ba49
Add working directory parameter to Start-Job ( #10324 )
2019-09-11 10:51:32 -07:00
Ilya
fbf4f6c11b
Replace ArrayList with List<T> ( #10333 )
2019-09-05 10:54:18 -07:00
Dongbo Wang
b77228906d
Skip auto-loading PSReadLine on Windows if the NVDA screen reader is active ( #10385 )
2019-08-23 09:09:34 +05:00
Dan Thompson
fb333fac99
Formatting: Handle XTPUSHSGR and XTPOPSGR control sequences ( #10208 )
2019-08-16 13:37:01 -07:00
James Truher [MSFT]
fe2cc6aca8
Additional Telemetry - Implementation of RFC0036 ( #10336 )
2019-08-15 16:13:53 -07:00
Robert Holt
14960b5772
pwsh -Login support ( #10050 )
2019-08-14 13:18:43 -07:00
Steve Lee
3ca5a1bdb0
Don't collect process starttime as it's not being used on consolehost startup ( #10294 )
...
* mark _readyForInputTimeInMS member as part of LEGACYTELEMETRY
* move _interactiveCommandCount to LEGACYTELEMETRY
2019-08-06 08:55:16 +05:00
Dongbo Wang
8f5b2c241e
Use 'Platform.IsWindowsDesktop' instead of checking both NanoServer and IoT ( #10205 )
2019-07-25 17:24:57 -07:00
Steve Lee
2ed9abc99b
Enable -sta and -mta switches for pwsh ( #10061 )
2019-07-25 12:38:52 -07:00
Dongbo Wang
a4e397697c
Skip JumpList on NanoServer and IoT ( #10164 )
2019-07-15 17:02:18 -07:00
Christoph Bergmeister [MVP]
ffc3af2b5d
Create JumpList in STA thread as some COM APIs are strictly STA only to avoid sporadic CLR crashes ( #10057 )
2019-07-09 13:14:49 -07:00
Ilya
d6390461b2
Move consts and methods to single CharExtensions class ( #9992 )
2019-06-25 15:37:47 -07:00
Ilya
74c87ab20b
Cleanup: Use EndsWith(char) and StartsWith(char) ( #9994 )
2019-06-25 11:02:31 -07:00
Sean Wheeler
825399617b
Sync docs changes into the embedded help for pwsh ( #9952 )
2019-06-21 17:22:10 +05:00
Christoph Bergmeister [MVP]
5d8468c398
Suppress sporadic exceptions from JumpList creation code ( #9928 )
2019-06-21 10:13:43 +05:00
Ilya
099406e065
Fix style issues from last commits ( #9937 )
2019-06-21 09:23:19 +05:00
Steve Lee
4d3f74eddc
Update console startup and help url for PowerShell docs ( #9775 )
2019-06-19 10:45:47 -07:00
Dongbo Wang
94b6b6f4f7
Clean up the use of 'SetProfileRoot' and 'StartProfile' in ConsoleHost ( #9931 )
...
* Clean up the use of 'SetProfileRoot' and 'StartProfile' in ConsoleHost
* Remove 'pwsh.pdb' from our component file list
2019-06-19 11:34:47 +05:00
asrosent
65a3e467cc
Add ability to pass InitialSessionState to the ConsoleShell.Start ( #9802 )
2019-06-10 07:28:01 -07:00
Steve Lee
89db7505d6
Have console host not enter command prompt mode when using Read-Host -Prompt ( #9743 )
...
`Read-Host` calls into `$Host.UI.Prompt()`. However, this method is also used when the host prompts for mandatory parameters that aren't provided. The method expects to be called when given a `FieldDescription` and if the input starts with `!` it enters `CommandPromptMode`. In this mode, you can type `!?` to request help, for example. However this mode is not something you can use via `Read-Host` (only if calling `$Host.UI.Prompt()` directly passing in a well constructed `FieldDescription`). When using `Read-Host -Prompt`, the cmdlet creates a `FieldDescription` where the name is the prompt and the rest of the properties are empty.
The fix is that if `Label` is empty, we can assume it's being called from `Read-Host` rather than being called to prompt for a mandatory parameter and thus not enter `CommandPromptMode`.
2019-06-09 07:55:11 -07:00
Ilya
7e423e7451
Fix minor style issues come from last commits ( #9640 )
2019-06-07 08:35:33 +05:00
dependabot-preview[bot]
c2cedccfbd
Build(deps): Bump Microsoft.ApplicationInsights from 2.9.1 to 2.10.0 ( #9757 )
2019-05-31 11:43:47 -07:00
Ilya and SteveL-MSFT
9df0490e2f
Update src/Microsoft.PowerShell.ConsoleHost/resources/ManagedEntranceStrings.resx
...
Co-Authored-By: SteveL-MSFT <slee@microsoft.com >
2019-05-04 09:31:05 -07:00
Steve Lee
2d8a15af28
change -l to explicitly load user profile
2019-05-03 14:13:41 -07:00
Steve Lee
f2888e9eb6
update console help
2019-05-03 11:21:02 -07:00
Steve Lee
fb3a9098b5
Add -l support for pwsh to match POSIX shell compatibility
2019-05-03 11:00:23 -07:00
Ilya
bd6fdae735
Cleanup: sort usings ( #9490 )
2019-04-30 10:25:11 +05:00
Steve Lee
d318e7727e
Allow passing just a dash as an arg to a file via pwsh ( #9479 )
2019-04-27 11:20:33 -07:00
Ilya
ca447c3ad4
Run CodeFormatter with BraceNewLine,UsingLocation,FormatDocument,NewLineAbove rules ( #9393 )
2019-04-20 23:20:59 +05:00
Ilya
213ff96e6d
Use Environment.NewLine for new lines in ConsoleHost code ( #9392 )
2019-04-18 17:29:36 -07:00
Ilya
2174dd81a4
Reduce string allocation in console output code ( #6882 )
2019-04-17 10:42:14 -07:00
Ilya
bc95a8e088
Refactor ReadConsole P/Invoke in ConsoleHost ( #9165 )
...
Replace `StringBuilder` with stack allocated `Span<char>` to avoid extra allocation/copies during P/Invoke
2019-03-22 09:51:13 -07:00
Staffan Gustafsson
42c289fc8e
Improve formatting performance by having better primitives on PSObject ( #8785 )
...
By not doing excessive amounts of extra work, formatting can be sped up quite significantly (about 8x faster).
The main change comes from adding new, more efficient, primitive to query an object for the existence of an instance member.
The formatting system has been checking for if an object has properties other than some decorated properties added by PS remoting, and it doesn't this by retrieving all properties which results in heavy allocations and wasted cycles.
By adding `GetFirstOrDefault` to `PSObject` and similar primitives to the underlying Adapters, we are able to return early, without having to get all properties back.
2019-03-20 18:43:52 -07:00
Ilya
0f7efddd22
Fix to not pass StringBuilder by reference (out or ref) in P/Invoke ( #9066 )
...
Don't pass StringBuilder by reference (using out or ref). Otherwise, the CLR will expect the signature of this argument to be wchar_t ** instead of wchar_t *, and it won't be able to pin StringBuilder's internal buffer. Performance will be significantly degraded.
2019-03-13 17:03:23 -07:00
Ilya
11ae24fcad
Cleanup dllimport ( #8847 )
2019-02-27 08:33:46 +05:00
Tyler James Leonhardt
23eccfd641
[feature] Add -CustomPipeName to pwsh and Enter-PSHostProcess ( #8889 )
...
This allows a user to start PowerShell up with the name of the named pipe that is used for cross process communication (I.e. Enter-PSHostProcess).
2019-02-22 23:40:03 +05:00
dependabot[bot]
98c360205f
Build(deps): Bump Microsoft.ApplicationInsights from 2.9.0 to 2.9.1 ( #8848 )
...
Bumps [Microsoft.ApplicationInsights](https://github.com/Microsoft/ApplicationInsights-dotnet ) from 2.9.0 to 2.9.1.
2019-02-08 10:22:11 -08:00
dependabot[bot]
249c78eefc
Build(deps): Bump Microsoft.ApplicationInsights from 2.8.1 to 2.9.0 ( #8807 )
2019-02-01 12:36:43 -08:00
xtqqczze
863528881f
Use https in URLs where available ( #8622 )
...
Use https in URLS across the repository where the domain serves content by https.
2019-01-24 12:50:11 -08:00
Ilya
d80154430d
Style: Change first char to upper in summary comments ( #8597 )
2019-01-09 13:07:40 -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
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
Steve Lee
21fcf070fb
Remove unnecessary trim of passed-in command line in interactive debugging ( #8594 )
2019-01-05 18:47:34 -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