ludorival / vscode-preview-jsdoc

VSCode extension to automatically preview the generated jsdoc
MIT License
6 stars 1 forks source link

command `previewjsdoc.openBrowser` not found on macOS #14

Closed chase9 closed 4 years ago

chase9 commented 6 years ago

Running Code 1.27.2 macOS 10.14 Latest Preview JSDOC from VSCode repo

I am unable to use the extension as I always get the error "command previewjsdoc.openBrowser not found on macOS"

ludorival commented 6 years ago

Do you see any logs in the "PreviewJsDoc" output? Do you have jsdoc installed in your computer?

chase9 commented 6 years ago

I was unable to find PreviewJsDoc and I do have jsdoc on my computer.

ludorival commented 6 years ago

I pushed a version which prevent to crash the extension and maybe get more output from the error you got. Could you download this version https://github.com/ludorival/vscode-preview-jsdoc/archive/1.0.5.zip and unzip it. Go in there and copy the content (included the package.json) in your local extension folder ~/.vscode/extensions/ludorival.preview-jsdoc-1.0.4/. Go back to me with the result you got.

chase9 commented 6 years ago

Your version didn't fix it, but I believe I discovered the problem. The extension's activationEvents are "onLanguage:javascript", "onLanguage:markdown" However, I am working in TypeScript files, so changing the activation events to include onCommand:previewjsdoc.openBrowser removed that problem.

After all this I find that I get a blank page in the web browser, leading me to believe that the extension isn't compatible with Angular CLI projects. I'll investigate a bit more and see if I can find anything out.

ludorival commented 4 years ago

I am closing this issue.