Skip to content

Commit 87b7b01

Browse files
authored
Merge branch 'main' into justingrote/feature/inlayHints
2 parents 36286e0 + 09080fe commit 87b7b01

File tree

123 files changed

+5239
-10688
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+5239
-10688
lines changed

.config/tsaoptions.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"instanceUrl": "https://msazure.visualstudio.com",
3+
"projectName": "One",
4+
"areaPath": "One\\MGMT\\Compute\\Powershell\\Powershell",
5+
"notificationAliases": [ "[email protected]", "[email protected]" ],
6+
"codebaseName": "PowerShell_PowerShellEditorServices_20240313",
7+
"tools": [ "CredScan", "PoliCheck", "BinSkim" ]
8+
}

.editorconfig

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ dotnet_diagnostic.CA1068.severity = error
5454
# CA1501: Avoid excessive inheritance
5555
dotnet_diagnostic.CA1501.severity = error
5656
# CA1502: Avoid excessive complexity
57-
dotnet_diagnostic.CA1502.severity = warning
57+
dotnet_diagnostic.CA1502.severity = silent
5858
# CA1505: Avoid unmaintainable code
5959
dotnet_diagnostic.CA1505.severity = error
6060
# CA1506: Avoid excessive class coupling
61-
dotnet_diagnostic.CA1506.severity = warning
61+
dotnet_diagnostic.CA1506.severity = silent
6262
# CA1507: Use nameof in place of string
6363
dotnet_diagnostic.CA1507.severity = error
6464
# CA1508: Avoid dead conditional code
@@ -95,22 +95,22 @@ dotnet_diagnostic.RCS1210.severity = error
9595
# RCS1036: Remove unnecessary blank line
9696
dotnet_diagnostic.RCS1036.severity = error
9797
# RCS1075: Avoid empty catch clause that catches System.Exception
98-
dotnet_diagnostic.RCS1075.severity = suggestion
98+
dotnet_diagnostic.RCS1075.severity = error
9999
# RCS1170: Use read-only auto-implemented property
100100
dotnet_diagnostic.RCS1170.severity = error
101101

102102
# VSTHRD002: Avoid problematic synchronous waits
103-
dotnet_diagnostic.VSTHRD002.severity = suggestion
103+
dotnet_diagnostic.VSTHRD002.severity = error
104104
# VSTHRD003: Avoid awaiting foreign Tasks
105-
dotnet_diagnostic.VSTHRD003.severity = suggestion
105+
dotnet_diagnostic.VSTHRD003.severity = error
106106
# VSTHRD105: Avoid method overloads that assume TaskScheduler.Current
107-
dotnet_diagnostic.VSTHRD105.severity = suggestion
107+
dotnet_diagnostic.VSTHRD105.severity = error
108108
# VSTHRD100: Avoid async void methods
109-
dotnet_diagnostic.VSTHRD100.severity = suggestion
109+
dotnet_diagnostic.VSTHRD100.severity = error
110110
# VSTHRD103: Call async methods when in an async method
111-
dotnet_diagnostic.VSTHRD103.severity = suggestion
111+
dotnet_diagnostic.VSTHRD103.severity = error
112112
# VSTHRD110: Observe result of async calls
113-
dotnet_diagnostic.VSTHRD110.severity = suggestion
113+
dotnet_diagnostic.VSTHRD110.severity = error
114114
# VSTHRD114: Avoid returning a null Task
115115
dotnet_diagnostic.VSTHRD114.severity = error
116116
# VSTHRD200: Use "Async" suffix for awaitable methods

.github/dependabot.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/release.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
changelog:
2+
exclude:
3+
labels:
4+
- Ignore
5+
authors:
6+
- dependabot
7+
categories:
8+
- title: Enhancements & Features ✨
9+
labels:
10+
- Issue-Enhancement
11+
- title: Squashed Bugs 🐛
12+
labels:
13+
- Issue-Bug
14+
- title: Other Changes 🙏
15+
labels:
16+
- "*"

