Ruben Bridgewater
1a8f828c17
repl: improve completion
...
This improves the completion output by removing the nested special
handling. It never fully worked as expected and required a lot of
hacks to even keep it working halfway reliable. Our tests did not
cover syntax errors though and those can not be handled by this
implementation. Those break the layout and confuse the REPL.
Besides that the completion now also works in case the current line
has leading whitespace.
Also improve the error output in case the completion fails.
PR-URL: https://github.com/nodejs/node/pull/30907
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2019-12-17 18:21:09 -05:00
..
2018-08-12 15:30:04 -07:00
2018-09-09 17:48:56 -07:00
2017-03-10 11:23:48 -08:00
2016-08-29 18:53:29 -07:00
2017-03-10 11:23:48 -08:00
2019-09-29 20:12:24 -07:00
2017-09-07 15:18:32 -05:00
2019-10-23 03:32:53 -04:00
2017-09-07 15:18:32 -05:00
2019-12-09 10:23:06 +01:00
2017-07-24 16:56:31 +02:00
2017-03-10 11:23:48 -08:00
2015-03-25 22:12:18 +03:00
2017-03-10 11:23:48 -08:00
2019-07-05 22:39:22 -07:00
2018-03-11 02:56:56 +01:00
2017-03-10 11:23:48 -08:00
2017-01-02 18:28:18 -05:00
2017-09-19 15:42:16 -07:00
2017-03-10 11:23:48 -08:00
2019-12-13 10:50:40 -05:00
2019-03-27 17:11:53 +01:00
2019-07-26 15:13:53 -05:00
2017-08-13 01:03:30 -07:00
2014-12-11 10:18:00 +01:00
2017-11-21 11:38:12 -05:00
2019-11-30 03:54:31 +01:00
2019-03-27 15:52:11 -04:00
2019-01-10 08:59:57 -05:00
2019-01-10 08:59:57 -05:00
2017-03-11 22:08:18 +00:00
2019-04-29 07:28:27 +05:30
2018-01-24 13:16:07 +01:00
2019-09-24 09:55:00 -07:00
2019-12-01 10:26:44 +01:00
2019-06-13 23:01:42 -07:00
2019-09-13 20:27:18 +02:00
2017-04-20 13:18:42 +02:00
2015-12-22 13:29:28 -05:00
2015-08-04 11:56:18 -07:00
2017-03-10 11:23:48 -08:00
2018-11-07 18:43:41 -05:00
2018-11-27 19:14:54 -08:00
2018-07-16 11:30:55 +02:00
2018-07-16 11:30:55 +02:00
2019-04-28 15:36:28 +08:00
2016-03-29 21:39:26 +02:00
2018-11-06 10:59:18 -05:00
2017-03-10 11:23:48 -08:00
2018-11-01 19:41:33 -07:00
2018-04-20 11:13:24 -07:00
2017-01-02 18:28:18 -05:00
2019-07-15 20:46:56 -07:00
2019-07-15 20:46:56 -07:00
2017-11-11 10:48:45 +01:00
2017-01-10 16:57:48 -05:00
2016-04-14 10:53:07 -07:00
2016-02-05 15:40:56 -08:00
2016-01-18 10:57:45 -06:00
2016-08-17 18:27:22 -07:00
2015-07-03 16:32:29 +02:00
2016-08-04 11:44:40 -04:00
2019-01-10 09:00:17 -05:00
2016-05-26 00:49:34 +02:00
2016-05-26 00:49:34 +02:00
2017-02-24 02:43:25 +01:00
2019-11-30 19:37:44 +01:00
2017-06-09 13:57:24 -04:00
2017-03-10 11:23:48 -08:00
2017-11-09 12:57:16 +01:00
2017-03-10 11:23:48 -08:00
2019-03-27 15:52:11 -04:00
2015-12-16 10:08:43 -05:00
2019-10-11 12:33:40 -07:00
2018-02-16 18:32:59 +01:00
2017-05-19 15:22:44 -04:00
2017-05-19 15:22:44 -04:00
2016-07-27 13:56:55 +02:00
2016-07-27 13:56:55 +02:00
2019-05-28 23:42:33 +03:00
2017-03-10 11:23:48 -08:00
2015-10-17 11:53:45 -04:00
2019-01-17 16:14:41 -08:00
2018-10-08 20:01:07 -07:00
2019-08-20 09:49:48 -05:00
2016-07-20 13:01:42 -04:00
2018-09-21 19:20:26 -07:00
2019-06-06 18:44:21 -04:00
2018-01-16 23:44:27 +01:00
2019-11-19 14:46:07 +01:00
2018-01-11 16:49:38 +01:00
2018-04-04 17:31:45 -07:00
2018-09-22 15:53:20 +02:00
2017-06-30 19:21:23 +02:00
2017-06-30 19:21:23 +02:00
2016-02-25 15:06:41 -05:00
2016-02-25 15:06:41 -05:00
2016-04-29 00:45:49 +02:00
2019-12-01 10:26:44 +01:00
2017-11-13 08:26:38 +01:00
2018-11-28 11:14:37 -08:00
2017-01-02 18:28:18 -05:00
2017-01-02 18:28:18 -05:00
2017-03-10 11:23:48 -08:00
2018-04-28 18:17:28 +02:00
2016-03-21 23:20:43 -07:00
2019-01-05 21:36:47 +01:00
2016-03-21 23:20:43 -07:00
2019-07-31 13:33:46 -07:00
2019-04-17 19:46:00 +02:00
2017-11-11 10:58:09 +01:00
2017-03-10 11:23:48 -08:00
2017-03-10 11:23:48 -08:00
2019-08-20 09:49:48 -05:00
2015-03-19 21:42:16 +11:00
2015-03-19 21:42:16 +11:00
2015-03-19 21:42:16 +11:00
2018-07-14 12:04:53 +02:00
2016-03-23 13:04:19 -04:00
2016-03-23 13:04:19 -04:00
2017-04-01 13:27:52 +02:00
2018-04-06 23:26:07 -07:00
2017-03-10 11:23:48 -08:00
2017-09-01 10:33:15 -04:00
2017-10-11 14:51:41 -04:00
2019-12-17 18:21:09 -05:00
2019-06-11 10:20:31 -07:00
2019-09-13 16:58:41 +02:00
2016-04-29 00:45:49 +02:00
2017-03-10 11:23:48 -08:00
2019-01-08 12:57:24 -06:00
2019-01-08 12:57:24 -06:00
2017-03-10 11:23:48 -08:00
2019-01-08 12:57:24 -06:00
2019-01-08 12:57:24 -06:00
2017-03-20 20:48:14 +01:00
2017-07-25 21:50:44 +03:00
2018-02-26 23:18:12 +00:00
2018-03-08 10:37:29 -06:00
2019-12-09 10:23:07 +01:00
2019-12-09 10:23:07 +01:00
2017-03-10 11:23:48 -08:00
2017-03-10 11:23:48 -08:00
2017-03-10 11:23:48 -08:00
2017-03-10 11:23:48 -08:00
2015-09-06 21:38:07 +10:00
2015-09-06 21:38:08 +10:00
2015-12-05 11:15:49 -05:00
2017-03-10 11:23:48 -08:00
2019-07-30 14:02:19 -07:00
2017-06-06 23:33:56 -07:00
2017-07-12 12:12:48 +08:00
2017-02-28 18:39:20 -08:00
2017-02-28 18:39:20 -08:00
2019-06-01 10:01:15 -04:00
2019-05-26 13:04:29 -05:00
2016-03-24 13:19:11 -07:00
2019-01-30 18:14:38 +01:00
2019-08-20 09:49:48 -05:00
2018-06-06 19:44:15 +02:00