add appendCodeblock, #33577

This commit is contained in:
Johannes Rieken
2017-10-09 16:42:54 +02:00
parent c1546883c7
commit 6e7a575339
2 changed files with 17 additions and 1 deletions

View File

@@ -843,6 +843,15 @@ export class MarkdownString {
this.value += value;
return this;
}
appendCodeblock(code: string, language: string = ''): MarkdownString {
this.value += '\n```';
this.value += language;
this.value += '\n';
this.value += code;
this.value += '\n```\n';
return this;
}
}
export class ParameterInformation {
@@ -1465,4 +1474,4 @@ export class RelativePattern implements IRelativePattern {
this.base = typeof base === 'string' ? base : base.uri.fsPath;
this.pattern = pattern;
}
}
}