mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
0b26276bb6a194a7a063a76a1a6c3e6379ee3375
Fixes #180 Changes from using `vscode` to `@types/vscode` for the majority of extension samples. The `@types/vscode` package is much smaller and does not pull in any dependencies. Other changes: - Remove so empty test files - Bump engine versions to match @types/vscode versions - Use `npm run compile` for most `vscode:prepublish` scripts
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
Usage
git clone https://github.com/Microsoft/vscode-extension-samplescode <any-sample-folder>npm installin the terminal, thenF5to run the sample- Alternatively, follow the instructions in each sample's README for setting up and running the sample
Getting Started
- Hello World Sample: The Hello World sample for VS Code.
- Hello World Minimal Sample: A minimal version of Hello World Sample written in JavaScript.
Samples
Language Protocol Server Samples
License
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License.
Languages
TypeScript
79%
JavaScript
15.1%
Rust
3.4%
CSS
1.4%
Jupyter Notebook
0.8%
Other
0.2%