Commit log

f15a038 underscore arguments

Mikayla Maki created

1935307 Fix jumping to definition in a new file

Click to expand commit body
This is broken because vim currently sets settings only on the active
editor. Fix this by correcting the range on the currently active editor.

It would be nice (at some point) to refactor how vim sets settings, but
that's for another day.

Conrad Irwin created

ae765bb Make mode indicator follow vim enabled state (#2802)

Click to expand commit body
There was a minor visual bug introduced in
https://github.com/zed-industries/zed/pull/2801, this PR corrects it.

Release Notes:

- N/A

Mikayla Maki created

03bc430 Make mode indicator follow vim enabled state

Mikayla Maki created

17fa15d Avoid panic by accessing view handle by global in wrong window (#2801)

Click to expand commit body
View handles are window specific but the Vim global will be doing things
in all windows, that would cause a panic when Vim attempted to update a
status bar mode indicator in a background window

Release Notes:

- N/A

Mikayla Maki created

fc9687d Avoid panic by accessing view handle by global in wrong window

Click to expand commit body
View handles are window specific but this global will be doing things
in all windows, that would cause a panic when it attempted to update
a status bar mode indicator in a background window

Co-Authored-By: Mikayla Maki <mikayla@zed.dev>

Julia and Mikayla Maki created

3979454 Follow naming convention for menu items

Joseph T. Lyons created

e320185 Publish preview releases to discord (#2800)

Click to expand commit body
Release Notes:

- N/A

Joseph T. Lyons created

7a9af7c Publish preview releases to discord

Joseph T. Lyons created

6a0e1d5 Update Alacritty (#2798)

Click to expand commit body
This will potentially fix a number of Alacritty related panics, however
it is tricky to figure out which ones in particular will be impacted for
sure. We've said we were going to do this for a while but with the
constant trickle of panics it seemed reasonable to just go and do it

Release Notes:

- Fixed a few potential terminal related crashes.

Julia created

0455311 Downgrade our dependency on treesitter-cpp (#2799)

Click to expand commit body
Our dependency on `tree-sitter-cpp` got upgraded to an incompatible
version despite semver 'guarantees'. This pins the dependency onto the
commit of version 0.20.0

Release Notes:

- Restored language detection for C++ (preview-only)

Mikayla Maki created

a829b5b fmt

Mikayla Maki created

d835274 Downgrade our dependency on treesitter-cpp

Mikayla Maki created

2793166 chore: add theme types docs (#2737)

Click to expand commit body
Release Notes:

- Added documentation about theme types generation

Nate Butler created

45c6358 Extract syntax highlighting properties from tree-sitter highlight queries (#2797)

Click to expand commit body
This should be a purely internal change. Let me know if any visual
changes are observed from this!

### Syntax theme
- Update the theme to allow any syntax highlighting property used in any
`highlight.scm` to be styled
- Only define syntax styles that are baked into the default theme &
don't use the default text style
- Adds the `generate-syntax` command
- Removes a few unused properties that we were styling for some reason,
like `enum` and `variant`, neither of which exist in any `highlight.scm`
- Moves `@constructor` symbols to `@method.constructor` to prevent
issues with `constructor` being a reserved property in ts/js.

Syntax is now build as the theme is created rather than as part of the
styleTree. This means it no longer requires a compiled `Theme`, which
makes things a bit more straightforward if we need to access it in other
components that should be built before the styleTrees.

### Scheme

Also updates all uses of `#match` in our `highlights.scm` files, as
these break the scheme tree-sitter query. This fixes _most_ instances of
our scheme highlighting breaking.

For some reason something in here breaks the `highlights.scm` for PHP:

```scheme
((name) @constant.builtin
 (.match? @constant.builtin "^__[A-Z][A-Z\d_]+__$"))

((name) @method.constructor
(.match? @method.constructor "^[A-Z]"))

((name) @variable.builtin
 (.eq? @variable.builtin "this"))
```

Release Notes:

- No public facing changes

Nate Butler created

b08a277 Remove redundant `syntax_highlights`

Nate Butler created

b9d5cc5 Format

Nate Butler created

0b7e75c Add the `generate-syntax` action

Nate Butler created

86fa27e Update uses of `#` to `.` in our scheme files where they are interchangeable.

Click to expand commit body
uses of `#` cause ERRORs in our scheme highlighting

Nate Butler created

85f193d Extract syntax highlighting properties from tree-sitter highlight queries

Nate Butler created

8c9c836 Update Alacritty

Julia created

f2b8236 Make LSP status message match new font size of diagnostic message (#2796)

Click to expand commit body
The status bar diagnostic message font size was updated in
https://github.com/zed-industries/zed/commit/1f65effe57b85d126fcb5689d6d37ec3f768502e
but the LSP status message font size remained the same causing a font
size change when swapping between the two

![CleanShot 2023-07-26 at 18 32
13](https://github.com/zed-industries/zed/assets/30666851/8d357f46-3a48-4ed1-9832-d24b4b2be4a8)
![CleanShot 2023-07-26 at 18 30
56](https://github.com/zed-industries/zed/assets/30666851/e4ce9911-f66d-4bc3-b951-78196da44176)

Release Notes:

- Fixed an inconsistency in status bar font size.

Julia created

0ab1c6a Make LSP status message match new font size of diagnostic message

Julia created

46dd717 Maintain cursor stack's position correctly when ascending the tree (#2795)

Click to expand commit body
This fixes a bug that could cause the cursor to incorrectly report its
start when using `slice` or `seek_forward`, and then calling `prev`. We
didn't notice this because we were not testing those three methods
together.

I suppose this could explain some of the panics we've observed because
we do use `slice`/`seek_forward` followed by `prev` calls in production.

Antonio Scandurra created

2e0d051 Maintain cursor stack's position correctly when ascending the tree

Click to expand commit body
This fixes a bug that could cause the cursor to incorrectly report its
start when using `slice` or `seek_forward`, and then calling `prev`. We
didn't notice this because we were not testing those three methods
together.

I suppose this could explain some of the panics we've observed because
we do use `slice`/`seek_forward` followed by `prev` calls in production.

Antonio Scandurra created

129e711 Downgrade tree sitter elm to 5.6.4 (#2794)

Click to expand commit body
The tree sitter elm parser contains a c symbol which collides with other
linked symbols. This PR downgrades the tree sitter elm parser to a
version which doesn't have this problem.

Release Notes:
- Fixed crash when parsing elm files

Mikayla Maki created

d5c3070 Downgrade tree sitter elm to 5.6.4

Mikayla Maki created

b8a2a2e Block extra drag events in original drag handlers (#2793)

Click to expand commit body
In https://github.com/zed-industries/zed/pull/2790 I added an extra drag
event on mouse_up which signaled the end of a drag event, as mouse_up
event themselves wouldn't reliably fire if users moved their mouse too
quickly. This broke the assumptions of the terminal element. This PR
adds filters to all current on_drag handlers which removes this new
event.

Release Notes:

- Fixed a bug causing terminal links to never open (preview only)
- Fixed a bug in terminal link detection causing it to miss files with a
`-` in it

Mikayla Maki created

354c020 Block extra drag events in original drag handlers

Mikayla Maki created

ee66f99 Parallel vector db (#2792)

Click to expand commit body
Parallelize Vector Database calls for project semantic search.

Release Notes: (Preview-only)

- Parallelize Vector database calls for project semantic search. Cuts
query time by 2/3rds.
- Removed default keymap for old semantic search modal.

Kyle Caverly created

fbede4a removed old code

KCaverly created

e2b38f7 remove unused imports

KCaverly created

0616788 remove default keymap for semantic search modal

KCaverly created

5c48729 managed for small batch size edge case in semantic search

KCaverly created

89bbcdf remove debug logging for project_search semantic search

KCaverly created

98fde36 batch search queries in the vector database

KCaverly created

40fcec1 Follow naming convention for menu items

Joseph T. Lyons created

6cd10f3 v0.98.x dev

Joseph T. Lyons created

603387a icon updates (#2791)

Click to expand commit body
Updated app icon and icon system updates

Derek Briggs created

9fc1ebc icon updates

Derek Briggs created

711073c Simple cascading split (#2790)

Click to expand commit body
This PR cascades the split resizing to adjacent splits, if the current
split has already hit the minimum size. This PR also adds support for
detecting the end of a drag event to GPUI, via a bool on the dispatched
drag.

Release Notes:

- Made split resizing more flexible

Mikayla Maki created

a58c9ed fmt

Mikayla Maki created

56704c7 Remove placeholders

Mikayla Maki created

fc1844d Semantic search v2 (#2789)

Click to expand commit body
Move semantic search from navigation modal, to project search option.
This PR is intended to be released in Preview only, and requires an
opt-in semantic_index option to enable. Without this opt-in setting
enable, the user should perceive no differences between previous project
search.

Release Notes: (Preview-only)

- Added Semantic Search as a opt-in feature within Project Search
- Show indexing feedback on indexing process within project search view

Kyle Caverly created

0b61c93 ensure semantic search is not enabled on stable

KCaverly created

394a105 fix warnings

KCaverly created

0ac919f catchup with main

KCaverly created

ca6f7d8 add worktree previously indexed functionality to vector db

KCaverly created

39f02c2 Add a mode indicator for vim (#2763)

Click to expand commit body
Release Notes:

- vim: add a mode indicator
([#409](https://github.com/zed-industries/community/issues/409))

Now updated screenshots with @iamnbutler 
<img width="1043" alt="Screenshot 2023-07-25 at 11 11 57"
src="https://github.com/zed-industries/zed/assets/94272/8301479a-8b58-42d8-81a1-bc40e1e0a4df">
<img width="1043" alt="Screenshot 2023-07-25 at 11 12 00"
src="https://github.com/zed-industries/zed/assets/94272/89c3b8bd-9cbc-4fd7-ad10-dac5538ed3a3">
<img width="1043" alt="Screenshot 2023-07-25 at 11 12 12"
src="https://github.com/zed-industries/zed/assets/94272/adc87fe3-a720-4779-853b-df9443407046">

Conrad Irwin created

7599920 update project search to only show semantic button visible with semantic_index enabled

KCaverly created