Skip to content

Add inlay hints for gettersΒ #45210

@mjbvz

Description

@mjbvz

From microsoft/vscode#129519

Bug Report

πŸ”Ž Search Terms

  • inlay hints
  • TypeScript β€Ί Inlay Hints β€Ί Function Like Return Types: Enabled

πŸ•— Version & Regression Information

4.4.0-dev.20210727

Not a regression

πŸ’» Code

class Foo {
    prop = 1
    foo() { return 1; }
    get bar() { return 1; }
}

Enable all inlay hints in VS Code, specifically: TypeScript β€Ί Inlay Hints β€Ί Function Like Return Types: Enabled

πŸ™ Actual behavior

Hints are shown on foo but not on bar:

Screen Shot 2021-07-27 at 4 13 06 PM

πŸ™‚ Expected behavior

I think we should include hints for getters if TypeScript β€Ί Inlay Hints β€Ί Function Like Return Types: Enabled is enabled

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions