zed/extensions/gleam
Marshall Bowers a4566c36a3
gleam: Strip newlines in completion details returned from language server (#10304)
This PR updates the Gleam extension to strip out newlines in the
completion details returned from the language server.

These newlines were causing the completion menu to compute a large
height for each item, resulting in lots of empty space in the completion
menu:

<img width="878" alt="Screenshot 2024-04-08 at 8 53 29 PM"
src="https://github.com/zed-industries/zed/assets/1486634/383c52ec-e5cb-4496-ae4c-28744b4ecaf5">

The approach to stripping newlines allocates a bit more than I would
like.

It would be good to see if it is possible for the Gleam language server
to not send us these newlines in the first place.

Release Notes:

- N/A
2024-04-08 21:43:18 -04:00
..
languages/gleam Add the ability for extensions to provide language settings (#10296) 2024-04-08 19:17:12 -04:00
src gleam: Strip newlines in completion details returned from language server (#10304) 2024-04-08 21:43:18 -04:00
Cargo.toml Add label_for_completion to extension API (#10175) 2024-04-04 13:56:04 -04:00
extension.toml Update extension descriptions (#9939) 2024-03-28 17:14:55 -04:00
LICENSE-APACHE Add license to Gleam extension (#8730) 2024-03-02 17:56:57 -05:00