zed/extensions
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
..
astro Extract Astro support into an extension (#9835) 2024-03-26 18:50:08 -04:00
clojure clojure: Add license file (#10127) 2024-04-03 12:04:14 -04:00
csharp File context for assistant panel (#9712) 2024-03-29 13:55:01 -07:00
dart Add language_server_workspace_configuration to extension API (#10212) 2024-04-05 17:04:07 -04:00
emmet Add support for using a language server with multiple languages (#10293) 2024-04-08 14:24:56 -04:00
erlang Extract Erlang support into an extension (#9974) 2024-03-29 18:03:38 -04:00
gleam gleam: Strip newlines in completion details returned from language server (#10304) 2024-04-08 21:43:18 -04:00
haskell Add label_for_symbol to extension API (#10179) 2024-04-04 15:38:38 -04:00
html Extract HTML support into an extension (#10130) 2024-04-03 12:42:36 -04:00
php Allow extensions to provide data for language_ids (#10053) 2024-04-01 17:01:11 -04:00
prisma Add the ability for extensions to provide language settings (#10296) 2024-04-08 19:17:12 -04:00
purescript Fix typo in PureScript extension's struct name (#9831) 2024-03-26 16:29:55 -04:00
svelte Add language_server_workspace_configuration to extension API (#10212) 2024-04-05 17:04:07 -04:00
toml Add new make-file-executable API for extensions (#10047) 2024-04-01 15:28:24 -04:00
uiua Update extension descriptions (#9939) 2024-03-28 17:14:55 -04:00
zig Add new make-file-executable API for extensions (#10047) 2024-04-01 15:28:24 -04:00
.gitignore Provide wasm extensions with APIs needed for using pre-installed LSP binaries (#9085) 2024-03-08 17:18:06 -05:00