Skip to content

Add a positron API to launch and track the response of a modal dialog #668

Closed

Description

@petetronic

Extensions may want to prompt the user to make important decisions, so we would like to leverage our own Positron modal dialog to ask the question to the user. We need to add an API to positron that will allow an extension to customize the basic UI elements of the modal dialog, as well as receive the customer selection to a callback.

Activity

  1. self-assigned this
    on Nov 17, 2023
  2. juliasilge commented on Nov 17, 2023

    @juliasilge
    Member

    This is quite a simple modal for now (true / false) but I believe will fit the bill for what we want to do as of today.

  3. seeM commented on Nov 22, 2023

    @seeM
    Contributor

    I don't believe there's a way to test this in a release build (unless there's a way to access Zed in a release build?), but I've tested this on a dev build and confirm that running modal in Zed shows a modal dialogue prompt:

    image
  4. added
    area: api
    on Feb 29, 2024
  5. locked as resolved and limited conversation to collaborators on Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: api

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions