diff --git a/src/vs/workbench/api/node/extHostApiCommands.ts b/src/vs/workbench/api/node/extHostApiCommands.ts index 2be1d58db17..8541610e298 100644 --- a/src/vs/workbench/api/node/extHostApiCommands.ts +++ b/src/vs/workbench/api/node/extHostApiCommands.ts @@ -171,18 +171,7 @@ export class ExtHostApiCommands { description: ` 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. The snippet below defines a command-link that calls the _previewHtml_ - command and passes along an uri: - \`\`\` - let href = encodeURI('command:vscode.previewHtml?' + JSON.stringify(someUri)); - let html = 'Show Resource....'; - \`\`\` - - The body element of the displayed html is dynamically annotated with one of the following css classes in order to - communicate the kind of color theme vscode is currently using: \`vscode-light\`, \`vscode-dark\`, or \`vscode-high-contrast\'. + See [working with the html preview](https://code.visualstudio.com/docs/extensionAPI/vscode-api-commands#working-with-the-html-preview) for more information about the html preview's intergration with the editor and for best practices for extension authors. `, args: [ { name: 'uri', description: 'Uri of the resource to preview.', constraint: value => value instanceof URI || typeof value === 'string' },