提交 b01489a2 编写于 作者: M Matt Bierner

Fixes #97462

上级 e3bc0ad2
......@@ -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;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册