提交 cf7cf2f2 编写于 作者: O Oleg Bulatov

Fix renderParameters

Closes Microsoft/vscode-go#814
Signed-off-by: NOleg Bulatov <oleg@bulatov.me>
上级 40fecfaa
......@@ -358,7 +358,7 @@ export class ParameterHintsWidget implements IContentWidget, IDisposable {
for (let i = signature.parameters.length - 1; i >= 0; i--) {
const parameter = signature.parameters[i];
idx = signature.label.lastIndexOf(parameter.label, end);
idx = signature.label.lastIndexOf(parameter.label, end - 1);
let signatureLabelOffset = 0;
let signatureLabelEnd = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册