[Python] Tooltip hints options in vscode

Discussão em 'Python' iniciado por Stack, Abril 15, 2025.

  1. Stack

    Stack Membro Participativo

    When coding in vscode I rely heavily on the little tooltip that appears when I call a method/function, that displays the functions docstring. I noticed today that something has changed : only the first part of the docstring is displayed by the tooltip. Here is what I see as the tooltip :

    [​IMG]

    And here is the full dosctring of this method :

    Helper function that returns the current mouse state.
    NOTE : All three mouse button will be considered not pressed if CTRL is pressed.
    This is to prevent interactivity to mix with the camera movement, which uses CTRL+mouse buttons.

    Args:
    camera : Camera
    The camera object. Needed to convert mouse positions to world coordinates.

    Returns: mouse_state, an EasyDict with keys :
    x : x position in the CA world (access also as mouse_state.x)
    y : y position in the CA world (access also as mouse_state.y)
    left : True if left mouse button is pressed (access also as mouse_state.left)
    right : True if right mouse button is pressed (access also as mouse_state.right)
    middle : True if middle mouse button is pressed (access also as mouse_state.middle)


    I'd like to restore previous behaviour, but I have no idea what changed; probably an automatic update. Any idea how to revert, or at what options to look ? I'm currently using the following vscode version :

    Version: 1.99.1 (user setup)
    Commit: 7c6fdfb0b8f2f675eb0b47f3d95eeca78962565b


    As well as the Python (v2025.4.0) and Pylance (v2025.4.1) extentions. I do have a bunch of other extentions, but hopefully only these are the relevant ones.

    Continue reading...

Compartilhe esta Página