Kirill Bulatov
58a9278342
Tailwind autocomplete ( #2920 )
...
Release Notes:
- Added basic Tailwind CSS autocomplete support
([#746 ](https://github.com/zed-industries/community/issues/746 )).
2023-08-31 16:55:46 +03:00
Kirill Bulatov
676fc679d3
Fix the tests, by not requiring stderr for fake servers
2023-08-31 11:07:37 +03:00
Julia
3faabbe91a
Merge branch 'main' into multi-server-completions-tailwind
2023-08-30 22:58:37 -04:00
Kirill Bulatov
6905f4fadf
Capture language servers' stderr into server logs
2023-08-31 01:14:37 +03:00
Kirill Bulatov and Julia Risley
78dff7bf7e
Reap overly long LSP requests with a 2m timeout
...
Co-authored-by: Julia Risley <julia@zed.dev >
2023-08-30 18:41:41 +03:00
Kirill Bulatov
0b4d2d0e77
Use proper property names for inlay hint resolve capabilities
2023-08-28 00:27:59 +03:00
Max Brunsfeld
cf311455ba
Fix rust 1.72 warnings about shadowed glob re-exports
2023-08-25 10:25:21 -07:00
Julia
ca3fdfc6b6
Utilize LSP completion itemDefaults a bit
...
Tailwind likes to throw a lot of completion data at us, this gets it to
send less. Previously it would respond to a completion with 2.5 MB JSON
blob, now it is more like 0.8 MB.
Relies on a local copy of lsp-types with the `itemDefaults` field added.
I don't have write perms to push to our fork of the crate atm, sorry :)
2023-08-17 21:57:39 -04:00
Julia
be8b778229
Register initial request handlers before launching server
2023-08-16 21:25:17 -04:00
Kirill Bulatov
0aa34790e5
Strip off inlay hints data that should be resolved
2023-08-14 22:50:55 +03:00
Piotr Osiewicz
9560f20af8
Add scaffolding of php language server
2023-07-17 11:43:32 +02:00
Kirill Bulatov
b56e2b4a28
Remove a flacky test, fix the failing one
2023-06-29 22:45:04 +03:00
Kirill Bulatov
684a6a5fa4
Forbid extra inlay updates
2023-06-29 22:25:49 +03:00
Kirill Bulatov and Julia Risley
79b91fdb7b
React on message-less LSP requests properly
...
Co-Authored-By: Julia Risley <julia@zed.dev >
2023-06-29 22:25:48 +03:00
Kirill Bulatov
39c104f2c2
Stub initial hint requests
2023-06-29 22:25:48 +03:00
Kirill Bulatov
e3654b4b8b
Initial protocol check commit
2023-06-29 22:25:48 +03:00
Julia
e9e3bd616f
Merge branch 'main' into fix-broken-lsp-installations
2023-06-28 16:46:06 -04:00
Julia
4590864edc
Remove installation test binary from language server instance
2023-06-23 13:24:50 -04:00
Julia
14d5b4d3fb
Remove individual location's request error handling
2023-06-22 11:43:26 -04:00
Julia
56d0eeda3d
Revert "Route language server requests through wrapper object"
...
This reverts commit 18096e493f .
2023-06-22 10:45:08 -04:00
Julia
18096e493f
Route language server requests through wrapper object
2023-06-21 23:05:37 -04:00
Kirill Bulatov and Antonio Scandurra
439353cc29
Run LSP response deserialization outside of main thread
...
Improves latency when big inlay hints LSP responses for ~8k line files
Co-Authored-By: Antonio Scandurra <antonio@zed.dev >
2023-06-21 13:20:42 +03:00
Julia
074db3e420
Merge branch 'main' into fix-broken-lsp-installations
2023-06-20 17:23:34 -04:00
Julia
430fd91694
Route some more information for reinstall after startup failure
...
Doesn't actually reinstall on that particular failure due to wrong
variant in hashmap
2023-06-19 15:18:12 -04:00
Kirill Bulatov and Julia Risley
dd1b645c63
React on message-less LSP requests properly
...
Co-Authored-By: Julia Risley <julia@zed.dev >
2023-06-16 22:02:29 +03:00
Julia
c8b86e2031
Setup C adapter with test binary
2023-06-15 12:18:34 -04:00
Julia
7353151a33
Many steps toward validating and reinstalling server after failure
2023-06-15 12:18:34 -04:00
Julia
6c5fd5f1a3
Detect LSP startup failure
2023-06-15 12:18:34 -04:00
Max Brunsfeld
7018e5cff4
Enable type definition capability in fake LSPs in tests
2023-06-08 12:09:37 -07:00
Max Brunsfeld
5603fbe39c
Restructure LSP log view to show log messages in addition to RPC trace
2023-06-07 16:51:09 -07:00
Max Brunsfeld
c4a91f9d58
Improve log message on invalid LSP message from server's stdout
2023-06-06 17:13:59 -07:00
Kirill Bulatov
99509fc6ed
Update LSP to the newest version
2023-05-28 21:55:08 +03:00
Max Brunsfeld
208cf495f8
Adjust diagnostic transformation test to not wait for two buffer notifications
2023-05-26 15:47:37 -07:00
Max Brunsfeld
ed0715fcae
Avoid accidentally dropping subscription when detaching it
2023-04-24 10:04:45 -07:00
Max Brunsfeld
d7e63c8012
Add LanguageServer::on_io method, for observing JSON sent back and forth
2023-04-24 09:43:31 -07:00
Max Brunsfeld
d57a8d85f9
Introduce a LanguageServerId wrapper type
...
Clarify the meaning of all the usizes in use in all of these
struct fields an method signatures.
2023-04-20 08:58:41 -07:00
Julia
3321d699dc
Finish getting multiple diagnostics sources building and running
2023-04-20 08:58:41 -07:00
Julia and Antonio Scandurra
ef288d90d9
Get ESLint to launch and provide diagnostics
...
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
2023-04-20 08:58:41 -07:00
Antonio Scandurra
ff50acaa64
Provide workspace_folders capability when initializing LSP
...
This fixes the YAML language server which was erroring on startup
after adding the `did_change_watched_files` capability in #2258 .
2023-04-03 20:12:26 +02:00
Julia
efde8aeb63
Allow each language adapter to provide their own code action kinds array
2023-03-30 15:41:54 -04:00
Julia and Antonio Scandurra
5deac1d5b3
Initial impl of NodeRuntime w/JSON borked and a deadlock :)
...
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
2023-03-27 00:00:16 -04:00
Julia
543aebed40
Initial running of servers on downloaded Node
2023-03-27 00:00:16 -04:00
Max Brunsfeld
dcc9d282ec
Notify language servers of FS changes
2023-03-21 11:26:13 -07:00
Antonio Scandurra
fb8351563a
Introduce a new TryFutureExt::unwrap method
2023-03-10 11:41:13 +01:00
Max Brunsfeld
e0c9010104
Add setting for removing trailing whitespace on save
2023-02-28 21:52:00 -08:00
Antonio Scandurra and Petros Amoiridis
fb600b950c
Always respond to language server, even when its requests are malformed
...
This was causing Pyright to get stuck waiting for a response when sending
us the `workspace/configuration` request. For some reason, after upgrading
to Pyright 1.1.293, `scopeUri` is being sent as an empty string sometimes,
which causes serde to error when trying to deserialize that request.
Co-Authored-By: Petros Amoiridis <petros@zed.dev >
2023-02-09 15:30:10 +01:00
Kay Simmons
01c5809925
Add lua syntax highlighting and lsp support
2023-02-05 23:21:29 -08:00
Antonio Scandurra and Nathan Sobo
1ecb8e7b2b
Prevent making further requests after language server shut down
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2023-01-06 13:40:32 -07:00
Antonio Scandurra
e2e3a266a5
Fix error on clangd when compile-commands.json is present
...
The language server was failing because we were forgetting to provide
a `jsonrpc` field for responses to requests coming from the lsp.
2022-10-13 11:10:23 +02:00
ForLoveOfCats and Mikayla
fbea44bc5c
One big cleanup pass of clippy lints
...
Co-authored-by: Mikayla <mikayla@zed.dev >
2022-08-10 16:51:01 -07:00