Commit graph

7957 commits

Author SHA1 Message Date
dependabot-preview[bot]
6b5d6a0075
Bump PSReadLine from 2.0.0 to 2.0.1 (#12243) 2020-04-01 16:22:37 -07:00
dependabot-preview[bot]
41fef6c4f7
Bump NJsonSchema from 10.1.11 to 10.1.12 (#12230)
Bumps [NJsonSchema](https://github.com/RicoSuter/NJsonSchema) from 10.1.11 to 10.1.12.
- [Release notes](https://github.com/RicoSuter/NJsonSchema/releases)
- [Commits](https://github.com/RicoSuter/NJsonSchema/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-01 12:08:55 -07:00
Paul Higinbotham
a4c996d425
Fix foreach parallel when current drive is not available (#12197) 2020-03-31 20:33:06 +05:00
Dongbo Wang
c0c17ded03
Do not wrap return result to PSObject when converting ScriptBlock to delegate (#10619)
This is a breaking change for the delegate types with the object return type:

Before this change, the returned object will always be an PSObject instance.
After this change, the returned object is the underlying object, which could still be an PSObject if that's what the script actually returns.
2020-03-30 21:46:12 +05:00
Dongbo Wang
e741dc58dd
Discover assemblies loaded by 'Assembly.Load(byte[])' and 'Assembly.LoadFile' (#12203)
* Fix regression: pwsh should discover assemblies loaded by 'Assembly.Load(byte[])' and 'Assembly.LoadFile'
2020-03-28 20:25:59 +05:00
Joel Sallow (/u/ta11ow)
dfe9955346
Don't write DNS resolution errors on Test-Connection -Quiet (#12204) 2020-03-28 15:50:32 +05:00
Dongbo Wang
1ec7c826f0
Use dedicated threads to read the redirected output and error streams from the child process for out-of-proc jobs (#11713) 2020-03-28 15:44:23 +05:00
Aditya Patwardhan
515511094d
Update change log generation script to support collapsible sections (#12214) 2020-03-27 17:40:12 -07:00
Aditya Patwardhan
5b390f1507
Update README.md and metadata.json for 7.1.0-preview.1 (#12211)
* Update `README.md` and `metadata.json` for `7.1.0-preview.1` release

* Add missing version updates

* fix test failure

* fix test failure

Co-authored-by: Travis Plunk <github@ez13.net>
2020-03-26 12:30:05 -07:00
Travis Plunk
5e86cba674 Merge branch 'release/v7.1.0-preview.1' into master 2020-03-26 11:26:14 -07:00
Next Turn
175efca71f
Fix Service.cs to not modify collection while enumerating it (#11851) 2020-03-26 11:17:58 -07:00
Aditya Patwardhan
2367ea19f0 Merged PR 11200: Update change log for 7.1.0-preview.1 release
Update change log for 7.1.0-preview.1 release
2020-03-26 16:56:23 +00:00
Paul Higinbotham
668d72c4af
Clean up the IPC named pipe on PowerShell exit (#12187) 2020-03-26 09:47:33 -07:00
Shayde Nofziger
238cb5c8dc
Fix erroneous comment in tokenizer.cs (#12206)
The BigInteger NumberSuffixFlags enum is 'N', not 'I'. Fix the comment to indicate it as such.
2020-03-26 13:18:33 +05:00
Aditya Patwardhan
7193800bc2
Allow case insensitive paths for determining PSModulePath (#12192)
* Allow case insensitive comparison of paths for determining PSModulePath

* Address codefactor issue
2020-03-25 12:11:06 -07:00
Steve Lee
f23be437af
Fix terms checker issues (#12189) 2020-03-24 11:38:45 -07:00
Steve Lee
b7cb335f03
Update copyright notice to latest guidance (#12190) 2020-03-24 11:08:37 -07:00
Joel Sallow (/u/ta11ow)
f8fb77052f
Fix <img /> detection regex in web cmdlets (#12099) 2020-03-24 10:51:55 -07:00
Aditya Patwardhan
3c81de6d26
Add PowerShell version 7.0 to compatible version list (#12184) 2020-03-24 10:49:54 -07:00
Kevin Locke
68442a33e5
Add documentation for WebResponseObject and BasicHtmlWebResponseObject properties (#11876) 2020-03-23 15:13:47 -07:00
Paul Higinbotham
cce214e884
Implement ForEach-Object -Parallel runspace reuse (#12122)
* Implement foreach parallel runspace reuse

* Change runspace dispose

* Refactor runspace reset check

* Fix race condition.

* Fix CodFactor issues

* Implement -UseNewRunspace parameter switch, add tests

* Fix Codacy error
2020-03-23 14:00:43 -07:00
Travis Plunk
7a8094fd31
Put symbols in separate package (#12169) 2020-03-21 12:36:10 -07:00
Travis Plunk
5309774403
Disable x86 pdb generation (#12167) 2020-03-20 13:54:39 -07:00
dependabot-preview[bot]
78d7a90bdd
Bump NJsonSchema from 10.1.8 to 10.1.11 (#12166)
Bumps [NJsonSchema](https://github.com/RicoSuter/NJsonSchema) from 10.1.8 to 10.1.11.
- [Release notes](https://github.com/RicoSuter/NJsonSchema/releases)
- [Commits](https://github.com/RicoSuter/NJsonSchema/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-20 12:22:46 -07:00
Travis Plunk
3ab605aeec
Create crossgen symbols for Windows x64 and x86 (#12157) 2020-03-19 17:24:27 -07:00
Steve Lee
495dea0783
Move to .NET 5 preview.1 (#12140) 2020-03-19 11:27:13 -07:00
Damir Ainullin
5da06978b1
Set correct priority for ?: operator (#12075) 2020-03-19 08:54:39 +05:00
Dongbo Wang
c737f3162c
Fix NullReferenceException when binding common parameters of type 'ActionPreference' (#12124) 2020-03-18 23:18:21 +05:00
Ilya
43e0e1a1c5
Fix default formatting for deserialized MatchInfo (#11728)
MatchInfo class has ToEmphasizedString() member method to color output line.
In remote scenario MatchInfo class is deserialized as Deserialized.Microsoft.PowerShell.Commands.MatchInfo without the method. As result default formating in remote scenario show nothing.

The fix is to directly output Line property.
2020-03-18 18:43:01 +05:00
Ilya
8ebff6a2a4
Use async streams in Invoke-RestMethod (#11095) 2020-03-18 18:40:35 +05:00
Ilya
b5d4739b2a
Use span-based overloads (#11884) 2020-03-18 18:38:55 +05:00
dependabot-preview[bot]
320656c8de
Bump Microsoft.CodeAnalysis.CSharp from 3.4.0 to 3.5.0 (#12136)
Bumps [Microsoft.CodeAnalysis.CSharp](https://github.com/dotnet/roslyn) from 3.4.0 to 3.5.0.
- [Release notes](https://github.com/dotnet/roslyn/releases)
- [Changelog](https://github.com/dotnet/roslyn/blob/master/docs/Breaking%20API%20Changes.md)
- [Commits](https://github.com/dotnet/roslyn/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-16 13:22:56 -07:00
Bryan Berns
07962a9749
Address UTF-8 Detection In Get-Content -Tail (#11899)
- Addresses a comparison failure that causes UTF-8 detection to fail which in turn causes Get-Content -Tail to resort to forward lookups given encoding type cannot be detected. Possible this misdetection is due to the incoming encoding object as being of type System.Text.UTF8Encoding where as the comparison uses the object Encoding.UTF8 which is derived from System.Text.UTF8Encoding+UTF8EncodingSealed.
- See https://github.com/PowerShell/PowerShell/issues/11830

- Added 'OEM', 'UTF8BOM', and 'UTF8NoBOM' as explicit encodings for existing Get-Content -Tail tests.

* Add Multi-Byte Unicode Tail Character Tests

- Modified -Tail encoding test to use three different test sets: utf-8, utf-16, utf-32.  The test verifies that the content resulting from -Tail is equal to the same string returned from a regular Get-Content using both an explicit and implicit encoding.

* Remove BigEndianUnicode Reference In Comment
2020-03-14 09:57:04 +05:00
Steven Donovan
47645e0ccf
Replace VSCode link in CONTRIBUTING.md (#11475) 2020-03-13 15:44:15 -07:00
Ilya
10e7d1955b
Handle the IOException in Get-FileHash (#11944) 2020-03-13 09:10:19 -07:00
Travis Plunk
9d592ea388
Move to standard internal pool for building (#12119) 2020-03-13 09:00:18 -07:00
Travis Plunk
f0a8220398
Fix package syncing to private Module Feed (#11841) 2020-03-13 17:54:27 +05:00
Ilya
2e8ced4856
Use new string.Split() overloads (#11867) 2020-03-13 17:46:05 +05:00
Steve Lee
e9152a59a5
Remove the version number of PowerShell from LICENSE (#12019) 2020-03-12 22:13:34 -07:00
Aleksandar Nikolić
1fa0a00728
Change "PowerShell Core" to "PowerShell" in a resource string (#11928) 2020-03-12 18:04:29 -07:00
Labhansh Agrawal
61a589ad8a
Add the 7.0 change log link to CHANGELOG/README.md (#12062) 2020-03-12 17:28:42 -07:00
Damir Ainullin
5fd89561d0
Remove unreachable DSC code (#12076)
* Remove unreachable code

* Update src/System.Management.Automation/DscSupport/CimDSCParser.cs

Co-Authored-By: Ilya <darpa@yandex.ru>

Co-authored-by: Ilya <darpa@yandex.ru>
2020-03-12 09:53:45 -07:00
Paul Higinbotham
5f46605a21
Add Ubuntu SSH remoting tests CI (#12033)
* Add SSH remoting CI

* Fix typo

* Add install git to Ubuntu CI

* Update .vsts-ci/sshremoting-tests.yml

Co-Authored-By: Aditya Patwardhan <adityap@microsoft.com>

* Fix install git 1

* Add missing tools module import

* Change ubuntu service restart

* Update ssh install

* fix module path

* fix module path

* change module import

* Add tracing

* Add service start retry

* Fix service restart

* Fix options restore

* Fix Restore-PSOptions path

* Fix Pester test output

* fix typo

* Fix test output path

* Debug 1

* Debug 2

* Debug 3

* Change results path

* Fix result publish to use build artifacts directory

* Add more New-PSSession tests

* Remove User test

* Remove env:USER

* Add API tests

* Fix type for Subsytem API test

* Update .vsts-ci/sshremoting-tests.yml

Co-Authored-By: Travis Plunk <travis.plunk@microsoft.com>

* Update .vsts-ci/sshremoting-tests.yml

Co-Authored-By: Travis Plunk <travis.plunk@microsoft.com>

* Update .vsts-ci/sshremoting-tests.yml

Co-Authored-By: Travis Plunk <travis.plunk@microsoft.com>

* Apply suggestions from code review

Co-authored-by: Aditya Patwardhan <adityap@microsoft.com>
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2020-03-11 14:45:14 -07:00
Shayde Nofziger
23b7dce320
Improvements to the contribution guide (#12086)
* Fix typo in contribution guide

* Improve contributing links and wording

Various improvements to the contributor's guide, including grammar fixes, making common links for easier updating, and fix for a broken link to VS Code editor documentation.

* Update .github/CONTRIBUTING.md

Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2020-03-11 11:46:19 -07:00
Dongbo Wang
bb8a7c779d
Update the doc about debugging dotnet core in VSCode (#11969)
* Update the doc about debugging dotnet core in VSCode

* remove en-us
2020-03-10 09:40:12 -07:00
Ilya
12bf5f4a0c
Bring back MainWindowTitle in PSHostProcessInfo (#11885)
* Bring back MainWindowTitle in PSHostProcessInfo

* Add test
2020-03-10 09:30:53 -07:00
Mattias Karlsson
b04f0e4fc5
Change recommended VS Code extension name from ms-vscode.csharp to ms-dotnettools.csharp (#12083) 2020-03-10 11:55:23 +05:00
Andrew
704b0e74ed
Miscellaneous minor updates to WinCompat (#11980)
* Filter PSModulePath when starting PS 5.1. Removing PS-Core-specific paths from PSModulePath of WinCompat process (Windows PS).
* Make implicit WinCompat respect NoClobber and Scope parameters
* Add ErrorAction.Ignore when searching for WinPSCompatSession
2020-03-10 11:31:44 +05:00
dependabot-preview[bot]
86ea202bae
Bump NJsonSchema from 10.1.7 to 10.1.8 (#12088)
Bumps [NJsonSchema](https://github.com/RicoSuter/NJsonSchema) from 10.1.7 to 10.1.8.
- [Release notes](https://github.com/RicoSuter/NJsonSchema/releases)
- [Commits](https://github.com/RicoSuter/NJsonSchema/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-09 17:35:58 -07:00
dependabot-preview[bot]
ee75eff0e4
Bump Markdig.Signed from 0.18.1 to 0.18.3 (#12078)
Bumps [Markdig.Signed](https://github.com/lunet-io/markdig) from 0.18.1 to 0.18.3.
- [Release notes](https://github.com/lunet-io/markdig/releases)
- [Changelog](https://github.com/lunet-io/markdig/blob/master/changelog.md)
- [Commits](https://github.com/lunet-io/markdig/compare/0.18.1...0.18.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-09 14:59:46 -07:00