mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 19:18:59 +01:00
update ParameterInformation#label in extHostTypes.ts, #56337
This commit is contained in:
@@ -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
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user