Skip to content

UX improvements for automated typings acquisition #15209

Closed

Description

@mjbvz

Adopt new status code API to improve automatic typing acquisition UX

Activity

  1. added
    plan-item
    and removed on Nov 8, 2016
  2. mjbvz commented on Nov 28, 2016

    @mjbvz
    ContributorAuthor

    Opened microsoft/TypeScript#12540 to track the addition of the notifications we need from TS to support this

  3. mjbvz commented on Jan 3, 2017

    @mjbvz
    ContributorAuthor

    Initial work for rejecting completion item promise was completed with #17098. We now need to surface these rejection message in some way and also look into adopting this pattern in other places.

  4. jrieken commented on Jan 5, 2017

    @jrieken
    Contributor

    For suggest I have something like this in mind - clearly it needs some UX hands Brad Gashler (@bgashler1), Steven Clarke (@stevencl) . However, the idea is to show suggestion plus one or multiple messages explaining the result or the lack of a result

    jan-05-2017 16-33-17

  5. mjbvz commented on Jan 5, 2017

    @mjbvz
    ContributorAuthor

    Johannes Rieken (@jrieken) I like the concept. It doesn't block the user from using the feature while also clearly indicating that the results may not be complete.

    Are you blocked by anything on the TS side?

  6. bgashler1 commented on Jan 5, 2017

    @bgashler1
    Contributor

    Johannes Rieken (@jrieken) I like this idea, too 👍 . I'll finesse the design of it and give you some mockups.

    By the way, are we ever going to apply something like this to more than TypeScript? I feel like it might be nice to say "Fetching more suggestions..." to keep it more generic and intuitively worded (perhaps on hover a tooltip could specify the source it's searching: "Automatic type acquisition in progress").

  7. 5 remaining items

  8. jrieken commented on Jan 12, 2017

    @jrieken
    Contributor

    The API challenge is that a message such as "Loading more types for more IntelliSense" is the sole result of that invocation. The provider cannot update it once it is out. More elaborate interactions requires a stateful API in which the provider/extension manages a separate status/progress object. Generally that's a little harder for extension writers to manage but definitely possible to implement.

  9. jrieken commented on Jan 17, 2017

    @jrieken
    Contributor

    To give us more time to figure out an inplace UX and to define the status API I wanna implement a solution that uses the proposed progress API to show a message while ATA is running. The UX is a spinning icon and a message in the status bar.

    Question for Matt Bierner (@mjbvz) and Kai Maetzel (@kieferrm) How do I test/trigger ATA? I started something in https://github.com/Microsoft/vscode/tree/joh/ata-progress but I have no clue how to make TypeScript send my those install-begin/end events...

  10. mjbvz commented on Jan 19, 2017

    @mjbvz
    ContributorAuthor

    Johannes Rieken (@jrieken) To trigger ATA, you should just be able to add require('lodash') or import * as x from 'lodash' to a js file. This works for the most common packages at least. For other packages, I think you still have to list them in the package.json.

    If the typings have been installed in the past, the cached version will be used. Try clearing the /Users/matb/Library/Caches/typescript/ folder and it should reinstall everything again. You can also check the package.json in that folder to see what typings have been installed.

  11. jrieken commented on Jan 19, 2017

    @jrieken
    Contributor

    This is what I propose for now:

    jan-19-2017 12-30-12

  12. bgashler1 commented on Jan 21, 2017

    @bgashler1
    Contributor

    Moving the rest of this to February after we have time to investigate more UX and API concerns.

  13. noinkling commented on Feb 6, 2017

    @noinkling

    From a user perspective, I would definitely like to see some sort of explicit indicator that typing acquisition has succeeded or failed (and an easy to read message in the TS output pane or something). In my case ATA doesn't seem to work for some reason, but really the only indicator I have of this is that I don't get intellisense when working with certain packages. For the record, these are packages where the intellisense works fine if I install the typings manually. It would be nice to have a starting point for figuring out what's wrong, because currently all I get is No content available. messages in the TS output (after setting it to verbose).

  14. jrieken commented on Feb 15, 2017

    @jrieken
    Contributor

    We will use the status bar progress message for now.

  15. added
    verification-needed
    on Feb 21, 2017
  16. roblourens commented on Feb 24, 2017

    @roblourens
    Member

    I see the status bar message, which was also there in 1.9. Matt Bierner (@mjbvz) says nothing changed this month?

  17. added
    verified
    on Feb 24, 2017
  18. roblourens commented on Feb 24, 2017

    @roblourens
    Member

    I guess this was never verified originally, so anyway, consider it verified.

  19. 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

plan-itemverification-neededverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions