Files
vscode-extension-samples/README.md
2018-10-12 12:01:27 -07:00

2.7 KiB

VS Code Extension Samples

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 TSLint and Prettier

Samples

Guide Sample API & Contribution Points
/api/extension-guides/virtual-documents Virtual Documents TextDocumentContentProvider
/api/extension-guides/editor-decoration Editor Decoration window.createTextEditorDecorationType
/api/extension-guides/status-bar Status Bar StatusBarItem
/api/extension-guides/color-theme Color Theme contributes.themes
N/A File System Provider vscode.workspace.registerFileSystemProvider

⚠️ Legacy Samples ⚠️

Legacy samples are at /legacy-samples. They are unlikely to receive any updates and might not work with the latest version of VS Code.

Sample Deprecated Reason
Preview HTML Webview API supersedes the old HTML Preview functionality

License

Copyright (c) Microsoft Corporation. All rights reserved.

Licensed under the MIT License.