From 2d279a8267807d8bf5a6713066c7183f340b820a Mon Sep 17 00:00:00 2001 From: Andy Jordan <2226434+andyleejordan@users.noreply.github.com> Date: Tue, 18 Mar 2025 09:25:04 -0700 Subject: [PATCH 1/5] Remove unmaintained build script --- build.ps1 | 103 ------------------------------------------------------ 1 file changed, 103 deletions(-) delete mode 100644 build.ps1 diff --git a/build.ps1 b/build.ps1 deleted file mode 100644 index 913e907e4..000000000 --- a/build.ps1 +++ /dev/null @@ -1,103 +0,0 @@ -#!/usr/bin/env pwsh - -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. - -param( - [Parameter()] - [switch] - $Bootstrap, - - [Parameter()] - [switch] - $Clean, - - [Parameter()] - [switch] - $Test -) - -$NeededTools = @{ - OpenSsl = "openssl for macOS" - PowerShellGet = "PowerShellGet latest" - InvokeBuild = "InvokeBuild latest" -} - -if ((-not $PSVersionTable["OS"]) -or $PSVersionTable["OS"].Contains("Windows")) { - $OS = "Windows" -} elseif ($PSVersionTable["OS"].Contains("Darwin")) { - $OS = "macOS" -} else { - $OS = "Linux" -} - - -function needsOpenSsl () { - if ($OS -eq "macOS") { - try { - $opensslVersion = (openssl version) - } catch { - return $true - } - } - return $false -} - -function needsPowerShellGet () { - if (Get-Module -ListAvailable -Name PowerShellGet) { - return $false - } - return $true -} - -function needsInvokeBuild () { - if (Get-Module -ListAvailable -Name InvokeBuild) { - return $false - } - return $true -} - -function getMissingTools () { - $missingTools = @() - - if (needsOpenSsl) { - $missingTools += $NeededTools.OpenSsl - } - if (needsPowerShellGet) { - $missingTools += $NeededTools.PowerShellGet - } - if (needsInvokeBuild) { - $missingTools += $NeededTools.InvokeBuild - } - - return $missingTools -} - -function hasMissingTools () { - return ((getMissingTools).Count -gt 0) -} - -if ($Bootstrap) { - $string = "Here is what your environment is missing:`n" - $missingTools = getMissingTools - if (($missingTools).Count -eq 0) { - $string += "* nothing!`n`n Run this script without a flag to build or a -Clean to clean." - } else { - $missingTools | ForEach-Object {$string += "* $_`n"} - $string += "`nAll instructions for installing these tools can be found on PowerShell Editor Services' Github:`n" ` - + "https://github.com/powershell/PowerShellEditorServices#development" - } - Write-Host "`n$string`n" -} elseif(hasMissingTools) { - Write-Host "You are missing needed tools. Run './build.ps1 -Bootstrap' to see what they are." -} else { - if($Clean) { - Invoke-Build Clean - } - - Invoke-Build Build - - if($Test) { - Invoke-Build Test - } -} From d45a3e47e4e13fbbf376e6c9688d4dbc56858421 Mon Sep 17 00:00:00 2001 From: Andy Jordan <2226434+andyleejordan@users.noreply.github.com> Date: Tue, 18 Mar 2025 09:26:27 -0700 Subject: [PATCH 2/5] Remove unmaintained documentation This info is in the readme. --- ADOPTERS.md | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 ADOPTERS.md diff --git a/ADOPTERS.md b/ADOPTERS.md deleted file mode 100644 index ff80c2205..000000000 --- a/ADOPTERS.md +++ /dev/null @@ -1,17 +0,0 @@ -# Adopters - - - -This is a list of adopters of using PowerShell Editor Services in production or in their products (in alphabetical order): - -* [vscode-powershell](https://github.com/PowerShell/vscode-powershell) - Provides rich PowerShell language support for Visual Studio Code. You can write and debug PowerShell scripts using the excellent IDE-like interface that Visual Studio Code provides. - -* [coc-powershell](https://github.com/coc-extensions/coc-powershell) - A Vim and NeoVim plugin powered by PowerShellEditorServices and [coc.nvim](https://github.com/neoclide/coc.nvim) to provide a rich PowerShell editing experience. From b65de8a211d3fe47ded428d7faf4b0d74d3e4fba Mon Sep 17 00:00:00 2001 From: Andy Jordan <2226434+andyleejordan@users.noreply.github.com> Date: Tue, 18 Mar 2025 09:32:05 -0700 Subject: [PATCH 3/5] Update bundled PSScriptAnalyzer to v1.24.0 --- PowerShellEditorServices.build.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerShellEditorServices.build.ps1 b/PowerShellEditorServices.build.ps1 index ffb24dfb4..d2c7b350a 100644 --- a/PowerShellEditorServices.build.ps1 +++ b/PowerShellEditorServices.build.ps1 @@ -120,7 +120,7 @@ namespace Microsoft.PowerShell.EditorServices.Hosting task RestorePsesModules -If (-not (Test-Path "module/PSReadLine") -or -not (Test-Path "module/PSScriptAnalyzer")) { Write-Build DarkMagenta "Restoring bundled modules" - Save-PSResource -Path module -Name PSScriptAnalyzer -Version "1.23.0" -Repository $PSRepository -TrustRepository -Verbose + Save-PSResource -Path module -Name PSScriptAnalyzer -Version "1.24.0" -Repository $PSRepository -TrustRepository -Verbose Save-PSResource -Path module -Name PSReadLine -Version "2.4.0-beta0" -Prerelease -Repository $PSRepository -TrustRepository -Verbose } From 00cf8b0535c3a9a0c37fd1985bf4e6d3548df31b Mon Sep 17 00:00:00 2001 From: Andy Jordan <2226434+andyleejordan@users.noreply.github.com> Date: Tue, 18 Mar 2025 09:32:32 -0700 Subject: [PATCH 4/5] Update bundled PSReadLine to v2.4.1-beta1 --- PowerShellEditorServices.build.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerShellEditorServices.build.ps1 b/PowerShellEditorServices.build.ps1 index d2c7b350a..3e8830088 100644 --- a/PowerShellEditorServices.build.ps1 +++ b/PowerShellEditorServices.build.ps1 @@ -121,7 +121,7 @@ namespace Microsoft.PowerShell.EditorServices.Hosting task RestorePsesModules -If (-not (Test-Path "module/PSReadLine") -or -not (Test-Path "module/PSScriptAnalyzer")) { Write-Build DarkMagenta "Restoring bundled modules" Save-PSResource -Path module -Name PSScriptAnalyzer -Version "1.24.0" -Repository $PSRepository -TrustRepository -Verbose - Save-PSResource -Path module -Name PSReadLine -Version "2.4.0-beta0" -Prerelease -Repository $PSRepository -TrustRepository -Verbose + Save-PSResource -Path module -Name PSReadLine -Version "2.4.1-beta1" -Prerelease -Repository $PSRepository -TrustRepository -Verbose } Task Build FindDotNet, CreateBuildInfo, RestorePsesModules, { From f396e20d335e73fc9abfc918885b6a4959ef4c75 Mon Sep 17 00:00:00 2001 From: Andy Jordan <2226434+andyleejordan@users.noreply.github.com> Date: Tue, 18 Mar 2025 10:20:30 -0700 Subject: [PATCH 5/5] Update .NET packages Thanks dotnet-outdated. --- Directory.Packages.props | 10 +++++----- .../PowerShellEditorServices.Test.csproj | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 428e28735..b90360e52 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -1,10 +1,10 @@ - - - - + + + + @@ -29,7 +29,7 @@ - + diff --git a/test/PowerShellEditorServices.Test/PowerShellEditorServices.Test.csproj b/test/PowerShellEditorServices.Test/PowerShellEditorServices.Test.csproj index 8d4ce9c79..6cd7ae849 100644 --- a/test/PowerShellEditorServices.Test/PowerShellEditorServices.Test.csproj +++ b/test/PowerShellEditorServices.Test/PowerShellEditorServices.Test.csproj @@ -18,7 +18,7 @@ - +