Aditya Patwardhan
a578347b5a
Update Get-PlatformInfo
helper and tests for Debian 10, 11 and CentOS 8 ( #11842 )
2020-02-12 18:35:24 -08:00
xtqqczze
2014ce66c1
Set StrictMode
version 3.0
( #11563 )
2020-02-03 09:44:10 -08:00
xtqqczze
920b671fb4
Unify pester test syntax for the arguments of -BeOfType
( #11558 )
2020-01-24 11:00:37 -08:00
xtqqczze
a454352f32
Fix false positives
2020-01-13 19:39:58 +00:00
xtqqczze
090ad9cb33
Correct case of $PSVersionTable special variable
2020-01-13 19:36:31 +00:00
xtqqczze
e0d2e2aade
Correct case of $PSHOME special variable
2020-01-13 19:35:33 +00:00
xtqqczze
225164037f
Correct case of $PID special variable
2020-01-13 19:34:38 +00:00
xtqqczze
b5326a8488
Correct case of $Host special variable
2020-01-13 19:34:10 +00:00
xtqqczze
6d97b3a4a4
Correct case of $IsCoreCLR special variable
2020-01-13 19:27:48 +00:00
xtqqczze
bb58e2aab6
Correct case of $false special variable
2020-01-13 19:25:35 +00:00
xtqqczze
47a3b4e293
Correct case of $true special variable
2020-01-13 19:25:09 +00:00
xtqqczze
4a9d70fdcd
Correct case of $PWD special variable
2020-01-13 19:24:10 +00:00
xtqqczze
b6a687bf21
Correct case of $error special variable
2020-01-13 19:19:39 +00:00
xtqqczze
f86f30cf64
Correct case of $NestedPromptLevel special variable
2020-01-13 19:13:53 +00:00
xtqqczze
743983390e
Update pester syntax to v4 ( #11544 )
...
* Capitalize 'Should' command and fix whitespace
```powershell
$_ -ireplace '\s?\|\s?should\b',' | Should'
```
* Capitalise and apply hyphen to 'Not' parameter
```powershell
$_ -ireplace '(\| Should) not\b','$1 -Not'
```
* Capitalise and apply hyphen to 'Be' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?) -?be\b','$1 -Be'
```
* Capitalise and apply hyphen to 'BeExactly' parameter
$_ -ireplace '(\| Should(?: -Not)?) -?beexactly\b','$1 -BeExactly'
* Capitalise and apply hyphen to 'BeGreaterThan' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?) -?begreaterthan\b','$1 -BeGreaterThan'
```
* Use 'BeTrue' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?) -Be\s\$?true\b','$1 -BeTrue'
```
* Use 'BeFalse' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?) -Be\s\$?false\b','$1 -BeFalse'
```
* Capitalise and apply hyphen to 'Match' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?)\s-?match\b','$1 -Match'
```
* Capitalise and apply hyphen to 'Throw' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?)\s-?throw\b','$1 -Throw'
```
* Capitalise and apply hyphen to 'BeNullOrEmpty' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?)\s-?benullorempty\b','$1 -BeNullOrEmpty'
```
* Capitalise 'Because' parameter
```powershell
$_ -ireplace '\s-because\b',' -Because'
```
* Fix 'BeNullOrEmpty'
2020-01-11 20:41:59 +05:00
Ilya
b221c2afa2
Correct pwsh run ( #11486 )
2020-01-05 12:17:41 +05:00
Aditya Patwardhan
2dbb5717ce
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
2019-12-21 00:14:07 +00:00
Dongbo Wang
25895e34b8
Fix NullReferenceException in CompletionCompleters public methods ( #11274 )
2019-12-10 09:51:01 +05:00
M1kep
570ba43a24
Allow CompleteInput
to return results from ArgumentCompleter
when AST
or Script has matching function definition ( #10574 )
2019-12-02 10:51:13 -08:00
Steve Lee
a1c2d3c977
Fix detection of $PSHOME in front of $env:PATH ( #11141 )
2019-11-23 15:17:08 -08:00
Steve Lee
2e553038c5
Allow pwsh
to inherit $env:PSModulePath
and enable powershell.exe
to start correctly ( #11057 )
2019-11-15 17:29:04 -08:00
Aditya Patwardhan
2579c00a20
Support null-conditional operators ?.
and ?[]
in PowerShell language ( #10960 )
2019-11-15 16:39:53 -08:00
Steve Lee
baf24102ff
Fix crash if command sent to pwsh is just whitespace ( #10977 )
2019-11-04 14:59:52 -08:00
Steve Lee
df811929eb
Fix tab completion for parameters so that it shows common parameters as available ( #10850 )
2019-10-31 13:09:37 -07:00
Steve Lee
f48a28eff2
Change TabExpansion2 to not require -CursorColumn
and treat as $InputScript.Length
( #10849 )
...
* FEATURE: Change TabExpansion2 to not require `-CursorColumn` and treat as `$InputScript.Length`
* address Jason's feedback
2019-10-30 20:45:28 +00:00
Steve Lee
0842fe8b8d
Enable tab completion for variable assignment that is enum ( #10646 )
2019-10-14 09:53:11 -07:00
Travis Plunk
bf91246029
Replace CR and new line with a 0x23CE character ( #10616 )
2019-10-07 11:42:23 -07:00
Steve Lee
8cf9c01800
Add ConciseView for $ErrorView ( #10641 )
2019-10-04 16:52:57 -07:00
Ilya
950e4ba082
Direct Clear-Host output to terminal ( #10681 )
...
Clear-Host on Unix calls clear command which issues escapes. Before the change we write them to PowerShell output stream and it could be unwantedly intercepted. After the change we write the escapes directly to console.
2019-10-03 08:51:07 +05:00
James Truher [MSFT]
3943f18c28
Alpine validation changes ( #10428 )
2019-08-24 11:35:34 -07:00
Dongbo Wang
b77228906d
Skip auto-loading PSReadLine on Windows if the NVDA screen reader is active ( #10385 )
2019-08-23 09:09:34 +05:00
Dan Thompson
fb333fac99
Formatting: Handle XTPUSHSGR
and XTPOPSGR
control sequences ( #10208 )
2019-08-16 13:37:01 -07:00
James Truher [MSFT]
fe2cc6aca8
Additional Telemetry - Implementation of RFC0036
( #10336 )
2019-08-15 16:13:53 -07:00
Robert Holt
14960b5772
pwsh -Login support ( #10050 )
2019-08-14 13:18:43 -07:00
Ben Gelens
ccc791c0a3
Fix #requires -version
for pwsh 7 to include 6.1 and 6.2 in PSCompatibleVersions
( #9943 )
2019-08-12 15:25:28 -07:00
Steve Lee
2ed9abc99b
Enable -sta
and -mta
switches for pwsh ( #10061 )
2019-07-25 12:38:52 -07:00
Ilya
18ff2b6b1d
Cleanup workflow - remove PSProxyJob ( #10083 )
2019-07-12 07:56:27 +05:00
Christoph Bergmeister [MVP]
fe56f9d902
Upgrade .Net Core 3 SDK from preview5 to preview6 and related out of band Nuget packages from 2.1 to 3.0-preview6 ( #9888 )
2019-07-09 14:35:08 -07:00
Steve Lee
981c990d74
Make UseAbbreviationExpansion
and TempDrive
official features ( #9872 )
2019-06-13 13:05:37 -07:00
dependabot-preview[bot]
c2cedccfbd
Build(deps): Bump Microsoft.ApplicationInsights from 2.9.1 to 2.10.0 ( #9757 )
2019-05-31 11:43:47 -07:00
Steve Lee
29e21470d9
Port PowerShell to .NET Core 3.0 ( #9597 )
2019-05-21 13:43:51 +08:00
Steve Lee
a96b4c0404
Update use of "PowerShell Core" to just "PowerShell" ( #9513 )
2019-05-10 15:34:27 -07:00
Aditya Patwardhan
ade85b4faa
Multiple test fixes and improved logging for fragile tests ( #9569 )
2019-05-10 10:56:12 -07:00
Steve Lee
592f897d21
allow test to work in cases where you can't create $profile
2019-05-04 07:44:30 -07:00
Steve Lee
3b5663ee97
correctly delete $profile in all cases
2019-05-04 07:12:53 -07:00
Steve Lee
0c1274011c
fix creation of profile
2019-05-04 06:45:43 -07:00
Steve Lee
a69b20be3e
add test
2019-05-03 11:12:46 -07:00
Steve Lee
d318e7727e
Allow passing just a dash as an arg to a file via pwsh ( #9479 )
2019-04-27 11:20:33 -07:00
Tyler James Leonhardt
9140e421ec
Add wildcard back to end of tab completion command lookup ( #9383 )
...
Re-add wildcard when searching AST + Missed test case.
## PR Context
In #8109 , we removed the line that added a wildcard to the end of the command that was used to match commands in the script AST. This readds that line closer to where it is used.
2019-04-18 11:42:49 -07:00
James Truher [MSFT]
1006db647b
Reduce time for stack overflow test ( #9302 )
...
Create a small class to do the work.
I saw 100x performance improvement in this test.
2019-04-12 14:21:33 -07:00