From 4ce38ab40e7182ca732707b6c0506be844a623b6 Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Tue, 12 Jul 2016 10:46:45 +0200 Subject: [PATCH] use menus contrib point for css preview --- previewhtml-sample/package.json | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/previewhtml-sample/package.json b/previewhtml-sample/package.json index 41ccbf99..4174e1f5 100644 --- a/previewhtml-sample/package.json +++ b/previewhtml-sample/package.json @@ -33,7 +33,15 @@ "command": "extension.showCssPropertyPreview", "title": "Show CSS Properties Preview" } - ] + ], + "menus": { + "editor/title": [ + { + "command": "extension.showCssPropertyPreview", + "when": "resourceLangId == css" + } + ] + } }, "scripts": { "vscode:prepublish": "node ./node_modules/vscode/bin/compile",