From 13ccc6ea601467b8cd6d3b5a43b5a2f381d559a3 Mon Sep 17 00:00:00 2001 From: Pine Wu Date: Wed, 19 Sep 2018 15:37:38 -0700 Subject: [PATCH] Deprecate preview html sample and point to webview --- previewhtml-sample/README.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/previewhtml-sample/README.md b/previewhtml-sample/README.md index 105f3e19..84f0f50d 100644 --- a/previewhtml-sample/README.md +++ b/previewhtml-sample/README.md @@ -1,10 +1,19 @@ +# :rotating_light: Deprecated + +Please use the new Webview API instead: + +- Guide: https://code.visualstudio.com/docs/extensions/webview +- Sample: https://github.com/Microsoft/vscode-extension-samples/tree/master/webview-sample + # CSS Properties Preview Sample + This is an sample extension that illustrates the use of virtual documents or `TextDocumentContentProviders` together with the `vscode.previewHtml` [command](https://code.visualstudio.com/docs/extensionAPI/vscode-api-commands#_commands). It is not intended as a product quality extension. The purpose of the extension is to show a preview of the properties in the declaration block of a CSS rule. To play with the extension: + - Open a CSS file - Use `Show CSS Properties Preview` - Position the cursor inside the declaration block of the rule @@ -22,6 +31,6 @@ The purpose of the extension is to show a preview of the properties in the decla # How to run locally -* `npm install` -* `npm run compile` to start the compiler in watch mode -* open this folder in VS Code and press `F5` +- `npm install` +- `npm run compile` to start the compiler in watch mode +- open this folder in VS Code and press `F5`