Commit graph

4151 commits

Author SHA1 Message Date
Keith Hill b94dd91e74
Specify exe path as TargetObect for non-zero exit code ErrorRecord (#16108) 2021-10-14 14:47:54 -07:00
Dongbo Wang c784dde5a2
Remove the unused FollowSymLink function (#16231) 2021-10-14 14:14:05 -07:00
Steve Lee d0e823797f
Don't allow Move-Item with FileSystemProvider to move a directory into itself (#16198) 2021-10-12 14:16:32 -07:00
Dongbo Wang c8984c0517
Make property names for the color VT sequences consistent with documentations (#16212) 2021-10-11 14:58:51 -07:00
Dongbo Wang a32700a1c1
Add clean block to script block as a peer to begin, process, and end to allow easy resource cleanup (#15177) 2021-10-11 14:49:09 -07:00
Ikko Ashimine ce951602a4
Fix typo in TypeTable.cs (#16220)
occured -> occurred
2021-10-11 10:15:16 -07:00
Dongbo Wang e98a8c8601
Fix '-PipelineVariable' to set variable in the right scope (#16199) 2021-10-07 10:26:21 -07:00
dwtaber 53ac646cc0
Invoke-Command: improve handling of variables with $using: expression (#16113) 2021-10-06 10:43:56 -07:00
Dongbo Wang 2f57bf848b
Change Target from a CodeProperty to be an AliasProperty that points to FileSystemInfo.LinkTarget (#16165) 2021-10-05 10:29:16 -07:00
Aditya Patwardhan c4c312cc31
Update Microsoft.CodeAnalysis.CSharp version (#16138) 2021-09-23 07:04:14 -07:00
Sean Wheeler 6d2feeee38
Change 'snippet' tag to 'code' tag in XML comments (#16106) 2021-09-15 15:42:13 -07:00
Dongbo Wang fd3579badb
Use PlainText when writing to a host that doesn't support VT (#16092) 2021-09-15 10:38:26 -07:00
Steve Lee ed249d0fe6
Remove support for AppExeCLinks to retrieve target (#16044) 2021-09-14 14:08:00 -07:00
Aditya Patwardhan 55ccbb6803
Update .NET to 6.0.100-rc.1.21458.32 (#16066) 2021-09-13 16:45:10 -07:00
Steve Lee dad7a34ee7
Move GetOuputString() and GetFormatStyleString() to PSHostUserInterface as public API (#16075) 2021-09-10 09:05:07 -07:00
Steve Lee 024f409763
Add isOutputRedirected parameter to GetFormatStyleString() method (#14397) 2021-09-09 11:50:36 -07:00
Paul Higinbotham 0d7ba2fe5a
Fix ConvertTo-SecureString with key regression due to .NET breaking change (#16068) 2021-09-09 10:36:05 -07:00
Steve Lee 5872e47254
Fix regression in Move-Item to only fallback to CopyAndDelete in specific cases (#16029)
If Move fails, check if known case before attempting CopyAndDelete:

- if an item is attempted to be renamed across filesystem mount boundaries.
- if the source and destination do not have the same root path.
2021-09-08 11:20:30 +05:00
Robert Holt 17986d88c1
Improve CommandInvocationIntrinsics API documentation and style (#14369) 2021-09-03 16:05:30 -07:00
Dongbo Wang 66b5d50170
Set $? correctly for command expression with redirections (#16046) 2021-09-03 15:36:31 -07:00
dependabot[bot] d3d8897619
Bump Microsoft.CodeAnalysis.CSharp from 4.0.0-3.final to 4.0.0-4.21430.4 (#16036) 2021-09-02 09:59:58 -07:00
Travis Plunk 6cde546203
Add .stylecop to filetypexml and format it (#16025) 2021-09-01 10:36:58 -07:00
Aditya Patwardhan 7fc60d1d5f
Bump .NET to 6.0.100-rc.1.21430.44 (#16028) 2021-09-01 10:35:27 -07:00
Paul Higinbotham 946341b2eb
Remove duplicate remote server mediator code (#16027) 2021-09-01 09:31:19 -07:00
xtqqczze fa50e4dcae
Use bool?.GetValueOrDefault() in FormatWideCommand (#15988) 2021-08-30 08:51:07 -07:00
Joel Sallow (/u/ta11ow) fde119e28b
Use CurrentCulture when handling conversions to DateTime in Add-History (#16005) 2021-08-26 21:41:01 -07:00
Steven Liekens 02b532fb1d
Fix link header parsing to handle unquoted rel types (#15973) 2021-08-26 15:11:15 -07:00
github-actions[bot] d33b223674
Update .NET SDK version from 6.0.100-preview.6.21355.2 to 6.0.100-rc.1.21426.1 (#15648) 2021-08-26 13:07:43 -07:00
Dongbo Wang 403767d7f7
Fix a casting error when using $PSNativeCommandUsesErrorActionPreference (#15993) 2021-08-25 17:05:54 -07:00
Daryl Graves 321b726306
Format-Wide: Fix NullReferenceException (#15990) 2021-08-25 09:45:00 -07:00
Robert Holt a4d14576b3
Make the native command error handling optionally honor ErrorActionPreference (#15897) 2021-08-24 15:27:22 -07:00
Aditya Patwardhan ab5e1779a3
Revert "Use GetValueOrDefault() for nullable PSLanguageMode (#13849)" (#15980) 2021-08-23 17:20:29 -07:00
James Truher [MSFT] c39d672560
Remove 4 assertions which cause debug build test runs to fail (#15963) 2021-08-22 10:49:07 -07:00
arfy slowy 55855fbe5d
Fix spelling in XML docs (#15939) 2021-08-17 09:01:04 +05:00
Steve Lee a162856af5
Change default to OutputRendering.Host and remove OutputRendering.Automatic (#15882) 2021-08-16 14:17:07 -07:00
Dongbo Wang 286f12a37c
Update .NET adapter to handle interface static members properly (#15908) 2021-08-14 07:56:14 -07:00
Dongbo Wang 05e64135d2
Don't use ArgumentList when creating COM object as it's not applicable to the COM parameter set (#15915) 2021-08-14 07:32:51 -07:00
Steve Lee dda6c156d2
Fix $PSStyle list output to correctly show TableHeader (#15928) 2021-08-13 15:40:07 -07:00
Paul Higinbotham 1ec61d955c
Remove implicit remoting batch experimental feature (#15863)
It was decided by committee (#15862) to remove this experimental feature. It was an interesting idea but the implementation did not cover important cases, and could not be updated easily to do so.
2021-08-13 08:34:31 +05:00
Armaan Mcleod b70f06ccc6
Fix issue with Get-Process -Module failing to stop when piped to Select-Object (#15682) 2021-08-12 09:06:58 -07:00
Paul Higinbotham e2c23fc5bd
Add error catch for unauthorized access when removing AppLocker test files (#15881) 2021-08-10 11:03:53 -07:00
Steve Lee cced56d75a
Make PS-Committee reviewed experimental features stable (#15864) 2021-08-09 14:01:57 -07:00
dependabot[bot] 0a342601c8
Bump NJsonSchema from 10.5.1 to 10.5.2 (#15891)
Bumps NJsonSchema from 10.5.1 to 10.5.2.

---
updated-dependencies:
- dependency-name: NJsonSchema
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-09 17:37:37 +05:00
dependabot[bot] a4181ab57e
Bump NJsonSchema from 10.5.0 to 10.5.1 (#15883)
Bumps NJsonSchema from 10.5.0 to 10.5.1.

---
updated-dependencies:
- dependency-name: NJsonSchema
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-06 13:09:51 +05:00
xtqqczze 58483e1366
Replace GetFiles in CompletionCompleters (#14329) 2021-08-05 16:35:38 -07:00
xtqqczze 01a4714b76
Enable CA1067: Override Object.Equals(object) when implementing IEquatable<T> (#13871)
* Enable CA1067: Override Object.Equals(object) when implementing IEquatable<T>

* Group Equals methods

* Reformat xml documentation

* Update src/System.Management.Automation/engine/EventManager.cs

Co-authored-by: Joel Sallow (/u/ta11ow) <32407840+vexx32@users.noreply.github.com>

Co-authored-by: Joel Sallow (/u/ta11ow) <32407840+vexx32@users.noreply.github.com>
2021-08-05 16:32:33 -07:00
xtqqczze 44595a40ec
Fix CA1052 in TypeCatalogGen (#15840) 2021-08-05 16:21:46 -07:00
dependabot[bot] ce6f04aa8a
Bump Microsoft.ApplicationInsights from 2.17.0 to 2.18.0 (#15842)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-05 15:23:54 -07:00
Ilya 45adfee558
Enhance Remove-Item to work with OneDrive (#15571) 2021-08-05 11:41:55 -07:00
Robert Holt 920427260c
Make global tool entrypoint class static (#15880) 2021-08-05 17:44:52 +00:00