Commit Graph
12615 Commits
Author SHA1 Message Date
Kirill Bulatov 1fe640e35e Fix tailwind prettier plugin discovery 2023-10-12 15:58:00 +03:00
Kirill Bulatov 31cb6e46be Make all formatting to happen on the client's buffers, as needed 2023-10-12 15:29:57 +03:00
Kirill Bulatov 222bb37da6 Add more tests 2023-10-12 15:14:51 +03:00
Kirill Bulatov 7c90ad59a6 Make the first prettier test pass 2023-10-12 13:30:49 +03:00
Kirill Bulatov 41d699ac40 Prettier server style fixes 2023-10-12 12:31:30 +03:00
Kirill Bulatov 61f321016d Add prettier tests infrastructure 2023-10-11 19:13:28 +03:00
Kirill Bulatov dde0112d98 Initialize prettier right after the buffer gets it language 2023-10-11 14:48:32 +03:00
Kirill Bulatov a29eef27be Small style fixes 2023-10-11 12:56:29 +03:00
Kirill Bulatov ca0c508c1d Rebase fixes 2023-10-11 12:56:29 +03:00
Kirill Bulatov 9b27d92c37 Draft remote prettier formatting 2023-10-11 12:56:29 +03:00
Kirill Bulatov 88145b6ab7 Invoke remote Prettier commands 2023-10-11 12:56:29 +03:00
Kirill Bulatov 1c32c3d5b3 Draft local and remote prettier separation 2023-10-11 12:56:29 +03:00
Kirill Bulatov c863818969 Better detect Svelte plugins 2023-10-11 12:56:29 +03:00
Kirill Bulatov 29c08652a8 Better prettier format logging 2023-10-11 12:56:29 +03:00
Kirill Bulatov 7c20de9af8 Resolve prettier config before every formatting 2023-10-11 12:56:29 +03:00
Kirill Bulatov c9888c9ee4 Properly use WorktreeId 2023-10-11 12:56:29 +03:00
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
Joseph T. Lyons 20a234ed22 Fix Discord text truncation 2023-10-11 01:54:32 -04:00
Conrad Irwin 11fce8a8ba Revert accidental build change 2023-10-10 19:59:57 -06:00