mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-06-13 07:10:26 +08:00
Adds an example extension for custom editors. This example extension shows two custom editors: one for text and one for binary files
10 lines
402 B
TypeScript
10 lines
402 B
TypeScript
import * as vscode from 'vscode';
|
|
import { CatScratchEditorProvider } from './catScratchEditor';
|
|
import { PawDrawEditorProvider } from './pawDrawEditor';
|
|
|
|
export function activate(context: vscode.ExtensionContext) {
|
|
// Register our custom editor providers
|
|
context.subscriptions.push(CatScratchEditorProvider.register(context));
|
|
context.subscriptions.push(PawDrawEditorProvider.register(context));
|
|
}
|