Commit Graph
25009 Commits
Author SHA1 Message Date
Kirill Bulatov 6a9e12f9c2 Properly support prettier plugins 2023-10-11 12:56:29 +03:00
Kirill Bulatov 2dfddc6d98 Do not clear cache for default prettiers 2023-10-11 12:56:29 +03:00
Kirill Bulatov 1c58aafd9c Allow to configure default prettier 2023-10-11 12:56:29 +03:00
Kirill Bulatov b2de5622b2 Watch for prettier file changes 2023-10-11 12:56:29 +03:00
Kirill Bulatov 87907a227a Resolve prettier config on server init 2023-10-11 12:56:29 +03:00
Kirill Bulatov 80a3a26532 Properly log pre-lsp prettier_server events 2023-10-11 12:56:29 +03:00
Kirill Bulatov 0d975919d2 Improve prettier_server LSP names in the log panel 2023-10-11 12:56:29 +03:00
Kirill Bulatov 5b5db55ba9 Before server startup, log to stderr 2023-10-11 12:56:29 +03:00
Kirill Bulatov eb5e438de4 Implement missing prettier_server clear method 2023-10-11 12:56:29 +03:00
Kirill Bulatov 95e5853096 Return message id in prettier_server error responses 2023-10-11 12:56:29 +03:00
Kirill Bulatov ddde313d2b Add prettier language servers to LSP logs panel 2023-10-11 12:56:29 +03:00
Kirill Bulatov 5c08050544 Rebase fixes 2023-10-11 12:56:29 +03:00
Kirill Bulatov fae35eb895 Even more generic header printing in prettier_server 2023-10-11 12:56:29 +03:00
Kirill Bulatov c5f35e1814 Generify prettier properties, add tabWidth 2023-10-11 12:56:29 +03:00
Kirill Bulatov 5da3a8bad3 Better pass prettier options 2023-10-11 12:56:29 +03:00
Kirill Bulatov 7c7279a5e3 Calculate the diff 2023-10-11 12:56:29 +03:00
Kirill Bulatov 1152d3cfc1 Add more parameters into prettier invocations 2023-10-11 12:56:29 +03:00
Kirill Bulatov 8e3be29eaf Draft prettier_server formatting 2023-10-11 12:56:29 +03:00
Kirill Bulatov c35c17985d Initialize prettier_server.js wrapper along with default prettier 2023-10-11 12:56:29 +03:00
Kirill Bulatov bac54d6b84 Use LSP-like protocol for prettier wrapper commands 2023-10-11 12:56:29 +03:00
Kirill Bulatov c9fb196e95 Async-ify prettier wrapper 2023-10-11 12:56:29 +03:00
Kirill Bulatov 5fdac7b3b2 Require prettier argument and library in the wrapper 2023-10-11 12:56:29 +03:00
Kirill Bulatov 3cc17dc8dd Install default prettier and plugins on startup 2023-10-11 12:56:29 +03:00
Kirill Bulatov df2c2470c8 Make language adapters able to require certain bundled formatters 2023-10-11 12:56:29 +03:00
Kirill Bulatov a7f42aa29e Slightly better prettier settings and discovery 2023-10-11 12:56:29 +03:00
Kirill Bulatov a92b61844a Make NodeRuntime non-static for prettier runner 2023-10-11 12:56:29 +03:00
Kirill Bulatov 7cc926ec0f Use proper NodeRuntime in the formatter interface 2023-10-11 12:56:28 +03:00
Kirill Bulatov b165871103 Add prettier search 2023-10-11 12:56:28 +03:00
Kirill Bulatov 0410fee03d Prepare prettier file lookup code infra 2023-10-11 12:56:28 +03:00
Kirill Bulatov 3317e5479b Properly connect prettier lookup/creation methods 2023-10-11 12:56:28 +03:00
Kirill Bulatov 40de5415c9 Draft a project part of the prettier 2023-10-11 12:56:28 +03:00
JuliaandAntonio Scandurra 5033682ba9 Get started with a prettier server package
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
2023-10-11 12:56:28 +03:00
Antonio Scandurra a92c184bad Checkpoint 2023-10-11 11:03:08 +02:00
Antonio Scandurra 3338febd91 Checkpoint 2023-10-11 10:45:57 +02:00
Antonio Scandurra 9531c7d23f Checkpoint 2023-10-11 09:17:25 +02:00
Joseph T. Lyons 20a234ed22 Fix Discord text truncation 2023-10-11 01:54:32 -04:00
Nathan Sobo b580a6afca WIP 2023-10-10 22:49:47 -06:00
Nathan Sobo 8542bd56d1 Checkpoint 2023-10-10 22:14:47 -06:00
Conrad Irwin 11fce8a8ba Revert accidental build change 2023-10-10 19:59:57 -06:00
Conrad Irwin 01cb073a7c Don't wrap on paragraphs (#3094)
Release Notes:

- vim: `{` and `}` will no longer wrap around end of file
([#2116](https://github.com/zed-industries/community/issues/2116)).
2023-10-10 19:25:40 -06:00
Conrad Irwin 69b8cdd9bd vim: Add shift-y (#3117)
Release Notes:

- vim: Add `Y` to copy line-wise (this copies vim's behaviour, which
differs from nvim's)
2023-10-10 19:25:32 -06:00
Conrad Irwin 503868680c vim: Add shift-y 2023-10-10 18:46:49 -06:00
Max Brunsfeld bd02d37784 Fix inclusion of spurious views from other projects in FollowResponse (#3116)
A logic error in https://github.com/zed-industries/zed/pull/2993 caused
follow responses to sometimes contain extra views for other unshared
projects 😱 . These views would generally fail to deserialize on the
other end. This would create a broken intermediate state, where the
following relationship was registered on the server (and on the leader's
client), but the follower didn't have the state necessary for following
into certain views.

Release Notes:

- Fixed a bug where following would sometimes fail if the leader had
another unshared project open.
2023-10-10 15:53:11 -07:00
Max Brunsfeld a202dafbba Fix inclusion of spurious views from other projects in FollowResponse 2023-10-10 15:40:40 -07:00
Marshall Bowers 65413eaa02 Wire up toggling of project and chat panels 2023-10-10 18:35:20 -04:00
Marshall Bowers 0f2f120de9 Add working toggle for LanguageSelector 2023-10-10 18:21:44 -04:00
Marshall Bowers 74204ed2ce Thread click handler through from workspace to language selector 2023-10-10 18:02:08 -04:00
Marshall Bowers 16ffb01de3 Add click handlers to some of the buttons in the StatusBar 2023-10-10 17:26:53 -04:00
Marshall Bowers 167b5ac941 Add on_click to IconButton 2023-10-10 17:26:33 -04:00
Marshall Bowers d24f58abb3 Wire up click handlers on Buttons 2023-10-10 17:19:18 -04:00