Socket
Book a DemoInstallSign in
Socket

@donaldpipowitch/vscode-extension-core

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@donaldpipowitch/vscode-extension-core

Exports some useful APIs to get information about VS Code extensions.

1.0.0
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

@donaldpipowitch/vscode-extension-core

Exports some useful APIs to get information about VS Code extensions.

⚠️ This package uses a non-public Visual Studio MarketPlace APIs which could break at any time. ⚠️

💡 This package was created as a part of the "How to create a language server and VS Code extension" article. Don't expect a fully featured and supported package, but feel free to use it, if you find it useful. 💡

Setup

$ npm install @donaldpipowitch/vscode-extension-core

Usage

Search for extensions:

import { search } from '@donaldpipowitch/vscode-extension-core';

// search for "prettier"-related extensions
const query = 'prettier';
const { request } = search(query);

request.then(console.log);
// Logs:
// [
//   {
//     "publisher": {
//       "publisherId": "d16f4e39-2ffb-44e3-9c0d-79d873570e3a",
//       "publisherName": "esbenp",
//       "displayName": "Esben Petersen",
//       "flags": "none"
//     },
//     "extensionId": "96fa4707-6983-4489-b7c5-d5ffdfdcce90",
//     "extensionName": "prettier-vscode",
//     "displayName": "Prettier - Code formatter",
//     "flags": "validated, public",
//     "lastUpdated": "2018-08-09T12:05:04.413Z",
//     "publishedDate": "2017-01-10T19:52:02.703Z",
//     "releaseDate": "2017-01-10T19:52:02.703Z",
//     "shortDescription": "VS Code plugin for prettier/prettier",
//     "deploymentType": 0
//   },
//   // ...
// ]

Cancel search:

import { search } from '@donaldpipowitch/vscode-extension-core';

// search for "prettier"-related extensions
const query = 'prettier';
const { cancel, request } = search(query);
cancel();

request.then(console.log);
// Logs: undefined

FAQs

Package last updated on 11 Dec 2018

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.