Aleksey Kladov
da80b6c1e1
Minor refactor
2019-12-30 20:00:46 +01:00
Laurențiu Nicola
273299693b
Code: enable prettier trailing commas
2019-12-09 21:07:19 +02:00
Emil Lauridsen
dadad36bb9
Move type inlay hint truncation to language server
...
This commit implements a general truncation framework for HirFormatter
that keeps track of how much has been output so far. This information
can then be used to perform truncation inside the language server,
instead of relying on the client.
Initial support is implemented for truncating types hints using the
maxInlayHintLength server config option. The existing solution in the
VSCode extension has been removed in favor of letting the server
truncate type hints.
2019-11-19 17:23:50 +01:00
Wilco Kusee
770bb8dc9b
Do not truncate the range
2019-10-23 13:11:40 +02:00
Wilco Kusee
3b61acb4ae
Make inlay hint length configurable
2019-10-18 13:45:04 +02:00
Wilco Kusee
ce4fb06dec
Truncate hints longer than 20 characters
2019-10-10 14:52:05 +02:00
Kirill Bulatov
c5598d9ade
Avoid shared mutable state
2019-08-05 23:11:16 +03:00
Kirill Bulatov
777552b6a8
Cache decorations before the first change only
2019-08-05 13:41:02 +03:00
Kirill Bulatov
f358b4c0c0
Use WeakMap to avoid memory leaks
2019-08-05 11:14:18 +03:00
Kirill Bulatov
3fb6462d54
Style and test fixes
2019-08-05 01:02:36 +03:00
Kirill Bulatov
2c02aebeb5
Query less hints on file open
2019-08-05 00:23:58 +03:00
Kirill Bulatov
4924867b3b
Style fixes
2019-07-29 11:19:13 +03:00
Kirill Bulatov
b133a3b55c
Ignore cancelled inlay hints responses
2019-07-29 10:19:35 +03:00
Kirill Bulatov
f1ba963a30
npm run fix
2019-07-25 16:20:02 +03:00
Kirill Bulatov
02f18abc55
Code review fixes
2019-07-25 15:43:35 +03:00
Kirill Bulatov
bd904247ba
Remove unnecessary hacks
2019-07-25 15:17:28 +03:00
Kirill Bulatov
583f5c9612
Fix linter issues
2019-07-25 15:17:28 +03:00
Kirill Bulatov
f7b8ae1ee7
Simplify the hints display
2019-07-25 15:17:28 +03:00
Kirill Bulatov
169e69d217
Show type decorators
2019-07-25 15:17:28 +03:00