Skip to content

Conversation

@mjbvz
Copy link
Contributor

@mjbvz mjbvz commented Mar 20, 2017

Splits the Html preview docs out to its own section of the API complex commands documentation. Also adds notes on html preview security as part of microsoft/vscode#22103


`vscode.previewHtml` - Render the html of the resource in an editor view.

Links contained in the document will be handled by VS Code whereby it supports `file`-resources and [virtual](https://github.com/Microsoft/vscode/blob/master/src/vs/vscode.d.ts#L3295)-resources as well as triggering commands using the `command`-scheme. Use the query part of a command-uri to pass along JSON-encoded arguments - note that URL-encoding must be applied.
Copy link
Contributor Author

@mjbvz mjbvz Mar 20, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This section all lives in a comment right now. I'm in favor of consolidating it all under the new html preview section in the docs

@mjbvz mjbvz merged commit d688d69 into microsoft:vnext Mar 21, 2017
mjbvz added a commit to microsoft/vscode that referenced this pull request Mar 22, 2017
Follow up on: microsoft/vscode-docs#896

Removes the extended documentation for the html preview since this now lives in the vscode docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant