Socket
Socket
Sign inDemoInstall

@vscode/vsce

Package Overview
Dependencies
Maintainers
7
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vscode/vsce

VS Code Extensions Manager


Version published
Weekly downloads
115K
increased by8.82%
Maintainers
7
Weekly downloads
 
Created

What is @vscode/vsce?

@vscode/vsce is a command-line tool designed to help developers package, publish, and manage Visual Studio Code extensions. It simplifies the process of creating and distributing extensions by providing a set of commands that handle common tasks such as packaging the extension into a .vsix file, publishing it to the Visual Studio Code Marketplace, and more.

What are @vscode/vsce's main functionalities?

Packaging an Extension

This feature allows you to package your Visual Studio Code extension into a .vsix file, which can then be shared or published. The code sample demonstrates how to use the `createVSIX` method to package an extension.

const vsce = require('@vscode/vsce');

async function packageExtension() {
  try {
    await vsce.createVSIX();
    console.log('Extension packaged successfully');
  } catch (error) {
    console.error('Error packaging extension:', error);
  }
}

packageExtension();

Publishing an Extension

This feature allows you to publish your extension to the Visual Studio Code Marketplace. The code sample demonstrates how to use the `publish` method with a personal access token to publish an extension.

const vsce = require('@vscode/vsce');

async function publishExtension() {
  try {
    await vsce.publish({
      pat: 'your-personal-access-token'
    });
    console.log('Extension published successfully');
  } catch (error) {
    console.error('Error publishing extension:', error);
  }
}

publishExtension();

Listing Published Extensions

This feature allows you to list all the extensions you have published. The code sample demonstrates how to use the `list` method to retrieve and display the list of published extensions.

const vsce = require('@vscode/vsce');

async function listExtensions() {
  try {
    const extensions = await vsce.list();
    console.log('Published extensions:', extensions);
  } catch (error) {
    console.error('Error listing extensions:', error);
  }
}

listExtensions();

Other packages similar to @vscode/vsce

Keywords

FAQs

Package last updated on 03 Sep 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc