use 'label' parameter in 'previewHtml' command

This commit is contained in:
Johannes Rieken
2016-07-12 10:41:05 +02:00
parent bd0ba2f04c
commit 37a9a2f413

View File

@ -84,7 +84,7 @@ export function activate(context: vscode.ExtensionContext) {
})
let disposable = vscode.commands.registerCommand('extension.showCssPropertyPreview', () => {
return vscode.commands.executeCommand('vscode.previewHtml', previewUri, vscode.ViewColumn.Two).then((success) => {
return vscode.commands.executeCommand('vscode.previewHtml', previewUri, vscode.ViewColumn.Two, 'CSS Property Preview').then((success) => {
}, (reason) => {
vscode.window.showErrorMessage(reason);
});