update ParameterInformation#label in extHostTypes.ts, #56337

This commit is contained in:
Johannes Rieken
2018-10-08 10:27:03 +02:00
parent e891e2f3d1
commit 31f86f72bd
2 changed files with 3 additions and 3 deletions

View File

@@ -578,7 +578,7 @@ export namespace ParameterInformation {
}
export function to(info: modes.ParameterInformation): types.ParameterInformation {
return {
label: typeof info.label === 'string' ? info.label : '', //todo@joh
label: info.label,
documentation: htmlContent.isMarkdownString(info.documentation) ? MarkdownString.to(info.documentation) : info.documentation
};
}

View File

@@ -1059,10 +1059,10 @@ export class MarkdownString {
export class ParameterInformation {
label: string;
label: string | [number, number];
documentation?: string | MarkdownString;
constructor(label: string, documentation?: string | MarkdownString) {
constructor(label: string | [number, number], documentation?: string | MarkdownString) {
this.label = label;
this.documentation = documentation;
}