.github/workflows/ci-test.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ on:
44
push:
55
branches: [ main ]
66
pull_request:
7-
# The branches below must be a subset of the branches above
87
branches: [ main ]
9-
paths-ignore: [ '**/*.md' ]
108
merge_group:
119
types: [ checks_requested ]
1210
schedule:
@@ -22,7 +20,6 @@ jobs:
2220
runs-on: ${{ matrix.os }}
2321
env:
2422
DOTNET_NOLOGO: true
25-
DOTNET_CLI_TELEMETRY_OPTOUT: true
2623
DOTNET_GENERATE_ASPNET_CERTIFICATE: false
2724
steps:
2825
- name: Checkout repository
@@ -32,11 +29,9 @@ jobs:
3229
uses: actions/setup-dotnet@v4
3330
with:
3431
cache: true
35-
cache-dependency-path: '**/packages.lock.json'
36-
dotnet-version: |
37-
6.0.x
38-
7.0.x
39-
8.0.x
32+
cache-dependency-path: '**/*.csproj'
33+
dotnet-version: 6.0.x
34+
global-json-file: "./global.json"
4035

4136
- name: Install PSResources
4237
shell: pwsh
@@ -50,14 +45,20 @@ jobs:
5045
sparse-checkout: tools/install-powershell.ps1
5146
sparse-checkout-cone-mode: false
5247

48+
- name: Install daily
49+
if: ${{ github.event_name == 'schedule' || github.event_name == 'merge_group' }}
50+
continue-on-error: true
51+
shell: pwsh
52+
run: ./pwsh/tools/install-powershell.ps1 -Daily
53+
5354
- name: Build and test
5455
shell: pwsh
55-
run: Invoke-Build ${{ github.event_name == 'merge_group' && 'TestFull' || 'Test' }}
56+
run: Invoke-Build -Configuration Release ${{ github.event_name == 'merge_group' && 'TestFull' || 'Test' }}
5657

57-
- name: Test with daily
58+
- name: Test daily
5859
if: ${{ github.event_name == 'schedule' }}
5960
shell: pwsh
60-
run: ./pwsh/tools/install-powershell.ps1 -Daily && Invoke-Build TestE2EDaily
61+
run: Invoke-Build -Configuration Release TestE2EDaily
6162

6263
- name: Upload build artifacts
6364
if: always()

.github/workflows/codeql-analysis.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

.github/workflows/emacs-test.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
pull_request:
77
# The branches below must be a subset of the branches above
88
branches: [ main ]
9-
paths-ignore: [ '**/*.md' ]
109
merge_group:
1110
types: [ checks_requested ]
1211

@@ -16,7 +15,6 @@ jobs:
1615
runs-on: ubuntu-latest
1716
env:
1817
DOTNET_NOLOGO: true
19-
DOTNET_CLI_TELEMETRY_OPTOUT: true
2018
DOTNET_GENERATE_ASPNET_CERTIFICATE: false
2119
steps:
2220
- name: Checkout repository
@@ -26,7 +24,7 @@ jobs:
2624
uses: actions/setup-dotnet@v4
2725
with:
2826
cache: true
29-
cache-dependency-path: '**/packages.lock.json'
27+
cache-dependency-path: '**/*.csproj'
3028

3129
- name: Install PSResources
3230
shell: pwsh
@@ -41,7 +39,12 @@ jobs:
4139
with:
4240
version: '28.2'
4341

44-
- name: Run ERT
42+
- name: Run ERT with full CLI
4543
run: |
4644
emacs -Q --batch -f package-refresh-contents --eval "(package-install 'eglot)"
4745
emacs -Q --batch -l test/emacs-test.el -f ert-run-tests-batch-and-exit
46+
47+
- name: Run ERT with simple CLI
48+
run: |
49+
emacs -Q --batch -f package-refresh-contents --eval "(package-install 'eglot)"
50+
emacs -Q --batch -l test/emacs-simple-test.el -f ert-run-tests-batch-and-exit

.github/workflows/vim-test.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
pull_request:
77
# The branches below must be a subset of the branches above
88
branches: [ main ]
9-
paths-ignore: [ '**/*.md' ]
109
merge_group:
1110
types: [ checks_requested ]
1211

@@ -16,7 +15,6 @@ jobs:
1615
runs-on: ubuntu-latest
1716
env:
1817
DOTNET_NOLOGO: true
19-
DOTNET_CLI_TELEMETRY_OPTOUT: true
2018
DOTNET_GENERATE_ASPNET_CERTIFICATE: false
2119
steps:
2220
- name: Checkout repository
@@ -26,7 +24,7 @@ jobs:
2624
uses: actions/setup-dotnet@v4
2725
with:
2826
cache: true
29-
cache-dependency-path: '**/packages.lock.json'
27+
cache-dependency-path: '**/*.csproj'
3028

3129
- name: Install PSResources
3230
shell: pwsh
@@ -37,7 +35,10 @@ jobs:
3735
run: Invoke-Build Build
3836

3937
- name: Install Vim
38+
id: vim
4039
uses: rhysd/action-setup-vim@v1
40+
with:
41+
version: nightly
4142

4243
- name: Checkout vim-ps1
4344
uses: actions/checkout@v4
@@ -61,7 +62,15 @@ jobs:
6162
repository: thinca/vim-themis
6263
path: vim-themis
6364

64-
- name: Run Themis
65+
# - name: Debug if run with debugging enabled
66+
# uses: lhotari/action-upterm@v1
67+
68+
- name: Run Themis with full CLI
6569
env:
6670
THEMIS_VIM: ${{ steps.vim.outputs.executable }}
6771
run: ./vim-themis/bin/themis ./test/vim-test.vim
72+
73+
- name: Run Themis with simple CLI
74+
env:
75+
THEMIS_VIM: ${{ steps.vim.outputs.executable }}
76+
run: ./vim-themis/bin/themis ./test/vim-simple-test.vim

.gitignore

Lines changed: 7 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,7 @@
1-
_ReSharper*
2-
[Bb]in
3-
bin-nano
4-
obj
5-
objd
6-
out/
7-
tmp/
8-
.tmp
9-
App_Data
10-
*.user
11-
*.sln.cache
12-
*.suo
13-
TestResults
14-
test/emacs-session.json
15-
[Tt]humbs.db
16-
buildd.*
17-
release/
18-
*.log
19-
*.bak
20-
packages
21-
OACRTemp/
22-
build_logs/
23-
lock
24-
/public/inc/bldver.*
25-
/public/inc/sources.ver
26-
/data
27-
/target
28-
.corext/gen
29-
registered_data.ini
30-
.vs/
31-
.dotnet/
32-
module/Plaster
33-
module/PSScriptAnalyzer
34-
module/PSReadLine
35-
docs/_site/
36-
docs/_repo/
37-
docs/metadata/
38-
*.zip
39-
40-
# Generated build info file
41-
src/PowerShellEditorServices.Hosting/BuildInfo.cs
42-
43-
# quickbuild.exe
44-
/VersionGeneratingLogs/
45-
QLogs
46-
QLocal
47-
QTestLogs
48-
49-
# bad tlb/chm generators in nmake tree
50-
*.tlb
51-
*.chm
52-
53-
# dumb silverlight
54-
ClientBin/
55-
56-
# dump azure
57-
*.build.csdef
58-
csx/
59-
60-
# Don't include ScriptAnalyzer binaries
61-
PowerShellEditorServices/**
62-
PowerShellEditorServices.NoNano/**
63-
64-
PowerShellEditorServices.sln.ide/edb.chk
65-
PowerShellEditorServices.sln.ide/edbres00001.jrs
66-
PowerShellEditorServices.sln.ide/storage.ide
67-
*.jrs
68-
69-
# Don't include PlatyPS generated MAML
70-
module/PowerShellEditorServices/Commands/en-US/*-help.xml
71-
module/PowerShellEditorServices.VSCode/en-US/*-help.xml
72-
73-
# Don't include Third Party Notices in module folder
74-
module/PowerShellEditorServices/Third\ Party\ Notices.txt
75-
76-
# Visual Studio for Mac generated file
77-
*.userprefs
78-
79-
# JetBrains generated file (Rider, intelliJ)
80-
.idea/
1+
bin/
2+
obj/
3+
module/PowerShellEditorServices/NOTICE.txt
4+
module/PowerShellEditorServices/Commands/en-US/
5+
module/PSReadLine/
6+
module/PSScriptAnalyzer/
7+
TestResults/

0 commit comments

Comments
 (0)