HarshdeepGupta / live-html-preview

The most popular extension for previewing HTML documents.
https://marketplace.visualstudio.com/items?itemName=hdg.live-html-previewer
26 stars 15 forks source link

command not found #1

Closed bolerap closed 6 years ago

bolerap commented 8 years ago

Hello author. when i run command show side preview it display error "command 'extension.sidePreview" not found

Please help me. Thanks

soulchainer commented 7 years ago

Same issue here. Phew. This is awaiting some answer from August. You get it solved somehow, @thanhngvpt? Are you using some other extension that works (on the side)?

For more info, this isn't working for me in:

Arch Linux

VScode Version 1.8.1 Fecha 2016-12-19T14:41:20.664Z Electron 1.4.6 Chromium 53.0.2785.143 Node 6.5.0

b3n10 commented 7 years ago

I'm also using Arch Linux and getting this same error.

joeysys commented 7 years ago

in Utilities.js: change var previewManager_1 = require('./previewManager'); to var previewManager_1 = require('./PreviewManager');

chiccofra commented 6 years ago

this change doesn't work. do you have any news? The code in the file is:

"use strict"; var vscode = require('vscode'); var PreviewManager_1 = require('./PreviewManager'); var Constants = require('./Constants'); var Utilities = (function () { //returns true if an html document is open function Utilities() { } ; Utilities.prototype.checkDocumentIsHTML = function (showWarning) { var result = vscode.window.activeTextEditor.document.languageId.toLowerCase() === "html"; if (!result && showWarning) { vscode.window.showInformationMessage(Constants.ErrorMessages.NO_HTML); } return result; }; Utilities.prototype.init = function (viewColumn, context, previewUri) { var proceed = this.checkDocumentIsHTML(true); if (proceed) { var previewManager = new PreviewManager_1.default(); var registration = vscode.workspace.registerTextDocumentContentProvider('HTMLPreview', previewManager.htmlDocumentContentProvider); return vscode.commands.executeCommand('vscode.previewHtml', previewUri, viewColumn).then(function (success) { }); } }; return Utilities; }()); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = Utilities; //# sourceMappingURL=Utilities.js.map

HarshdeepGupta commented 6 years ago

@joeysys the method works, Thanks

GratefulDave commented 5 years ago

I'm relatively new to vs code and working with Python . Where can I find the utilities.js file?