Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify how to use previewHtml command within documents being previewed #5902

Closed
kieferrm opened this issue Apr 27, 2016 · 2 comments
Closed
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug
Milestone

Comments

@kieferrm
Copy link
Member

Testing #5747

Tried to follow the example given in #3676 (comment).

The only way I could get a link to be previewed correctly (when being followed from within the preview is the following (externalFileUri is a string):
<a href="command:vscode.previewHtml${encodeURIComponent(JSON.stringify(externalFileUri))}">htmlPreview of the file on disk</a>.

Same for virtual documents.

  • VSCode Version: 1.1.0-alpha e77003f
  • OS Version: MacOS
@jrieken jrieken added this to the April 2016 milestone Apr 28, 2016
@jrieken
Copy link
Member

jrieken commented Apr 28, 2016

I will update the docs around the preview command

@jrieken jrieken added the bug Issue identified by VS Code Team member as probable bug label Apr 28, 2016
@jrieken jrieken assigned kieferrm and unassigned jrieken Apr 28, 2016
@jrieken
Copy link
Member

jrieken commented Apr 28, 2016

The doc is here from which @gregvanl will generate this page: https://code.visualstudio.com/docs/extensionAPI/vscode-api-commands

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

2 participants