xtqqczze
a34d0f3e80
Reformat code according to EditorConfig rules ( #11681 )
2020-01-31 14:56:22 -08:00
xtqqczze
c4e144b13e
Replace use of throw GetExceptionForHR with ThrowExceptionForHR ( #11640 )
...
`System.Runtime.InteropServices.Marshall.GetExceptionForHR` may not return an exception. Instead of `throw GetExceptionForHR` we can use `ThrowExceptionForHR`.
Fix warnings `CS8597:Thrown value may be null.`
2020-01-31 10:13:12 +05:00
Robert Holt
8ad4997f3c
Fix error message during symlink deletion ( #11331 )
2020-01-30 14:46:44 -08:00
Robert Holt
f0fe356553
Restore SetBreakpoints API ( #11622 )
...
* Restore SetBreakpoints API
* Remove default values in API methods
* Fix inheriting APIs
* Correct further comments
* Fix breakpoint API use issues
* Fix breakpoint API tests
2020-01-30 11:27:57 -08:00
Steve Lee
66912b7428
Fix unnecessary trimming of line resulting in incorrect indexi… ( #11670 )
2020-01-30 11:03:39 -08:00
Luca Filipozzi
6c792d7a4c
Do not needlessly pass -l login_name or -p port to ssh ( #11518 )
2020-01-29 14:40:08 -08:00
Dongbo Wang
a4c32bc337
Revert the PRs that made DBNull.Value and NullString.Value treated as $null ( #11648 )
2020-01-29 14:13:05 -08:00
dependabot-preview[bot]
67bc71325b
Bump Microsoft.ApplicationInsights from 2.12.0 to 2.12.1 ( #11708 )
2020-01-29 14:10:29 -08:00
Paul Higinbotham
a7a2b12336
Fix for JEA user role in virtual account ( #11668 )
2020-01-24 09:54:07 -08:00
Robert Holt
caa50510c2
Change name of ClrVersion parameter back ( #11623 )
2020-01-23 22:21:06 +05:00
Aditya Patwardhan
976f746874
Bump Microsoft.PowerShell.Native from 7.0.0-rc.1 to 7.0.0.rc.2 ( #11583 )
2020-01-14 14:16:24 -08:00
Steve Lee
de2d34b2ad
Support expanding ~ in $env:PATH when doing command discovery ( #11552 )
2020-01-14 10:24:26 -08:00
Ilya
0dfeeb5203
Port GetProcessorArchitecture() ( #11046 )
2020-01-14 08:41:19 +05:00
Ilya
ac069185d6
Fix NRE in ConsiceView ( #11435 )
...
Use LanguagePrimitives.TryConvertTo() as last resort to string conversion.
2020-01-14 08:33:16 +05:00
xtqqczze
70d9ed4d55
Remove Unicode BOM from text files ( #11546 )
2020-01-11 12:15:34 +05:00
Ilya
397756a26f
Skip null data in output data received handler to fix a NullReferenceException ( #11448 )
2020-01-09 16:08:09 -08:00
Sydney Smith
b3bd2d4de6
Adding PowerShell Editor Services and PSScriptAnalyzer to tracked modules ( #11514 )
2020-01-08 01:30:29 +05:00
Thomas Nieto
b25e67e607
Remove RequireLicenseAcceptance default value ( #11512 )
2020-01-07 11:43:58 -08:00
Tyler James Leonhardt
68b6b1a006
Add ssh parameter sets for JobName ( #11444 )
2020-01-07 10:21:44 -08:00
Andrew
ea48e07c48
Added setting to disable implicit WinPS module loading ( #11332 )
2020-01-03 10:32:00 -08:00
Steve Lee
5b42126f7c
Don't format exceptions that aren't ErrorRecords ( #11415 )
...
* In one of the previous PRs for ConciseView, System.Exception was incorrectly added to the typenames handled by the ErrorRecord formatting. This results in just Exception objects written to the console to not be rendered since the ErrorRecord formatting didn't handle this situation. Fix is to remove the line to add that type putting it back to how it was previously.
* Also made the handling of ErrorRecord a bit more robust just in case Exception.Message doesn't exist nor a Message property.
2019-12-21 09:45:44 +05:00
Steve Lee
1f9c3c2abd
Update error message if Update-Help fails for the current UICulture ( #11356 )
2019-12-20 15:16:26 -08:00
Dongbo Wang
19960a7333
Mark InitialSessionState.ImportPSSnapIn as Obsolete ( #11399 )
2019-12-20 15:10:36 -08:00
Paul Higinbotham
e58ebfa6b4
Fix race condition exception on recent change to OutOfProc transport ( #11406 )
2019-12-20 13:20:10 -08:00
Paul Higinbotham
e81bd1dfda
Re-add check for Invoke-Command job dispose. ( #11388 )
2019-12-20 12:13:34 -08:00
Aditya Patwardhan
de0866c652
Update HelpInfoUri for all modules in PowerShell 7.0 ( #11389 )
2019-12-20 10:12:35 +05:00
Ilya
54e6199bbb
Use invariant culture string conversion for -replace operator ( #10954 )
2019-12-19 09:50:46 -08:00
Steve Lee
a1066ac0ac
Use PositionMessage for the line context information for ConciseView ( #11398 )
2019-12-19 09:42:37 -08:00
Paul Higinbotham
76a009ed58
Fix key exchange hang for outofproc transports ( #11380 )
2019-12-18 14:07:00 -08:00
Steve Lee
563b1cba83
Add trailing line number to filename for ConciseView ( #11391 )
2019-12-18 14:05:56 -08:00
Steve Lee
ab6b41dce3
Remove unnecessary newline in ConciseView ( #11383 )
...
* Add newline only if it's missing
2019-12-18 10:22:01 +05:00
Ilya
dfb5b047b1
Revert "Update formatter to not write newlines if content is empty ( #11193 )" ( #11342 )
...
This reverts commit 51d2523f5f .
2019-12-18 00:53:19 +05:00
Steve Lee
edd3e7680c
Move Set-StrictMode to outer scriptblock for ErrorView ( #11381 )
2019-12-17 23:43:47 +05:00
Tyler James Leonhardt
ca202da643
Improvements in breakpoint APIs for remote scenarios ( #11312 )
2019-12-12 17:23:12 -08:00
James Truher [MSFT]
bcc5acb0bd
Fix for issue on raspbian for setting date of file changes in UnixStat Experimental Feature ( #11313 )
2019-12-12 12:25:16 -08:00
Dongbo Wang
55b572be7b
Fix PowerShell class definition leaking into another Runspace ( #11273 )
2019-12-11 15:41:39 -08:00
Dongbo Wang
5605bf4195
Fix a regression in formatting caused by the FirstOrDefault primitive added in 7.0.0-Preview1 ( #11258 )
2019-12-11 15:37:18 -08:00
Sydney Smith
4fb5f94a3b
Additional Microsoft Modules to track in PS7 Telemetry ( #10751 )
2019-12-11 15:32:54 -08:00
Aditya Patwardhan
395c29cff8
Update dependencies from PowerShell Gallery and NuGet ( #11323 )
2019-12-11 15:21:03 -08:00
dependabot-preview[bot]
cfacc129a2
Bump Microsoft.ApplicationInsights from 2.11.0 to 2.12.0 ( #11305 )
2019-12-10 15:45:44 -08:00
Steve Lee
ed1f6e3144
Make approved features non-experimental ( #11303 )
2019-12-10 15:41:43 -08:00
Andrew
0c46e3e71d
Added WindowsPS version check for WinCompat ( #11148 )
2019-12-10 10:40:13 -08:00
Dongbo Wang
9649a85ce9
Make update notification support LTS and default channels ( #11132 )
2019-12-10 09:57:00 -08:00
James Truher [MSFT]
d523d55739
Change comment and element text to meet MS standards ( #11304 )
2019-12-10 09:51:46 -08:00
Steve Lee
6e4da244c5
Update ConciseView to use TargetObject if applicable ( #11075 )
2019-12-10 09:50:51 -08:00
Dongbo Wang
25895e34b8
Fix NullReferenceException in CompletionCompleters public methods ( #11274 )
2019-12-10 09:51:01 +05:00
Paul Higinbotham
c232903bc0
Fix apartment thread state check on non-Windows platforms ( #11301 )
2019-12-09 16:26:46 -08:00
Steve Lee
20a236b228
Update setting PSModulePath to concatenate the process + machine env var ( #11276 )
2019-12-09 16:25:08 -08:00
Andrew
f8a321ae2b
Fix error-reporting in some WinCompat scenarios ( #11259 )
2019-12-09 15:20:40 -08:00
Ilya
95c472a8c2
Add native binary resolver ( #11032 )
2019-12-09 12:03:53 -08:00