Skip to content

Commit

Permalink
Fixes #97462
Browse files Browse the repository at this point in the history
  • Loading branch information
mjbvz committed May 11, 2020
1 parent e3bc0ad commit b01489a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vs/editor/contrib/parameterHints/parameterHintsWidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,10 @@ export class ParameterHintsWidget extends Disposable implements IContentWidget {

private getParameterLabel(signature: modes.SignatureInformation, paramIdx: number): string {
const param = signature.parameters[paramIdx];
if (typeof param.label === 'string') {
return param.label;
} else {
if (Array.isArray(param.label)) {
return signature.label.substring(param.label[0], param.label[1]);
} else {
return param.label;
}
}

Expand Down

0 comments on commit b01489a

Please sign in to comment.