MarkdownString#enableCommand -> trusted, #29076

This commit is contained in:
Johannes Rieken
2017-08-24 16:38:44 +02:00
parent 17f1fe3a34
commit fb83608ebc
4 changed files with 7 additions and 7 deletions

View File

@@ -147,7 +147,7 @@ function isDecorationOptionsArr(something: vscode.Range[] | vscode.DecorationOpt
export namespace MarkedString {
export function from(markup: vscode.MarkedString): IMarkdownString {
if (typeof markup === 'string' || !markup) {
return { value: <string>markup || '', enableCommands: true };
return { value: <string>markup || '', trusted: true };
} else {
const { language, value } = markup;
return { value: '```' + language + '\n' + value + '\n```' };