Isaac Clayton
8931218dc6
Remove debug statements
2022-07-08 21:28:35 +02:00
Isaac Clayton
3e8b230567
Highlight languages as languages load
2022-07-08 21:19:07 +02:00
Keith Simmons
a82e56918e
Merge pull request #1294 from zed-industries/terminal-modal
...
Proposal: Terminal modal
2022-07-08 11:11:03 -07:00
Keith Simmons
ee007f901a
fix pasting at the end of the line in normal mode
2022-07-08 10:57:02 -07:00
Isaac Clayton
988f388165
Added theme to language
2022-07-08 18:11:28 +02:00
Isaac Clayton
6f99d59d38
Require theme directly when creating language
2022-07-08 16:08:40 +02:00
Isaac Clayton
73620dad06
Add channel to notify project when languages are added
2022-07-08 14:37:27 +02:00
Antonio Scandurra
540aa1748a
Add unit test for ignored files in file finder
2022-07-08 12:16:42 +02:00
Antonio Scandurra
56f9c7bc1b
Include ignored files in fuzzy search when root entry is ignored
2022-07-08 11:54:45 +02:00
Antonio Scandurra
32c6ae3188
🎨
2022-07-08 11:42:59 +02:00
Antonio Scandurra
e66144104f
Honor gitignores above worktree root
2022-07-08 11:19:46 +02:00
Antonio Scandurra
9328ab121a
Use absolute paths to compute ignored status
...
This lays the groundwork for harvesting gitignores up above the
worktree.
2022-07-08 11:19:21 +02:00
Antonio Scandurra
ca225d0765
Make build_gitignore
async
2022-07-08 08:50:21 +02:00
Mikayla Maki
4a860d4da4
Properly fixed merge issues
2022-07-07 18:05:37 -07:00
Mikayla Maki
d373e4424f
Merge branch 'main' into terminal-modal
2022-07-07 17:48:58 -07:00
Mikayla Maki
e628b49dfd
First pass at selections complete
2022-07-07 17:31:38 -07:00
Mikayla Maki
be94f614a7
fix merge conflicr
2022-07-07 17:24:55 -07:00
Mikayla Maki
8cb6e476f0
Fixed panic / bug around scrolling and selections in termainl
2022-07-07 17:19:53 -07:00
Mikayla Maki
ca877245be
Finished merge of drag update
2022-07-07 16:12:24 -07:00
Mikayla Maki
bbd0c0d44d
Merge branch 'main' into gpui-changes
2022-07-07 16:08:32 -07:00
Mikayla Maki
9fd2bf2fa1
Updated drag API to pass old,new, instead of delta,new
2022-07-07 16:07:24 -07:00
Nathan Sobo
805c06ee76
Merge pull request #1298 from zed-industries/mouse-region-refactor
...
Mouse Event Refactor
2022-07-07 16:43:36 -06:00
Mikayla Maki
f86106a07e
Fixed a bug around selecting a single cell
2022-07-07 15:24:06 -07:00
Mikayla Maki
1fab7be4b5
Finished selections for now
2022-07-07 15:10:08 -07:00
Mikayla Maki
5a1797cb21
Fixing merge conflicts
2022-07-07 14:56:38 -07:00
Mikayla Maki
59c8e8bdad
Fixed integration test
2022-07-07 14:55:25 -07:00
Mikayla Maki
ab0ca7d42a
Added another minor test
2022-07-07 14:55:25 -07:00
Mikayla Maki
102f502c26
tidied up magic constants
2022-07-07 14:55:25 -07:00
Mikayla Maki
cc985721c6
Added a small integration test
2022-07-07 14:55:25 -07:00
Mikayla Maki
2a6e23ff28
Hoisted assert clipboard into TestAppContext
2022-07-07 14:55:25 -07:00
Mikayla Maki
9209c0dfeb
Fixed merge conflict
2022-07-07 14:55:22 -07:00
Mikayla Maki
7c0d9f411a
Added copying
2022-07-07 14:55:03 -07:00
Mikayla Maki
8c1054fbb6
Fixed merge conflict
2022-07-07 14:54:58 -07:00
Mikayla Maki
b5919c0555
Fixed merge conflict
2022-07-07 14:54:36 -07:00
Mikayla Maki
415e28e2d3
Fixed merge conflict
2022-07-07 14:54:13 -07:00
Mikayla Maki
a8237858bc
Added basic selections
2022-07-07 14:52:04 -07:00
Mikayla Maki
86d5794040
Rebasing onto main
2022-07-07 14:51:59 -07:00
Mikayla Maki
9b6167aad8
added inline hint
2022-07-07 14:51:34 -07:00
Mikayla Maki
2c6dcb82ef
GPUI change proposals
2022-07-07 14:51:34 -07:00
Mikayla Maki
49bd51c7c1
Fixed integration test
2022-07-07 14:38:21 -07:00
Mikayla Maki
28fd1ccbc6
Added another minor test
2022-07-07 13:55:58 -07:00
Mikayla Maki
d981f4a3f4
tidied up magic constants
2022-07-07 13:45:27 -07:00
Mikayla Maki
4bd1111115
Added a small integration test
2022-07-07 13:43:28 -07:00
Max Brunsfeld
6642b78331
Add tooltips to pane nav buttons and make them trigger on click
2022-07-07 13:36:08 -07:00
Mikayla Maki
e3f492e13a
Hoisted assert clipboard into TestAppContext
2022-07-07 13:29:58 -07:00
Mikayla Maki
c0c2297deb
Merge branch 'main' into terminal-selections
2022-07-07 13:20:23 -07:00
Mikayla Maki
4e3c32c277
Added copying
2022-07-07 13:19:38 -07:00
Mikayla Maki
98f6dccd43
Fixed terminal clone on split
2022-07-07 13:01:16 -07:00
Mikayla Maki
ec4082695b
Now defaults to using user's shell
2022-07-07 12:31:21 -07:00
Mikayla Maki
240f3d8754
Fixed default shell
2022-07-07 12:29:49 -07:00
Mikayla Maki
bc306ef8ed
Merge branch 'main' into terminal-selections
2022-07-07 12:17:58 -07:00
Mikayla Maki
1cfe8688ca
Merge pull request #1304 from zed-industries/deploy-panic
...
Fixed working directory issues, added tests.
2022-07-07 12:14:57 -07:00
Mikayla Maki
02525c5bbe
Added a way to change the timeout with state
2022-07-07 12:04:17 -07:00
Mikayla Maki
9c518085ae
Fixed working directory issues, added tests. Working on regression
2022-07-07 11:01:26 -07:00
Isaac Clayton
5cb59dfdab
Fix errors resulting from rebase
2022-07-07 18:14:16 +02:00
Isaac Clayton
a16fc2ba0c
Add basic support for precompiling plugins
2022-07-07 16:21:27 +02:00
Isaac Clayton
895747476f
Done! Finish transition to async, very close to merging
2022-07-07 16:21:20 +02:00
Isaac Clayton
39fdbc593b
Fix most warnings
2022-07-07 16:19:49 +02:00
Isaac Clayton
d009e10a46
Fix all residual errors, need to polish off warnings and TODOS
2022-07-07 16:17:03 +02:00
Isaac Clayton
6585daccf9
Further unpropogate async
2022-07-07 16:16:58 +02:00
Isaac Clayton
4f016d5fc4
Switch LspAdapter to struct and revert some async/await
2022-07-07 16:12:10 +02:00
Isaac Clayton
0872e9b1a7
use join_all to build partial symbols and completions asynchronously
2022-07-07 15:44:21 +02:00
Isaac Clayton
602fe14aa4
Going to move LspAdapter from trait to struct
2022-07-07 15:44:21 +02:00
Isaac Clayton
e4a680f47b
Uncommented previously commented sections
2022-07-07 15:44:18 +02:00
Isaac Clayton
2b0b341415
Move await outside of a closure, remove future_wrap dependency
2022-07-07 15:42:53 +02:00
Isaac Clayton
172e276411
Fix warnings and propogate async further
2022-07-07 15:42:48 +02:00
Isaac Clayton
ce90dbd06a
Temporarily comment out closure errors to address other errors in project
2022-07-07 15:41:34 +02:00
Isaac Clayton
2ff67ef9f6
Factor out await in doubly-nested for loop
2022-07-07 15:40:39 +02:00
Isaac Clayton
db7b863d8c
Fix on_settings_changed, need to review that impl is correct
2022-07-07 15:40:01 +02:00
Isaac Clayton
4dad2eb7d7
Refactor closure to extract async
2022-07-07 15:40:01 +02:00
Isaac Clayton
7d128e81aa
Add lsp_settings_changed: Task to Project, need to resolve cx in Project::on_settings_changed
2022-07-07 15:39:59 +02:00
Isaac Clayton
f4b4212932
More work on transitioning to async, need to figure out when to stop
2022-07-07 15:38:28 +02:00
Isaac Clayton
feb6cf6789
Allow async to infect some more functions
2022-07-07 15:34:27 +02:00
Isaac Clayton
61f5326033
Add timing instrumentation
2022-07-07 15:32:43 +02:00
Isaac Clayton
2c637b83bf
Work on updating code to be async
2022-07-07 15:32:41 +02:00
Isaac Clayton
841a9bd2a7
Make into async trait, will refactor everything Monday
2022-07-07 15:25:49 +02:00
Isaac Clayton
568017da85
Annotate that the bug is due to a deadlock, fixing now
2022-07-07 15:23:27 +02:00
Isaac Clayton
37e04320aa
Checkpoint
2022-07-07 15:23:27 +02:00
Isaac Clayton
92c4552146
Isolate smol::Command hang as a test, does not hang
2022-07-07 15:23:27 +02:00
Isaac Clayton
e5481e2e65
Switch from std::process::Command to smol::process::Command
2022-07-07 15:22:17 +02:00
Isaac Clayton
42fc278913
Comment out label_for_completion for now
2022-07-07 15:22:17 +02:00
Isaac Clayton
f61ef446d3
Documentation pass
2022-07-07 15:22:17 +02:00
Isaac Clayton
4565f1a976
Add async host functions
2022-07-07 15:22:17 +02:00
Isaac Clayton
a5a0abb895
Update usage of WasiPlugin -> Plugin
2022-07-07 15:22:17 +02:00
Isaac Clayton
018fd46901
Rename WasiPlugin -> Plugin, etc.
2022-07-07 15:22:17 +02:00
Isaac Clayton
31e3a4d208
WIP: wrap async closures host-side
2022-07-07 15:22:17 +02:00
Isaac Clayton
f110945fd6
Add functions with multiple arguments to import macro, add test cases
2022-07-07 15:22:17 +02:00
Isaac Clayton
28f071e50d
Split out lifecycle of serialization, buffer is freed now
2022-07-07 15:22:17 +02:00
Isaac Clayton
8aef8ab259
Add build.rs to rebuild plugins, and a test plugin
2022-07-07 15:22:17 +02:00
Isaac Clayton
5b40734f80
Change ABI from pair of u32s to single u64
2022-07-07 15:22:17 +02:00
Isaac Clayton
7edcf7c423
Factor out serialization code
2022-07-07 15:22:17 +02:00
Isaac Clayton
1f5903d16d
Add allocator to store so that it can be used by host functions
2022-07-07 15:22:17 +02:00
Isaac Clayton
47520f0ca1
Remove dependency on self in call-related functions
2022-07-07 15:22:17 +02:00
Isaac Clayton
7266dff537
Fix issue with host function binding
2022-07-07 15:22:17 +02:00
Isaac Clayton
96c2559d2c
Work on plugin builder
2022-07-07 15:22:17 +02:00
Isaac Clayton
53e56f1284
Start working on host-side functions
2022-07-07 15:22:17 +02:00
Isaac Clayton
71e0555763
Add JSON LSP plugin
2022-07-07 15:22:16 +02:00
Isaac Clayton
923f093aca
First pass of plugin side of things complete
2022-07-07 15:20:27 +02:00
Isaac Clayton
d7b97b25b8
Async runtime working but is blocking
2022-07-07 15:20:27 +02:00
Isaac Clayton
8bce35d1e9
Move Wasi to async, validate timeslicing, using async in traits still WIP
2022-07-07 15:20:27 +02:00
Isaac Clayton
e9b87f3dc3
Factor out buffer code
2022-07-07 15:20:27 +02:00
Isaac Clayton
fbaff615a3
Get JSON LSP running, still work to be done
2022-07-07 15:20:27 +02:00
Isaac Clayton
38d7321511
Remove non-WASI code
2022-07-07 15:20:25 +02:00
Isaac Clayton
805c86b781
Add support for variadic functions
2022-07-07 15:19:03 +02:00
Isaac Clayton
17d15b2f08
Get Wasi working
2022-07-07 15:19:02 +02:00
Isaac Clayton
b84948711c
Start moving code from Zed to plugin
2022-07-07 15:17:02 +02:00
Isaac Clayton
7dd3114a7a
Start switching JSON LSP adapter to plugin (take 2)
2022-07-07 15:16:59 +02:00
Isaac Clayton
35b2eff29c
Update plugin dependencies
2022-07-07 15:11:51 +02:00
Isaac Clayton
0cf64d6fba
Clean up impl a bit
2022-07-07 15:11:51 +02:00
Isaac Clayton
f6a9558c5c
Work on macro binding generation, some cleanup needed, rename runner to plugin
2022-07-07 15:11:51 +02:00
Isaac Clayton
dda6dcb3b8
Quick documentation pass
2022-07-07 15:11:51 +02:00
Isaac Clayton
6768713de2
Get basic Wasm runtime running
2022-07-07 15:11:51 +02:00
Isaac Clayton
f6b6d19041
Add wasmtime and fix zstd version conflict
2022-07-07 15:01:15 +02:00
Isaac Clayton
4003037ca8
Documented code, got basic example working
2022-07-07 15:01:09 +02:00
Isaac Clayton
13e0ad7253
Get Runtime working...
2022-07-07 14:55:46 +02:00
Isaac Clayton
265be4a2fb
Clean up interface a bit
2022-07-07 14:55:46 +02:00
Isaac Clayton
8293b6971d
Start sketching out runner runtime
2022-07-07 14:55:46 +02:00
Antonio Scandurra
52b8efca1b
Add integration test to exercise formatting via external command
2022-07-07 11:53:32 +02:00
Antonio Scandurra
b91d44b448
Respond with a debug version of the error in rpc Client
2022-07-07 11:52:56 +02:00
Antonio Scandurra
c6254247c3
Allow providing an external format in format_on_save
setting
2022-07-07 11:04:03 +02:00
Mikayla Maki
baa011ccf4
added inline hint
2022-07-06 17:57:32 -07:00
Mikayla Maki
b2fa511acd
GPUI change proposals
2022-07-06 17:52:20 -07:00
Mikayla Maki
778cfd94d8
Added basic selections
2022-07-06 17:37:12 -07:00
Keith Simmons
c139f1e6b6
combine branches of events in from_native
2022-07-06 16:59:58 -07:00
Keith Simmons
bcb553f233
Combine platform mouse events to use common MouseEvent struct and remove MouseDragged event in favor of MouseMoved
2022-07-06 16:37:56 -07:00
Max Brunsfeld
70cf6b4041
Give nav buttons a background on hover
2022-07-06 16:33:44 -07:00
Max Brunsfeld
4e8dbbfd4b
Add test for pane nav history covering notification of pane's toolbar
2022-07-06 16:29:11 -07:00
Max Brunsfeld
a378ec49ec
Enable and disable nav buttons based on pane's navigation stack
...
Also, make the `NavHistory` type private to the `workspace` crate.
Expose only the `ItemNavHistory` type, via a method on Pane called
`nav_history_for_item`.
2022-07-06 15:46:43 -07:00
Keith Simmons
686e57373b
pull event data out into individual Event structs
2022-07-06 15:36:42 -07:00
Max Brunsfeld
7e5cf6669f
Add forward and backward navigation buttons to toolbar
2022-07-06 14:05:24 -07:00
Mikayla Maki
cba5b4ac11
Began working on selections, refactored colors
2022-07-06 13:44:30 -07:00
Keith Simmons
2d126c7c5c
add terminal modal which can be displayed and dismissed while preserving the terminal state
2022-07-06 13:20:54 -07:00
Max Brunsfeld
bbe325930f
0.45
2022-07-06 11:32:21 -07:00
Max Brunsfeld
a858b3fda9
Treat window deactivation as a focus change for the purpose of autosave
2022-07-06 11:20:29 -07:00
Max Brunsfeld
00d1c2e56f
Merge pull request #1291 from zed-industries/fix-autosave-on-close
...
Fix autosave when closing a tab
2022-07-06 10:54:44 -07:00
Antonio Scandurra
2c1906d710
Normalize line endings when parsing completions
...
Co-Authored-By: Max Brunsfeld <max@zed.dev>
2022-07-06 19:32:45 +02:00
Antonio Scandurra
d3db700db4
Fix panic on paste when editing with auto-indent
...
Instead of accepting text as it's input by the user, we will read it
out of the edit operation after it gets sanitized by the buffer.
2022-07-06 19:00:11 +02:00
Antonio Scandurra
ab4931da65
Prevent autosave for deleted files
2022-07-06 17:25:33 +02:00
Antonio Scandurra
9286893177
Save item when closing it if autosave on focus change is enabled
2022-07-06 17:04:41 +02:00
Antonio Scandurra
5e00df6267
Move autosave tests down into Workspace
2022-07-06 16:55:05 +02:00
Antonio Scandurra
b937c1acec
Move autosave logic up into Workspace
and Pane
2022-07-06 16:33:22 +02:00
Antonio Scandurra
980730a4e1
Report whether a view was focused or blurred when observing focus
2022-07-06 15:53:40 +02:00
Antonio Scandurra
573dd29882
v0.44.1
2022-07-06 12:42:41 +02:00
Antonio Scandurra
13c9b1778b
Replace lone carriage returns with newlines
2022-07-06 11:00:56 +02:00
Antonio Scandurra
113eb9b94f
Don't slice midway through multi-byte char when detecting line ending
2022-07-06 10:21:30 +02:00
Max Brunsfeld
5e2306d0e0
0.44
2022-07-05 17:37:04 -07:00
Max Brunsfeld
77d688b4fb
Merge pull request #1287 from zed-industries/handle-carriage-returns-in-edits
...
Fix crash when pasting text with CRLF line endings
2022-07-05 17:35:38 -07:00
Max Brunsfeld
7e9beaf4bb
Strip carriage returns from all text in text::Buffer
...
* Moving the logic from Rope to text::Buffer makes it easier
to keep the Rope in sync with the fragment tree.
* Removing carriage return characters is lossier, but is much
simpler than incrementally maintaining the invariant that
there are no carriage returns followed by newlines. We may
want to do something smarter in the future.
Co-authored-by: Keith Simmons <keith@zed.dev>
2022-07-05 17:25:09 -07:00
Mikayla Maki
4d88088ca4
Merge pull request #1286 from zed-industries/grid-renderer
...
Switch from line-and-character renderer to a direct grid renderer
2022-07-05 17:16:00 -07:00
Mikayla Maki
03cbb94057
changed renderer
2022-07-05 17:10:01 -07:00