Nathan Shively-Sanders e543d8bc5a
Fix type keyword completions (#32474)
* Fix type keyword completions

1. In functions, type keywords were omitted.
2. In All context, no keywords were omitted.

(1) fixes #28737
(2) removes 17 keywords that should not be suggested, even at the
toplevel of a typescript file:

* private
* protected
* public
* static
* abstract
* as
* constructor
* get
* infer
* is
* namespace
* require
* set
* type
* from
* global
* of

I don't know whether we have a bug tracking this or not.

* Change keyword filter in filterGlobalCompletion

Instead of changing FunctionLikeBodyKeywords

* Add more tests cases

* Make type-only completions after < more common

Because isPossiblyTypeArgumentPosition doesn't give false positives now
that it uses type information.
2019-07-19 15:22:04 -07:00
..
2019-06-13 12:41:21 -07:00
2019-06-13 12:41:21 -07:00
2018-09-11 13:56:51 +03:00
2018-11-05 21:45:19 +09:00
2018-12-31 15:15:47 -08:00
2018-06-28 18:50:55 -07:00
2018-05-04 11:29:54 -07:00
2019-06-13 12:41:21 -07:00
2019-06-13 12:41:21 -07:00
2019-05-06 21:21:37 +02:00
2019-06-13 12:41:21 -07:00
2019-06-13 12:41:21 -07:00
2019-06-13 12:41:21 -07:00
2019-06-13 12:41:21 -07:00
2019-06-13 12:41:21 -07:00
2019-06-13 12:41:21 -07:00
2019-06-13 12:41:21 -07:00
2019-06-13 12:41:21 -07:00
2019-06-13 12:41:21 -07:00
2019-06-13 12:41:21 -07:00
2018-07-02 18:14:32 -10:00
2019-05-23 13:33:38 -07:00
2018-11-05 21:45:19 +09:00
2019-06-09 10:11:36 -07:00
2019-06-09 10:11:36 -07:00
2019-06-13 12:41:21 -07:00
2019-06-13 12:41:21 -07:00
2019-06-13 12:41:21 -07:00
2019-06-13 12:41:21 -07:00
2019-06-13 12:41:21 -07:00
2019-06-13 12:41:21 -07:00
2019-06-13 12:41:21 -07:00
2019-06-13 12:41:21 -07:00