MartinGC94
5e6e7ca449
Add OutputType attribute to various commands ( #16962 )
2022-03-24 15:54:08 -07:00
Ilya
a5d41c2287
Use FindFirstFileW instead of FindFirstFileExW to correctly handle Unicode file names on FAT32 ( #16840 )
2022-02-05 07:13:14 -08:00
Ilya
9f722ef950
Use more efficient platform detection API ( #16760 )
...
* Use more efficient platform detection API
Use static and const new OperatingSystem class API to avoid string comparisons and extra allocations.
* Remove unused variable
2022-01-27 08:53:52 -08:00
hammy3502
3eca7c019e
Adds a .ResolvedTarget Property to File-System Items to Reflect a Symlink's Target as FileSystemInfo ( #16490 )
2022-01-21 09:23:11 +05:00
Shri Ram K S
7bb8fa16ab
Fix the Max_PATH condition check to handle long path correctly ( #16487 )
2021-11-19 15:48:26 -08: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
2f57bf848b
Change Target from a CodeProperty to be an AliasProperty that points to FileSystemInfo.LinkTarget ( #16165 )
2021-10-05 10:29:16 -07:00
Steve Lee
ed249d0fe6
Remove support for AppExeCLinks to retrieve target ( #16044 )
2021-09-14 14:08:00 -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
arfy slowy
55855fbe5d
Fix spelling in XML docs ( #15939 )
2021-08-17 09:01:04 +05:00
Steve Lee
cced56d75a
Make PS-Committee reviewed experimental features stable ( #15864 )
2021-08-09 14:01:57 -07:00
Ilya
45adfee558
Enhance Remove-Item to work with OneDrive ( #15571 )
2021-08-05 11:41:55 -07:00
xtqqczze
883ca98dd7
Seal private classes ( #15725 )
...
* Seal private classes
* Fix CS0509
* Fix CS0628
2021-07-19 14:09:12 +05:00
Steve Lee
bfb4a818bf
Add support to colorize FileInfo file names ( #14403 )
2021-07-12 11:07:29 -07:00
Robert Holt
0ae0b65e25
Revert "Enhance Remove-Item to work with OneDrive (Second) ( #15260 )" ( #15546 )
2021-06-11 12:32:25 -07:00
Ikko Ashimine
6018d6b183
Fix typo in FileSystemProvider.cs ( #15445 )
2021-06-03 13:15:32 -07:00
Aditya Patwardhan
7ead137407
Update to .NET Preview 6 SDK ( #15452 )
2021-05-25 19:24:28 -07:00
PRASOON KARUNAN V
15bb767a74
Remove alias d for the -Directory parameter from Get-ChildItem ( #15171 )
2021-05-05 17:23:09 -07:00
Ilya
08e731398c
Enhance Remove-Item to work with OneDrive (Second) ( #15260 )
2021-04-27 12:31:12 -07:00
Travis Plunk
720c615d04
Revert "Enhance Remove-Item to work with OneDrive ( #14902 )" ( #15253 )
...
This reverts commit fafc38fe5c .
2021-04-16 13:43:11 -07:00
Ilya
91e7298fd8
Use static lambda keyword ( #15154 )
2021-04-12 12:44:05 -07:00
Ilya
fafc38fe5c
Enhance Remove-Item to work with OneDrive ( #14902 )
2021-04-12 09:36:16 -07:00
Steve Lee
5d0dadf19d
Fallback to CopyAndDelete() when MoveTo() fails due to an IOException ( #15077 )
2021-03-25 15:11:17 -07:00
Steve Lee
22b3653bf4
Fix Move-Item for FileSystemProvider to use copy-delete instead of move for DFS paths ( #14913 )
2021-03-08 15:01:31 -08:00
Kyle H
909ca89be9
The -Stream parameter now works with directories ( #13941 )
2020-12-07 17:31:55 -08:00
Ilya
2804576840
Avoid an exception if file system does not support reparse points ( #13634 )
2020-12-03 11:24:49 -08:00
xtqqczze
18717c529b
Enable IDE0075: SimplifyConditionalExpression ( #14078 )
...
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0075
2020-12-02 08:25:56 +05:00
xtqqczze
8d4869372e
Mark private members as static part 10 ( #14235 )
...
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1822
2020-11-27 13:16:31 +05:00
xtqqczze
dc9ecd9a85
Use AsSpan/AsMemory slice constructor ( #14265 )
...
* Use AsSpan slice constructor
* Use AsMemory slice constructor
2020-11-27 13:05:41 +05:00
xtqqczze
d5b0264374
Use consistent spacing in xml documentation tags ( #14231 )
2020-11-25 22:58:52 +05:00
xtqqczze
c7bdb24ff3
Mark local variable as const ( #13217 )
...
RCS1118: Mark local variable as const https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1118.md
2020-11-24 20:06:16 +05:00
xtqqczze
cba73e724f
Enable SA1106: Code should not contain empty statements ( #13964 )
...
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1106.md
2020-11-21 19:26:44 +05:00
xtqqczze
3ba61069b8
Enable IDE0054: Use compound assignment ( #13546 )
...
* Autofix IDE0054
https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0054-ide0074
2020-11-05 09:48:13 +05:00
xtqqczze
24facfb03d
Fix IDE0044: MakeFieldReadonly part 15 ( #13970 )
...
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0044
2020-11-05 08:28:18 +05:00
xtqqczze
52ecb6d18e
Run dotnet-format to improve formatting of source code ( #13503 )
2020-11-04 11:13:56 -08:00
xtqqczze
88e706f3d7
Autofix RCS1068: Simplify logical negation ( #13555 )
2020-09-04 08:40:05 +05:00
xtqqczze
8f37cced70
Cleanup: remove duplicate words in comments ( #13539 )
2020-08-31 11:39:00 -07:00
Robert Holt
6a37eb9313
Update to .NET 5 preview 8 ( #13530 )
2020-08-31 10:38:05 -07:00
Ilya
4e2b6e9540
Process reparse points for Microsoft Store applications ( #13481 )
2020-08-27 11:51:19 -07:00
Robert Holt
213e5b7857
Suppress UTF-7 obsolete warnings ( #13484 )
2020-08-21 10:37:42 -07:00
James Truher [MSFT]
f8b9e8e9db
Create warnings when UTF7 is specified as an encoding ( #13430 )
2020-08-17 22:19:22 -07:00
xtqqczze
4597b41396
Use is not syntax where appropriate and remove unnecessary parentheses ( #13323 )
2020-07-31 16:41:59 -07:00
Dongbo Wang
4b9b0788ed
Revert "Use is null syntax ( #13277 )" ( #13322 )
...
This reverts commit 6c03776d74 .
2020-07-30 16:06:38 -07:00
xtqqczze
6c03776d74
Use is null syntax ( #13277 )
...
Replace `== null` with `is null`
2020-07-30 18:04:03 +05:00
Robert Holt
d3addeb3da
Fix Move-Item to support cross-mount moves on Unix ( #13044 )
2020-07-06 16:39:08 -07:00
xtqqczze
bd90f1921f
Code performance fixes ( #12956 )
...
* RCS1080: Use 'Count/Length' property instead of 'Any' method
* RCS1077: Optimize LINQ method call
* RCS1235: Optimize method call
2020-06-25 11:30:40 +05:00
xtqqczze
0d5d017f0f
Code redundancy fixes ( #12916 )
...
* Autofix `RCS1036: Remove redundant empty line`
* Autofix `RCS1037: Remove trailing white-space`
* Autofix `RCS1033: Remove redundant boolean literal`
* Autofix: `RCS1038: Remove empty statement`
* Autofix `RCS1041: Remove empty initializer`
* Autofix `RCS1097: Remove redundant 'ToString' call
* Autofix: `RCS1420: Operator is unnecessary`
2020-06-11 11:25:35 +05:00
Ilya
3de9069ca7
Fix New-Item to create symbolic link to relative path target ( #12797 )
2020-06-01 13:12:27 -07:00
xtqqczze
e93381e73e
Add readonly modifier to internal static members ( #11777 )
...
# PR Summary
* Add readonly modifier to internal static members.
## PR Context
## PR Checklist
- [x] [PR has a meaningful title](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission )
- Use the present tense and imperative mood when describing your changes
- [x] [Summarized changes](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission )
- [x] [Make sure all `.h`, `.cpp`, `.cs`, `.ps1` and `.psm1` files have the correct copyright header](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission )
- [x] This PR is ready to merge and is not [Work in Progress](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---work-in-progress ).
- If the PR is work in progress, please add the prefix `WIP:` or `[ WIP ]` to the beginning of the title (the `WIP` bot will keep its status check at `Pending` while the prefix is present) and remove the prefix when the PR is ready.
- **[Breaking changes](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#making-breaking-changes )**
- [x] None
- **OR**
- [ ] [Experimental feature(s) needed](https://github.com/MicrosoftDocs/PowerShell-Docs/blob/staging/reference/6/Microsoft.PowerShell.Core/About/about_Experimental_Features.md )
- [ ] Experimental feature name(s): <!-- Experimental feature name(s) here -->
- **User-facing changes**
- [x] Not Applicable
- **OR**
- [ ] [Documentation needed](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission )
- [ ] Issue filed: <!-- Number/link of that issue here -->
- **Testing - New and feature**
- [x] N/A or can only be tested interactively
- **OR**
- [ ] [Make sure you've added a new test if existing tests do not effectively test the code changed](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#before-submitting )
- **Tooling**
- [x] I have considered the user experience from a tooling perspective and don't believe tooling will be impacted.
- **OR**
- [ ] I have considered the user experience from a tooling perspective and enumerated concerns in the summary. This may include:
- Impact on [PowerShell Editor Services](https://github.com/PowerShell/PowerShellEditorServices ) which is used in the [PowerShell extension](https://github.com/PowerShell/vscode-powershell ) for VSCode (which runs in a different PS Host).
- Impact on Completions (both in the console and in editors) - one of PowerShell's most powerful features.
- Impact on [PSScriptAnalyzer](https://github.com/PowerShell/PSScriptAnalyzer ) (which provides linting & formatting in the editor extensions).
- Impact on [EditorSyntax](https://github.com/PowerShell/EditorSyntax ) (which provides syntax highlighting with in VSCode, GitHub, and many other editors).
2020-05-31 05:10:22 +00:00
xtqqczze
05cab7fa5a
Formatting: Add empty line between declarations ( #12824 )
...
# PR Summary
Automated fixes:
* RCS0013: Add empty line between single-line declarations of different kind
* RCS010: Add empty line between declarations
## PR Context
## PR Checklist
- [x] [PR has a meaningful title](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission )
- Use the present tense and imperative mood when describing your changes
- [x] [Summarized changes](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission )
- [x] [Make sure all `.h`, `.cpp`, `.cs`, `.ps1` and `.psm1` files have the correct copyright header](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission )
- [x] This PR is ready to merge and is not [Work in Progress](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---work-in-progress ).
- If the PR is work in progress, please add the prefix `WIP:` or `[ WIP ]` to the beginning of the title (the `WIP` bot will keep its status check at `Pending` while the prefix is present) and remove the prefix when the PR is ready.
- **[Breaking changes](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#making-breaking-changes )**
- [x] None
- **OR**
- [ ] [Experimental feature(s) needed](https://github.com/MicrosoftDocs/PowerShell-Docs/blob/staging/reference/6/Microsoft.PowerShell.Core/About/about_Experimental_Features.md )
- [ ] Experimental feature name(s): <!-- Experimental feature name(s) here -->
- **User-facing changes**
- [x] Not Applicable
- **OR**
- [ ] [Documentation needed](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission )
- [ ] Issue filed: <!-- Number/link of that issue here -->
- **Testing - New and feature**
- [x] N/A or can only be tested interactively
- **OR**
- [ ] [Make sure you've added a new test if existing tests do not effectively test the code changed](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#before-submitting )
- **Tooling**
- [x] I have considered the user experience from a tooling perspective and don't believe tooling will be impacted.
- **OR**
- [ ] I have considered the user experience from a tooling perspective and enumerated concerns in the summary. This may include:
- Impact on [PowerShell Editor Services](https://github.com/PowerShell/PowerShellEditorServices ) which is used in the [PowerShell extension](https://github.com/PowerShell/vscode-powershell ) for VSCode (which runs in a different PS Host).
- Impact on Completions (both in the console and in editors) - one of PowerShell's most powerful features.
- Impact on [PSScriptAnalyzer](https://github.com/PowerShell/PSScriptAnalyzer ) (which provides linting & formatting in the editor extensions).
- Impact on [EditorSyntax](https://github.com/PowerShell/EditorSyntax ) (which provides syntax highlighting with in VSCode, GitHub, and many other editors).
2020-05-29 04:56:33 +00:00