update internal API to allow parameter label to be an offset-range of its the signature label, #56337

This commit is contained in:
Johannes Rieken
2018-10-08 10:22:54 +02:00
parent 107e4bbd82
commit 9fa354a7aa
5 changed files with 33 additions and 35 deletions

View File

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