Commit Graph
12585 Commits
Author SHA1 Message Date
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
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
Mikayla Maki 6527df5ac0 Update channel rooms to be ephemeral (#3115)
This fixes a bug that was introduced by
https://github.com/zed-industries/zed/pull/3093, which assumed that
rooms for channels where ephemeral, by making rooms for channels
ephemeral.

Release Notes:

- N/A
2023-10-10 13:28:42 -07:00
Mikayla 66fad069b4 Rename release channel to enviroment 2023-10-10 13:23:03 -07:00
Joseph T. Lyons c0ef608ad2 Slim down pull request template 2023-10-10 16:04:31 -04:00
6912545774 Update channel rooms to be ephemeral
Remove redundant live kit initialization code
Fix bug in recent channel links changes where channel rooms would have the incorrect release set

co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
co-authored-by: Max <max@zed.dev>
2023-10-10 12:39:16 -07:00
Antonio Scandurra 31062e08d0 Revert outline summarization (#3114)
This pull request essentially reverts #3067: we noticed that only using
the function signatures produces far worse results in codegen, and so
that feels like a regression compared to before. We should re-enable
this once we have a smarter approach to fetching context during codegen,
possibly when #3097 lands.

As a drive-by, we also fixed a longstanding bug that caused codegen to
include the final line of a selection even if the selection ended at the
start of the line.

Ideally, I'd like to hot fix this to preview so that it goes to stable
during the weekly release.

/cc: @KCaverly @nathansobo 

Release Notes:

- N/A
2023-10-10 19:20:54 +02:00
Antonio Scandurra f9d695fa98 Don't include start of a line when selection ends at start of line 2023-10-10 19:11:13 +02:00
Antonio ScandurraandNathan Sobo bce1a18cac Revert summarizing file content until we can be more intelligent about what we send
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2023-10-10 17:51:17 +02:00
Conrad Irwin 8d0021acbb Add channel links (#3093)
Release notes:

- `mute_on_join` setting now defaults to false.
- Right click on a channel to "Copy Channel Link", these links work to
open Zed and auto-join the channel

Blocked on: https://github.com/zed-industries/zed.dev/pull/388
2023-10-10 08:53:50 -06:00
Kirill Bulatov fd37ac4c69 Omit history files with path that does not exist on disk anymore (#3113) 2023-10-10 11:55:06 +02:00
Kirill Bulatov 53277fe90e Omit history files with path that does not exist on disk anymore 2023-10-10 12:26:48 +03:00
Joseph T. Lyons 9052693946 Truncate Discord release note text (#3112)
Hopefully this works the first time 😅

Release Notes:

- N/A
2023-10-10 00:07:48 -04:00
Joseph T. Lyons ed6a736db5 Truncate Discord release note text 2023-10-10 00:00:57 -04:00
Conrad Irwin 36c95ae516 Merge branch 'main' into links 2023-10-09 20:08:48 -06:00
Conrad Irwin b83ca0c3c4 code review 2023-10-09 19:06:55 -06:00
Max Brunsfeld c497963444 More small following-related fixes (#3110) 2023-10-09 15:25:22 -07:00
Max Brunsfeld b06ede0175 Avoid possible panic in Room::most_active_project
Participants' locations might momentarily reference projects that have already been unshared.
2023-10-09 15:04:01 -07:00
Max Brunsfeld 5e9452789d Add a Reconnect action, for simulating connection blips 2023-10-09 14:46:33 -07:00
Max Brunsfeld 057666a0c4 Handle participants' participant index changing
This normally doesn't happen, but it can happen if a participant
loses connection ungracefully, restarts their app, and then
explicitly joins again.
2023-10-09 14:45:19 -07:00
Max Brunsfeld c8032614f6 Log a warning when leader activates an unknown view 2023-10-09 14:29:45 -07:00
Kirill Bulatov 375f338063 Detect file paths that end with : (#3109)
New rustc messages look like

```
thread 'tests::test_history_items_vs_very_good_external_match' panicked at crates/file_finder/src/file_finder.rs:1902:13:
assertion `left == right` failed: Only one history item contains collab_ui, it should be present and others should be filtered out
  left: 0
 right: 1
```

now and we fail to parse that `13:` bit properly, fix that.

One caveat is that we highlight the entire word including the trailing
`:`:
<img width="914" alt="image"
src="https://github.com/zed-industries/zed/assets/2690773/d653a8ff-3e6e-4e3d-b6ea-dad0c8db0f06">

this is unfortunate, but better than nothing (as now).
This is due to the fact, that we detect words with regex inside the
`terminal.rs` and send events to other place that's able to check paths
for existence (and whether that's a path at all), currently there's no
way to detect a path and sanitize it in `terminal.rs`

Release Notes:

- N/A
2023-10-09 23:16:03 +02:00
Kirill Bulatov 0aca36ab63 Detect file paths that end with :
New rustc messages look like

```
thread 'tests::test_history_items_vs_very_good_external_match' panicked at crates/file_finder/src/file_finder.rs:1902:13:
assertion `left == right` failed: Only one history item contains collab_ui, it should be present and others should be filtered out
  left: 0
 right: 1
```

now and we fail to parse that `13:` bit properly, fix that.
2023-10-09 23:55:58 +03:00
Max Brunsfeld 1c2db83bd1 Fix bug that allowed following multiple people in one pane (#3108)
I've also simplified the representation of a workspace's leaders, so
that it encodes in the type that there can only be one leader per pane.

Release Notes:

- Fixed a bug where you could accidentally follow multiple collaborators
in one pane at the same time.
2023-10-09 13:50:51 -07:00
Kirill Bulatov 9ddb186dd8 Ignore history items' paths when matching search queries (#3107)
Follow-up of https://github.com/zed-industries/zed/pull/3059 

Before: 

![image](https://github.com/zed-industries/zed/assets/2690773/4eb2d2d1-1aa3-40b8-b782-bf2bc5f17b43)

After:

![image](https://github.com/zed-industries/zed/assets/2690773/5587d46b-9198-45fe-9372-114a95d4b7d6)

Release Notes:

- N/A
2023-10-09 22:35:11 +02:00
Max Brunsfeld 65e37b561b Ensure there's only one leader per pane 2023-10-09 13:32:38 -07:00
Max Brunsfeld a41791a817 Add failing test for switching leaders in a pane 2023-10-09 13:30:14 -07:00