From 5a449deb14ed0bceee38b3f0e3a94f64003865a1 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Mon, 8 Feb 2016 10:22:21 -0800 Subject: [PATCH 1/9] Change "Open in ISE" key binding to Ctrl+Shift+i This change updates the "Open in ISE" key binding to be Ctrl+Shift+i instead of Ctrl+Alt+i. This change was made because VS Code gives a warning that Ctrl+Alt key bindings should not be used. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9c9408b06e..2c5b5d2e93 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,7 @@ }, { "command": "PowerShell.OpenInISE", - "key": "ctrl+alt+i", + "key": "ctrl+shift+i", "when": "editorTextFocus && editorLangId == 'powershell'" }, { From 9ed99ddd9887c288ff66b664563eecaaa2f9f606 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Mon, 8 Feb 2016 11:01:08 -0800 Subject: [PATCH 2/9] Bump version to 0.4.0 and update changelog --- CHANGELOG.md | 44 ++++++++++++++++++++++++++++++++++++++++++-- package.json | 2 +- 2 files changed, 43 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b67eaf4c1..b014929cc6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,45 @@ # vscode-powershell Release History +## 0.4.0 +### Monday, February 8, 2016 + +#### Debugging improvements + +[@rkeithhill](https://github.com/rkeithhill) spent a lot of time polishing the script debugging experience for this release: + +- You can now pass arguments to scripts in the debugger with the `args` parameter in launch.json +- You can also run your script with the 32-bit debugger by changing the `type` parameter in launch.json to "PowerShell x86" (also thanks to [@adamdriscoll](https://github.com/adamdriscoll)!) +- The new default PowerShell debugger configuration now launches the active file in the editor +- You can also set the working directory where the script is run by setting the `cwd` parameter in launch.json to an absolute path + +We recommend deleting any existing `launch.json` file you're using so that a new one will +be generated with the new defaults. + +#### Console improvements + +- Improved PowerShell console output formatting and performance + - The console prompt is now displayed after a command is executed + - Command execution errors are now displayed correctly in more cases + - Console output now wraps at 120 characters instead of 80 characters + +- Added choice and input prompt support + - When executing code using the 'Run Selection' command, choice and input prompts appear as VS Code UI popups + - When executing code in the debugger, choice and input prompts appear in the Debug Console + +#### New commands + +- "Find/Install PowerShell modules from the gallery" (`Ctrl+K Ctrl+F`): Enables you to find and install modules from the PowerShell Gallery (thanks [@dfinke](https://github.com/dfinke)!) +- "Open current file in PowerShell ISE" (`Ctrl+Shift+i`): Opens the current file in the PowerShell ISE (thanks [@janegilring](https://github.com/janegilring)!) + +#### New configuration settings + +- `powershell.developer.editorServicesLogLevel`: configures the logging verbosity for PowerShell Editor Services. The default log level will now write less logs, improving overall performance + +#### Other improvements + +- Many improvements to the PowerShell snippets, more clearly separating functional and example snippets +- Added some additional example script files in the `examples` folder + ## 0.3.1 ### Thursday, December 17, 2015 @@ -13,9 +53,9 @@ - New "Auto" scope which shows only the variables defined within the current scope - Greatly improved representation of variable values, especially for dictionaries and objects that implement the ToString() method -- Added new "Expand Alias" command which resolves command aliases used in a file or +- Added new "Expand Alias" command which resolves command aliases used in a file or selection and updates the source text with the resolved command names -- Reduced default Script Analyzer rules to a minimal list +- Reduced default Script Analyzer rules to a minimal list - Fixed a wide array of completion text replacement bugs - Improved extension upgrade experience diff --git a/package.json b/package.json index 2c5b5d2e93..a1ea2124c7 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "PowerShell", "displayName": "PowerShell", - "version": "0.3.1", + "version": "0.4.0", "publisher": "ms-vscode", "description": "Develop PowerShell scripts in Visual Studio Code!", "engines": { From 40065435f80e06c65edaa6ea98a683f934811ff1 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Mon, 8 Feb 2016 11:05:07 -0800 Subject: [PATCH 3/9] Update Third Party Notices.txt --- Third Party Notices.txt | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/Third Party Notices.txt b/Third Party Notices.txt index 7071e9fc23..1a2e50bcd2 100644 --- a/Third Party Notices.txt +++ b/Third Party Notices.txt @@ -1,4 +1,4 @@ -This file is based on or incorporates material from the projects listed below (Third Party IP). The original copyright notice and the license under which Microsoft received such Third Party IP, are set forth below. Such licenses and notices are provided for informational purposes only. Microsoft licenses the Third Party IP to you under the licensing terms for the Microsoft product. Microsoft reserves all other rights not expressly granted under this agreement, whether by implication, estoppel or otherwise. +This file is based on or incorporates material from the projects listed below (Third Party IP). The original copyright notice and the license under which Microsoft received such Third Party IP, are set forth below. Such licenses and notices are provided for informational purposes only. Microsoft licenses the Third Party IP to you under the licensing terms for the Microsoft product. Microsoft reserves all other rights not expressly granted under this agreement, whether by implication, estoppel or otherwise. --- @@ -7,24 +7,9 @@ Json.NET Copyright (c) 2007 James Newton-King Provided for Informational Purposes Only -MIT License +MIT License -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the Software), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ---- - -AsyncEx - -Copyright (c) 2014 StephenCleary - Provided for Informational Purposes Only - -MIT License - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the Software), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the Software), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. From adca2cdd4aad34cd31ec550b4e5910686d500082 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Mon, 8 Feb 2016 11:06:25 -0800 Subject: [PATCH 4/9] Update LICENSE.txt --- LICENSE.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/LICENSE.txt b/LICENSE.txt index bf0b4af39d..dde4d1880e 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,7 +1,8 @@ -Windows PowerShell for Visual Studio Code 0.1.0 +PowerShell for Visual Studio Code + Copyright (c) Microsoft Corporation -All rights reserved. +All rights reserved. MIT License From a6f5c393f3bb99954d5f555bfd6e92a2d6f66faa Mon Sep 17 00:00:00 2001 From: David Wilson Date: Mon, 8 Feb 2016 11:37:10 -0800 Subject: [PATCH 5/9] Update .vscodeignore --- .vscodeignore | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/.vscodeignore b/.vscodeignore index ac07698d59..8574365f93 100644 --- a/.vscodeignore +++ b/.vscodeignore @@ -7,33 +7,3 @@ build/** bin/EditorServices.log bin/DebugAdapter.log bin/*.vshost.* -node_modules/.bin/** -node_modules/amdefine/** -node_modules/balanced-match/** -node_modules/brace-expansion/** -node_modules/commander/** -node_modules/concat-map/** -node_modules/debug/** -node_modules/diff/** -node_modules/escape-string-regexp/** -node_modules/glob/** -node_modules/graceful-fs/** -node_modules/growl/** -node_modules/inflight/** -node_modules/inherits/** -node_modules/jade/** -node_modules/lru-cache/** -node_modules/minimatch/** -node_modules/minimist/** -node_modules/mkdirp/** -node_modules/mocha/** -node_modules/ms/** -node_modules/once/** -node_modules/path-is-absolute/** -node_modules/sigmund/** -node_modules/source-map/** -node_modules/source-map-support/** -node_modules/supports-color/** -node_modules/typescript/** -node_modules/vscode/** -node_modules/wrappy/** \ No newline at end of file From f79621dd68395edcc2a6ff89a23fbe3795cecca0 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Mon, 8 Feb 2016 12:06:30 -0800 Subject: [PATCH 6/9] Add maintaners list to README.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index aad36b5784..bc7ecaea08 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,11 @@ code (Get-ChildItem $Home\.vscode\extensions\ms-vscode.PowerShell-*\examples)[-1 Check out the [development documentation](docs/development.md) for more details on how to contribute to this extension! +## Maintainers + +- [David Wilson](https://github.com/daviwil) - [@daviwil](http://twitter.com/daviwil) +- [Keith Hill](https://github.com/rkeithhill) - [@r_keith_hill](http://twitter.com/r_keith_hill) + ## License This extension is [licensed under the MIT License](LICENSE.txt). Please see the From fe4afca53b472d6f7f35b785cb9aacbec5b11d50 Mon Sep 17 00:00:00 2001 From: Keith Hill Date: Mon, 8 Feb 2016 14:07:12 -0700 Subject: [PATCH 7/9] Update CHANGELOG.md Added more info on Editor improvements. --- CHANGELOG.md | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b014929cc6..b5619e5283 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,7 @@ - You can now pass arguments to scripts in the debugger with the `args` parameter in launch.json - You can also run your script with the 32-bit debugger by changing the `type` parameter in launch.json to "PowerShell x86" (also thanks to [@adamdriscoll](https://github.com/adamdriscoll)!) - The new default PowerShell debugger configuration now launches the active file in the editor -- You can also set the working directory where the script is run by setting the `cwd` parameter in launch.json to an absolute path +- You can also set the working directory where the script is run by setting the `cwd` parameter in launch.json to an absolute path. If you need a workspace relative path, use ${workspaceRoot} to create an absolute path e.g. `"${workspaceRoot}/modules/foo.psm1"`. We recommend deleting any existing `launch.json` file you're using so that a new one will be generated with the new defaults. @@ -31,15 +31,19 @@ be generated with the new defaults. - "Find/Install PowerShell modules from the gallery" (`Ctrl+K Ctrl+F`): Enables you to find and install modules from the PowerShell Gallery (thanks [@dfinke](https://github.com/dfinke)!) - "Open current file in PowerShell ISE" (`Ctrl+Shift+i`): Opens the current file in the PowerShell ISE (thanks [@janegilring](https://github.com/janegilring)!) -#### New configuration settings - -- `powershell.developer.editorServicesLogLevel`: configures the logging verbosity for PowerShell Editor Services. The default log level will now write less logs, improving overall performance - -#### Other improvements +#### Editor improvements +- Path auto-completion lists show just the current directory's contents instead of the full path (which had resulted in clipped text) +- Parameter auto-completion lists are now sorted in the same order as they are in PowerShell ISE where command-specific parameters preceed the common parameters +- Parameter auto-completion lists show the parameter type +- Command auto-completion lists show the resolved command for aliases and the path for executables - Many improvements to the PowerShell snippets, more clearly separating functional and example snippets - Added some additional example script files in the `examples` folder +#### New configuration settings + +- `powershell.developer.editorServicesLogLevel`: configures the logging verbosity for PowerShell Editor Services. The default log level will now write less logs, improving overall performance + ## 0.3.1 ### Thursday, December 17, 2015 @@ -81,4 +85,4 @@ Initial release with the following features: - Go to Definition of cmdlets and variables - Find References of cmdlets and variables - Document and workspace symbol discovery -- Local script debugging and basic interactive console support \ No newline at end of file +- Local script debugging and basic interactive console support From 13c92681673417f7586ee44f1e72f405e0f5cc9b Mon Sep 17 00:00:00 2001 From: Keith Hill Date: Mon, 8 Feb 2016 14:20:06 -0700 Subject: [PATCH 8/9] Update CHANGELOG.md Mentioned the completion text prefix for all example snippets. --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b5619e5283..27b407a291 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,7 +37,7 @@ be generated with the new defaults. - Parameter auto-completion lists are now sorted in the same order as they are in PowerShell ISE where command-specific parameters preceed the common parameters - Parameter auto-completion lists show the parameter type - Command auto-completion lists show the resolved command for aliases and the path for executables -- Many improvements to the PowerShell snippets, more clearly separating functional and example snippets +- Many improvements to the PowerShell snippets, more clearly separating functional and example snippets (all of the latter are prefixed with `ex-`) - Added some additional example script files in the `examples` folder #### New configuration settings From 39715c17e58276053d71b2b8bbe49098bf0ea9fb Mon Sep 17 00:00:00 2001 From: David Wilson Date: Mon, 8 Feb 2016 16:19:27 -0800 Subject: [PATCH 9/9] Update supported VS Code engine to 0.10.8 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a1ea2124c7..c9743cc954 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "publisher": "ms-vscode", "description": "Develop PowerShell scripts in Visual Studio Code!", "engines": { - "vscode": "^0.10.7" + "vscode": "^0.10.8" }, "license": "SEE LICENSE IN LICENSE.txt", "homepage": "https://github.com/PowerShell/vscode-powershell/blob/master/README.md",