Antonio Scandurra
a2822f54bb
Remove unused languages field on LocalWorktree
2022-01-19 17:27:00 +01:00
Antonio Scandurra
c5fe187527
Replace project_path with project_entry in workspace::{Item, ItemView}
2022-01-19 15:56:04 +01:00
Antonio Scandurra
732e413832
Cleanup worktrees' shared state when unsharing
2022-01-17 10:58:49 +01:00
9a81215e58
Preserve the order of responses with respect to all other incoming messages
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
Co-Authored-By: Max Brunsfeld <max@zed.dev >
2022-01-12 18:26:00 +01:00
Antonio Scandurra and Nathan Sobo
f883ffb4f2
Implement Buffer::format
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-01-12 18:01:20 +01:00
Max Brunsfeld
099f769a12
Remove stray dbg! calls
2022-01-11 13:56:07 -08:00
Max Brunsfeld and Nathan Sobo
7887ddc24f
Add files to project diagnostics view in order
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-01-10 16:17:56 -08:00
Antonio Scandurra and Nathan Sobo
f7c2757178
Display a "Checking..." message when running disk-based diagnostics
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-01-07 15:03:19 +01:00
Antonio Scandurra and Nathan Sobo
592208c92d
Show status bar item for project diagnostic summary
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-01-07 14:14:21 +01:00
Antonio Scandurra and Nathan Sobo
d5fb3c1203
Move back diagnostic_summaries into Worktree
...
This fixes an issue where updating the snapshot's entries would
override the diagnostic summaries received on the remote side.
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-01-07 13:38:20 +01:00
Antonio Scandurra
0dfb51c7a9
Avoid removing diagnostics from Worktree after opening a buffer
...
This allows re-opening the same buffer and supplying the previous
diagnostics.
2022-01-07 10:33:21 +01:00
Max Brunsfeld and Nathan Sobo
222848a753
Don't clobber diagnostics when getting new snapshot from background scanner
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-01-06 15:04:06 -08:00
Max Brunsfeld and Nathan Sobo
dcfa8be99e
Always group diagnostics the way they're grouped in the LSP message
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-01-06 14:22:28 -08:00
Nathan Sobo and Max Brunsfeld
df5b181ad8
Send diagnostic summaries to guests when they join the project
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2022-01-06 12:12:09 -07:00
Nathan Sobo and Antonio Scandurra
80e5915179
Allow disk-based diagnostic progress begin/end events to interleave
...
When multiple saves occur, we can have multiple start events followed by multiple end events. We don't want to update our project diagnostics view until all pending progress is finished.
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
2022-01-06 09:32:08 -07:00
Max Brunsfeld
14690bddf4
Forward events from remote worktrees to their projects
2022-01-04 16:01:25 -08:00
Max Brunsfeld and Antonio Scandurra
18c6b21e3c
Replicate diagnostic summaries
...
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
2022-01-04 14:29:22 -08:00
Antonio Scandurra and Max Brunsfeld
7525741533
Merge branch 'main' into polish-project-diagnostics
...
Co-Authored-By: Max Brunsfeld <max@zed.dev >
2022-01-04 18:35:28 +01:00
Antonio Scandurra
46c53aa313
Re-enable cargo check for rust-analyzer
2022-01-04 18:26:16 +01:00
Antonio Scandurra
dd5ba61ab6
Rip out "diagnostic providers"
2022-01-04 16:32:17 +01:00
Antonio Scandurra
7ec5e4b558
Run Project::diagnose when registering a new language on Worktree
2022-01-04 15:17:37 +01:00
Max Brunsfeld
f06eef084f
Introduce a WorktreeId struct, fix incorrect use of remote worktrees' handle id
2022-01-04 11:28:44 +01:00
Max Brunsfeld
4dc7129144
Remove worktree-specific methods from language::File trait
...
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.
2022-01-04 11:28:44 +01:00
Max Brunsfeld
cd7ae96c44
Allow the zed app to connect to both the old and new rpc endpoints
...
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.
2022-01-03 15:29:26 -08:00
Antonio Scandurra
ae276700d6
Implement Buffer::diagnostic_group
2021-12-24 12:08:55 +01:00
Antonio Scandurra
de3a7f8a48
Remove duplication when assigning diagnostics and hardcode provider names
2021-12-24 12:07:26 +01:00
Max Brunsfeld
83741239e8
wip
2021-12-23 23:10:28 -08:00
Max Brunsfeld
ab075ca1a1
Get code compiling with some todos
2021-12-23 14:21:10 -08:00
2cdb9c96a7
WIP
...
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-12-23 11:24:35 -07:00
fdf93932dc
WIP: Use cargo check for on-disk diagnostics
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
Co-Authored-By: Max Brunsfeld <max@zed.dev >
2021-12-23 18:35:50 +01:00
Antonio Scandurra and Nathan Sobo
1a28980dc8
Show only disk-based diagnostics in ProjectDiagnosticsEditor
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-12-23 16:47:54 +01:00
Antonio Scandurra
db9f25d6ad
Use a different invalidation strategy for project-wide diagnostics
2021-12-23 15:41:43 +01:00
Antonio Scandurra
355240d119
Emit an UpdateDiagnostics from Worktree when buffer diagnostics change
2021-12-23 09:57:50 +01:00
Max Brunsfeld
20231b446a
Start work on preserving continuity of disk-based diagnostics
2021-12-22 12:52:50 -08:00
Max Brunsfeld
4d8d3491e7
WIP - Start work on updating project diagnostics view
2021-12-21 16:39:23 -08:00
Max Brunsfeld
f02110fe23
Store worktree's diagnostics summaries ordered by path
2021-12-21 14:07:09 -08:00
Max Brunsfeld
dd1c31dfcb
Avoid cloning diagnostic messages from language server
2021-12-21 14:06:17 -08:00
Antonio Scandurra
580b38b31c
Delete unit test
...
Sharing/unsharing is already exercised via the integration tests.
2021-12-21 14:51:09 +01:00
Antonio Scandurra
9ed64a054c
Allow sharing/unsharing of projects
2021-12-21 12:45:20 +01:00
Antonio Scandurra
57444fed31
Get more integration tests passing
2021-12-21 09:50:11 +01:00
Antonio Scandurra
2d63c76b50
Register local worktrees after acquiring a project remote id
2021-12-21 09:49:13 +01:00
Antonio Scandurra
b99cc1599f
Re-enable commented out worktree test
2021-12-21 08:35:08 +01:00
Max Brunsfeld
c3479bbe28
Add missing RPC handlers for local projects
2021-12-20 18:08:06 -08:00
Max Brunsfeld
2424fc98bf
Send a LeaveProject message when dropping a remote project
2021-12-20 18:07:51 -08:00
Max Brunsfeld
f084b7bb7b
Fix logic for waiting for project's remote id
2021-12-20 18:07:34 -08:00
Max Brunsfeld
a6d09087ec
Fix accidental usages of local worktree id instead of remote id
2021-12-20 18:06:58 -08:00
Max Brunsfeld
79e275f0ff
Get the server and integration tests compiling
2021-12-20 16:30:29 -08:00
e6e633c69c
Send worktree info only when sharing worktree
...
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-12-20 11:36:59 -08:00
Antonio Scandurra
8293699fde
Get back to a compiling state for client
...
This temporarily disables some tests and there are still some server-side
compiler errors.
2021-12-20 16:08:34 +01:00
Max Brunsfeld and Nathan Sobo
2b7b99248a
WIP - start restructuring collaboration around entire projects
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-12-17 22:00:39 -08:00