TypeScript 版本: 3.7.0-dev.20190907
搜索词:
- SignatureHelp
- 参数提示
代码
对于代码
declare function addEventHandler(event: "onPlayerJoin", x: number): void;
declare function addEventHandler(event: "onPlayerQuit", y: string): void;
addEventHandler('onPlayerQuit')
- 在调用
addEventHandler
的关闭'
后触发签名帮助
预期行为:
返回第二个重载的签名帮助
实际行为:
返回两个重载的签名帮助。我们最终显示了 onPlayerJoin
的第一个
3条答案
按热度按时间btxsgosb1#
这是完整的tsserver请求:
o0lyfsai2#
@uniqueiniquity 这是一个我们周三讨论过的签名帮助问题的例子吗?
swvgeqrz3#
我提到的问题与现有的sig help会话的行为更相关,而不是触发一个新的会话。不过,我也同意在这里tsserver应该根据触发位置的上下文返回
selectedItemIndex: 1
。