Skip to content

rich quick pick #1795

Closed
Closed

Description

There are needs for more complex quick pick and asking for input, like do something on focus, validate user input etc. There are:

Activity

  1. added
    feature-request
    on Jan 5, 2016
  2. jrieken commented on Jan 5, 2016

    @jrieken
    ContributorAuthor

    Idea is to have in addition to showQuickPick and showInputBox something like createQuickPick():QuickPick which could return something like this:

    interface QuickPick {
      show(): void;
      hide(): void;
      items: Item[]|Thenable<Item[]>
      message: string;
      onDidSelectItem: Event<Item>
      onDidFocusItem: Event<Item>
      onDidBlurItem: Event<Item>
      onDidChangeInput: Event<string>
    }
    
  3. daviwil commented on Jan 5, 2016

    @daviwil
    Contributor

    Interesting! cc Doug Finke (@dfinke)

  4. dfinke commented on Jan 5, 2016

    @dfinke

    Looks good. It'd be nice to be able to customize the dropdown too. The extension install does with readme and install icons.

  5. alefragnani commented on Feb 4, 2016

    @alefragnani

    Hi Johannes Rieken (@jrieken) . Is it already available in the Insider build?

    I tried to use the Extension API Consumption #1881 and Proposal for separating the vscode tools from the vscode API #970 instructions, but it still result in the same API. Maybe I'm doing something wrong in my package.json?

    Thanks in advance.

  6. daviwil commented on Feb 4, 2016

    @daviwil
    Contributor

    I just updated to the latest vscode.d.ts (using the new install script) and I don't see it either.

  7. alefragnani commented on Feb 4, 2016

    @alefragnani

    Hi David Wilson (@daviwil) ,

    It was an error in my package.json. I fixed and now the new API is available:

    Update the engine:

        "engines": {
            "vscode": "0.10.7-insiders"
        },
    

    Add the postinstall script

      "scripts": {
        "vscode:prepublish": "node ./node_modules/vscode/bin/compile",
        "compile": "node ./node_modules/vscode/bin/compile -watch -p ./",
        "postinstall": "node ./node_modules/vscode/bin/install"
      },
    

    Update vscode in devDependencies

      "devDependencies": {
        "vscode": "~0.11.0",
        "typescript": "^1.6.2"
      }
    

    And it is working perfectly, thanks Johannes Rieken (@jrieken) 😄

  8. daviwil commented on Feb 4, 2016

    @daviwil
    Contributor

    Cool! I didn't know there was an 0.10.7-insiders engine specifically. I think I didn't understand what I was looking for in the quick pick typings, the API suggestion that Johannes wrote in a comment before is what I was looking for :) I can see now that the typings are different between 0.10.6 and 0.10.7. All good now, thanks for the help!

  9. masaeedu commented on May 6, 2016

    @masaeedu

    Johannes Rieken (@jrieken) Regarding the "update items based on input" story that got removed, is there an alternative for this? It would be useful to allow the user to enter some custom text if none of the options suffice.

  10. jrieken commented on May 6, 2016

    @jrieken
    ContributorAuthor

    We are tracking that in #426

  11. wclr commented on Nov 26, 2016

    @wclr

    allowing to have splitter in the list would be useful.

  12. aefernandes commented on Jun 2, 2017

    @aefernandes
    Contributor

    Just to confirm, are these rich quick pick features currently available? I want to create custom keybindings for the quick pick dropdown items and currently can't do something on focus.

  13. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

apifeature-request

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions