Johannes Rieken dd86360854 don't leak...
2018-10-25 12:06:16 +02:00
2018-10-23 22:25:25 -07:00
2018-10-24 14:02:17 -07:00
2018-10-09 11:39:59 -07:00
2018-10-25 12:06:16 +02:00
2018-10-15 15:47:30 -07:00
2018-10-23 22:31:37 -07:00
2016-12-30 18:51:37 +01:00
2018-10-10 10:44:21 -07:00
2018-10-16 17:08:42 -07:00
2018-10-24 14:02:17 -07:00

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

Sample Guide on VS Code Website API & Contribution
Multi Root Sample N/A workspace.getWorkspaceFolder
workspace.onDidChangeWorkspaceFolders
Webview Sample /api/extension-guides/webview window.createWebviewPanel
window.registerWebviewPanelSerializer
Status Bar /api/extension-guides/status-bar StatusBarItem
File System Provider Sample N/A workspace.registerFileSystemProvider
LSP Sample /api/language-extensions/smart-editing-lsp-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
terminal-sample N/A window.createTerminal
window.onDidChangeActiveTerminal
window.onDidCloseTerminal
window.onDidOpenTerminal
window.Terminal
window.terminals

⚠️ 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.

Description
No description provided
Readme MIT 119 MiB
Languages
TypeScript 79%
JavaScript 15.1%
Rust 3.4%
CSS 1.4%
Jupyter Notebook 0.8%
Other 0.2%