- Fix deleting old Insiders in electron not working
- Throw a typed
TestRunFailedError
on failure instead of a string.
- Allow installing unreleased builds using an
-unreleased
suffix, such asinsiders-unreleased
. - Allow passing different data directories in
runVSCodeCommand
, using it for extension development. - Improve the appearance progress reporting.
- Add
runVSCodeCommand
method and workaround for Node CVE-2024-27980
- Fix archive extraction on Windows failing when run under Electron
- Fix archive extraction on macOS and Linux sometimes failing
- Remove detection for unsupported win32 builds
- Add length and hash validation for downloaded builds
- Fix windows sometimes failing on EPERM in download (again)
- Fix windows sometimes failing on EPERM in download
- Fix "insiders" string not matching correctly
- Disable GPU sandbox by default, fixing failures in some CI's.
- Fix download method not working for the vscode cli.
- Gracefully kill VS Code if SIGINT is received
- Automatically use the most recent version matching
engines.vscode
in extensions' package.json - Allow insiders
version
s to be specified, such asversion: "1.76.0-insider"
- Reduce the likelihood of 'broken' installations on interrupted downloads
- Remove dependency on outdated
unzipper
module
- Use existing downloads if internet is inaccessible
- Fix tests sometimes hanging on windows
- Add default for platform in
resolveCliPathFromVSCodeExecutablePath
to match docs
- Add an idle
timeout
for downloads
- Automatically retry if VS Code download fails
- Fix uncaught error when failing to connect to the extension service
- Support arm64 builds on Linux
- Fix executable path being returned incorrectly on cross-platform downloads
- Fix tests sometimes failing with EACCESS errors on OSX
- Fix excessive logging when running in CI
- Add a progress
reporter
option on theTestOptions
, which can be used to see more detail or silence download progress.
- Fix
@vscode/test-electron
auto updating - Use arm64 version of VS Code on relevant platforms
- Add
resolveCliArgsFromVSCodeExecutablePath
- Fix extra new lines added to test output
- Run tests using a separate instance of VS Code by default. This can be disabled by setting
reuseMachineInstall: true
.
- Add
--disable-workspace-trust
flag when running tests by default
- Rename to
@vscode/test-electron
- Expose generic
download
API with support forcachePath
- Don't write progress report when output is not connected to tty #91
- Fix wrong http proxy agent used #82
- Fix download failing on windows with long file paths
- Make installation platform aware #78
- Download and unzip directly for faster setup
- Add download progress indicator
- Show signal that caused vscode to quit if no exit code is present #64
- Use "exit" event in runTest.ts. #74.
- Propagate signal when subprocess terminates. #56.
- Add
platform
option. By default, Windows/macOS/Linux defaults to usewin32-archive
,darwin
andlinux-x64
. On Windows,win32-x64-archive
is also available for using 64 bit version of VS Code. #18. - Allow running offline when
version
is specified and a matching version is found locally. #51. - Show error when failing to unzip downloaded vscode archive. #50.
- Add
--no-sandbox
option to defaultlaunchArgs
for microsoft/vscode#84238.
- Reject
downloadAndUnzipVSCode
whenhttps.get
fails to parse the JSON sent back from VS Code update server. #44. - Reject
downloadAndUnzipVSCode
promise when download fails due to network error. #49.
- Update https-proxy-agent for https://www.npmjs.com/advisories/1184.
- Remove downloaded Insiders at
.vscode-test/vscode-insiders
if it's outdated. #25.
- Add
resolveCliPathFromVSCodeExecutablePath
that would resolvevscodeExecutablePath
to VS Code CLI path, which can be used for extension management features such as--install-extension
and--uninstall-extension
. #31.
- Revert faulty fix for #29.
- Use correct CLI path for launching VS Code on macOS / Linux. #29.
- Stable release for changes introduced in the
next
tags.
- Improve console message for downloading VS Code. microsoft/vscode#76090.
- Improve logging. No more prefix
Spawn Error
and directstdout
andstderr
of launched process toconsole.log
andconsole.error
. stable
added as a download version option.
- Updated API:
- One single set of options.
extensionPath
=>extensionDevelopmentPath
to align with VS Code launch flagstestRunnerPath
=>extensionTestsPath
to align with VS Code launch flagstestRunnerEnv
=>extensionTestsEnv
to align with VS Code launch flagsadditionalLaunchArgs
=>launchArgs
testWorkspace
removed. Pass path to file/folder/workspace as first argument tolaunchArgs
instead.locale
removed. Pass--locale
tolaunchArgs
instead.
- Improved API documentation.
testWorkspace
is now optional.
- Fix Linux crash because
testRunnerEnv
is not merged withprocess.env
for spawning the testing process. #14.
- Add
testRunnerEnv
option. #13.
- Fix macOS Insiders incorrect url resolve.
- One more fix for Insiders url resolver.
- Correct Insiders download link.
- Correctly resolve Insider exectuable. #12.
- Log errors from stderr of the command to launch VS Code.
- π Add TypeScript as dev dependency. #9.
- π Adding a simpler way of running tests with only
vscodeExecutablePath
andlaunchArgs
. #8.
- π Set
ExecutionPolicy
for Windows unzip command. #6. - π Fix NPM http/https proxy handling. #5.
- Fix the option
vscodeLaunchArgs
so it's being used for launching VS Code. #7.
- Log folder to download VS Code into.