Skip to content

Inlay hint settings ignored for virtual files #2783

@cbrnr

Description

@cbrnr

Summary

I've disabled both types of inlay hints in my user settings:

    "ty.inlayHints.callArgumentNames": false,
    "ty.inlayHints.variableTypes": false,

However, when I create a new Python file and write code, Ty still displays inlay hints before the file is saved. The hints disappear after saving, but they are shown in the initial unsaved state. I would expect the inlay hint settings to apply consistently, including in unsaved buffers, i.e., disabling inlay hints should prevent them from appearing regardless of whether the file has been saved or not.

Version

2026.12.0 (ty 0.0.16)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingserverRelated to the LSP server

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions