Skip to content

[pull] main from PowerShell:main #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 89 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
fed92a8
Update clients that support debugging (#2151)
Willem-J-an Mar 27, 2024
db3d833
Fix Dependabot
andyleejordan Mar 27, 2024
20f90a9
Support 'preview' in version and always publish (a draft)
andyleejordan Apr 1, 2024
5b30599
Use a provided shell integration script directly
andyleejordan Apr 2, 2024
e21c8c1
v3.19.0: Overhauled Terminal Shell Integration!
andyleejordan Apr 3, 2024
8c61728
Update tests' dependency on PowerShell SDK
andyleejordan Apr 4, 2024
8fe1942
Bump the xunit group with 1 update
dependabot[bot] Apr 8, 2024
4aa6db6
Fix deadlocks in tests when there's no sync context
bradwilson Apr 9, 2024
6ef2d0b
Remove last instance of `GetAwaiter()`
andyleejordan Apr 10, 2024
a7a289d
Fix `DebugServiceTests`
andyleejordan Apr 10, 2024
a4725bc
Be consistent with error suppression
andyleejordan Apr 10, 2024
95c0af5
Fix OneBranch signing certificate
andyleejordan Apr 16, 2024
5cdb268
Remove Plaster integration
andyleejordan Apr 16, 2024
4317c8b
v3.20.0: Hotfix for incorrect signing certificate
andyleejordan Apr 16, 2024
5b37344
Fix CI by removing Azure Artifacts Feeds (#2160)
andyleejordan Apr 17, 2024
c27a92b
Enable CodeQL weekly scan
andyleejordan Apr 23, 2024
ea5f3f0
Use public CFS feed and remove NuGet lockfiles (#2161)
andyleejordan Apr 26, 2024
b68e462
Update third party notices
andyleejordan May 1, 2024
bacb122
Enable `dotnet` telemetry in CI
andyleejordan May 2, 2024
677f42c
v3.20.1: Update third-party notices
andyleejordan May 3, 2024
349a62d
Add a NeoVim LSP/DAP plugin to readme (#2162)
TheLeoP May 9, 2024
a56a361
Update CODE_OF_CONDUCT.md
andyleejordan May 16, 2024
c33b8ec
Disable Dependabot
andyleejordan May 22, 2024
5a8ba0b
Add SECURITY.md
andyleejordan Jun 6, 2024
bd1b8aa
Update README.md
andyleejordan Jun 6, 2024
117de60
Enable all workflows regardless of files
andyleejordan Jun 19, 2024
e6575bf
Fix typo in README.md
notetiene May 21, 2024
f494617
Enable CodeQL in OneBranch
andyleejordan Jun 20, 2024
bc2a41a
Update build info task
andyleejordan Jul 12, 2024
41fce39
Update packages
andyleejordan Jul 12, 2024
29c8d0f
Docs: mention debugging support in intellij-powershell
ForNeVeR Aug 23, 2024
a99180d
Update build to support CFS for PowerShell modules
andyleejordan Aug 23, 2024
22c1fc8
Allow release stage only on manual build
andyleejordan Sep 23, 2024
791039d
Change VIM in Test to nightly (#2183)
JustinGrote Oct 7, 2024
f4e0972
Pull suggested updates
andyleejordan Oct 8, 2024
51b8d07
Enable NuGet Central Package Management
andyleejordan Oct 8, 2024
75cff4c
Remove NETStandard.Library package reference
andyleejordan Oct 8, 2024
b5411e1
Use `global.json` in CI
andyleejordan Oct 8, 2024
a1e354d
Don't make temp test files in bin directory
andyleejordan Oct 8, 2024
bbf627b
Rereate solution file for C# extension
andyleejordan Oct 10, 2024
9cda0eb
Allow daily PowerShell test to fail
andyleejordan Oct 10, 2024
6b4fb45
Add the ability to use the Call operator instead of the DotSource ope…
LucasArona Sep 9, 2024
09080fe
Update PSScriptAnalyzer to 1.23.0
andyleejordan Oct 10, 2024
b6e107d
Fix unit test broken by GitHub Action image update
andyleejordan Oct 29, 2024
809e958
Migrate to DeployBox for release stage
andyleejordan Oct 10, 2024
a20e119
Bump packages for component governance
andyleejordan Oct 29, 2024
5fb353c
v3.21.0: Updates to PSScriptAnalyzer and Call-operator support
andyleejordan Oct 30, 2024
7318898
Add new Decorator and Label semantic tokens for attributes and loop l…
MartinGC94 Jul 22, 2024
2c24b96
Update test
MartinGC94 Sep 7, 2024
7e2d864
Fix test
MartinGC94 Sep 29, 2024
253e942
Remove Serilog and adjust factor for HostLogger injection
JustinGrote Nov 14, 2024
feabfd5
Drop support for PowerShell 7.2 (net6.0) per its end-of-life
andyleejordan Nov 14, 2024
38dd8f0
First piece of minimal logging configuration
JustinGrote Nov 4, 2024
71253d2
Add basic logger
JustinGrote Nov 9, 2024
d9de5bd
Update HostLogger to map to MEL more easily
JustinGrote Nov 15, 2024
455ca1c
Update Log Levels for PSES Appropriately
JustinGrote Nov 15, 2024
b585308
Update PsesLogLevel to match MEL levels
JustinGrote Nov 15, 2024
160a903
Some more logging Levels and cleanup
JustinGrote Nov 15, 2024
3585f00
Wire up loglevels in-band due to LSP bug
JustinGrote Nov 15, 2024
9ce8911
Fix bug with Info getting extra logs on the vscode LSP client side
JustinGrote Nov 15, 2024
671cb37
Docs: Add PowerShell Support Statement
JustinGrote Nov 18, 2024
c960bf9
Docs: Clarify Azure Data Studio and outside support
JustinGrote Nov 18, 2024
5d2c456
Docs: Clarify LSP client support
JustinGrote Nov 18, 2024
af34540
Merge pull request #2201 from PowerShell/justingrote/docs/clarifySupport
JustinGrote Nov 18, 2024
20fa478
Switch OneBranch pipeline to only build and not test
andyleejordan Nov 18, 2024
fec1f3a
v4.0.0: Drop support for PowerShell <7.4 and logging overhaul
andyleejordan Nov 18, 2024
42d1399
Add BuildIfChanged Task and Dev Instructions
JustinGrote Nov 18, 2024
a5aaad8
Add Breakpoint Label frame to optimize debug stepping performance (#2…
JustinGrote Dec 3, 2024
a05cba0
v4.1.0: Debugger optimizations and incremental build support!
andyleejordan Dec 4, 2024
d98ced6
Enable Roslynator Analyzers via Nuget Package
JustinGrote Dec 4, 2024
869c578
Delete extra blank lines etc. to satisfy Roslynator
andyleejordan Jan 8, 2025
aef0fc2
Look in all workspace folders for PSSA settings file (#2167)
andyleejordan Jan 10, 2025
6b73ed7
Update packages
andyleejordan Jan 15, 2025
e26f172
v4.2.0: Support PSScriptAnalyzer config in multi-root workspaces (#2213)
andyleejordan Jan 16, 2025
1ee7adb
OneBranch now uses PowerShell 7.4 so remove workarounds (#2218)
andyleejordan Feb 26, 2025
601666f
Fix RestorePsesModules to use Save-PSResource (#2219)
andyleejordan Feb 26, 2025
0af8424
Skip test that's too slow in ADO (#2220)
andyleejordan Feb 26, 2025
5bc5c11
Switch to PowerShell Gallery mirror (#2221)
andyleejordan Mar 4, 2025
8337c80
Add git-blame-ignore-revs file for some refactor commits to make blam…
JustinGrote Mar 4, 2025
9d56407
Surface Additional Parameter Documentation/Tooltips (#2222)
JustinGrote Mar 4, 2025
7935cf8
Improve E2E Test Fixtures to be less flaky (#2208)
JustinGrote Mar 18, 2025
f2b242f
Test PowerShell Preview in CI instead of Daily (#2225)
andyleejordan Mar 18, 2025
a222792
Remove unmaintained build script
andyleejordan Mar 18, 2025
28b113e
Remove unmaintained documentation
andyleejordan Mar 18, 2025
560cca3
Update bundled PSScriptAnalyzer to v1.24.0
andyleejordan Mar 18, 2025
62876c5
Update bundled PSReadLine to v2.4.1-beta1
andyleejordan Mar 18, 2025
8aedc86
Update .NET packages
andyleejordan Mar 18, 2025
22d6de3
v4.3.0: New packages! (#2227)
andyleejordan Mar 18, 2025
1a988a9
Skip PowerShell Preview tests on OneBranch (#2228)
andyleejordan Mar 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ dotnet_diagnostic.CA1068.severity = error
# CA1501: Avoid excessive inheritance
dotnet_diagnostic.CA1501.severity = error
# CA1502: Avoid excessive complexity
dotnet_diagnostic.CA1502.severity = warning
dotnet_diagnostic.CA1502.severity = silent
# CA1505: Avoid unmaintainable code
dotnet_diagnostic.CA1505.severity = error
# CA1506: Avoid excessive class coupling
dotnet_diagnostic.CA1506.severity = warning
dotnet_diagnostic.CA1506.severity = silent
# CA1507: Use nameof in place of string
dotnet_diagnostic.CA1507.severity = error
# CA1508: Avoid dead conditional code
Expand Down Expand Up @@ -95,22 +95,22 @@ dotnet_diagnostic.RCS1210.severity = error
# RCS1036: Remove unnecessary blank line
dotnet_diagnostic.RCS1036.severity = error
# RCS1075: Avoid empty catch clause that catches System.Exception
dotnet_diagnostic.RCS1075.severity = suggestion
dotnet_diagnostic.RCS1075.severity = error
# RCS1170: Use read-only auto-implemented property
dotnet_diagnostic.RCS1170.severity = error

# VSTHRD002: Avoid problematic synchronous waits
dotnet_diagnostic.VSTHRD002.severity = suggestion
dotnet_diagnostic.VSTHRD002.severity = error
# VSTHRD003: Avoid awaiting foreign Tasks
dotnet_diagnostic.VSTHRD003.severity = suggestion
dotnet_diagnostic.VSTHRD003.severity = error
# VSTHRD105: Avoid method overloads that assume TaskScheduler.Current
dotnet_diagnostic.VSTHRD105.severity = suggestion
dotnet_diagnostic.VSTHRD105.severity = error
# VSTHRD100: Avoid async void methods
dotnet_diagnostic.VSTHRD100.severity = suggestion
dotnet_diagnostic.VSTHRD100.severity = error
# VSTHRD103: Call async methods when in an async method
dotnet_diagnostic.VSTHRD103.severity = suggestion
dotnet_diagnostic.VSTHRD103.severity = error
# VSTHRD110: Observe result of async calls
dotnet_diagnostic.VSTHRD110.severity = suggestion
dotnet_diagnostic.VSTHRD110.severity = error
# VSTHRD114: Avoid returning a null Task
dotnet_diagnostic.VSTHRD114.severity = error
# VSTHRD200: Use "Async" suffix for awaitable methods
Expand Down
9 changes: 9 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Enable this file in your git config: git config blame.ignoreRevsFile .git-blame-ignore-revs
# Enabled on GitHub automatically

# Close Over APIs, was mostly reformatting
945d61634784db2e51f894c9606e785a099fd23d
# Dotnet Format Style
44387b36695607248cebb9467ad48061c19354cb
# Formatting Fixup
7233182585b63760992545c7407b17fb2965bc5c
21 changes: 0 additions & 21 deletions .github/dependabot.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ changelog:
labels:
- Ignore
authors:
- dependabot[bot]
- dependabot
categories:
- title: Enhancements & Features ✨
labels:
Expand Down
35 changes: 13 additions & 22 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,7 @@ on:
push:
branches: [ main ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
paths-ignore: [ '**/*.md' ]
merge_group:
types: [ checks_requested ]
schedule:
# 6am UTC which should be after a new daily build posts
- cron: "0 6 * * *"

jobs:
ci:
Expand All @@ -22,7 +15,6 @@ jobs:
runs-on: ${{ matrix.os }}
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_GENERATE_ASPNET_CERTIFICATE: false
steps:
- name: Checkout repository
Expand All @@ -32,35 +24,34 @@ jobs:
uses: actions/setup-dotnet@v4
with:
cache: true
cache-dependency-path: '**/packages.lock.json'
dotnet-version: |
6.0.x
7.0.x
8.0.x
source-url: https://pkgs.dev.azure.com/mscodehub/PowerShellCore/_packaging/PowerShellCore_PublicPackages/nuget/v3/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.AZURE_NUGET_TOKEN }}
cache-dependency-path: '**/*.csproj'
global-json-file: ./global.json

- name: Install PSResources
shell: pwsh
run: ./tools/installPSResources.ps1

- name: Download daily install script
- name: Download PowerShell install script
uses: actions/checkout@v4
with:
repository: PowerShell/PowerShell
path: pwsh
sparse-checkout: tools/install-powershell.ps1
sparse-checkout-cone-mode: false

- name: Build and test
- name: Install preview
shell: pwsh
run: Invoke-Build -Configuration Release ${{ github.event_name == 'merge_group' && 'TestFull' || 'Test' }}
run: ./pwsh/tools/install-powershell.ps1 -Preview -Destination ./preview

- name: If debugging, start upterm for interactive pipeline troubleshooting
if: ${{ runner.debug == 1 }}
uses: lhotari/action-upterm@v1
with:
wait-timeout-minutes: 1

- name: Test with daily
if: ${{ github.event_name == 'schedule' }}
- name: Build and test
shell: pwsh
run: ./pwsh/tools/install-powershell.ps1 -Daily && Invoke-Build -Configuration Release TestE2EDaily
run: Invoke-Build -Configuration Release TestFull

- name: Upload build artifacts
if: always()
Expand Down
56 changes: 0 additions & 56 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

7 changes: 1 addition & 6 deletions .github/workflows/emacs-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
paths-ignore: [ '**/*.md' ]
merge_group:
types: [ checks_requested ]

Expand All @@ -16,7 +15,6 @@ jobs:
runs-on: ubuntu-latest
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_GENERATE_ASPNET_CERTIFICATE: false
steps:
- name: Checkout repository
Expand All @@ -26,10 +24,7 @@ jobs:
uses: actions/setup-dotnet@v4
with:
cache: true
cache-dependency-path: '**/packages.lock.json'
source-url: https://pkgs.dev.azure.com/mscodehub/PowerShellCore/_packaging/PowerShellCore_PublicPackages/nuget/v3/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.AZURE_NUGET_TOKEN }}
cache-dependency-path: '**/*.csproj'

- name: Install PSResources
shell: pwsh
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/vim-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
paths-ignore: [ '**/*.md' ]
merge_group:
types: [ checks_requested ]

Expand All @@ -16,7 +15,6 @@ jobs:
runs-on: ubuntu-latest
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_GENERATE_ASPNET_CERTIFICATE: false
steps:
- name: Checkout repository
Expand All @@ -26,10 +24,7 @@ jobs:
uses: actions/setup-dotnet@v4
with:
cache: true
cache-dependency-path: '**/packages.lock.json'
source-url: https://pkgs.dev.azure.com/mscodehub/PowerShellCore/_packaging/PowerShellCore_PublicPackages/nuget/v3/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.AZURE_NUGET_TOKEN }}
cache-dependency-path: '**/*.csproj'

- name: Install PSResources
shell: pwsh
Expand All @@ -40,7 +35,10 @@ jobs:
run: Invoke-Build Build

- name: Install Vim
id: vim
uses: rhysd/action-setup-vim@v1
with:
version: nightly

- name: Checkout vim-ps1
uses: actions/checkout@v4
Expand All @@ -64,6 +62,9 @@ jobs:
repository: thinca/vim-themis
path: vim-themis

# - name: Debug if run with debugging enabled
# uses: lhotari/action-upterm@v1

- name: Run Themis with full CLI
env:
THEMIS_VIM: ${{ steps.vim.outputs.executable }}
Expand Down
83 changes: 4 additions & 79 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,79 +1,4 @@
_ReSharper*
[Bb]in
bin-nano
obj
objd
out/
tmp/
.tmp
App_Data
*.user
*.sln.cache
*.suo
TestResults
test/emacs-session.json
[Tt]humbs.db
buildd.*
release/
*.log
*.bak
packages
OACRTemp/
build_logs/
lock
/public/inc/bldver.*
/public/inc/sources.ver
/data
/target
.corext/gen
registered_data.ini
.vs/
.dotnet/
module/Plaster
module/PSScriptAnalyzer
module/PSReadLine
docs/_site/
docs/_repo/
docs/metadata/
*.zip

# Generated build info file
src/PowerShellEditorServices.Hosting/BuildInfo.cs

# quickbuild.exe
/VersionGeneratingLogs/
QLogs
QLocal
QTestLogs

# bad tlb/chm generators in nmake tree
*.tlb
*.chm

# dumb silverlight
ClientBin/

# dump azure
*.build.csdef
csx/

# Don't include ScriptAnalyzer binaries
PowerShellEditorServices/**
PowerShellEditorServices.NoNano/**

PowerShellEditorServices.sln.ide/edb.chk
PowerShellEditorServices.sln.ide/edbres00001.jrs
PowerShellEditorServices.sln.ide/storage.ide
*.jrs

# Don't include PlatyPS generated MAML
module/PowerShellEditorServices/Commands/en-US/*-help.xml

# Don't include Third Party Notices in module folder
module/PowerShellEditorServices/Third\ Party\ Notices.txt

# Visual Studio for Mac generated file
*.userprefs

# JetBrains generated file (Rider, intelliJ)
.idea/
bin/
obj/
module/
TestResults/
Loading