Skip to content

Commit 667e17f

Browse files
Revert modifications caused by Code's test run (#3993)
VS Code 1.67.0 and up now modify the local `package.json` file during test run. Because we first run our tests in CI and then package our extension, this modification gets saved into the extension package. We need to check the file back out from Git after the test run.
1 parent b4409fd commit 667e17f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: vscode-powershell.build.ps1

+2
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ task Build Restore, {
118118
task Test -If (!($env:TF_BUILD -and $global:IsLinux)) Build, {
119119
Write-Host "`n### Running extension tests" -ForegroundColor Green
120120
exec { & npm run test }
121+
# Reset the state of files modified by tests
122+
exec { git checkout package.json test/.vscode/settings.json}
121123
}
122124

123125
task TestEditorServices -If (Get-EditorServicesPath) {

0 commit comments

Comments
 (0)