Commit Graph
25009 Commits
Author SHA1 Message Date
Max Brunsfeld 75214f7a5a Fix error in query for last N channel messages (#3100) 2023-10-06 11:24:34 -07:00
Joseph T. Lyons f012ad0594 Use display name for release channel in panic events (#3101)
This was a mistake from long ago - something I've been meaning to fix
for a long time. All other events use `display_name()`, but panic
events, which leads to mistakes when filtering out `Zed Dev`, which
isn't the format that `dev_name()` returns. I'm adding a fix to zed.dev
as well:

- https://github.com/zed-industries/zed.dev/pull/393

so that the values are adjusted for all clients, not just ones with this
fix. I will correct the data in clickhouse, and adjust the queries in
metabase.

Release Notes:

- N/A
2023-10-06 14:20:06 -04:00
Joseph T. Lyons d20a0af4fe Use display name for release channel in panic events 2023-10-06 14:04:38 -04:00
Max Brunsfeld 698a7eb32c Fix error in query for last N channel messages 2023-10-06 10:58:34 -07:00
Marshall Bowers 34954d10d8 Fix compile errors 2023-10-06 13:54:37 -04:00
Marshall Bowers 52c5dcd3aa Restore Sized bound on StyleHelpers 2023-10-06 13:45:56 -04:00
Marshall Bowers b479084fd2 Merge branch 'gpui2' into marshall/gpui2-playground 2023-10-06 13:45:11 -04:00
Marshall Bowers c4493846ca Merge branch 'main' into marshall/gpui2-playground 2023-10-06 13:33:04 -04:00
Joseph T. Lyons fc032f6bb4 Add session id to panic events (#3098)
Release Notes:

- N/A
2023-10-06 13:32:45 -04:00
Julia b87bd87933 Re-enable language servers 2023-10-06 13:26:39 -04:00
Julia dbd0eb6288 If documentation included in original completion then parse up front 2023-10-06 13:26:39 -04:00
Julia 71d90aa792 Unbork info popover parsing/rendering and make better 2023-10-06 13:26:39 -04:00
Julia 02523c3e1c Don't need editor style to parse markdown 2023-10-06 13:26:39 -04:00
Julia 96eb6b7dce Wait for language to load when parsing markdown 2023-10-06 13:26:39 -04:00
Julia 7c3b57c643 If documentation exists and hasn't been parsed, do so at render and keep 2023-10-06 13:26:38 -04:00
Julia ee129e022f Preparse documentation markdown when resolving completion 2023-10-06 13:26:38 -04:00
Julia 7e915279f6 Asynchronously request completion documentation if not present 2023-10-06 13:26:38 -04:00
Julia adc3c0bc04 Use completion item default data when provided 2023-10-06 13:26:38 -04:00
Julia 8f1f17e3de Most of getting completion documentation resolved & cached MD parsing 2023-10-06 13:26:38 -04:00
Julia 45c9640166 Make completion docs scrollable 2023-10-06 13:26:38 -04:00
Julia e2460385e6 Merge info popover's and autocomplete docs' markdown rendering 2023-10-06 13:26:38 -04:00
Julia 33cd059f05 Add markdown rendering to alongside completion docs 2023-10-06 13:26:38 -04:00
Julia 8accb97a89 Actually display the correct completion's doc 2023-10-06 13:26:38 -04:00
Julia 326a103d4e Start hacking in autocomplete docs 2023-10-06 13:26:38 -04:00
fcd44e93d3 Mainline GPUI2 UI work (#3099)
This PR mainlines the current state of new GPUI2-based UI from the
`gpui2-ui` branch.

Included in this is a performance improvement to make use of the
`TextLayoutCache` when calling `layout` for `Text` elements.

Release Notes:

- N/A

---------

Co-authored-by: Nate Butler <iamnbutler@gmail.com>
Co-authored-by: Antonio Scandurra <me@as-cii.com>
2023-10-06 13:18:56 -04:00
Joseph T. Lyons 03558e430f Add session id to panic events 2023-10-06 12:32:20 -04:00
Conrad Irwin 03d8021662 Don't wrap on paragraphs
For zed-industries/community#2116
2023-10-06 10:32:15 -06:00
Marshall Bowers 96b905c905 Add profiling information for compute_layout 2023-10-06 10:48:25 -04:00
KCaverly 34d148dd2d clean up redundancies in prompts and ensure tokens are being reserved for generation when filling semantic context 2023-10-06 16:43:19 +02:00
KCaverly e30c75f1a9 catchup with main 2023-10-06 16:30:31 +02:00
KCaverly c18f0b9e26 ensure indexing is only done when permissioned 2023-10-06 16:08:36 +02:00
KCaverly 2e3e6e6472 updated spacing for assistant context status icon 2023-10-06 15:43:28 +02:00
Antonio Scandurra 4ffd67fd8f Checkpoint: underlines 2023-10-06 15:34:37 +02:00
Piotr Osiewicz d2ff0ea117 chore: Upgrade to Rust 1.73 (#3096)
Release Notes:
- N/A
2023-10-06 14:50:29 +02:00
Piotr Osiewicz 7958d8d4c7 rust: Highlight async functions in completions (#3095)
Before (code in screenshot is from this branch,
`crates/zed/languages/rust.rs:179`):

![image](https://github.com/zed-industries/zed/assets/24362066/6b709f8c-1b80-4aaa-8ddc-8db9dbca5a5e)
Notice how the last 2 entries (that are async functions) are not
highlighted properly.
After:

![image](https://github.com/zed-industries/zed/assets/24362066/88337f43-b97f-4257-9c31-54c9023e8dbb)

This is slightly suboptimal, as it's hard to tell that this is an async
function - I guess adding an `async` prefix is not really an option, as
then we should have a prefix for non-async functions too. Still, at
least you can tell that something is a function in the first place. :)

Release Notes:
- Fixed Rust async functions not being highlighted in completions.
2023-10-06 14:43:03 +02:00
KCaverly 6faa4b675b add indexing on inline assistant opening 2023-10-06 08:46:40 +03:00
KCaverly 76cb056b90 fix spawn bug from calling 2023-10-06 08:30:54 +03:00
Nathan Sobo 263fcbc21d Checkpoint 2023-10-05 21:02:26 -06:00
Nathan Sobo 5934c85519 Synchronize access when starting and stopping display links
Hoping this prevents panics we were observing when starting.
2023-10-05 20:46:26 -06:00
Mikayla c5e9730e95 make bundle script incremental when using debug or local builds 2023-10-05 16:56:44 -07:00
Max Brunsfeld 6d08b2cabd Fix panic when immediately closing a window while opening paths (#3092)
Fixes this panic that I've been seeing in Slack:


[example](https://zed-industries.slack.com/archives/C04S6T1T7TQ/p1696530575535779)


```
thread 'main' panicked at 'assertion failed: opened_items.len() == project_paths_to_open.len()'
crates/workspace/src/workspace.rs:3628
<backtrace::capture::Backtrace>::create
<backtrace::capture::Backtrace>::new
Zed::init_panic_hook::{closure#0}
std::panicking::rust_panic_with_hook
std::panicking::begin_panic_handler::{{closure}}
std::sys_common::backtrace::__rust_end_short_backtrace
_rust_begin_unwind
core::panicking::panic_fmt
core::panicking::panic
<workspace::Workspace>::new_local::{closure#0}::{closure#0}
```

I believe it was caused by a window being closed immediately, while it
was still loading some paths. There was a mismatch in expectation
between the `workspace::open_items` function (which contains this
assertion), and the `Workspace::load_workspace` method. That later
method can return an empty vector if the workspace handle is dropped
while it is executing.

Release Notes:

- Fixed a crash when closing a Zed window immediately after opening it
2023-10-05 16:28:23 -07:00
Max Brunsfeld 2c0034830d Fix panic when immediately closing a window while opening paths 2023-10-05 16:21:14 -07:00
Max Brunsfeld 4cdf8a6fd7 collab 0.23.2 2023-10-05 16:06:28 -07:00
Max Brunsfeld 9adbdbed57 Fix bugs in handling mutual following (#3091)
This fixes some bugs in our following logic, due to our attempts to
prevent infinite loops when two people follow each other.

* Propagate all of leader's views to a new follower, even if those views
were originally created by that follower.
* Propagate active view changes to followers, even if the active view is
following that follower.
* Avoid redundant active view updates on the client.

Release Notes:

- Fixed bugs where it was impossible to follow someone into a view that
they previously following you into.
2023-10-05 15:16:58 -07:00
Conrad Irwin 9da086cfce Code to allow opening zed:/channel/1234
Refactored a bit how url arguments are handled to avoid adding too much
extra complexity to main.
2023-10-05 14:57:45 -07:00
Conrad Irwin 1d011ac00b Fix ./script/bundle -l 2023-10-05 14:55:39 -07:00
Conrad Irwin 533a921627 Add url schemes to Zed 2023-10-05 14:55:39 -07:00
Mikayla Maki 0bb0e601bd Add markdown parsing to channel chat (#3088)
TODO:
- [x] Add markdown rendering to channel chat
- [x] Unify (?) rendering logic between hover popover and chat
- [x] ~~Determine how to deal with document-oriented markdown like `#`~~
Unimportant until we want to do something special with `#channel`
- [x] Tidy up spacing and styles in chat panel

Release Notes:

- Added markdown rendering to channel chat
- Improved channel chat message style
- Fixed a bug where long chat messages would not soft wrap
2023-10-05 14:30:12 -07:00
Mikayla aa11e374c3 re-unify markdown parsing between hover_popover and chat 2023-10-05 14:22:41 -07:00
Nathan Sobo aed0e8aa68 Checkpoint 2023-10-05 14:42:29 -06:00