520cbfb
Read file's mtime in background when getting a FileHandle
Click to expand commit body
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
Max Brunsfeld
and
Antonio Scandurra
created
d76d532
Merge branch 'master' into file-changed-on-disk
Max Brunsfeld
created
d0b7377
Merge pull request #57 from zed-industries/dropped-entities
Click to expand commit body
Fix panic when an entity's ref count is decremented to 0 and then is incremented again
Max Brunsfeld
created
493643c
Remove dropped entities even if there are no effects to flush
Max Brunsfeld
created
9dac491
Don't remove entities whose ref count has become positive again
Nathan Sobo
created
e81a28e
Remove dropped entities after every effect
Nathan Sobo
created
c757b3f
Allow a longer timeout in buffer conflict test
Max Brunsfeld
created
4910bc5
Merge branch 'master' into file-changed-on-disk
Max Brunsfeld
created
36163f7
Merge pull request #56 from zed-industries/async-ctx
Click to expand commit body
Simplify spawning and asynchronous code
Max Brunsfeld
created
d6c8952
Remove commented-out tests for spawn and spawn_stream
Max Brunsfeld
created
a3be559
Pass a handle to the current view model when spawning
Click to expand commit body
Most of the time, we'll want a way to get a reference back to the current view or model, so this facilitates that common case.
Nathan Sobo
created
fa6bd1f
Introduce AsyncAppContext and simplify spawning
Click to expand commit body
Now when you call spawn in various context, you pass an FnOnce that is called with an AsyncAppContext and returns a static future. This allows you to write async code similar to how our tests work, borrowing the guts of the AsyncAppContext when needed to interact, but using normal async await semantics instead of callbacks.
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
Nathan Sobo
and
Max Brunsfeld
created
d0f69c7
Merge pull request #55 from zed-industries/test-macros
Click to expand commit body
Introduce a `gpui::test` macro for less ceremony when writing tests
Sometimes the scan state could change so quickly that the consumer
wouldn't notice that it ever went to a scanning state before going back
to an idle state, hence never resolving.
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
* Don't consider files deleted if they just haven't been scanned yet.
* Consider a buffer dirty if its file has been deleted.
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Max Brunsfeld
and
Nathan Sobo
created
01b20d5
Merge pull request #51 from zed-industries/add-cursors-and-cancel-selections
Click to expand commit body
Implement `add_selection_above`, `add_selection_below` and `cancel`
0baff0c
Implement `add_cursor_above` and `add_cursor_below` for buffer
Antonio Scandurra
created
af6ab27
Merge pull request #47 from zed-industries/macos-10-compat
Click to expand commit body
Ensure that the bundle runs on macOS versions < 11.0
Max Brunsfeld
created
f2b009e
Ensure that the bundle runs on macOS versions < 11.0
Max Brunsfeld
created
76d9a40
Merge pull request #40 from zed-industries/close-window
Click to expand commit body
Correctly handle closing windows and removing entities
Nathan Sobo
created
2c74d75
Fix double borrow error in Window::on_close callbacks when quitting app
Click to expand commit body
The simplest solution I could come up with was to make quitting the app asynchronous. Calling mac::Platform::quit enqueues a request to quit the app and then allows the call stack to fully return. This ensures we aren't holding a borrow when we quit and invoke all the Window::on_close callbacks. Seems like it should be fine to be async on quitting.
Nathan Sobo
created
f3d7aa5
Merge pull request #46 from zed-industries/keyup-keystrokes
Click to expand commit body
Ignore events for held-down keys after a key combo is partially released
Max Brunsfeld
created
9dbda45
Ignore events for held-down keys after a key combo is partially released