Skip to content

Commit 0687013

Browse files
committed
Merge branch 'rename-provider' of https://github.com/Razmo99/vscode-powershell into rename-provider
2 parents a33c8bc + 0b6716d commit 0687013

Some content is hidden

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

53 files changed

+2134
-3071
lines changed

.eslintrc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@
6969
"@typescript-eslint/restrict-template-expressions": [
7070
"off"
7171
],
72+
"@typescript-eslint/prefer-nullish-coalescing": [
73+
"error",
74+
{
75+
"ignoreConditionalTests": true,
76+
"ignoreMixedLogicalExpressions": true
77+
}
78+
],
7279
"header/header": [
7380
2,
7481
"line",

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: 🐛 Bug report
22
description: Open an issue about a bug that needs fixing.
3-
labels: Issue-Bug
3+
labels: ["Issue-Bug", "Needs: Triage"]
44
body:
55
- type: checkboxes
66
attributes:
@@ -25,22 +25,33 @@ body:
2525
id: powershell-version
2626
attributes:
2727
label: PowerShell Version
28-
description: Paste verbatim output from `$PSVersionTable` below. Please double-check that this is the PowerShell version that VS Code is set to use.
28+
description: Paste verbatim output from `$PSVersionTable; $Host` below. **Please include `$Host`** so we know this version is from the Extension Terminal!
2929
render: console
3030
placeholder: |
31-
PS> $PSVersionTable
31+
PS> $PSVersionTable; $Host
3232
3333
Name Value
3434
---- -----
35-
PSVersion 7.1.3
35+
PSVersion 7.4.0
3636
PSEdition Core
37-
GitCommitId 7.1.3
38-
OS Darwin 20.4.0 Darwin Kernel
39-
Platform Unix
37+
GitCommitId 7.4.0
38+
OS Microsoft Windows 10.0.22631
39+
Platform Win32NT
4040
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
4141
PSRemotingProtocolVersion 2.3
4242
SerializationVersion 1.1.0.1
4343
WSManStackVersion 3.0
44+
45+
Name : Visual Studio Code Host
46+
Version : 2023.11.0
47+
InstanceId : 803ce61b-6187-4574-9c1f-827ebb11b8b6
48+
UI : System.Management.Automation.Internal.Host.InternalHostUserInterface
49+
CurrentCulture : en-US
50+
CurrentUICulture : en-US
51+
PrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
52+
DebuggerEnabled : True
53+
IsRunspacePushed : False
54+
Runspace : System.Management.Automation.Runspaces.LocalRunspace
4455
validations:
4556
required: true
4657
- type: textarea

.github/ISSUE_TEMPLATE/feature-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: ✨ Feature request
22
description: Open an issue about a potential new feature or improvement.
3-
labels: Issue-Enhancement
3+
labels: ["Issue-Enhancement", "Needs: Triage"]
44
body:
55
- type: checkboxes
66
attributes:

.github/dependabot.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,33 @@
11
version: 2
2+
registries:
3+
npm-azure:
4+
type: npm-registry
5+
url: https://pkgs.dev.azure.com/powershell-rel/PowerShellEditorServices/_packaging/PSESFeed/npm/registry/
6+
username: powershell-rel
7+
password: ${{ secrets.AZURE_NPM_PASSWORD }}
28
updates:
39
- package-ecosystem: npm
410
directory: "/"
11+
registries:
12+
- npm-azure
13+
labels: [ ]
514
schedule:
615
interval: weekly
716
open-pull-requests-limit: 10
817
groups:
9-
ESLint:
18+
eslint:
1019
patterns:
1120
- "esbuild"
1221
- "eslint"
1322
- "@typescript-eslint/*"
23+
types:
24+
patterns:
25+
- "@types/*"
1426
ignore:
1527
- dependency-name: "untildify"
1628
versions: ["5.x"]
1729
- package-ecosystem: github-actions
1830
directory: "/"
31+
labels: [ ]
1932
schedule:
2033
interval: weekly

.github/policies/resourceManagement.yml

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

.github/workflows/ci-test.yml

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
name: CI Tests
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
# The branches below must be a subset of the branches above
8+
branches: [ main ]
9+
paths-ignore: [ '**/*.md' ]
10+
merge_group:
11+
types: [ checks_requested ]
12+
13+
jobs:
14+
ci:
15+
name: node
16+
strategy:
17+
matrix:
18+
os: [ windows-latest, macos-latest, ubuntu-latest ]
19+
runs-on: ${{ matrix.os }}
20+
env:
21+
DOTNET_NOLOGO: true
22+
DOTNET_CLI_TELEMETRY_OPTOUT: true
23+
DOTNET_GENERATE_ASPNET_CERTIFICATE: false
24+
DISPLAY: ':99.0'
25+
defaults:
26+
run:
27+
working-directory: vscode-powershell
28+
steps:
29+
- name: Checkout PowerShellEditorServices
30+
uses: actions/checkout@v4
31+
with:
32+
repository: PowerShell/PowerShellEditorServices
33+
path: PowerShellEditorServices
34+
35+
- name: Checkout vscode-powershell
36+
uses: actions/checkout@v4
37+
with:
38+
path: vscode-powershell
39+
40+
- name: Install dotnet
41+
uses: actions/setup-dotnet@v4
42+
with:
43+
cache: true
44+
cache-dependency-path: 'PowerShellEditorServices/**/packages.lock.json'
45+
global-json-file: PowerShellEditorServices/global.json
46+
47+
- name: Install PSResources
48+
shell: pwsh
49+
run: ../PowerShellEditorServices/tools/installPSResources.ps1
50+
51+
- name: Deploy NPM configuration
52+
shell: pwsh
53+
run: Copy-Item .github/workflows/npmrc .npmrc
54+
55+
- uses: actions/setup-node@v4
56+
with:
57+
node-version: 18
58+
cache: npm
59+
cache-dependency-path: vscode-powershell/package-lock.json
60+
61+
- name: Start X virtual framebuffer
62+
if: matrix.os == 'ubuntu-latest'
63+
run: /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
64+
65+
- name: Build, test and package
66+
shell: pwsh
67+
run: Invoke-Build -Configuration Release
68+
env:
69+
NPM_PASSWORD: ${{ secrets.AZURE_NPM_PASSWORD_BASE64}}
70+
71+
- name: Upload build artifacts
72+
uses: actions/upload-artifact@v4
73+
if: always()
74+
with:
75+
name: vscode-powershell-vsix-${{ matrix.os }}
76+
path: vscode-powershell/powershell-*.vsix
77+
78+
- name: Upload test results
79+
uses: actions/upload-artifact@v4
80+
if: always()
81+
with:
82+
name: vscode-powershell-test-results-${{ matrix.os }}
83+
path: '**/test-results.xml'
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Issue Housekeeping
2+
3+
permissions:
4+
issues: write
5+
6+
on:
7+
schedule:
8+
- cron: "0 * * * *"
9+
10+
jobs:
11+
stale-resolved-issues:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/stale@v9
15+
name: Label resolved issues as needing fix verification
16+
with:
17+
any-of-labels: "Resolution-Answered,Resolution-Duplicate,Resolution-External,Resolution-Fixed,Resolution-Inactive"
18+
stale-issue-label: "Needs: Fix Verification"
19+
days-before-stale: 0
20+
days-before-close: -1
21+
stale-issue-message: "This issue has been labeled as resolved, please verify the provided fix (or other reason)."
22+
labels-to-remove-when-stale: "Needs: Maintainer Attention,Needs: Triage"
23+
stale-fixed-issues:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/stale@v9
27+
name: Close issues needing fix verification after 1 week of inactivity
28+
with:
29+
stale-issue-label: "Needs: Fix Verification"
30+
days-before-stale: -1
31+
labels-to-add-when-unstale: "Needs: Maintainer Attention"
32+
close-issue-reason: completed
33+
close-issue-message: "This issue has been labeled as needing fix verification and has not had any activity a week. It has been closed for housekeeping purposes."
34+
stale-feedback-issues:
35+
runs-on: ubuntu-latest
36+
steps:
37+
- uses: actions/stale@v9
38+
name: Close issues needing author feedback after 1 week of inactivity
39+
with:
40+
stale-issue-label: "Needs: Author Feedback"
41+
days-before-stale: -1
42+
labels-to-add-when-unstale: "Needs: Maintainer Attention"
43+
labels-to-remove-when-unstale: "Needs: Triage"
44+
close-issue-reason: completed
45+
close-issue-message: "This issue has been labeled as needing feedback and has not had any activity a week. It has been closed for housekeeping purposes."

0 commit comments

Comments
 (0)