mirror of
https://github.com/Microsoft/vscode
synced 2024-10-13 14:57:14 +00:00
fixed #11263
This commit is contained in:
parent
964be94e01
commit
1de4d832cc
|
@ -173,6 +173,9 @@ class ExtHostApiCommands {
|
|||
let href = encodeURI('command:vscode.previewHtml?' + JSON.stringify(someUri));
|
||||
let html = '<a href="' + href + '">Show Resource...</a>.';
|
||||
\`\`\`
|
||||
|
||||
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\'.
|
||||
`,
|
||||
args: [
|
||||
{ name: 'uri', description: 'Uri of the resource to preview.', constraint: value => value instanceof URI || typeof value === 'string' },
|
||||
|
|
Loading…
Reference in a new issue