
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@grconrad/vscode-binaries
Advanced tools
This project exists to bundle VS Code binaries for Mac and Linux x64 in an npm package that can be scanned and hosted in a non-public artifact repository for use in CI environments where networking is restricted (specifically for running integration tests of VS Code extensions that require launching VS Code).
Its version will match the version of VS Code releases it contains for these two platforms.
Note: VS Code source is found at microsoft/vscode.
Anyone can download platform-specific versions of VS Code at any time from the public VS Code download site. However, it's common for CI environments to exist behind a firewall where outbound network access is limited to internal endpoints such as private artifact repositories.
This project allows VS Code binaries to be brought into such an environment, with relevant
dependencies mentioned as devDependencies
in package.json so that package scanners can do their
job properly (checking for licenses, security vulnerabilities, etc.) and projects that build VS Code
extensions can get the needed VS Code binary.
Consume this package as a dev dependency (add it to devDependencies
). When this package is
installed, its postinstall script extracts the appropriate binary based on the client platform.
Point to the binary inside bin/linux-x64 or bin/darwin when using vscode-test to run your extension integration tests.
Example:
await runTests({
vscodeExecutablePath: downloadDirToExecutablePath(
path.resolve(
extensionDevelopmentPath,
`node_modules/@grconrad/vscode-binaries/bin/${process.platform === "darwin" ? "darwin" : "linux-x64"}`
)
),
extensionDevelopmentPath,
extensionTestsPath
});
(See VS Code extension testing docs for more context.)
This setup should allow running vscode-test based integration tests of a VS Code extension on either a Mac or Linux x64 box.
To build a new version there are two options.
Option 1: Script
Run the build script with the target VS Code release version number, e.g.
./scripts/build-new-version.sh 1.44.0
This downloads the vscode project's package.json (matching the release version you specified); sets our package.json to have the same version; takes vscode's devDependencies and dependencies, merges them, and writes to our devDependencies; sorts our resulting package.json; then downloads the corresponding VS Code release binaries from the public download site.
Option 2: Manual process
version
to target version of VS Code release (example: 1.44.0)dependencies
and devDependencies
.dependencies
and devDependencies
into our package.json devDependencies
(overwrite).npx sort-package-json
npm run build
npm publish
(use --dry-run
to see what would be published)
FAQs
Wrapper of VS Code binaries
The npm package @grconrad/vscode-binaries receives a total of 136 weekly downloads. As such, @grconrad/vscode-binaries popularity was classified as not popular.
We found that @grconrad/vscode-binaries demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.