mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 19:18:59 +01:00
MarkdownString#enableCommand -> trusted, #29076
This commit is contained in:
@@ -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```' };
|
||||
|
||||
Reference in New Issue
Block a user