镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Signature help not select correct overload for partially completed function #33328

Description

@mjbvz

From microsoft/vscode#80570

TypeScript Version: 3.7.0-dev.20190907

Search Terms:

  • SignatureHelp
  • parameter hints

Code
For the code

declare function addEventHandler(event: "onPlayerJoin", x: number): void;
declare function addEventHandler(event: "onPlayerQuit", y: string): void;

addEventHandler('onPlayerQuit')
  1. Trigger signature help after the closing ' in the call to addEventHandler

Expected behavior:
Signature help for the second overload is returned

Actual behavior:
Signature help for both overloads is returned. We end up showing the one for onPlayerJoin first

Screen Shot 2019-09-09 at 11 24 08 AM

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions