Skip to content

Commit 2c9a8e0

Browse files
authored
Merge branch 'PowerShell:main' into rename-function-customvisitor
2 parents 6f5e416 + 5ad99ba commit 2c9a8e0

File tree

110 files changed

+8252
-3156
lines changed

Some content is hidden

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

110 files changed

+8252
-3156
lines changed

.config/tsaoptions.json

+8
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

+2-7
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,6 @@ dotnet_diagnostic.VSTHRD114.severity = error
116116
# VSTHRD200: Use "Async" suffix for awaitable methods
117117
dotnet_diagnostic.VSTHRD200.severity = silent
118118

119-
# xUnit2013: Do not use equality check to check for collection size
120-
dotnet_diagnostic.xUnit2013.severity = error
121-
# xUnit1004: Test methods should not be skipped
122-
dotnet_diagnostic.xUnit1004.severity = suggestion
123-
124119
# IDE0001: Simplify name
125120
dotnet_diagnostic.IDE0001.severity = error
126121
# IDE0002: Simplify member access
@@ -160,7 +155,7 @@ dotnet_diagnostic.IDE0026.severity = error
160155
# IDE0027: Use expression body for accessors
161156
dotnet_diagnostic.IDE0027.severity = error
162157
# IDE0028: Use collection initializers
163-
dotnet_diagnostic.IDE0028.severity = error
158+
dotnet_diagnostic.IDE0028.severity = suggestion
164159
# IDE0029: Use coalesce expression (non-nullable types)
165160
dotnet_diagnostic.IDE0029.severity = error
166161
# IDE0030: Use coalesce expression (nullable types)
@@ -224,7 +219,7 @@ dotnet_diagnostic.IDE0082.severity = error
224219
# IDE0083: Use pattern matching (not operator)
225220
dotnet_diagnostic.IDE0083.severity = error
226221
# IDE0090: Simplify new expression
227-
dotnet_diagnostic.IDE0090.severity = error
222+
dotnet_diagnostic.IDE0090.severity = suggestion
228223
# IDE0100: Remove unnecessary equality operator
229224
dotnet_diagnostic.IDE0100.severity = error
230225
# IDE0110: Remove unnecessary discard

.github/ISSUE_TEMPLATE/bug-report.yml

