Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
167 commits
Select commit Hold shift + click to select a range
0ad7a06
Bump mocha-junit-reporter from 1.23.0 to 1.23.1 (#2095)
dependabot-preview[bot] Jul 25, 2019
1acdee9
Implement #1611 - provide dynamic debug config (#2084)
rkeithhill Jul 28, 2019
e410eff
Bump vsce from 1.65.0 to 1.66.0 (#2107)
dependabot-preview[bot] Jul 30, 2019
d18bc49
Bump typescript from 3.5.2 to 3.5.3 (#2090)
dependabot-preview[bot] Aug 2, 2019
2335806
Bump vscode from 1.1.35 to 1.1.36 (#2123)
dependabot-preview[bot] Aug 6, 2019
449f7a0
Merge pull request #2094 from SydneyhSmith/master
SydneyhSmith Aug 22, 2019
a11e27c
Bump tslint from 5.18.0 to 5.19.0 (#2156)
dependabot-preview[bot] Aug 27, 2019
447a295
Added functionality to install the User variant of Stable Edition (#2…
Lothindir Sep 5, 2019
c15f9dc
Add powershell.codeFormatting.autoCorrectAliases setting to add suppo…
bergmeister Sep 10, 2019
66a39de
Prompt to update PowerShell version (#2105)
TylerLeonhardt Sep 16, 2019
e2e322f
null check on activeTerminal to workaround vscode behavior (#2141)
TylerLeonhardt Sep 16, 2019
fa72d50
Bump tslint from 5.19.0 to 5.20.0 (#2180)
dependabot-preview[bot] Sep 17, 2019
22dc162
Bump @types/semver from 6.0.1 to 6.0.2 (#2181)
dependabot-preview[bot] Sep 17, 2019
02236bd
Changelog tools (#1961)
rjmholt Sep 17, 2019
9232410
Rev version to 2019.9.0 (#2185)
TylerLeonhardt Sep 17, 2019
1804af0
rev changelog for v2019.9.0 (#2186)
TylerLeonhardt Sep 17, 2019
1b55f78
[ignore] Move to yml for release (#2191)
TylerLeonhardt Sep 20, 2019
e7b87c0
[ignore] last yml change (#2193)
TylerLeonhardt Sep 20, 2019
28bd907
[ignore] ship on monday
TylerLeonhardt Sep 20, 2019
3c4791d
[ignore] update ISE compatibility link (#2204)
TylerLeonhardt Sep 23, 2019
325a00d
[Ignore] Update changelog and ADS script (#2209)
TylerLeonhardt Sep 24, 2019
9c4e65f
Bump @types/node-fetch from 2.5.0 to 2.5.2 (#2207)
dependabot-preview[bot] Oct 2, 2019
661a9ee
don't delete the session file to fix restart capability. (#2223)
TylerLeonhardt Oct 3, 2019
fcc13c1
Changes needed for Omnisharp migration of PowerShellEditorServices (#…
TylerLeonhardt Oct 3, 2019
3f915b6
Fix version check in Install-VSCode.ps1 (#2232)
rjmholt Oct 7, 2019
7df727d
Bump vsce from 1.66.0 to 1.67.1 (#2233)
dependabot-preview[bot] Oct 8, 2019
5f1257c
Provide Run Selection button in Editor Title Menu (#2224)
Oct 16, 2019
4b0b965
Surface Invoke Registered Editor Command (#2225)
Oct 16, 2019
3e16efd
Bump vsce from 1.67.1 to 1.68.0 (#2248)
dependabot-preview[bot] Oct 25, 2019
ae72089
Fix tests by using API Key for CI (#2255)
TylerLeonhardt Oct 28, 2019
fb0551f
Bump @types/semver from 6.0.2 to 6.2.0 (#2257)
dependabot-preview[bot] Oct 29, 2019
d76f2e2
Discover new PowerShell installations, fix startup issue with Windows…
rjmholt Oct 29, 2019
c7a2adb
Fix crash when PowerShell selection is changed (#2261)
rjmholt Oct 30, 2019
d65ccf8
Introduce new setting that controls UseLegacyReadLine (#2262)
TylerLeonhardt Oct 31, 2019
6a47a89
Use list of files for release since build happens first (#2260)
TylerLeonhardt Oct 31, 2019
d2b5e7f
Update powershell-preview CHANGELOG for v2019.11.0 (#2263)
rjmholt Oct 31, 2019
2ea9252
[Ignore] Allow VSTS env var override (#2264)
rjmholt Oct 31, 2019
a938420
Downgrade vsce (#2266)
rjmholt Nov 1, 2019
3862d2a
[Ignore] Add new logging docs (#2254)
TylerLeonhardt Nov 4, 2019
c3c2e09
Increment version and doc fix. (#2273)
TylerLeonhardt Nov 4, 2019
b4ad466
Bump @types/node-fetch from 2.5.2 to 2.5.3 (#2283)
dependabot-preview[bot] Nov 5, 2019
fcadea5
Bump mock-fs from 4.10.2 to 4.10.3 (#2281)
dependabot-preview[bot] Nov 5, 2019
517fe5c
buttons show up for untitled files (#2294)
TylerLeonhardt Nov 12, 2019
5110dad
Bump tslint from 5.20.0 to 5.20.1 (#2297)
dependabot-preview[bot] Nov 13, 2019
c1e1ff8
Bump @types/semver from 6.0.2 to 6.2.0 (#2301)
dependabot-preview[bot] Nov 13, 2019
0a5b5be
[Security] Bump https-proxy-agent from 2.2.2 to 2.2.4 (#2309)
dependabot-preview[bot] Nov 19, 2019
b9eafbb
Use `powerShellDefaultVersion` everywhere and stop using `powerShellE…
TylerLeonhardt Nov 26, 2019
8657ad5
Bump @types/node-fetch from 2.5.3 to 2.5.4 (#2330)
dependabot-preview[bot] Nov 26, 2019
adb18ea
Bump @types/sinon from 7.5.0 to 7.5.1 (#2329)
dependabot-preview[bot] Nov 26, 2019
dba7d83
Fix update powershell feature on windows (#2325)
TylerLeonhardt Nov 27, 2019
fb59b37
Handle clearTerminal message by using vscode clear command (#2316)
TylerLeonhardt Nov 27, 2019
9033f14
Update URLs to point to master branch (#2338)
TylerLeonhardt Dec 3, 2019
5a4e111
Start EditorServices without start script (#2348)
rjmholt Dec 10, 2019
71a0b1f
[Ignore] Update powershell-preview CHANGELOG for v2019.12.0 (#2360)
rjmholt Dec 12, 2019
17add9d
Add commands to set and unset ISE Compatibility features (#2335)
corbob Dec 13, 2019
f2c925d
Add configuration to enable/disable banner (#2398)
rjmholt Jan 7, 2020
17c520a
Make PowerShell names case insensitive for configuration (#2399)
rjmholt Jan 7, 2020
9f9f6ca
Add -Login startup option (#2400)
rjmholt Jan 10, 2020
63b9dee
Bump mock-fs from 4.10.3 to 4.10.4 (#2340)
dependabot-preview[bot] Jan 10, 2020
f37b41e
Bump sinon from 7.5.0 to 8.0.4 (#2403)
dependabot-preview[bot] Jan 10, 2020
2301577
Bump semver from 6.3.0 to 7.1.1 (#2391)
dependabot-preview[bot] Jan 10, 2020
9a531e3
[Ignore] disable dependabot for legacy (#2416)
TylerLeonhardt Jan 13, 2020
6796055
Bump mocha-junit-reporter from 1.23.1 to 1.23.2 (#2413)
dependabot-preview[bot] Jan 13, 2020
32c9623
[Ignore] Update powershell-preview CHANGELOG for v2020.1.0 (#2415)
rjmholt Jan 14, 2020
a10ee7b
actually hide terminal until debug session (#2437)
TylerLeonhardt Jan 27, 2020
fcf48ee
Bump mocha-junit-reporter from 1.23.2 to 1.23.3 (#2429)
dependabot-preview[bot] Jan 27, 2020
13b941c
Bump sinon from 8.0.4 to 8.1.1 (#2440)
dependabot-preview[bot] Jan 27, 2020
50a2611
Bump @types/semver from 6.2.0 to 7.1.0 (#2444)
dependabot-preview[bot] Jan 28, 2020
ab94b61
[Ignore] Add "bergmeister" to poshchan list of people with rebuild ri…
bergmeister Jan 29, 2020
bf0c48b
Add explorer context menus for 'Run/Debug Pester tests' (#2445)
bergmeister Feb 3, 2020
cc9ce31
Problem matcher support for Context errors. (#2447)
tillig Feb 3, 2020
522e914
Gracefully fail when trying to debug an Untitled file using Temp debu…
TylerLeonhardt Feb 6, 2020
735d3d0
Bump semver from 7.1.1 to 7.1.2 (#2456)
dependabot-preview[bot] Feb 6, 2020
67017cb
Bump @types/mocha from 5.2.7 to 7.0.1 (#2457)
dependabot-preview[bot] Feb 6, 2020
bf02f0b
Update mac Image to 10.14 in CI as 10.13 is going to be deprecated in…
bergmeister Feb 10, 2020
e4ced23
Fix incorrect cmdlet reference (#2470)
rbleattler Feb 13, 2020
92c1c75
Bump semver from 7.1.2 to 7.1.3 (#2474)
dependabot-preview[bot] Feb 18, 2020
5483758
Close other pwsh's in the VSCode instance (#2469)
TylerLeonhardt Feb 18, 2020
3d92d5d
Skip UpdatePowerShell tests in CI on macOS (#2479)
TylerLeonhardt Feb 19, 2020
33654e1
Bump tslint from 5.20.1 to 6.0.0 (#2442)
dependabot-preview[bot] Feb 19, 2020
b31a23d
[Ignore] Refactor the startup arguments method to use async/await (#2…
rjmholt Feb 19, 2020
07e3bc1
[Ignore] Update changelog for 2020.2.0 preview release (#2481)
rjmholt Feb 19, 2020
95ab062
[Ignore] Add pwsh install step to build (#2483)
rjmholt Feb 20, 2020
495c7d9
Remove caption usage from message (#2477)
rjmholt Feb 20, 2020
b6fb0c4
Make PSSA look for a file in the workspace root by default (#2484)
rjmholt Feb 20, 2020
c64287a
Bump sinon from 8.1.1 to 9.0.0 (#2494)
dependabot-preview[bot] Feb 24, 2020
17d9a59
Bump mock-fs from 4.10.4 to 4.11.0 (#2492)
dependabot-preview[bot] Feb 24, 2020
88a3324
Workaround for terminal PID freeze (#2498)
rjmholt Feb 26, 2020
fadc480
[Ignore] Add new additions to .vscodeignore (#2502)
rjmholt Feb 28, 2020
f1f46ca
[Ignore] Update vsce to use auto link opt out (#2500)
rjmholt Feb 28, 2020
d431617
Enable dotnet global tool pwsh (#2503)
rjmholt Feb 28, 2020
3dff85b
[Ignore] Update preview changelog (#2509)
rjmholt Mar 2, 2020
e86eacb
[Ignore] Combined Preview Release Changelog (#2511)
SydneyhSmith Mar 2, 2020
7ac3631
Bump @types/sinon from 7.5.1 to 7.5.2 (#2515)
dependabot-preview[bot] Mar 3, 2020
23be380
Bump @types/node-fetch from 2.5.4 to 2.5.5 (#2514)
dependabot-preview[bot] Mar 3, 2020
051d9eb
[Ignore] Add CommentHelp CL item (#2517)
TylerLeonhardt Mar 3, 2020
94f3624
Add "files" and "search" to configurationSection (#2524)
TylerLeonhardt Mar 6, 2020
ead1513
[Ignore] Log errors with session file (#2540)
rjmholt Mar 9, 2020
ea82375
Bump @types/mocha from 7.0.1 to 7.0.2 (#2541)
dependabot-preview[bot] Mar 10, 2020
9051b99
Run single Pester test (#2441)
nohwnd Mar 12, 2020
4845153
ms-vscode.csharp to ms-dotnettools.csharp (#2533)
devlead Mar 12, 2020
1e734c7
Changelog for v2020.3.0-preview (#2553)
TylerLeonhardt Mar 12, 2020
5e391ab
Bump sinon from 9.0.0 to 9.0.1 (#2563)
dependabot-preview[bot] Mar 17, 2020
08caebf
[ignore] terms Misc better language in CL (#2582)
TylerLeonhardt Mar 24, 2020
fe6ac24
Bump rewire from 4.0.1 to 5.0.0 (#2562)
dependabot-preview[bot] Mar 24, 2020
39c0fe6
Bump tslint from 6.0.0 to 6.1.0 (#2561)
dependabot-preview[bot] Mar 24, 2020
d95496f
[Ignore] Update troubleshooting.md (#2586)
TylerLeonhardt Mar 26, 2020
bd2c36a
Update version to v2020.3.1-preview and update changelog (#2588)
TylerLeonhardt Mar 26, 2020
b856a07
Rev version to v2020.3.2 update CHANGELOG (#2597)
TylerLeonhardt Mar 31, 2020
cc33e82
Ability to specify PSES branch and fork in CI build (#2604)
TylerLeonhardt Apr 2, 2020
01ac857
Fix Pester code lense (#2606)
nohwnd Apr 7, 2020
b7e723b
Fix link in TOC: link to 'Exchange Online Connection' returns 404 (#2…
hjorslev Apr 8, 2020
cb82e76
Use PowerShell Daily in CI (#2617)
TylerLeonhardt Apr 8, 2020
fe984b6
Bump @types/sinon from 7.5.2 to 9.0.0 (#2612)
dependabot-preview[bot] Apr 8, 2020
2f05240
Bump vsce from 1.74.0 to 1.75.0 (#2611)
dependabot-preview[bot] Apr 8, 2020
5112e09
Bump tslint from 6.1.0 to 6.1.1 (#2613)
dependabot-preview[bot] Apr 8, 2020
a3f959a
Rev version to v2020.4.0-preview and update CL (#2621)
TylerLeonhardt Apr 8, 2020
0764663
Rev version to v2020.4.1 and update CHANGELOG (#2625)
TylerLeonhardt Apr 9, 2020
fa6e23a
Rev version to v2020.4.2-preview and update CHANGELOG (#2630)
TylerLeonhardt Apr 13, 2020
321a8cf
[ignore] try adding config file for other issue templates
TylerLeonhardt Apr 14, 2020
84ab638
[ignore] remote this because we link to PSSA
TylerLeonhardt Apr 14, 2020
5308677
[ignore] remote this because we link to EditorSyntax
TylerLeonhardt Apr 14, 2020
d5d1602
[Ignore] add general questions
TylerLeonhardt Apr 14, 2020
cf2d9fe
Bump sinon from 9.0.1 to 9.0.2 (#2633)
dependabot-preview[bot] Apr 15, 2020
c5195c8
Bump semver from 7.1.3 to 7.2.3 (#2632)
dependabot-preview[bot] Apr 15, 2020
aee7746
Bump @types/node-fetch from 2.5.5 to 2.5.6 (#2631)
dependabot-preview[bot] Apr 15, 2020
26d3821
[Ignore] rev version to v2020.4.3-preview and Update CL (#2635)
TylerLeonhardt Apr 15, 2020
13e5ea5
[Ignore] update other link in Install-VSCode script
TylerLeonhardt Apr 20, 2020
c6ccc68
Add workspace file to load both vscode-powershell and PSES (#2645)
rkeithhill Apr 20, 2020
79d7313
Display preview state and version info in PSIC startup banner (#2644)
rkeithhill Apr 20, 2020
7dadd34
Clean up WaitForSessionFile logic and support increasing timeout with…
TylerLeonhardt Apr 23, 2020
5cb23fa
Remove broken 'Select PSScriptAnalyzer Rules' command (#2659)
bergmeister Apr 27, 2020
f3629cd
Bump mock-fs from 4.11.0 to 4.12.0 (#2662)
dependabot-preview[bot] Apr 28, 2020
53d49c1
Bump tslint from 6.1.1 to 6.1.2 (#2663)
dependabot-preview[bot] Apr 28, 2020
56688bf
Bump vscode-extension-telemetry from 0.1.2 to 0.1.3 (#2664)
dependabot-preview[bot] Apr 28, 2020
45bc466
Bump @types/node-fetch from 2.5.6 to 2.5.7 (#2665)
dependabot-preview[bot] Apr 28, 2020
7a3861f
Add setting for the PackageManagement update feature (#2651)
TylerLeonhardt Apr 28, 2020
986c910
Bump semver from 7.2.3 to 7.3.2 (#2650)
dependabot-preview[bot] Apr 28, 2020
fc1030d
update cl for v2020.4.3-preview (#2668)
TylerLeonhardt Apr 28, 2020
89b5c64
[Ignore] use forward slash for code-workspace
TylerLeonhardt May 1, 2020
8436c5a
Use in-memory debug adapter instead of spinning up new process (#2672)
TylerLeonhardt May 1, 2020
d8e3ceb
Bump vscode-extension-telemetry from 0.1.3 to 0.1.5 (#2678)
dependabot-preview[bot] May 4, 2020
60e5648
PSSA 1.19.0 settings (#2674)
bergmeister May 4, 2020
69a34ba
Fix Pester invocation for 3x versions (#2676)
nohwnd May 4, 2020
76164f9
Replace link since vscode or github doesn't play nice with # (#2681)
TylerLeonhardt May 6, 2020
b335bcf
Update powershell-preview CHANGELOG for v2020.5.0 (#2682)
TylerLeonhardt May 6, 2020
46ce28f
Update package-lock.json (#2684)
bergmeister May 9, 2020
caf2135
Cleanup unused variables (#2686)
bergmeister May 11, 2020
c59f3eb
Respect user choice when dismissing the powerShellExePath dialog (#2688)
bergmeister May 11, 2020
0a1dab2
Bump vscode-extension-telemetry from 0.1.5 to 0.1.6 (#2691)
dependabot-preview[bot] May 11, 2020
4db9e34
🔧🚗 Migrate setting value of codeFormatting.whitespaceAroundPipe (if p…
bergmeister May 12, 2020
e2541cd
Add debug output option for Pester (#2670)
nohwnd May 12, 2020
4a53953
[Ignore] update CL with new items
TylerLeonhardt May 13, 2020
f435da4
[Ignore] dashes in CL
TylerLeonhardt May 13, 2020
939379d
Change default of powershell.codeFormatting.pipelineIndentationStyle …
bergmeister May 13, 2020
f6b06cc
Bump typescript from 3.5.3 to 3.8.3 (#2513)
dependabot-preview[bot] May 18, 2020
3256d4e
Bump vscode-languageclient from 5.2.1 to 6.1.3 (#2580)
dependabot-preview[bot] May 18, 2020
252a2c5
Tweak whitespaceAroundPipe settings migration logic to do it only onc…
bergmeister May 18, 2020
78bbb83
Add buttons for moving the terminal around. (#2704)
MartinGC94 May 19, 2020
3d7befa
Bump @types/sinon from 9.0.0 to 9.0.1 (#2709)
dependabot-preview[bot] May 19, 2020
d654b65
Bump typescript from 3.8.3 to 3.9.2 (#2711)
dependabot-preview[bot] May 19, 2020
e529f19
Bump @types/semver from 7.1.0 to 7.2.0 (#2710)
dependabot-preview[bot] May 19, 2020
bf189e5
Add coloring for $ and wordSepartors (#2702)
MJECloud May 19, 2020
55ebbaf
Move to lowercase now that we use Omnisharp's serializer (#2705)
TylerLeonhardt May 21, 2020
c20f32c
Bump typescript from 3.9.2 to 3.9.3 (#2722)
dependabot-preview[bot] May 28, 2020
be26db7
Bump @types/sinon from 9.0.1 to 9.0.4 (#2723)
dependabot-preview[bot] May 28, 2020
a210bb4
Add new Pester 5 GA Output Types (#2726)
JustinGrote May 28, 2020
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
6 changes: 0 additions & 6 deletions .dependabot/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,3 @@ update_configs:
- package_manager: "javascript"
directory: "/"
update_schedule: "weekly"

# Will also update legacy branch
- package_manager: "javascript"
directory: "/"
update_schedule: "weekly"
target_branch: "legacy/1.x"
28 changes: 0 additions & 28 deletions .github/ISSUE_TEMPLATE/Bug_Report_PSScriptAnalyzer.md

This file was deleted.

8 changes: 0 additions & 8 deletions .github/ISSUE_TEMPLATE/Bug_Report_Syntax_Colorization.md

This file was deleted.

11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
blank_issues_enabled: false
contact_links:
- name: Editor Syntax Colorization bug report 🌈
url: https://github.com/PowerShell/EditorSyntax/issues/new
about: Editor syntax colorization bugs are tracked in a separate GitHub repo.
- name: Script analysis or formatting bug report 🚦🖌️
url: https://github.com/PowerShell/PSScriptAnalyzer/issues/new/choose
about: Script analysis and formatting are provided by PSScriptAnalyzer. Before submitting an issue, check to see whether the issue lies with PSScriptAnalyzer or with the VSCode PowerShell extension.
- name: General question?
url: https://aka.ms/psdiscord
about: "You can also ask general Visual Studio Code questions in the #vscode channel of the PowerShell community Discord. Slack is also available at https://aka.ms/psslack"
1 change: 1 addition & 0 deletions .poshchan/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"authorized_users": [
"adityapatwardhan",
"anmenaga",
"bergmeister",
"daxian-dbw",
"JamesWTruher",
"PaulHigin",
Expand Down
8 changes: 7 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": ["${workspaceRoot}/out/test/**/*.js"],
"preLaunchTask": "Build"
"preLaunchTask": "Build",
"skipFiles": [
"${workspaceFolder}/node_modules/**/*",
"${workspaceFolder}/lib/**/*",
"/private/var/folders/**/*",
"<node_internals>/**/*"
]
},
{
"name": "Attach",
Expand Down
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"windows": {
"options": {
"shell": {
"executable": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
"executable": "pwsh.exe",
"args": [ "-NoProfile", "-ExecutionPolicy", "Bypass", "-Command" ]
}
}
Expand Down
7 changes: 7 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,10 @@ out/test/**
test/**
sessions/**
scripts/Install-VSCode.ps1
tools/**
.poshchan/**
.github/**
.vsts-ci/**
build.ps1
tsconfig.json
tslint.json
2 changes: 1 addition & 1 deletion .vsts-ci/azure-pipelines-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:

- job: macOS
pool:
vmImage: 'macOS-10.13'
vmImage: 'macOS-10.14'
steps:
- template: templates/ci-general.yml

Expand Down
43 changes: 43 additions & 0 deletions .vsts-ci/azure-pipelines-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: PR-$(System.PullRequest.PullRequestNumber)-$(Date:yyyyMMdd)$(Rev:.rr)

variables:
# Don't download unneeded packages
- name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE
value: 'true'
# Improve performance by not sending telemetry
- name: DOTNET_CLI_TELEMETRY_OPTOUT
value: 'true'

trigger:
batch: true
branches:
include:
- master
- legacy/1.x
paths:
exclude:
- /.dependabot/*
- /.poshchan/*
- /.github/**/*
- /.vscode/**/*
- /.vsts-ci/misc-analysis.yml
- /tools/**/*
- .editorconfig
- .gitattributes
- .gitignore
- /docs/**/*
- /CHANGELOG.md
- /CONTRIBUTING.md
- /README.md
- /LICENSE
- /CODE_OF_CONDUCT.md

jobs:

- job: 'ReleaseBuild'
displayName: 'Build release'
pool:
name: 'Package ES CodeHub Lab E'
demands: DotNetFramework
steps:
- template: templates/release-general.yml
22 changes: 21 additions & 1 deletion .vsts-ci/templates/ci-general.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,30 @@
steps:
# Setup
- powershell: |
Write-Host "Installing PowerShell Daily..."

# Use `AGENT_TEMPDIRECTORY` to make sure the downloaded PowerShell is cleaned up.
$powerShellPath = Join-Path -Path $env:AGENT_TEMPDIRECTORY -ChildPath 'powershell'
Invoke-WebRequest -Uri https://aka.ms/install-powershell.ps1 -OutFile ./install-powershell.ps1

./install-powershell.ps1 -Destination $powerShellPath -Daily

# Using `prependpath` to update the PATH just for this build.
Write-Host "##vso[task.prependpath]$powerShellPath"
displayName: Install PowerShell Daily
- pwsh: '$PSVersionTable'
displayName: Display PowerShell version information
- pwsh: Write-Host "##vso[build.updatebuildnumber]$env:BUILD_SOURCEBRANCHNAME-$env:BUILD_SOURCEVERSION-$((get-date).ToString("yyyyMMddhhmmss"))"
displayName: Set Build Name for Non-PR
condition: ne(variables['Build.Reason'], 'PullRequest')
- task: PowerShell@2
displayName: 'Set environment variables for VSTS (Phase 1)'
inputs:
targetType: filePath
filePath: ./tools/releaseBuild/setVstsVariables.ps1
- pwsh: |
git clone https://github.com/PowerShell/PowerShellEditorServices.git ../PowerShellEditorServices
Write-Host "Cloning '$env:PSES_BRANCH' branch from '$env:PSES_FORK/PowerShellEditorServices'"
git clone --single-branch --branch $env:PSES_BRANCH https://github.com/$env:PSES_FORK/PowerShellEditorServices.git ../PowerShellEditorServices
Install-Module InvokeBuild -Scope CurrentUser -Force
Install-Module PlatyPS -Scope CurrentUser -Force
# Build
Expand Down
143 changes: 143 additions & 0 deletions .vsts-ci/templates/release-general.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
steps:
- powershell: |
Write-Host "Installing pwsh..."
if (Get-Command pwsh -ErrorAction Ignore)
{
Write-Host "pwsh already installed, skipping"
return
}
$powerShellPath = Join-Path -Path $env:AGENT_TEMPDIRECTORY -ChildPath 'powershell'
Invoke-WebRequest -Uri https://raw.githubusercontent.com/PowerShell/PowerShell/master/tools/install-powershell.ps1 -outfile ./install-powershell.ps1
./install-powershell.ps1 -Destination $powerShellPath
$vstsCommandString = "vso[task.setvariable variable=PATH]$powerShellPath;$env:PATH"
Write-Host "sending " + $vstsCommandString
Write-Host "##$vstsCommandString"
displayName: Install PowerShell Core

- pwsh: Write-Host "##vso[build.updatebuildnumber]$env:BUILD_SOURCEBRANCHNAME-$env:BUILD_SOURCEVERSION-$((get-date).ToString("yyyyMMddhhmmss"))"
displayName: Set Build Name for Non-PR
condition: ne(variables['Build.Reason'], 'PullRequest')

- pwsh: |
Get-ChildItem -Path env:
displayName: Capture environment
condition: succeededOrFailed()

- task: PkgESSetupBuild@10
displayName: 'Package ES - Setup Build'
inputs:
productName: vscode-powershell

- task: PowerShell@2
displayName: 'Set environment variables for VSTS (Phase 1)'
inputs:
targetType: filePath
filePath: ./tools/releaseBuild/setVstsVariables.ps1

- task: PowerShell@2
displayName: 'Find PowerShellEditorServices build'
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
inputs:
targetType: filePath
filePath: ./tools/releaseBuild/findPsesBuild.ps1

- task: DownloadBuildArtifacts@0
displayName: 'Download Build Artifacts from PowerShell Editor Services'
inputs:
buildType: specific
project: '8e2735c1-3674-408a-bcab-87f089ea29d5'
pipeline: 1056
buildVersionToDownload: specific
buildId: '$(PSES_BUILDID)'
downloadType: single
artifactName: 'PowerShellEditorServices'
downloadPath: '$(Build.SourcesDirectory)'

- pwsh: |
Install-Module InvokeBuild -Force
Invoke-Build Release

- task: PublishTestResults@2
inputs:
testRunner: JUnit
testResultsFiles: '**/test-results.xml'
condition: succeededOrFailed()

- task: PkgESCodeSign@10
displayName: 'CodeSign tools/releaseBuild/signing.xml'
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
inputs:
signConfigXml: tools/releaseBuild/signing.xml
inPathRoot: '$(Build.ArtifactStagingDirectory)'
outPathRoot: '$(Build.ArtifactStagingDirectory)\Signed'

- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
displayName: 'Component Detection'

- task: AntiMalware@3
inputs:
InputType: 'Basic'
ScanType: 'CustomScan'
FileDirPath: '$(Build.ArtifactStagingDirectory)'
EnableServices: false
SupportLogOnError: false
TreatSignatureUpdateFailureAs: 'Warning'
SignatureFreshness: 'UpToDate'
TreatStaleSignatureAs: 'Error'

- task: PoliCheck@1
condition: succeededOrFailed()
inputs:
targetType: F
optionsFC: 0
optionsXS: 0
optionsPE: '1|2|3|4'
optionsHMENABLE: 0
optionsFTPATH: '$(Build.SourcesDirectory)\tools\terms\FileTypeSet.xml'
# toolVersion: 5.8.2.1

- pwsh: |
Get-ChildItem -Exclude node_modules | Get-ChildItem -Recurse | ForEach-Object FullName > "$env:BUILD_SOURCESDIRECTORY/credscan.tsv"
displayName: Create credscan.tsv as the list of files to scan

- task: CredScan@2
condition: succeededOrFailed()
inputs:
debugMode: false
scanFolder: '$(Build.SourcesDirectory)/credscan.tsv'

# Publish results as artifacts
- task: PublishSecurityAnalysisLogs@3
condition: succeededOrFailed()
inputs:
ArtifactName: 'CodeAnalysisLogs'
ArtifactType: 'Container'

# Publish to TSA server
- task: TSAUpload@1
condition: succeededOrFailed()
continueOnError: true
inputs:
tsaVersion: 'TsaV2'
codebase: 'Existing'
tsaEnvironment: 'PROD'
codeBaseName: 'PowerShell_PowerShellEditorServices_20190917'
uploadAPIScan: false
uploadBinSkim: false
uploadCredScan: true
uploadFortifySCA: false
uploadFxCop: false
uploadModernCop: false
uploadPoliCheck: true
uploadPREfast: false
uploadRoslyn: false
uploadTSLint: false
uploadAsync: true

- task: PowerShell@1
displayName: 'Upload artifacts'
inputs:
scriptType: inlineScript
inlineScript: 'Write-Host "##vso[artifact.upload containerfolder=vscode-powershell;artifactname=vscode-powershell]$(System.ArtifactsDirectory)\Signed"'
Loading