Skip to content

Python function autocomplete should prioritize function parameters #47086

@ww2406

Description

@ww2406

Reproduction steps

  1. Start Zed
  2. Create a new Python file
  3. Add code
def say_hello(recipient: str) -> str:
    return f"Hello, {recipient}"
    

say_hello() # <-- press control-space inside parentheses
  1. Observe when pressing control-space that the function parameter is not shown (see Current below)

Current vs. Expected behavior

Current:

Image

Expected:

Image

Zed version and system specs

Zed: v0.219.4+stable.119.5595f7ce23d51a58eb66dd025a487bbd6c75dad1 (Zed)
OS: Linux Wayland fedora 43
Memory: 31 GiB
Architecture: x86_64
GPU: Intel(R) HD Graphics 4600 (HSW GT2) || Intel open-source Mesa driver || Mesa 25.2.7

Attach Zed log file

Zed.log

Relevant Zed settings

settings.json

Relevant Keymap

keymap.json

(for AI issues) Model provider details

No response

If you are using WSL on Windows, what flavor of Linux are you using?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:languages/pythonPython programming language supportfrequency:commonBugs that happen for at least a third of the users across all platforms and kinds of usagepriority:P3Papercuts, minor issues with a clear workaround, cosmetic bugsstate:reproducibleVerified steps to reproduce included and someone on the team managed to reproduce

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions