Commit Graph
25009 Commits
Author SHA1 Message Date
Antonio Scandurra f74035bd29 💄 2022-03-11 17:13:28 +01:00
Antonio Scandurra 1a5f0456e6 Assume the anchor is valid if we can find an excerpt that contains it 2022-03-11 17:08:12 +01:00
Nathan SoboandAntonio Scandurra c598628f94 Don't reuse excerpt ids in MultiBuffer
This prevents anchors from swapping their ordering, which was causing issues in FoldMap.

Co-Authored-By: Antonio Scandurra <me@as-cii.com>
2022-03-11 08:50:50 -07:00
Nathan SoboandAntonio Scandurra 0db6f31d02 Remove dead code
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
2022-03-11 08:24:42 -07:00
Antonio Scandurra 092abbe39b Respect excerpt's range when comparing two anchors both belonging to it 2022-03-11 12:42:22 +01:00
Antonio Scandurra 583377a39d Don't starve main thread when lots of messages/events arrive at once 2022-03-11 10:09:13 +01:00
Antonio Scandurra 6454b09051 Show the last in-progress task from language servers 2022-03-11 09:59:13 +01:00
Antonio Scandurra dabe8bcc4a Merge pull request #585 from zed-industries/fix/backspace-panic
Fix panic when pressing backspace at start of line
2022-03-11 08:36:52 +01:00
Keith Simmons fb3d7986cb Add unwrap check if buffer_line not available 2022-03-10 20:04:16 -08:00
Keith Simmons a3270225fb Add global events to MutableAppContext and raise global event when new workspace is created 2022-03-10 20:03:01 -08:00
Keith Simmons ce78fcac2a Merge pull request #563 from zed-industries/mouse-history-navigation
Add missing mouse button events and mouse history navigation
2022-03-10 17:39:36 -08:00
Max Brunsfeld e7e4393088 Create the settings file if needed when opening it via command 2022-03-10 17:27:46 -08:00
Max Brunsfeld 73f2271071 For single-file worktrees start LSP with parent dir as CWD 2022-03-10 16:06:12 -08:00
Max Brunsfeld f89dacc086 Add cmd-, as a keybinding for opening settings 2022-03-10 15:51:57 -08:00
Nathan Sobo eddd356051 Focus in-progress rename editor when editor is focused 2022-03-10 16:42:20 -07:00
Nathan Sobo fe88d384a5 When renaming, match the color of the renamed token in the rename editor 2022-03-10 16:38:45 -07:00
Max Brunsfeld 78e2e01e42 Always refresh the windows when the settings change 2022-03-10 15:34:04 -08:00
Max Brunsfeld 81ad32ba1e Load the settings file on a background thread during startup 2022-03-10 15:25:22 -08:00
Nathan Sobo 799d1c90cb Remove unused variable 2022-03-10 15:27:29 -07:00
Nathan Sobo ebdba1d0c8 When renaming, fade out the old name and select all 2022-03-10 14:55:31 -07:00
Keith Simmons 7ff8aa152f swap default cursor shape back to bar 2022-03-10 13:28:13 -08:00
Keith Simmons 40518148e1 Fix failing gpui test from missing cursor shape 2022-03-10 13:20:45 -08:00
Keith Simmons 9a43037620 render character under block cursor 2022-03-10 13:16:31 -08:00
Nathan Sobo 1e76d109a3 WIP 2022-03-10 11:32:14 -07:00
Antonio Scandurra 22b3216d65 Extract a LanguageServerStatus struct 2022-03-10 18:43:56 +01:00
Antonio Scandurra 7498e16311 Display language server name in status bar 2022-03-10 16:48:43 +01:00
Antonio Scandurra 00bd2967ae Render pending language server work in status bar 2022-03-10 16:09:47 +01:00
Antonio Scandurra 212fb05f33 Listen to all LSP progress notifications and broadcast them to peers 2022-03-10 12:00:33 +01:00
Antonio Scandurra 305e01686b Merge pull request #577 from zed-industries/backspace-indent
Delete till previous tabstop when backspacing within indent column
2022-03-10 10:37:34 +01:00
Antonio Scandurra 518662da6d Delete till previous tabstop when backspacing within indent column 2022-03-10 10:28:24 +01:00
Keith Simmons 30b1b1e0c5 fix formatting 2022-03-10 01:09:25 -08:00
Keith Simmons 4a962e3101 Add support for rendering cursors as a block and underscore 2022-03-10 01:09:02 -08:00
Antonio Scandurra c2cf67347c Merge pull request #575 from zed-industries/delete-to-fold-point-trait
Eliminate ToFoldPoint trait
2022-03-10 09:03:33 +01:00
Nathan Sobo 150fdc71af Start on text highlight support 2022-03-09 20:51:35 -07:00
Nathan Sobo 52eabf6231 Eliminate ToFoldPoint trait
Just make it a method on FoldMap
2022-03-09 20:49:18 -07:00
Max Brunsfeld ee786ee05f Reload the app settings whenever ~/.zed/settings.json changes 2022-03-09 18:00:09 -08:00
Max BrunsfeldandKeith Simmons ed16cf0355 Start work on loading settings from a file
Co-Authored-By: Keith Simmons <keith@zed.dev>
2022-03-09 17:59:29 -08:00
Keith Simmons c24e0bb8a4 Switch to using mouse navigation events instead of other in order to get rid of opaque button id 2022-03-09 15:04:04 -08:00
Max Brunsfeld 12ae1a6a9d Merge pull request #572 from zed-industries/receive-timeout-tweaks
Reset receive timeout only on reads from the websocket connection, not writes
2022-03-09 11:49:08 -08:00
Max BrunsfeldandKeith Simmons 51ba8f9846 Reset receive timeout only on reads from websocket connection, not writes
Also, increase the receive timeout to 30 seconds. We'll still respond immediately
to explicit disconnection, but when there are temporary network blips that
delay pings, we think we should err on the side of keeping the connection
alive. This is in response to a false positive 'host disconnected' state
that we observed when pairing today, while the host (Keith) still clearly
had a working internet connection, because we were screen sharing.

Co-Authored-By: Keith Simmons <keith@zed.dev>
2022-03-09 11:27:47 -08:00
Keith Simmons cdffdf9a66 Merge pull request #565 from zed-industries/eager-theme-selector
Make theme selector eagerly display the selected theme
2022-03-09 11:00:28 -08:00
Keith Simmons 492eea86be formatting fixes 2022-03-09 10:42:27 -08:00
Keith Simmons ce49c2909b Make theme selector match other selector styling 2022-03-09 10:40:30 -08:00
Keith Simmons 9945398adf ensure that we set original theme when dismissing theme selector and fix some minor edge cases 2022-03-09 10:34:52 -08:00
Antonio Scandurra 49b3d39a97 Merge pull request #569 from zed-industries/refine-autoclose
Refine bracket auto-closing behavior
2022-03-09 16:28:35 +01:00
Antonio Scandurra 0ea33c560f Merge pull request #568 from zed-industries/delegation
Notify all language servers when a buffer gets saved
2022-03-09 16:24:46 +01:00
Antonio Scandurra d86c2488eb 💄 2022-03-09 15:44:58 +01:00
Antonio Scandurra e9d64e7668 Surround selections with brackets when they are non-empty 2022-03-09 15:41:54 +01:00
Antonio Scandurra 8e4b5183a5 Autoclose bracket only if next char is whitespace or the end of a pair 2022-03-09 15:38:17 +01:00
Antonio Scandurra 180c7dabff Split language server initialization from construction
This gives clients a chance to register to notifications.
2022-03-09 12:31:21 +01:00