Commit Graph
1989 Commits
Author SHA1 Message Date
Travis Plunk 380cd15eed Update to CredScan v2 (#11765) 2020-02-10 13:12:09 -08:00
Robert Holt ff0aaec90d 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

# Conflicts:
#	test/powershell/SDK/Breakpoint.Tests.ps1
2020-02-10 13:12:09 -08:00
Steve Lee fe4e9f0141 Fix unnecessary trimming of line resulting in incorrect indexi… (#11670) 2020-02-10 13:12:08 -08:00
Paul Higinbotham cd8fc6c88d Fix for JEA user role in virtual account (#11668) 2020-02-07 16:16:33 -08:00
Dongbo Wang 75cbd314b1 Do not resolve types from assemblies that are loaded in separate AssemblyLoadContext (#11088) 2020-02-07 16:16:33 -08:00
Dongbo Wang d99b325861 Revert the PRs that made DBNull.Value and NullString.Value treated as $null (#11584) 2020-01-14 16:47:34 -08:00
Aditya Patwardhan 076ad77d14 Test fixes for various platforms (#11579) 2020-01-14 12:51:04 -08:00
Andrew 463aff44e1 Mark System32-PSModulePath test as pending (#11576) 2020-01-14 12:42:53 -08:00
Steve Lee 3cc0a5d767 Support expanding ~ in $env:PATH when doing command discovery (#11552) 2020-01-14 12:24:22 -08:00
Dongbo Wang 2408d17a11 Generate the correct reference assembly for Microsoft.PowerShell.ConsoleHost NuGet package (#11545) 2020-01-14 12:23:59 -08:00
James Truher [MSFT] 5e88662794 Test fixes for failing tests (#11541) 2020-01-14 12:23:10 -08:00
Paal Braathen 7f31fd5551 Use ISOWeek for week numbers in Get-Date (#11536) 2020-01-14 12:22:52 -08:00
Paul Higinbotham f4c759c42f Various test fixes for debugger and remoting (#11528) 2020-01-14 12:22:30 -08:00
James Truher [MSFT] 945dede1f7 DSC test fixes for Alpine and Raspbian (#11508) 2020-01-14 12:21:39 -08:00
Aditya Patwardhan 30884966ba Normalize line endings before comparing string in tests (#11499) 2020-01-14 12:21:26 -08:00
Ilya 67fb8f17a4 Port GetProcessorArchitecture() (#11046) 2020-01-14 12:07:37 -08:00
Thomas Nieto 4279500997 Remove RequireLicenseAcceptance default value (#11512) 2020-01-09 16:03:35 -08:00
Paul Higinbotham 90ac0cf85a Fix SSH remoting test to work on all platforms (#11500) 2020-01-09 16:02:27 -08:00
spongemike2 125d5b97f4 Make web cmdlets skip processing the content headers with a null or empty value for backward compatibility (#11421) 2020-01-09 16:00:05 -08:00
Steve Lee fdcf087654 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.
2020-01-09 15:59:06 -08:00
Steve Lee c9d64597af Add trailing line number to filename for ConciseView (#11391) 2020-01-09 15:57:25 -08:00
Aditya Patwardhan 48a7646cf7 Make null member access tests as string to avoid parsing errors (#11385)
* Make null member access tests as string to avoid parsing errors

* Add PSNullConditionalOperators feature to testmetadata.json

* Add Parsing tests to be skipped

* Add tabcompletion tests
2020-01-09 15:45:28 -08:00
Steve Lee eb80aeaeae Move Set-StrictMode to outer scriptblock for ErrorView (#11381) 2020-01-09 15:40:53 -08:00
Aditya Patwardhan 94b215d3dd Fix test failing when UnixStat feature is disabled (#11370) 2020-01-09 15:39:57 -08:00
Aditya Patwardhan 6af3f9ecc0 Update hosting tests to use the SDK version from the build property (#11368) 2020-01-09 15:38:55 -08:00
Steve Lee b663e396a3 Add retry to Enter-PSHostProcess test (#11360) 2020-01-09 15:38:30 -08:00
Joel Sallow (/u/ta11ow) 2fe9b2ffe9 Test-Connection: Fallback to hop IP Address on -Traceroute without -ResolveDestination (#11335) 2020-01-09 15:36:53 -08:00
Andrew 65429120d9 Added setting to disable implicit WinPS module loading (#11332) 2020-01-09 15:36:12 -08:00
Ilya 79372c30e7 Add null host name check in WSMan (#11288) 2020-01-09 15:35:31 -08:00
Steve Lee c5bc120cff Add Type member to Exceptions containing type of exception for Get-Error (#11076) 2020-01-09 15:34:24 -08:00
Ilya 1d48608f62 Write an error if argument is a directory in Get-FileHash cmdlet (#11114) 2020-01-09 15:33:48 -08:00
Steve Lee cff9deb8e7 Update Get-Error to not modify the original $Error object (#11125) 2020-01-09 15:32:53 -08:00
Tyler James Leonhardt dc2e3ab1c5 Improvements in breakpoint APIs for remote scenarios (#11312) 2019-12-12 17:24:01 -08:00
Steve Lee 9b45f736cf Add -AsPlainText to ConvertFrom-SecureString (#11142) 2019-12-12 16:50:27 -08:00
Dongbo Wang c4f0a13da0 Fix a regression in formatting caused by the FirstOrDefault primitive added in 7.0.0-Preview1 (#11258) 2019-12-12 16:50:07 -08:00
Steve Lee fee57e1cdc Make approved features non-experimental (#11303)
# Conflicts:
#	src/System.Management.Automation/engine/ExperimentalFeature/ExperimentalFeature.cs
2019-12-10 16:05:15 -08:00
Andrew 2dd264af03 Added WindowsPS version check for WinCompat (#11148) 2019-12-10 16:03:52 -08:00
Steve Lee 899c3348a2 Update ConciseView to use TargetObject if applicable (#11075) 2019-12-10 16:03:51 -08:00
Dongbo Wang 0b8906c076 Fix NullReferenceException in CompletionCompleters public methods (#11274) 2019-12-10 15:55:41 -08:00
Steve Lee 6dd63095b4 Update setting PSModulePath to concatenate the process + machine env var (#11276) 2019-12-10 15:55:40 -08:00
Andrew 28afad5a1a Fix error-reporting in some WinCompat scenarios (#11259) 2019-12-10 15:55:40 -08:00
Ilya 5df5ac8fab Add native binary resolver (#11032) 2019-12-10 15:55:40 -08:00
Steve Lee bc99fbf02a Update calculation of char width to respect CJK chars correctly (#11262) 2019-12-10 15:55:39 -08:00
Aditya Patwardhan a335063f1c Bump .NET to 3.1.0 (#11260) 2019-12-04 14:56:35 -08:00
Travis Plunk 9bb1504090 Add Unblock-File for macOS (#11137) 2019-12-04 14:56:34 -08:00
Ilya 0de578c5b2 Fix regression in Get-PSCallStack (#11210) 2019-12-04 14:56:33 -08:00
David Smatlak 367012b2ae Fixes FWLinks for PS7 online help documents (#11071) 2019-12-04 14:56:32 -08:00
Travis Plunk dad8dbf36b Update macOS minimum version (#11163) 2019-12-04 14:56:31 -08:00
Steve Lee f3038fe083 Fix detection of $PSHOME in front of $env:PATH (#11141) 2019-12-04 14:56:31 -08:00
Travis Plunk f0486c55bc Make unreliable DSC test pending (#11131) 2019-12-04 14:56:30 -08:00