Commit Graph
53 Commits
Author SHA1 Message Date
Kirill Bulatov 6704b219bc Port changes to zed2 2023-11-03 11:02:50 +02:00
Kirill Bulatov ec09c85a45 Make it more clear that missing prettier is to blame 2023-11-03 11:02:50 +02:00
Kirill Bulatov 4a1059b0ba Fix the bugs 2023-11-03 11:02:50 +02:00
Kirill Bulatov f58cd0b999 Rework prettier installation and start 2023-11-03 11:02:50 +02:00
Kirill Bulatov f104a3a48a Add prettier workspace resolution test 2023-11-03 11:02:50 +02:00
Kirill Bulatov c5d357890a Start message numbering during prettier init, log error message text 2023-10-30 22:26:06 +02:00
Kirill Bulatov 32aa09edf8 Be more lenient when searching for prettier instance
Do not check FS for existence (we'll error when start running prettier),
simplify the code for looking it up
2023-10-30 12:13:58 +02:00
Kirill Bulatov baffccd01d Do not panic on prettier search 2023-10-30 12:13:54 +02:00
Kirill Bulatov 5e463bcb12 Properly log prettier paths 2023-10-30 11:14:00 +02:00
Julia b13da646e8 Capture language server stderr during startup/init and log if failure 2023-10-26 12:29:22 +02:00
Kirill Bulatov ab12b3c6e1 Rework prettier tests
Do not infuse `FakeNodeRuntime` with prettier exceptions, rather keep
the default formatter installation method as no-op.
2023-10-24 14:25:46 +02:00
Kirill Bulatov fb3932aa57 Move prettier parsers data into languages from LSP adapters 2023-10-21 01:14:03 +02:00
Kirill Bulatov fb44db5303 Fix license issue 2023-10-12 16:26:28 +03:00
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 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 a29eef27be Small style 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 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 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 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 a7f42aa29e Slightly better prettier settings and discovery 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