Commit log

7f8e76e Remove worktree-specific methods from language::File trait

Click to expand commit body
Use downcasting instead for accessing worktree-specific state of the Files.

This will allow us to introduce a WorktreeId type and use that everywhere
for identifying worktrees. It also just removes some unnecessary coupling
between the language crate and the worktree.

Max Brunsfeld created

8270e8e Merge pull request #302 from zed-industries/sign-in-redirect

Click to expand commit body
Allow the zed app to connect to both the old and new rpc endpoints

Antonio Scandurra created

a080ae9 Allow the zed app to connect to both the old and new rpc endpoints

Click to expand commit body
In the case of the new Next.js app, the app will follow a redirect
from 'zed.dev/rpc' to the subdomain where the rust service is hosted.
Until then, the app will connect directly to zed.dev/rpc.

Max Brunsfeld created

f499a1d Merge pull request #301 from zed-industries/move-lines-in-multibuffer

Click to expand commit body
Support moving lines up and down in multi-buffers

Nathan Sobo created

6d6a826 Create blocks with anchors to allow a bias to be specified

Click to expand commit body
This allows us to respect the bias on anchors we use to create excerpt headers so that they always remain above any content inserted at the start of an excerpt.

Nathan Sobo created

ba75007 Merge pull request #300 from zed-industries/fix-move-line-panic

Click to expand commit body
Fix panics when moving lines with block decorations and simplify line boundary detection

Nathan Sobo created

984378e Use anchors for line movement edits to support multi-buffers

Click to expand commit body
Because multi-buffers can contain the same content multiple times, we need to use anchors to track our desired insertion and removal locations when moving lines. This is because deleting a line in order to move it might end up deleting *multiple* lines.

Nathan Sobo created

7c9e4e5 Provide an accurate panic message when translating points off the end of a line

Click to expand commit body
Maybe we should fail more gracefully in this case, but I think we should at least make the message accurate and see how we do.

Nathan Sobo created

137fbd0 Update editor element to use new `{next,prev}_line_boundary` methods

Click to expand commit body
Since these methods take buffer points instead of display points, this adjusts
the logic for retrieving the visible selections, so that they are initially returned
in terms of buffer points.

Max Brunsfeld created

7f786ca WIP: Start moving toward a simpler interface for detecting prev/next line boundaries

Nathan Sobo created

89bbfb8 wip

Nathan Sobo created

6057d81 Add a unit test showing panic in move_line_down

Max Brunsfeld created

93a516d Fix warning

Nathan Sobo created

accf90e Add MultiBufferSnapshot::range_contains_excerpt_boundary

Click to expand commit body
Use this method to disable move_line_down across excerpt boundaries.

Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Max Brunsfeld and Nathan Sobo created

cbc162a WIP: Allow lines to be moved down across excerpts

Click to expand commit body
This is still a bit weird because we can't remove the last line of an excerpt but we still move it into another buffer. There also seem to be issues with undo.

Nathan Sobo created

835af35 Simplify prev/next_row_boundary methods

Click to expand commit body
We added clipping of points against the buffer when excerpt headers were in the buffer, but now that they're just blocks, I think we can avoid the potential to panic in these methods by going back to not clipping.

Nathan Sobo created

d352165 Merge pull request #296 from zed-industries/fix-autoindent

Click to expand commit body
Fix regressions that happened when moving selections into Editor

Max Brunsfeld created

3040cfe Fix Editor::newest_selection

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Max Brunsfeld and Nathan Sobo created

f5d4e26 Remove unused context variable

Max Brunsfeld created

cbd9e18 Store selections with a right start bias so that autoindent moves them

Click to expand commit body
Previously, cursors at column 0 had to be explicitly moved when those lines
were autoindented. This behavior was lost when we moved selections from
the buffer to the editor. Now, with the right bias, we get this behavior automatically.

Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Max Brunsfeld and Nathan Sobo created

43db9e8 Clear autoindent requests when applying autoindent

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Max Brunsfeld and Nathan Sobo created

6f26fa0 Merge pull request #295 from zed-industries/api

Click to expand commit body
Add remaining API endpoints needed to support the new website

Nathan Sobo created

13ed9dc Document database setup and fix issue in script/seed-db

Click to expand commit body
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>

Nathan Sobo and Max Brunsfeld created

8937d87 :lipstick:

Nathan Sobo created

63238a2 Destroy access tokens before destroying users and word-smith method names

Nathan Sobo created

b949b30 Add delete user endpoint

Nathan Sobo created

5693097 Add endpoints for listing, creating, and updating users

Nathan Sobo created

07a4cfe Streamline running both next and collab servers in development

Click to expand commit body
Co-Authored-By: Antonio Scandurra <me@as-cii.com>

Nathan Sobo and Antonio Scandurra created

fe5465a Enable authentication via the NextJS site

Nathan Sobo created

6dd23c2 Merge pull request #294 from zed-industries/simplify-keymap-contexts

Click to expand commit body
Don't merge keymap contexts from containing elements

Nathan Sobo created

e9a750b Don't merge keymap contexts from containing elements

Click to expand commit body
Co-Authored-By: Aaron Hillegass <charmedliferaft@gmail.com>

Nathan Sobo and Aaron Hillegass created

9fc2ddb Merge pull request #293 from zed-industries/project-diagnostics

Click to expand commit body
Project diagnostics: First pass

Nathan Sobo created

cf81f5a Update tests to reflect that we no longer attempt to recycle group ids

Nathan Sobo created

ce4142e Remove special handling of multi-line primary diagnostic messages and fix tests

Nathan Sobo created

a3df597 Make diagnostics disk-based in test

Nathan Sobo created

adeea9d Parse `children` from `cargo check` output to provide hints

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Antonio Scandurra and Nathan Sobo created

a85e400 Start on a `DiagnosticProvider` implementation for Rust

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Antonio Scandurra and Nathan Sobo created

393009a Implement `Buffer::diagnostic_group`

Antonio Scandurra created

11e3874 Remove duplication when assigning diagnostics and hardcode provider names

Antonio Scandurra created

3149a42 Add `API_TOKEN` environment variable to manifest

Antonio Scandurra created

4f774e2 wip

Max Brunsfeld created

78564dc Add job post to Zed.dev

Nate Butler created

d5a1705 Get code compiling with some todos

Max Brunsfeld created

e3ecd87 WIP

Click to expand commit body
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>

Nathan Sobo , Antonio Scandurra , and Max Brunsfeld created

7b453be WIP: Use `cargo check` for on-disk diagnostics

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Co-Authored-By: Max Brunsfeld <max@zed.dev>

Antonio Scandurra , Nathan Sobo , and Max Brunsfeld created

b9d1ca4 Show only disk-based diagnostics in `ProjectDiagnosticsEditor`

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Antonio Scandurra and Nathan Sobo created

304afc1 Only preserve excerpts for invalid diagnostics if they contain cursors

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Antonio Scandurra and Nathan Sobo created

dcf26ac Use a different invalidation strategy for project-wide diagnostics

Antonio Scandurra created

da460ed Remove BufferState when the last buffer's excerpt is removed

Antonio Scandurra created

9164c5f Emit an `UpdateDiagnostics` from Worktree when buffer diagnostics change

Antonio Scandurra created