Commit Graph
10643 Commits
Author SHA1 Message Date
Mikayla Maki 71b800391f fmt 2023-07-19 11:10:31 -07:00
Derek Briggs 82ab668575 Fix files that don’t have a prefix 2023-07-19 11:10:30 -07:00
Derek Briggs 8906ce8c8b Update icons to new zed file icon set 2023-07-19 11:10:30 -07:00
Mikayla Maki b5a68644cb fmt 2023-07-19 11:10:30 -07:00
Mikayla Maki 157e96bc4d Make file types live reload 2023-07-19 11:10:30 -07:00
Mikayla Maki 2caa5fa2e4 Add willow license 2023-07-19 11:10:30 -07:00
Mikayla Maki 8db0da3e30 Fix tests 2023-07-19 11:10:30 -07:00
Mikayla Maki 98f263639e Added file suffix and icon associations data 2023-07-19 11:10:30 -07:00
Mikayla Maki e68edb7239 Add settings 2023-07-19 11:10:30 -07:00
Mikayla Maki 36d33e77f0 Add suffix based file icons 2023-07-19 11:10:30 -07:00
Kirill Bulatov 06c705c239 Ignore empty hover contents, trim final hover label text (#2747)
Removes empty hovers from appearing:

![image](https://github.com/zed-industries/zed/assets/2690773/b8a8af17-e20f-4d87-8782-465dfbf9b561)

And trims final hover label to ensure no trailing whitespaces are
present:

![image](https://github.com/zed-industries/zed/assets/2690773/24aeb0f0-d4f0-4e2b-9265-53694bfec437)


Release Notes:

- Tidies up hover elements by trimming them and removing the empty ones
2023-07-18 22:59:24 +03:00
Kirill Bulatov 699c5ceb68 Ignore empty hover contents, trim final hover label text 2023-07-18 22:53:44 +03:00
Joseph T. Lyons 01006aa176 Fix ZED_SERVER_URL port number
This change accidentally slipped into https://github.com/zed-industries/zed/pull/2746
2023-07-18 12:43:27 -04:00
Joseph T. Lyons 46bbec948e Add is_staff to events (#2746)
Release Notes:

- N/A
2023-07-18 12:41:24 -04:00
Joseph T. Lyons b77b8cd6d8 Add is_staff to events 2023-07-18 12:32:53 -04:00
Nate Butler 0482596ba4 Add syntax highlighting for Bash, Shell Scripts (#2722)
Release Notes:

- Added syntax highlighting for Bash, Shell Scripts
2023-07-18 12:21:52 -04:00
Nate Butler 2455f02a83 Update cargo.toml 2023-07-18 12:15:03 -04:00
Nate Butler 079a74cb4b Merge branch 'main' into nate/add-bash-highlighting 2023-07-18 12:08:53 -04:00
Julia 9066a709a3 Detect Node broken-ness initially (#2745)
This will help cases where Node is broken causing Copilot to fail to
start but because it doesn't install via NPM we would not have caught it
prior.

Release Notes:
- Improved detection of broken Node installation impacting Copilot
([#1551](https://github.com/zed-industries/community/issues/1551)).
2023-07-18 10:20:47 -04:00
JuliaandAntonio Scandurra 4c47d64262 Detect Node broken-ness initially
This will help cases where Node is broken causing Copilot to fail to
start but because it doesn't install via NPM we would not have caught
it prior.

Co-Authored-By: Antonio Scandurra <me@as-cii.com>
2023-07-18 10:02:14 -04:00
Piotr Osiewicz 1f6ba57ebd Piotr/z 2588 php (#2721)
Release Notes:

- Added syntax highlighting & Intelephense LSP support for PHP language.
([#46](https://github.com/zed-industries/community/issues/406)).
2023-07-18 14:57:40 +02:00
Kirill Bulatov 3ab9946a29 Slightly tidy up vector_db code (#2744)
Code snippet
```rust
fn main() {
    //√√√√√√√√√√√√√√√√√√√√√√√√√√√√√√√√√√√√√√√√√√√√√√√√√√√√
}
```

has length of 191, but consists of 87 chars, and the debug code with
`.truncate(100)` panicked.
Fixed that issue, cc @KCaverly 


Release Notes:

- N/A
2023-07-18 14:22:34 +03:00
Kirill Bulatov ea187d3576 Slightly tidy up vector_db code
Avoid panicking when truncating code with special chars
2023-07-18 14:06:57 +03:00
Piotr Osiewicz 4093e702e1 Remove redundant debug impl 2023-07-18 12:21:00 +02:00
Piotr Osiewicz ada533c2d4 Remove leftover comment 2023-07-18 12:19:35 +02:00
Conrad Irwin ac99e7aef1 vim: Allow ctrl+[ as an alias for escape (#2741)
Also remove unneeded mappings in `g` and `z` modes

Release Notes:

- Adds `ctrl+[` as an alias for escape
([#538](https://github.com/zed-industries/community/issues/538)).
2023-07-17 15:07:53 -06:00
Conrad Irwin 521a8e4299 Allow ctrl+[ as an alias for escape
Also remove unneeded mappings in `g` and `z` modes

Fixes: zed-industries/community#358
2023-07-17 14:59:08 -06:00
Joseph T. Lyons 43e8bf1c6b Prevent multiple submissions of the same feedback text (#2740)
Fixes:
https://linear.app/zed-industries/issue/Z-2416/improvements-to-feedback-submission

We get a lot of duplicate messages through our in-app feedback. My best
guess is that because we do not tell the user we are doing anything, and
because submission takes awhile, users are hitting the submission button
mutliple times. This PR blocks the submission code, once an initial
submission is sent. If the original submission fails, we unblock the
submission code. The submit button is disabled and enabled accordingly
as well.

Release Notes:

- N/A
2023-07-17 16:15:49 -04:00
Mikayla Maki 0895dd48c1 feat(workspace): add option for moving the tab close button to the left (#2739)
Fixes https://github.com/zed-industries/community/issues/1760

Release Notes:

- Add option for chosing where the close button should be displayed on
editor tabs
2023-07-17 13:10:42 -07:00
Joseph T. LyonsandJulia f1099ed9cc Prevent multiple submissions of the same feedback text
Co-Authored-By: Julia <30666851+ForLoveOfCats@users.noreply.github.com>
2023-07-17 16:10:34 -04:00
Alex Viscreanu 1258838a6f feat(workspace): add option for moving the tab close button to the left 2023-07-17 21:17:28 +02:00
Mikayla Maki 49e759446a feat(workspace): show git status on editor tabs (#2736)
Fixes https://github.com/zed-industries/community/issues/1674

Release Notes:

- Added option for showing git status on editor tabs
2023-07-17 12:14:39 -07:00
Alex Viscreanu f4990e2c20 feat(workspace): show git status on editor tabs 2023-07-17 20:53:42 +02:00
Max Brunsfeld 20f910cc12 Make macOS application menu aware of which key bindings are disabled (#2735)
Follow-up of https://github.com/zed-industries/zed/pull/2678
Deals with https://github.com/zed-industries/community/issues/772

Refreshes macOs menu panel on keymap file change and properly ignore
disabled actions.

Release Notes:

- Fixes a bug when disabled actions from macOs menu were still working
2023-07-17 11:20:41 -07:00
Julia e4ad6f2840 After first panic, ignore others and tear down process even if in thread (#2725)
Spent a bit in a deep dive into how to handle this and honestly the
situation is rather unfortunate. The core problem is that when we have a
panic anywhere we need to tear down the app, and we'd like to do that as
cleanly as possible, avoiding throwing any other panics along the way if
possible.

We've been seeing a number of panics being reported which are
nonsensical, seemingly pointing to being a fallout panic from a worker
thread panic-ing, at which point we would write multiple panics to the
panic file, and we could possibly upload either both or the wrong panic
causing a wild goose chase. Unfortunately I've been entirely unable to
reproduce the specific panic we've been seeing but I was able to read
through the code responsible and confirm that under specific situations
a panic on one worker can cause another worker or the main thread to
also panic.

An easy solution to this is just to ignore any panics after the first
one. I'm thinking that *hopefully* we can trust the first panic to reach
the panic hook first so that the flag doesn't accidentally filter out
the panic we actually care about.

That being said we were expecting that to have already been the case
about which panic gets written to the panic file first, the first one in
the file being the one we upload, which doesn't seem to have been the
case. I'm hoping it was IO silliness causing that and that the flag
shouldn't be race-y, however this is still a shot in the dark. 🤞

As for cleanly shutting down, there's not really much we can do. One
thread physically cannot cause another to unwind without somehow sending
a message which isn't super useful. The only way for a thread to shut
down all threads and the process is to go nuclear and abort/exit the
process. This will never unwind other threads, effectively having the
same effect on those threads as compiling with `panic = "abort"` would.

With some (mis)use of `std::panic::resume_unwind` we can at least say
that for whatever thread actually panic-ed we will unwind, and any other
threads that panic as a result will probably get at least partway
through unwinding. This is weird, almost a combination of panic
rewinding and aborting, and may actually be worse than just biting the
bullet and aborting immediately.

I'm really not a fan of where I've ended up but it does seem to at the
very least an improvement. The main question in my mind at this point is
whether it would be better to attempt to unwind what we can or go all in
on abort. I'd love some input on that.

Release Notes:
- Improved panic reporting when a background thread panics.
2023-07-17 13:52:33 -04:00
Julia 923513650e After first panic, ignore others and tear down process even if in thread 2023-07-17 13:43:43 -04:00
Kirill BulatovandMax Brunsfeld 3a56d2b61a Simplify NoAction filtering logic
co-authored-by: Max Brunsfeld <max@zed.dev>
2023-07-17 20:42:35 +03:00
Kirill Bulatov 2ec3dac041 Ignore keybindings with NoAction in config overrides 2023-07-17 18:34:39 +03:00
Piotr Osiewicz 03e4d52704 Remove dbg calls 2023-07-17 13:08:41 +02:00
Piotr Osiewicz a6c08cfa79 Remove dbg! calls 2023-07-17 13:03:57 +02:00
Piotr Osiewicz ac9e84262e Remove test 2023-07-17 12:56:25 +02:00
Piotr Osiewicz 6f52c7237d rustfmt 2023-07-17 12:51:00 +02:00
Piotr Osiewicz 7f8162ef81 Cargo fix 2023-07-17 12:38:35 +02:00
Piotr Osiewicz 2b76e19b07 Set language id for PHP. LSP works! 2023-07-17 12:36:08 +02:00
Piotr Osiewicz b32bb290b2 Fix a crash in tree-sitter-php 2023-07-17 12:07:25 +02:00
Piotr Osiewicz b61f6bc0ae Merge branch 'main' into piotr/z-2588-php 2023-07-17 11:47:08 +02:00
Piotr Osiewicz 9560f20af8 Add scaffolding of php language server 2023-07-17 11:43:32 +02:00
Kirill Bulatov acc45767c5 Reload menu after keybindings change 2023-07-17 12:30:42 +03:00
Kirill Bulatov 2c27cff163 Use id instead of type_id for actions
Currently, both are the same thing, so the logic is not changed.
2023-07-17 12:24:56 +03:00
Mikayla Maki 12ea43149c Fix fold indicator active hover style (#2731)
Release Notes:

- Fix: adjusted fold indicator styles
2023-07-15 23:06:01 -07:00