Closed PythonYunfei closed 1 month ago
When you hover over it it explains what the warning is about:
While VarSetStrCapacity(varName)
"works" that form is deprecated and its there for backwards compatibility as far as i remember.
The recomended is VarSetStrCapacity(&varName)
note the &
.
Per the documentation you mentioned:
If he decides to remove that i hope that is as an option/setting. I think we should keep warnings about deprecated syntax.
I would agree that the hover tip should be explicit about the fact that the syntax is actually deprecated though.
/** @type {VarRef} */
v := ''
VarSetStrCapacity(v)
/* @type {VarRef} /
This is a feasible idea.
图片中的代码是可以正常运行的。
xx
变量的内容是一个VarRef实例,符合VarSetStrCapacity()
的要求。但插件仍然对变量xx
显示警告。 故希望可以:消除此类警告、或者添加选项消除此类警告。(建议后者)