diff --git a/src/test/e2e/globalSetup.ts b/src/test/e2e/globalSetup.ts index 40a3e49..7cea83d 100644 --- a/src/test/e2e/globalSetup.ts +++ b/src/test/e2e/globalSetup.ts @@ -1,8 +1,11 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import { downloadAndUnzipVSCode, resolveCliArgsFromVSCodeExecutablePath } from '@vscode/test-electron'; - +import * as semver from "semver"; +const config = require('../../../package.json'); +const vscodeVer = config.engines.vscode; +const vscodeVersion = semver.minVersion(vscodeVer)!.version; export default async () => { - const vscodePath = await downloadAndUnzipVSCode('insiders'); + const vscodePath = await downloadAndUnzipVSCode(vscodeVersion!); resolveCliArgsFromVSCodeExecutablePath(vscodePath); };