You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
UX improvements for automated typings acquisition #15209
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.
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
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.
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").
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.
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.
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.
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).
Activity
mjbvz commentedon Nov 28, 2016
Opened microsoft/TypeScript#12540 to track the addition of the notifications we need from TS to support this
mjbvz commentedon Jan 3, 2017
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.
jrieken commentedon Jan 5, 2017
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
mjbvz commentedon Jan 5, 2017
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?
bgashler1 commentedon Jan 5, 2017
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").
5 remaining items
jrieken commentedon Jan 12, 2017
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.
jrieken commentedon Jan 17, 2017
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...
mjbvz commentedon Jan 19, 2017
Johannes Rieken (@jrieken) To trigger ATA, you should just be able to add
require('lodash')orimport * 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 thepackage.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 thepackage.jsonin that folder to see what typings have been installed.jrieken commentedon Jan 19, 2017
This is what I propose for now:
bgashler1 commentedon Jan 21, 2017
Moving the rest of this to February after we have time to investigate more UX and API concerns.
noinkling commentedon Feb 6, 2017
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).jrieken commentedon Feb 15, 2017
We will use the status bar progress message for now.
roblourens commentedon Feb 24, 2017
I see the status bar message, which was also there in 1.9. Matt Bierner (@mjbvz) says nothing changed this month?
roblourens commentedon Feb 24, 2017
I guess this was never verified originally, so anyway, consider it verified.