+88
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
name: 🐛 Bug report
2+
description: Open an issue about a bug that needs fixing.
3+
labels: ["Issue-Bug", "Needs: Triage"]
4+
body:
5+
- type: checkboxes
6+
attributes:
7+
label: Prerequisites
8+
options:
9+
- label: I have written a descriptive issue title.
10+
required: true
11+
- label: I have searched all [_open and closed_ issues](https://github.com/PowerShell/PowerShellEditorServices/issues?q=is%3Aissue) to ensure it has not already been reported.
12+
- label: I have read the [troubleshooting](https://github.com/PowerShell/vscode-powershell/blob/main/docs/troubleshooting.md) guide.
13+
- label: I am sure this issue is with _PowerShell Editor Services itself_ and does not reproduce in a standalone [PowerShell](https://github.com/PowerShell/PowerShell/issues/new/choose) instance, and is not an issue with my editor.
14+
- label: I have verified that I am using the latest version of PowerShell Editor Services.
15+
- label: If this is a security issue, I have read the [security issue reporting guidance](https://github.com/PowerShell/vscode-powershell/blob/main/SECURITY.md).
16+
- type: textarea
17+
id: summary
18+
attributes:
19+
label: Summary
20+
description: Explain the problem briefly below.
21+
placeholder: I am experiencing a problem with X. I think Y should be happening but Z is actually happening.
22+
validations:
23+
required: true
24+
- type: textarea
25+
id: powershell-version
26+
attributes:
27+
label: PowerShell Version
28+
description: Paste verbatim output from `$PSVersionTable` below. Please double-check that this is the PowerShell version that is running Editor Services.
29+
render: console
30+
placeholder: |
31+
PS> $PSVersionTable
32+
33+
Name Value
34+
---- -----
35+
PSVersion 7.4.0
36+
PSEdition Core
37+
GitCommitId 7.4.0
38+
OS Darwin 20.4.0 Darwin Kernel
39+
Platform Unix
40+
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
41+
PSRemotingProtocolVersion 2.3
42+
SerializationVersion 1.1.0.1
43+
WSManStackVersion 3.0
44+
validations:
45+
required: true
46+
- type: textarea
47+
id: vscode-version
48+
attributes:
49+
label: Editor Version
50+
description: Paste verbatim output from `emacs --version` or `vim --version` etc. below. **Please also describe how you setup the relevant LSP client, such as `eglot` or `vim-lsp` and share your configuration!**
51+
render: console
52+
placeholder: |
53+
PS> emacs --version
54+
GNU Emacs 29.1
55+
...
56+
validations:
57+
required: true
58+
- type: textarea
59+
id: extension-version
60+
attributes:
61+
label: PowerShell Editor Services Version
62+
description: If you have interactive access to the PowerShell host running Editor Services, paste verbatim output of `$psEditor.EditorServicesVersion` below.
63+
render: console
64+
placeholder: |
65+
PS> $psEditor.EditorServicesVersion
66+
67+
Major Minor Build Revision
68+
----- ----- ----- --------
69+
3 14 0 0
70+
validations:
71+
required: true
72+
- type: textarea
73+
id: steps-to-reproduce
74+
attributes:
75+
label: Steps to Reproduce
76+
description: List of steps, sample code, failing test or link to a project that reproduces the behavior. Make sure you place a stack trace inside a code (```) block to avoid linking unrelated issues.
77+
validations:
78+
required: true
79+
- type: textarea
80+
id: visuals
81+
attributes:
82+
label: Visuals
83+
description: Please upload images or animations that can be used to reproduce issues in the area below. Try the [Steps Recorder](https://support.microsoft.com/en-us/windows/record-steps-to-reproduce-a-problem-46582a9b-620f-2e36-00c9-04e25d784e47) on Windows or [Screenshot](https://support.apple.com/en-us/HT208721) on macOS.
84+
- type: textarea
85+
id: logs
86+
attributes:
87+
label: Logs
88+
description: Please upload logs collected by following these [instructions](https://github.com/PowerShell/vscode-powershell/blob/main/docs/troubleshooting.md#logs) for VS Code (otherwise however your editor is setup) in the area below. Be careful to scrub sensitive information!

.github/ISSUE_TEMPLATE/config.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: 🙋 Ask a question
4+
url: https://aka.ms/powershell-vscode-discord
5+
about: "Find us in #vscode on the PowerShell Community Discord"
+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: ✨ Feature request
2+
description: Open an issue about a potential new feature or improvement.
3+
labels: ["Issue-Enhancement", "Needs: Triage"]
4+
body:
5+
- type: checkboxes
6+
attributes:
7+
label: Prerequisites
8+
options:
9+
- label: I have written a descriptive issue title.
10+
required: true
11+
- label: I have searched all [issues](https://github.com/PowerShell/PowerShellEditorServices/issues?q=is%3Aissue) to ensure it has not already been requested.
12+
required: true
13+
- type: textarea
14+
id: summary
15+
attributes:
16+
label: Summary
17+
description: Explain the feature request below.
18+
placeholder: I would like to do X because it would be useful for Y and I cannot currently do it with Z.
19+
validations:
20+
required: true
21+
- type: textarea
22+
id: proposed-design
23+
attributes:
24+
label: Proposed Design
25+
description: Optionally explain any technical design below.
26+
placeholder: We could accomplish this by extending X to take Y and yield Z.

.github/dependabot.yml

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ version: 2
22
updates:
33
- package-ecosystem: nuget
44
directory: "/"
5+
labels: [ ]
56
schedule:
67
interval: weekly
78
open-pull-requests-limit: 10
@@ -15,5 +16,6 @@ updates:
1516
- "xunit.*"
1617
- package-ecosystem: github-actions
1718
directory: "/"
19+
labels: [ ]
1820
schedule:
1921
interval: weekly

.github/policies/resourceManagement.yml

-150
This file was deleted.

.github/release.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
changelog:
2+
exclude:
3+
labels:
4+
- Ignore
5+
authors:
6+
- dependabot[bot]
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+
- "*"

0 commit comments

Comments
 (0)