Skip to content

Editor Placeholder Support #208976

Closed
Closed

Description

roblourens To verify, go to the VS sources and run:

PlaceholderTextContribution.get(editor).setPlaceholderText('myPlaceholder')

Activity

  1. added
    feature-request
    editor-core
    on Mar 28, 2024
  2. added
    verification-needed
    on Apr 22, 2024
  3. deepak1556 commented on Apr 23, 2024

    @deepak1556
    Collaborator

    Closing for verification.

  4. roblourens commented on Apr 26, 2024

    @roblourens
    Member

    I'm able to use this when the input box is empty, and it works great, thanks! But when there is an @ participant in the input, I still use a text decoration to show the participant description after the name. This is fine with me, it's probably not typical usage for input boxes with placeholders.

  5. hediet commented on Apr 26, 2024

    @hediet
    MemberAuthor

    But when there is an @ participant in the input, I still use a text decoration to show the participant description after the name.

    We could support this, but I wonder how the API should look like and what benefits the placeholder feature would give over decorations.

  6. roblourens commented on Apr 26, 2024

    @roblourens
    Member

    It would have to be something that I add and remove, like a decoration. But it would save a few lines of code in not having to figure out the color or positioning. Low-priority, probably, I don't think anyone else would use it beyond chat right now.

  7. locked and limited conversation to collaborators on Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

editor-corefeature-requestverification-neededverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions