Commit Graph
72 Commits
Author SHA1 Message Date
Jason Shirk ff5609785b Minimize writing ANSI escape sequences in PSReadline (#4110)
Instead of changing Console.*groundColor on every character, only set
the color when the color changes - this avoids writing out ANSI escape
sequences after every character.

Fixes #4075
2017-06-27 23:22:16 -07:00
Jason Shirk dccce7e8a3 Update class grammar comments (#3688) 2017-05-02 15:36:20 -07:00
Jason Shirk 8cf7989b53 Change NestedModule to NestedModules in error message (#3214) 2017-02-27 15:11:12 -08:00
Jason Shirk cc664bc639 Fix lock contention during script compilation (#3064)
In rare cases, it was possible to cause high contention on a lock used
while compiling code to run in the interpreter.

This fixes the problem in a couple different ways:

* Use ConditionalWeakTable which has finer granularity in locking
* Avoid dictionary lookups in the most common cases
  - There really aren't too many real cases, I could have covered them
    all, but keeping the code generic is useful for the future.

Not quite related, but I noticed we didn't cache certain interpreter
instructions and it made sense to add a cache because we generate a lot
of array-init instructions.
2017-02-06 23:09:55 -08:00
Jason Shirk 3aeaeb06da cache packages in appveyor (#3019) 2017-01-26 11:34:39 -08:00
Jason Shirk 110878ca05 Cache padding strings up to 120 spaces (#3036) 2017-01-25 18:19:08 -08:00
Jason Shirk 564a592007 Merge rel-v6.0.0-alpha.15 2017-01-25 15:43:37 -08:00
Jason Shirk 8c08c7b382 use global nuget package cache (#2987) 2017-01-17 13:00:52 -08:00
Jason Shirk c3588c936e Use (n) for offline file length formatting (#2986) 2017-01-17 13:00:19 -08:00
Jason Shirk 7cd5935595 Use correct win32 console mode w/ external commands (#2991)
At startup, we need to save the current console mode before potentially
enabling VT100 support.

Then, when running an external command, we should use that initial
console mode instead of whatever mode we changed it to.

An application can't rely on the shell enabling VT100 because enabling
by default can cause problems for some applications, therefore
Windows applications must enable VT100 themselves.
2017-01-17 12:56:23 -08:00
Jason Shirk 02b5f357a2 Remove trailing whitespace (#3001) 2017-01-16 13:31:14 -08:00
Jason Shirk 047cfdeaf0 Merge pull request #2893 from PowerShell/v6.0.0-alpha.14
V6.0.0 alpha.14 doc changes
2016-12-15 12:52:33 -08:00
Jason Shirk 19a0d993e7 Remove one more extra Expression.Block call (#2833) 2016-12-02 13:23:09 -08:00
Jason Shirk 7015e66bae Use -split operator to avoid error from new overload (#2796) 2016-11-28 14:01:45 -08:00
Jason Shirk bd9e49d8d9 Make Out-Null fast (#2629)
People use Out-Null despite much faster alternatives:

    $null = Do-Stuff
    [void] = Do-Stuff
    Do-Stuff > $null

This change makes Out-Null work in roughly the same say as the above.

The optimization is to detect that we're calling the built-in Out-Null
cmdlet when invoking a pipeline from script (the change won't have any
effect in the PowerShell api). If we detect Out-Null, we rewrite the
pipe to look similar to `Do-Stuff > $null`.
2016-11-11 11:29:53 -08:00
Jason Shirk c8c55b7ce7 Fix NullReferenceException in binder (#2591)
There was a NullReferenceException after turning on constrained language mode
if creating a binding on a thread with no runspace.

The fix is to assume if there is no runspace that we are not in constrained language
mode, and also generate a binding restriction that assumes the same.
2016-11-03 14:15:58 -07:00
Jason Shirk b7c04df47b Update NativeCommandProcessor.Tests.ps1
Fix logic error in skipping
2016-11-01 14:15:31 -07:00
Jason Shirk bc8d537884 Merge pull request #2067 from JamesWTruher/jameswtruher/testgapfile-002
Fill more gaps in cmdlet test coverage
2016-09-01 11:16:32 -07:00
Jason Shirk cf18010ad5 Fix multi-line input w/ redirected stdin (#2090)
The input loop reading from stdin did not handle multi-line input correctly
because it was adding a newline character where none was expected.

The fix was to not include the final newline character to accept input,
just like Console.ReadLine or PSReadline would.
2016-08-31 13:52:46 -07:00
Jason Shirk aac88584fd Add Area-Remoting label to issue-management.md 2016-08-22 08:46:11 -07:00
Jason Shirk 718ceb5a6c Update issue-management.md (#1853)
Add OS-WSL
2016-08-17 21:05:39 -07:00
Jason Shirk 338035be93 Update rest demo (#1854) 2016-08-17 18:01:15 -07:00
Jason Shirk 8b056776c0 Stop using 'Open PowerShell' and OPS in code (#1838) 2016-08-16 17:03:34 -07:00
Jason Shirk f46284414e Remove Windows-specific text from Linux man page (#1818) 2016-08-15 13:22:23 -07:00
Jason Shirk 110c627be8 Doc updates, remove PR template, update issue labels (#1776)
* Remove PR template, update guidelines for PR

* Update testing-guidelines.md

* Add clarification on when to use runtime/compiletime checks

* Update issue label descriptions
2016-08-12 18:19:12 -07:00
Jason Shirk a6e10e4d3a Merge pull request #1774 from PowerShell/jianyunt/docs
Remove the sections with empty contents which just got introduced in PR#1576
2016-08-12 14:23:20 -07:00
Jason Shirk 8b2021f11f Merge pull request #1767 from PowerShell/raghushantha-thirdpartynotices
Third Party Notices for OSS components in PowerShell source
2016-08-12 14:17:07 -07:00
Jason Shirk d663d54f4f Merge pull request #1772 from PowerShell/hiteshraigandhi-patch-1
Add reference to governance document on to readme
2016-08-12 14:13:53 -07:00
Jason Shirk e550b6920c Merge pull request #1337 from PowerShell/TestGetCommand
Add Pester test for TestGetCommand.cs
2016-08-12 11:41:02 -07:00
Jason Shirk 22a1f0a8b7 Merge pull request #1676 from PowerShell/NullableBooleanDCR
Add NullableBooleanDCR Pester Test
2016-08-12 11:21:20 -07:00
Jason Shirk 8f67e27021 Merge pull request #1737 from PowerShell/raghushantha-MSIInstallerBranch
Updated MSI min supported OS to Win8 and above due to issue #1705
2016-08-11 14:44:05 -07:00
Jason Shirk e4e18b97b1 Merge pull request #1738 from PowerShell/cchen/bugfix
Remove Windows branding
2016-08-11 14:19:24 -07:00
Jason Shirk 49756c375a Merge pull request #1727 from PowerShell/SteveL-MSFT-patch-1
Update readme.md
2016-08-11 11:06:04 -07:00
Jason Shirk e1f4d4df9b Merge pull request #1707 from PowerShell/ShellInteropPesterTest
Add Shell Interop Pester Test
2016-08-11 10:57:14 -07:00
Jason Shirk e2c70a1fe5 Merge pull request #1729 from PowerShell/steve_demo_cleanup
cleaning up placeholder files, leaving dsc.ps1 as requested as stub f…
2016-08-11 10:53:37 -07:00
Jason Shirk 48cf1b5489 Merge pull request #1565 from PowerShell/ParameterBindingTest
Add Pester Test for ParameterBindingTests2.cs
2016-08-05 08:41:15 -07:00
Jason Shirk 97aa6a8c5c Merge pull request #1627 from PowerShell/brucepayette/python-demo
Checked in PowerShell python interop demo
2016-08-04 19:20:39 -07:00
Jason Shirk a01436477e Merge pull request #1655 from PowerShell/mirichmo/fixing-start-pspester
Fixing Start-PSPester for non-Windows environments. Fixes regression caused by PR #1530
2016-08-04 17:10:05 -07:00
Jason Shirk 5676a44f38 Merge pull request #1650 from PowerShell/raghushantha-msieulabranch
EULA for MSI Installer
2016-08-04 15:47:03 -07:00
Jason Shirk 432ce64589 Merge pull request #1651 from andschwa/andschwa/osx-fpm
Fix FPM on Travis CI OS X
2016-08-04 15:41:30 -07:00
Jason Shirk f15e66b283 Merge pull request #1633 from PowerShell/revert_psedition_namechange
Revert the changes made in #1457. Desktop and Core are the PowerShell Edition names. Remove Linux as edition name.
2016-08-04 12:21:12 -07:00
Jason Shirk 31b3d13e10 Merge pull request #1623 from PowerShell/jimtru/PSDriveFreeSpaceFix
Get-PSDrive should report proper free space on all platforms
2016-08-03 14:11:28 -07:00
Jason Shirk 28efdc9b2e Merge pull request #1622 from lzybkr/semver_remoting_fix
Fix remoting that broke from $PSVersionTable.PSVersion use of SemanticVersion
2016-08-03 14:08:54 -07:00
Jason Shirk 046af59538 Merge pull request #1620 from lzybkr/cleanup
Cleanup -  - R# refactoring
2016-08-03 13:16:36 -07:00
Jason Shirk a85ca6271a Merge pull request #1581 from PowerShell/AngelCalvo-patch-2
Update README.md
2016-08-02 16:01:39 -07:00
Jason Shirk cfba7537f3 Merge pull request #1599 from PowerShell/error-stream
Error stream
2016-08-02 12:15:13 -07:00
Jason Shirk ae67cc4676 Merge pull request #1514 from PowerShell/AdapterPesterTest
Add Adapter Pester Unit Test
2016-08-02 09:16:34 -07:00
Jason Shirk fff95b5366 Merge pull request #1598 from PowerShell/joey/license
add line breaks to MIT license
2016-08-01 18:35:11 -07:00
Jason Shirk 9742b64170 Merge pull request #1591 from lzybkr/code_formatting
Code formatting
2016-08-01 16:46:05 -07:00
Jason Shirk e68d9731dd Merge pull request #1578 from alexandair/patch-2
Updating maintainers\README
2016-08-01 14:34:58 -07:00
Jason Shirk ecb97415a5 Merge pull request #1577 from PowerShell/joey/license
add MIT license to root
2016-07-29 19:05:10 -07:00
Jason Shirk 6d0396484e Merge pull request #1549 from PowerShell/AngelCalvo-patch-2
Update README.md
2016-07-29 12:08:53 -07:00
Jason Shirk 4af12afa4c Merge pull request #1510 from PowerShell/maertend-patch-3
Delete rest.ps1
2016-07-29 10:16:23 -07:00
Jason Shirk 46df245174 Merge pull request #1564 from PowerShell/AngelCalvo-patch-4
Update README.md
2016-07-29 09:11:25 -07:00
Jason Shirk 0513425ff9 Merge pull request #1566 from PowerShell/andschwa/chars
Fix PSReadLine custom key binding on Linux
2016-07-29 09:10:10 -07:00
Jason Shirk dc9a0dd54c Merge pull request #1544 from PowerShell/vors/ps-template
Simplify PR template
2016-07-27 13:25:07 -07:00
Jason Shirk f45179fe06 Merge pull request #1476 from PowerShell/andschwa/iscore
Rename IsCore to IsCoreCLR
2016-07-26 14:18:51 -07:00
Jason Shirk ad07bbeeac Merge pull request #1481 from lzybkr/jasonsh/docs
Coding guideline docs and other minor doc updates
2016-07-25 22:26:50 -07:00
Jason Shirk 1c3361bf20 Merge pull request #1483 from lzybkr/if_unix
Change preprocessor macro LINUX to UNIX
2016-07-22 13:14:28 -07:00
Jason Shirk 5a1432e234 Merge pull request #1388 from PowerShell/andschwa/default-editmode
Use Emacs as DefaultEditMode on Linux / OS X
2016-07-15 15:57:58 -07:00
Jason Shirk 5e1cbe0e5d Merge pull request #1328 from PowerShell/dongbo/type-completion
Fix issue #682 - [system.manage<Tab>] doesn't work
2016-07-08 16:16:32 -07:00
Jason Shirk 765b009794 Merge pull request #1277 from PowerShell/jasonsh/vs_solution
Add csproj files and sln for editing but not building
2016-07-05 12:13:14 -07:00
Jason Shirk 9a6655c147 Merge pull request #1246 from PowerShell/andschwa/guard-rawui
Guard RawUI when TTY is non-existent
2016-07-01 17:20:03 -07:00
Jason Shirk 80be756e2a Merge pull request #1199 from PowerShell/jasonsh/split-path-qualifier
Revert Unix specific Split-Path -Qualifier code
2016-06-30 17:06:18 -07:00
Jason Shirk b5bea29a72 Merge pull request #1202 from PowerShell/jasonsh/pspester-fix
Import local Pester version before running tests
2016-06-24 15:35:48 -07:00
Jason Shirk 096779d1be Merge pull request #1076 from PowerShell/andschwa/trace-command-docs
Add debugging info on use of Trace-Command
2016-06-06 12:09:19 -07:00
Jason Shirk a3748647d5 Merge pull request #919 from PowerShell/WriteTests
Add Unit Test For Write Command
2016-06-03 10:46:26 -07:00
Jason Shirk cf7f46e1b8 Merge pull request #918 from PowerShell/UpdateTypeDataPesterTest
Add Update-TypeData and Update-FormatData Pester Unit Test
2016-05-23 13:27:18 -07:00
Jason Shirk 8c97fd16cd Add ConsoleHost tests 2016-05-17 13:28:44 -07:00
Jason Shirk 533a5e3225 Import System.Console In/Out/Error stream changes
Thanks Jason.
2016-05-17 13:28:44 -07:00
Jason Shirk a7ba3395b9 Merge pull request #901 from PowerShell/FormatTablePesterUnitTest
Add Format-Table Pester Unit Test
2016-04-28 13:03:11 -07:00
Jason Shirk 962aeed560 Merge pull request #909 from PowerShell/WriteProgressTests
Add Unit Test for Write-Progress
2016-04-27 17:20:01 -07:00