npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

mill-vscode-extension-samples

v0.0.1

Published

<h1 align="center"> VS Code Extension Samples </h1>

Downloads

3

Readme

This repository contains sample code illustrating the VS Code extension API. Each sample is a self-contained extension that explains one topic in VS Code API or VS Code's Contribution Points. You can read, play with or adapt from these samples to create your own extensions.

You can expect from each sample:

  • An explanation of its functionality
  • A gif or screenshot demonstrating its usage
  • Link to a guide on VS Code website, if it has one
  • Listing of used VS Code API and Contribution Points
  • Code of the same style, enforced using ESLint

Prerequisites

You need to have node and npm installed on your system to run the examples. It is recommended to use the node version used for VS Code development itself which is documented here

Usage

  • git clone https://github.com/Microsoft/vscode-extension-samples
  • code <any-sample-folder>
  • npm install in the terminal, then F5 to run the sample
  • Alternatively, follow the instructions in each sample's README for setting up and running the sample

Getting Started

Samples

| Sample | Guide on VS Code Website | API & Contribution | | ------ | ----- | --- | | Webview Sample | /api/extension-guides/webview | window.createWebviewPanelwindow.registerWebviewPanelSerializer | | Webview View Sample | N/A | window.registerWebviewViewProvider | | Status Bar Sample | N/A | window.createStatusBarItemStatusBarItem | | Tree View Sample | /api/extension-guides/tree-view | window.createTreeViewwindow.registerTreeDataProviderTreeViewTreeDataProvidercontributes.viewscontributes.viewsContainers | | Task Provider Sample | /api/extension-guides/task-provider | tasks.registerTaskProviderTaskShellExecutioncontributes.taskDefinitions | | Multi Root Sample | N/A | workspace.getWorkspaceFolderworkspace.onDidChangeWorkspaceFolders | | Completion Provider Sample | N/A | languages.registerCompletionItemProviderCompletionItemSnippetString | | Code Actions Sample | N/A | languages.registerCodeActionsProviderCodeActionProvider | | File System Provider Sample | N/A | workspace.registerFileSystemProvider | | Editor Decorator Sample | N/A | TextEditor.setDecorationsDecorationOptionsDecorationInstanceRenderOptionsThemableDecorationInstanceRenderOptionswindow.createTextEditorDecorationTypeTextEditorDecorationTypecontributes.colors | | I18n Sample | N/A | | | Terminal Sample | N/A | window.createTerminalwindow.onDidChangeActiveTerminalwindow.onDidCloseTerminalwindow.onDidOpenTerminalwindow.Terminalwindow.terminals | | Extension Terminal Sample | N/A | window.createTerminalwindow.Pseudoterminalwindow.ExtensionTerminalOptions | | Color Theme Sample | /api/extension-guides/color-theme | contributes.themes | | Product Icon Theme Sample | /api/extension-guides/product-icon-theme | contributes.productIconThemes | | Vim Sample | N/A | commandsStatusBarItemwindow.createStatusBarItemTextEditorCursorStylewindow.activeTextEditorPositionRangeSelectionTextEditorTextEditorRevealTypeTextDocument | | webpack-sample | N/A | | | Source Control Sample | /api/extension-guides/scm-provider | workspace.workspaceFoldersSourceControlSourceControlResourceGroupscm.createSourceControlTextDocumentContentProvidercontributes.menus | | Commenting API Sample | N/A | | | Document Editing Sample | N/A | commands | | Custom Data Sample | /api/extension-guides/custom-data-extension | | | CodeLens Provider Sample | N/A | languages.registerCodeLensProviderCodeLensProviderCodeLens | | Call Hierarchy Sample | N/A | languages.registerCallHierarchyProviderCallHierarchyProviderCallHierarchyItemCallHierarchyOutgoingCallCallHierarchyIncomingCall | | Custom Editors Sample | /api/extension-guides/custom-editors | window.registerCustomEditorProviderCustomTextEditorProvidercontributes.customEditors | | Semantic tokens | /api/language-extensions/semantic-highlight-guide | languages.registerDocumentSemanticTokensProvidervscode.DocumentSemanticTokensProvider |

Language Server Protocol Samples

| Sample | Guide on VS Code Website | API & Contribution | | ------ | ----- | --- | | Snippet Sample | /api/language-extensions/snippet-guide | contributes.snippets | | Language Configuration Sample | /api/language-extensions/language-configuration-guide | contributes.languages | | LSP Sample | /api/language-extensions/language-server-extension-guide | | | LSP Log Streaming Sample | N/A | | | LSP Multi Root Server Sample | https://github.com/Microsoft/vscode/wiki/Extension-Authoring:-Adopting-Multi-Root-Workspace-APIs#language-client--language-server | |

License

Copyright (c) Microsoft Corporation. All rights reserved.

Licensed under the MIT License.