From 5e741194cff4f79b0547818e369b7a51444e43b2 Mon Sep 17 00:00:00 2001 From: Tyler Leonhardt Date: Tue, 22 Jan 2019 17:13:23 -0800 Subject: [PATCH 1/9] Prep for 2.0.0-preview.1 release --- CHANGELOG.md | 21 +++++++++++++++++++++ package.json | 2 +- src/main.ts | 2 +- tools/releaseBuild/Image/DockerFile | 2 +- tools/releaseBuild/setVstsVariables.ps1 | 2 +- 5 files changed, 25 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 84580c0b33..68dd2299fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,26 @@ # vscode-powershell Release History +## v2.0.0-preview.1 +### Wednesday, January 23, 2019 + +#### [vscode-powershell](https://github.com/powershell/vscode-powershell) + +- [vscode-PowerShell #1587](https://github.com/PowerShell/vscode-PowerShell/pull/1587) - + Removed ShowOnlineHelp Command (Thanks @corbob!) + +#### [PowerShellEditorServices](https://github.com/powershell/PowerShellEditorServices) + +- [PowerShellEditorServices #792](https://github.com/PowerShell/PowerShellEditorServices/pull/792) - + Add Async suffix to async methods (Thanks @dee-see!) +- [PowerShellEditorServices #775](https://github.com/PowerShell/PowerShellEditorServices/pull/775) - + Removed ShowOnlineHelp Message (Thanks @corbob!) +- [PowerShellEditorServices #769](https://github.com/PowerShell/PowerShellEditorServices/pull/769) - + Set Runspaces to use STA when running in Windows PowerShell +- [PowerShellEditorServices #741](https://github.com/PowerShell/PowerShellEditorServices/pull/741) - + Migrate to netstandard2.0 and PSStandard +- [PowerShellEditorServices #672](https://github.com/PowerShell/PowerShellEditorServices/pull/672) - + PSReadLine integration (Thanks @SeeminglyScience!) + ## v1.10.2 ### Tuesday, December 18, 2018 diff --git a/package.json b/package.json index 97e102cc46..7ae4bc86ef 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "PowerShell", "displayName": "PowerShell", - "version": "2.0.0", + "version": "2.0.0-preview.1", "publisher": "ms-vscode", "description": "Develop PowerShell scripts in Visual Studio Code!", "engines": { diff --git a/src/main.ts b/src/main.ts index 1ab5bcb920..5eb23b534a 100644 --- a/src/main.ts +++ b/src/main.ts @@ -36,7 +36,7 @@ import utils = require("./utils"); // NOTE: We will need to find a better way to deal with the required // PS Editor Services version... -const requiredEditorServicesVersion = "2.0.0"; +const requiredEditorServicesVersion = "2.0.0-preview.1"; let logger: Logger; let sessionManager: SessionManager; diff --git a/tools/releaseBuild/Image/DockerFile b/tools/releaseBuild/Image/DockerFile index 14cf3ab753..4263016606 100644 --- a/tools/releaseBuild/Image/DockerFile +++ b/tools/releaseBuild/Image/DockerFile @@ -23,7 +23,7 @@ COPY build.ps1 containerFiles/build.ps1 # Add an environment variable for build versioning ENV VSTS_BUILD=1 -ENV VSTS_BUILD_VERSION=2.0.0 +ENV VSTS_BUILD_VERSION=2.0.0-preview.1 # Uncomment to debug locally # RUN Import-Module ./containerFiles/dockerInstall.psm1; ` diff --git a/tools/releaseBuild/setVstsVariables.ps1 b/tools/releaseBuild/setVstsVariables.ps1 index f08fcc4a9d..6ab43fb969 100644 --- a/tools/releaseBuild/setVstsVariables.ps1 +++ b/tools/releaseBuild/setVstsVariables.ps1 @@ -1,5 +1,5 @@ $vstsVariables = @{ - PSES_BRANCH = 'master' + PSES_BRANCH = 'release/v2.0.0-preview.1' } # Use VSTS's API to set an env vars From 659fbdf11b16470b574166c56ad2f17666c74c54 Mon Sep 17 00:00:00 2001 From: Tyler Leonhardt Date: Tue, 22 Jan 2019 17:34:40 -0800 Subject: [PATCH 2/9] mark preview extensions as preview --- package.json | 1 + vscode-powershell.build.ps1 | 1 + 2 files changed, 2 insertions(+) diff --git a/package.json b/package.json index 7ae4bc86ef..a7013ea04d 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "PowerShell", "displayName": "PowerShell", "version": "2.0.0-preview.1", + "preview": false, "publisher": "ms-vscode", "description": "Develop PowerShell scripts in Visual Studio Code!", "engines": { diff --git a/vscode-powershell.build.ps1 b/vscode-powershell.build.ps1 index 412d6ac759..770e8a2dfb 100644 --- a/vscode-powershell.build.ps1 +++ b/vscode-powershell.build.ps1 @@ -133,6 +133,7 @@ task UpdatePackageJson { $script:PackageJson.name = "PowerShell-Preview" $script:PackageJson.displayName = "PowerShell Preview" $script:PackageJson.description = "(Preview) Develop PowerShell scripts in Visual Studio Code!" + $script:PackageJson.preview = $true $script:ExtensionName = $script:PackageJson.name Set-Content -Path $PSScriptRoot/package.json ($script:PackageJson | ConvertTo-Json -Depth 100) } From 61da82990cc7cf7b0a4e6b692207a2970afca267 Mon Sep 17 00:00:00 2001 From: Tyler Leonhardt Date: Tue, 22 Jan 2019 17:44:09 -0800 Subject: [PATCH 3/9] update package.json for git tracking --- README.md | 4 ++++ package.json | 8 ++++---- src/main.ts | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 59c1ab2b73..b66e137450 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ # PowerShell Language Support for Visual Studio Code +> ## ATTENTION: This is the PREVIEW version of the PowerShell extension for VSCode which contains features that are being evaluated for stable. It works with PowerShell 5.1 and up. +> ### If you are looking for the stable version, please [go here](https://marketplace.visualstudio.com/items?itemName=ms-vscode.PowerShell) or install the extension called "PowerShell" (not "PowerShell Preview") +> ## NOTE: If you have both stable (aka "PowerShell") and preview (aka "PowerShell Preview") installed, you MUST [DISABLE](https://code.visualstudio.com/docs/editor/extension-gallery#_disable-an-extension) one of them for the best performance. Docs on how to disable an extension can be found [here](https://code.visualstudio.com/docs/editor/extension-gallery#_disable-an-extension) + [![Codacy Badge](https://api.codacy.com/project/badge/Grade/df06b9909e7442cebc1132bda0b8c0e3)](https://app.codacy.com/app/TylerLeonhardt/vscode-powershell?utm_source=github.com&utm_medium=referral&utm_content=PowerShell/vscode-powershell&utm_campaign=Badge_Grade_Dashboard) [![Version](https://vsmarketplacebadge.apphb.com/version/ms-vscode.PowerShell.svg)](https://marketplace.visualstudio.com/items?itemName=ms-vscode.PowerShell) [![Installs](https://vsmarketplacebadge.apphb.com/installs-short/ms-vscode.PowerShell.svg)](https://marketplace.visualstudio.com/items?itemName=ms-vscode.PowerShell) [![windows build](https://img.shields.io/appveyor/ci/PowerShell/vscode-powershell/master.svg?label=windows+build)](https://ci.appveyor.com/project/PowerShell/vscode-powershell) [![linux/macos build](https://img.shields.io/travis/PowerShell/vscode-powershell/master.svg?label=linux/macos+build)](https://travis-ci.org/PowerShell/vscode-powershell) [![Join the chat at https://gitter.im/PowerShell/vscode-powershell](https://badges.gitter.im/PowerShell/vscode-powershell.svg)](https://gitter.im/PowerShell/vscode-powershell?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) diff --git a/package.json b/package.json index a7013ea04d..cd03ee34b1 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,10 @@ { - "name": "PowerShell", - "displayName": "PowerShell", + "name": "PowerShell-Preview", + "displayName": "PowerShell Preview", "version": "2.0.0-preview.1", - "preview": false, + "preview": true, "publisher": "ms-vscode", - "description": "Develop PowerShell scripts in Visual Studio Code!", + "description": "(Preview) Develop PowerShell scripts in Visual Studio Code!", "engines": { "vscode": "^1.25.0" }, diff --git a/src/main.ts b/src/main.ts index 5eb23b534a..1ab5bcb920 100644 --- a/src/main.ts +++ b/src/main.ts @@ -36,7 +36,7 @@ import utils = require("./utils"); // NOTE: We will need to find a better way to deal with the required // PS Editor Services version... -const requiredEditorServicesVersion = "2.0.0-preview.1"; +const requiredEditorServicesVersion = "2.0.0"; let logger: Logger; let sessionManager: SessionManager; From 673c087ea0b87d7f0b41caebb31d6ad35658a825 Mon Sep 17 00:00:00 2001 From: Tyler Leonhardt Date: Tue, 22 Jan 2019 17:45:55 -0800 Subject: [PATCH 4/9] leave PSES_BRANCH at master --- tools/releaseBuild/setVstsVariables.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/releaseBuild/setVstsVariables.ps1 b/tools/releaseBuild/setVstsVariables.ps1 index 6ab43fb969..f08fcc4a9d 100644 --- a/tools/releaseBuild/setVstsVariables.ps1 +++ b/tools/releaseBuild/setVstsVariables.ps1 @@ -1,5 +1,5 @@ $vstsVariables = @{ - PSES_BRANCH = 'release/v2.0.0-preview.1' + PSES_BRANCH = 'master' } # Use VSTS's API to set an env vars From cb41ce3afbb7917e47819b55a0f80f582149f0f4 Mon Sep 17 00:00:00 2001 From: Tyler Leonhardt Date: Tue, 22 Jan 2019 18:05:31 -0800 Subject: [PATCH 5/9] spaces --- CHANGELOG.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 68dd2299fe..96b8f79f00 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,20 +6,20 @@ #### [vscode-powershell](https://github.com/powershell/vscode-powershell) - [vscode-PowerShell #1587](https://github.com/PowerShell/vscode-PowerShell/pull/1587) - - Removed ShowOnlineHelp Command (Thanks @corbob!) + Removed ShowOnlineHelp Command (Thanks @corbob!) #### [PowerShellEditorServices](https://github.com/powershell/PowerShellEditorServices) - [PowerShellEditorServices #792](https://github.com/PowerShell/PowerShellEditorServices/pull/792) - - Add Async suffix to async methods (Thanks @dee-see!) + Add Async suffix to async methods (Thanks @dee-see!) - [PowerShellEditorServices #775](https://github.com/PowerShell/PowerShellEditorServices/pull/775) - - Removed ShowOnlineHelp Message (Thanks @corbob!) + Removed ShowOnlineHelp Message (Thanks @corbob!) - [PowerShellEditorServices #769](https://github.com/PowerShell/PowerShellEditorServices/pull/769) - Set Runspaces to use STA when running in Windows PowerShell - [PowerShellEditorServices #741](https://github.com/PowerShell/PowerShellEditorServices/pull/741) - Migrate to netstandard2.0 and PSStandard - [PowerShellEditorServices #672](https://github.com/PowerShell/PowerShellEditorServices/pull/672) - - PSReadLine integration (Thanks @SeeminglyScience!) + PSReadLine integration (Thanks @SeeminglyScience!) ## v1.10.2 ### Tuesday, December 18, 2018 From 972b98072f2f662b1c18771df0998215c22c46d4 Mon Sep 17 00:00:00 2001 From: Tyler Leonhardt Date: Tue, 22 Jan 2019 18:21:36 -0800 Subject: [PATCH 6/9] mini-announcement --- CHANGELOG.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 96b8f79f00..b9e5fec345 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,46 @@ ## v2.0.0-preview.1 ### Wednesday, January 23, 2019 +#### Preview builds of the PowerShell extension are now available in VSCode + +We are excited to announce the PowerShell Preview extension in the VSCode marketplace! +The PowerShell Preview extension allows users on Windows PowerShell 5.1 and newer to get and test the latest updates to the PowerShell extension and comes with some exciting features. + +The PowerShell Preview extension is a substitute for the PowerShell extension so both the PowerShell extension and the PowerShell Preview extension should not be enabled at the same time. + +By having a preview channel, which only supports Windows Powershell 5.1 and newer, in addition to our existing stable channel, we can get new features out faster. + +##### How to Get/Use the PowerShell Preview extension + + If you dont already have VSCode, start [here](https://code.visualstudio.com/Docs/setup/setup-overview). + + Once you have VSCode open, click `Clt+Shift+X` to open the extensions marketplace. +Next, type `PowerShell Preview` in the search bar. +Click `Install` on the `PowerShell Preview` page. +Finally, click `Reload` in order to refresh VSCode. + +If you already have the PowerShell extension please disable it to use the Powershell Preview extension. +To disable the PowerShell extension find it in the extensions Marketplace and click `Disable`. Please note that it is important to only have either the PowerShell extension or the PowerShell Preview extension endabled at one time. +![How to Disable](https://github.com/PowerShell/powershell.github.io/blob/master/PowerShell-Blog/Images/disable-extension.jpg) + +#### What the first preview contains + +The v2.0.0-preview.1 version of the extension is built on .NET Standard (enabling support for both Windows PowerShell and PowerShell Core from one assembly) + +It also contains PSReadLine support in the integrated console for Windows behind a feature flag. PSReadLine provides a consistent and rich interactive experience, including syntax coloring and multi-line editing and history, in the PowerShell console, in Cloud Shell, and now in VSCode terminal. For more information on the benefits of PSReadLine, check out their [documentation](https://docs.microsoft.com/en-us/powershell/module/psreadline/about/about_psreadline?view=powershell-6). + +To enable PSReadLine support in the Preview version on Windows, please add the following to your user settings: + +``` +"powershell.developer.featureFlags": [ "PSReadLine" ] +``` + +HUGE thanks to @SeeminglyScience for all his amazing work getting PSReadLine working in PowerShell Editor Services! + +#### Breaking Changes + +As stated above, this version of the PowerShell extension only works with PowerShell versions 5.1 and higher. + #### [vscode-powershell](https://github.com/powershell/vscode-powershell) - [vscode-PowerShell #1587](https://github.com/PowerShell/vscode-PowerShell/pull/1587) - From e661d96adf259824b4ad0ec37fc496879895a717 Mon Sep 17 00:00:00 2001 From: Tyler Leonhardt Date: Tue, 22 Jan 2019 22:00:37 -0800 Subject: [PATCH 7/9] address keith's feedback --- CHANGELOG.md | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b9e5fec345..d83f5c09be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,30 +6,40 @@ #### Preview builds of the PowerShell extension are now available in VSCode We are excited to announce the PowerShell Preview extension in the VSCode marketplace! -The PowerShell Preview extension allows users on Windows PowerShell 5.1 and newer to get and test the latest updates to the PowerShell extension and comes with some exciting features. +The PowerShell Preview extension allows users on Windows PowerShell 5.1 and newer to get and test the latest updates +to the PowerShell extension and comes with some exciting features. -The PowerShell Preview extension is a substitute for the PowerShell extension so both the PowerShell extension and the PowerShell Preview extension should not be enabled at the same time. +The PowerShell Preview extension is a substitute for the PowerShell extension so +both the PowerShell extension and the PowerShell Preview extension should not be enabled at the same time. -By having a preview channel, which only supports Windows Powershell 5.1 and newer, in addition to our existing stable channel, we can get new features out faster. +By having a preview channel, which only supports Windows Powershell 5.1 and newer, +in addition to our existing stable channel, we can get new features out faster. ##### How to Get/Use the PowerShell Preview extension - If you dont already have VSCode, start [here](https://code.visualstudio.com/Docs/setup/setup-overview). +If you dont already have VSCode, start [here](https://code.visualstudio.com/Docs/setup/setup-overview). - Once you have VSCode open, click `Clt+Shift+X` to open the extensions marketplace. +Once you have VSCode open, click `Clt+Shift+X` to open the extensions marketplace. Next, type `PowerShell Preview` in the search bar. Click `Install` on the `PowerShell Preview` page. Finally, click `Reload` in order to refresh VSCode. -If you already have the PowerShell extension please disable it to use the Powershell Preview extension. -To disable the PowerShell extension find it in the extensions Marketplace and click `Disable`. Please note that it is important to only have either the PowerShell extension or the PowerShell Preview extension endabled at one time. +If you already have the PowerShell extension, please disable it to use the Powershell Preview extension. +To disable the PowerShell extension, find it in the Extensions sidebar view, specifically under the list of Enabled extensions, +Right-click on the PowerShell extension and select `Disable`. +Please note that it is important to only have either the PowerShell extension or the PowerShell Preview extension enabled at one time. ![How to Disable](https://github.com/PowerShell/powershell.github.io/blob/master/PowerShell-Blog/Images/disable-extension.jpg) #### What the first preview contains -The v2.0.0-preview.1 version of the extension is built on .NET Standard (enabling support for both Windows PowerShell and PowerShell Core from one assembly) +The v2.0.0-preview.1 version of the extension is built on .NET Standard +(enabling support for both Windows PowerShell and PowerShell Core from one assembly) -It also contains PSReadLine support in the integrated console for Windows behind a feature flag. PSReadLine provides a consistent and rich interactive experience, including syntax coloring and multi-line editing and history, in the PowerShell console, in Cloud Shell, and now in VSCode terminal. For more information on the benefits of PSReadLine, check out their [documentation](https://docs.microsoft.com/en-us/powershell/module/psreadline/about/about_psreadline?view=powershell-6). +It also contains PSReadLine support in the integrated console for Windows behind a feature flag. +PSReadLine provides a consistent and rich interactive experience, +including syntax coloring and multi-line editing and history, in the PowerShell console, in Cloud Shell, +and now in VSCode terminal. For more information on the benefits of PSReadLine, +check out their [documentation](https://docs.microsoft.com/en-us/powershell/module/psreadline/about/about_psreadline?view=powershell-6). To enable PSReadLine support in the Preview version on Windows, please add the following to your user settings: From f723a0403df64e54ebd588459d3803c18eeaf53d Mon Sep 17 00:00:00 2001 From: Tyler Leonhardt Date: Wed, 23 Jan 2019 08:53:03 -0800 Subject: [PATCH 8/9] explicit versions --- CHANGELOG.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d83f5c09be..d9f7e93e79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,13 +6,13 @@ #### Preview builds of the PowerShell extension are now available in VSCode We are excited to announce the PowerShell Preview extension in the VSCode marketplace! -The PowerShell Preview extension allows users on Windows PowerShell 5.1 and newer to get and test the latest updates +The PowerShell Preview extension allows users on Windows PowerShell 5.1 and PowerShell Core 6 to get and test the latest updates to the PowerShell extension and comes with some exciting features. The PowerShell Preview extension is a substitute for the PowerShell extension so both the PowerShell extension and the PowerShell Preview extension should not be enabled at the same time. -By having a preview channel, which only supports Windows Powershell 5.1 and newer, +By having a preview channel, which only supports Windows Powershell 5.1 and PowerShell Core 6, in addition to our existing stable channel, we can get new features out faster. ##### How to Get/Use the PowerShell Preview extension @@ -51,7 +51,7 @@ HUGE thanks to @SeeminglyScience for all his amazing work getting PSReadLine wor #### Breaking Changes -As stated above, this version of the PowerShell extension only works with PowerShell versions 5.1 and higher. +As stated above, this version of the PowerShell extension only works with Windows PowerShell versions 5.1 and PowerShell Core 6. #### [vscode-powershell](https://github.com/powershell/vscode-powershell) From 60d1ff044a962dbc551f1cc8c4add17c251e15b5 Mon Sep 17 00:00:00 2001 From: Tyler James Leonhardt Date: Wed, 23 Jan 2019 09:44:30 -0800 Subject: [PATCH 9/9] feedback --- CHANGELOG.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d9f7e93e79..2f94a6c57d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,8 +12,7 @@ to the PowerShell extension and comes with some exciting features. The PowerShell Preview extension is a substitute for the PowerShell extension so both the PowerShell extension and the PowerShell Preview extension should not be enabled at the same time. -By having a preview channel, which only supports Windows Powershell 5.1 and PowerShell Core 6, -in addition to our existing stable channel, we can get new features out faster. +By having a preview channel, in addition to our existing stable channel, we can get new features out faster and get feedback faster from you, the users. ##### How to Get/Use the PowerShell Preview extension