Skip to content

Intellisense no longer works for TypeScript function overload #268728

Closed

Description

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.104.2
  • OS Version: MacOS 26.0

Steps to Reproduce:

declare function foo(x: number, y: number): number;
declare function foo(x: string, y: string): string;

foo('x', /* should suggest `string` value, but still is a `number` value from the first overload  */)

This doesn't seem to be a problem with the language server as it's working fine on https://www.typescriptlang.org/play/

Activity

  1. mjbvz commented on Sep 29, 2025

    @mjbvz
    Contributor

    Here's what I see:

    Image

    We should show all of the overloads but the second should be the default

    Can you share a screenshot of what you see /gifPlease

  2. added
    info-needed
    on Sep 29, 2025
  3. vs-code-engineering commented on Sep 29, 2025

    @vs-code-engineering
    Contributor

    Thanks for reporting this issue! Unfortunately, it's hard for us to understand what issue you're seeing. Please help us out by providing a screen recording showing exactly what isn't working as expected. While we can work with most standard formats, .gif files are preferred as they are displayed inline on GitHub. You may find https://gifcap.dev helpful as a browser-based gif recording tool.

    If the issue depends on keyboard input, you can help us by enabling screencast mode for the recording (Developer: Toggle Screencast Mode in the command palette). Lastly, please attach this file via the GitHub web interface as emailed responses will strip files out from the issue.

    Happy coding!

  4. tien commented on Sep 30, 2025

    @tien
    Author

    Matt Bierner (@mjbvz) this is what happening on my end

    Screen.Recording.2025-09-30.at.7.09.28.PM.mov
  5. tien commented on Oct 7, 2025

    @tien
    Author

    Matt Bierner (@mjbvz) were you able to confirm the issue on your end?

  6. added
    editor-parameter-hints
    and removed
    info-needed
    on Dec 3, 2025
  7. 11 remaining items

  8. added
    unreleased
    on Jul 29, 2026
  9. vs-code-engineering commented on Jul 29, 2026

    @vs-code-engineering
    Contributor

    Sharing media and context from merged PR #320980 for verification:

    • Active overload now updates when typed arguments narrow the overload set
    2026-06-11.12-08-10.mp4

    Edit: this is consistent with https://www.typescriptlang.org/play/
    https://github.com/user-attachments/assets/0c6f8315-dcd9-4487-a655-c3b4f0d7a5bc

    Source PR: #320980

  10. added
    insiders-released
    and removed
    unreleased
    on Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugeditor-parameter-hintsinsiders-releasedtypescript

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions