Nathan Sobo and Max Brunsfeld
9977248926
Adjust disk-based diagnostics based on edits since the last save
...
Still need to add tests... not sure if this is right yet.
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-10-27 18:58:07 -06:00
Nathan Sobo
76774d6a3c
Merge pull request #205 from zed-industries/autoindent
...
Autoindent
2021-10-19 14:23:04 +02:00
5558d553bb
Insert an extra newline between brackets
...
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-10-19 13:17:16 +02:00
Nathan Sobo
561857fdf2
Restore all active selections when undoing/redoing autoindent
...
In the unlikely event that we're handling autoindent requests from multiple editors, we undo/redo selections from both editors. This is somewhat imperfect but probably good enough and easier than performing auto-indents on a per-editor basis.
2021-10-11 17:22:18 -06:00
Nathan Sobo
6531df2368
Improve auto-indenting of inserted lines
...
Still not working totally correctly with our new approach, but getting closer.
2021-10-08 22:07:01 -06:00
Nathan Sobo and Antonio Scandurra
b85ae89b7e
Extend Rust where clauses past their final newline for indentation
...
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
2021-10-08 10:32:15 -06:00
Nathan Sobo and Antonio Scandurra
810315e04c
Don't request auto-indent if there is no language assigned on the buffer
...
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
2021-10-08 10:25:16 -06:00
Nathan Sobo and Antonio Scandurra
b4680144c5
Unconditionally preserve indentation when inserting newlines
...
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
2021-10-08 10:25:00 -06:00
Nathan Sobo and Max Brunsfeld
d5b60ad124
Rename zrpc to rpc
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-10-04 13:28:00 -06:00
Nathan Sobo and Max Brunsfeld
fdfed3d7db
Move all crates to a top-level crates folder
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-10-04 13:22:21 -06:00
Nathan Sobo and Max Brunsfeld
d768224182
Clean commented dependencies
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-10-04 13:15:45 -06:00
Nathan Sobo and Max Brunsfeld
c236b0828c
Extract worktree, rpc_client, and util crates
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-10-04 13:07:35 -06:00
Nathan Sobo
5b75fcd0aa
💄
2021-10-02 19:46:07 -06:00
Nathan Sobo
6239b5ec60
Introduce ProjectPath and ProjectEntry structs
...
These replace tuples of (usize, Arc<Path>) and (usize, usize) respectively.
2021-10-02 19:39:04 -06:00
Nathan Sobo
f00045544f
Introduce a File trait object to buffer
...
This will remove the dependency of buffer on `worktree::File`
2021-10-02 19:01:29 -06:00
Nathan Sobo and Max Brunsfeld
7728467790
Remove File::select_language
...
We want to make File a trait object defined in the buffer crate to decouple buffer from worktree, and this method is in the way.
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-10-01 16:56:28 -07:00
Nathan Sobo and Max Brunsfeld
90cc01a50a
Select the language in Editor::save_as instead of Buffer::did_save
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-10-01 17:38:08 -06:00
Nathan Sobo and Max Brunsfeld
fcf6a9d58a
Move Buffer::save_as to Editor
...
This removes buffer's dependency on Worktree, preparing the path for us to pull it into its own crate.
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-10-01 17:32:22 -06:00
Nathan Sobo and Max Brunsfeld
74a47a1384
Extract fuzzy module to its own crate
...
We still have a fuzzy module in the zed crate with some app-specific logic.
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-10-01 17:08:19 -06:00
Nathan Sobo and Max Brunsfeld
626fd2a2aa
Fix warnings
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-10-01 16:45:24 -06:00
Nathan Sobo and Max Brunsfeld
706925b781
Move fuzzy::match_paths to Project::match_paths
...
This prepares the way to extract the rest of fuzzy to its own crate.
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-10-01 16:44:08 -06:00
Nathan Sobo and Max Brunsfeld
cf270b4dff
Extract sum_tree to its own crate
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-10-01 15:55:21 -06:00
Nathan Sobo
bd2d71a582
Merge pull request #194 from zed-industries/investigate-compile-time
...
Explore some ways to reduce Zed's compile time
2021-10-01 15:35:51 -06:00
Nathan Sobo and Max Brunsfeld
514d1b66c3
Reduce generic instantiations in read/update_view/model
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-10-01 15:23:35 -06:00
Nathan Sobo
18a379f20c
Scope the left and right bindings in the project panel
2021-09-30 10:50:58 -06:00
Nathan Sobo
99003ef2d1
Merge pull request #185 from zed-industries/site-v2
...
Update zed.dev to version 0.2.0
2021-09-28 16:00:48 -06:00
Nathan Sobo
5536bf6dcc
Merge branch 'main' into site-v2
2021-09-28 15:33:44 -06:00
Nathan Sobo and Max Brunsfeld
bd7bf82d18
Load .gitignore files from the Fs object so we can test this with a FakeFs
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-09-28 13:21:19 -06:00
Nathan Sobo and Max Brunsfeld
dde782a006
Remove top/bottom padding from project panel
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-09-28 12:26:26 -06:00
Nathan Sobo and Max Brunsfeld
14bc2c6857
Fix scrolling of project panel
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-09-28 12:26:15 -06:00
Nathan Sobo
a3f45c0d3b
Merge branch 'worktree-cursor' into project-browser
2021-09-28 12:13:47 -06:00
Nathan Sobo and Max Brunsfeld
60799c5a7c
💄
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-09-28 12:03:11 -06:00
Nathan Sobo
b018191d52
Merge pull request #186 from zed-industries/sum-tree-seek-target
...
Allow seeking SumTree cursor by multiple seek types per dimension
2021-09-28 11:56:32 -06:00
b9b08879f2
Get tests passing
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
2021-09-28 11:23:09 -06:00
Nathan Sobo
c3e8a5baa0
Unify all worktree traversal in a Traversal cursor/iterator
...
This uses our new ability to have a SeekTarget that's distinct from Dimension.
2021-09-27 21:58:22 -06:00
Nathan Sobo
aa671f1041
Fix remaining compilation errors
2021-09-20 19:44:30 -06:00
Nathan Sobo
e6a0a46476
Merge pull request #167 from zed-industries/fix-language-selection
...
Fix language selection when saving new buffers as a single-file worktree
2021-09-20 17:51:10 -07:00
Nathan Sobo and Max Brunsfeld
4279451150
Fix language selection when saving new buffers as a single-file worktree
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-09-20 14:28:02 -06:00
Nathan Sobo
edfed001de
Merge pull request #159 from zed-industries/tabs-cleanup
...
Clean up tabs styling
2021-09-20 09:16:08 -07:00
Nathan Sobo
6f38cf5e51
Merge pull request #158 from zed-industries/highlight-new-files
...
Set the language on new buffers when they are saved
2021-09-20 09:15:58 -07:00
Nathan Sobo
1719d7da2a
Suppress SVG loading errors in tests
2021-09-19 17:34:04 -07:00
Nathan Sobo
9e6c54ba0c
Test language assignment when new buffers are saved
2021-09-19 17:33:46 -07:00
Nathan Sobo
af99d0ef42
Attempt to assign a language when a new buffer is saved
2021-09-18 11:46:22 -07:00
Nathan Sobo
c7e2b6dacb
Expand the hit area area around tab close icons
2021-09-18 10:37:32 -07:00
Nathan Sobo
928779154e
Tweak spacing so tab close buttons feel more balanced
2021-09-17 16:59:46 -07:00
Nathan Sobo
b5c76ccc95
Render close icons on all tabs when tab bar is hovered
2021-09-17 16:45:09 -07:00
Nathan Sobo
cab577406d
Merge pull request #153 from zed-industries/only-blink-local-cursors
...
Only blink local cursors
2021-09-17 17:32:38 -06:00
Nathan Sobo
9ec3af66b1
Merge pull request #150 from zed-industries/fix-rpc-deadlock
...
Fix deadlock when handling incoming RPC messages
2021-09-17 17:26:15 -06:00
Nathan Sobo
9691267dc8
Only blink local cursors
2021-09-17 16:17:47 -07:00
Nathan Sobo
ae9251a783
Merge pull request #149 from zed-industries/editor-style
...
Specify UI editor fonts via the theme instead of the settings
2021-09-17 17:12:19 -06:00
Nathan Sobo
9a9c8aec3f
Fix deadlock when handling incoming RPC messages
...
We need to drop the lock on the rpc::ClientState when handling an incoming messages in case those message handlers attempt to interact with the client and grab the lock.
2021-09-17 16:12:03 -07:00
Nathan Sobo
42bf88b52a
Base soft wrapping on TextStyle instead of Settings
2021-09-17 15:39:19 -07:00
Nathan Sobo
68039b9d48
Remove font_family and font_size from editor::Snapshot
...
We'll rely on the style struct instead.
2021-09-16 16:46:35 -06:00
Nathan Sobo
f13a3544fc
Move editor layout code into element
...
Now that most of the layout code is based on the EditorStyle struct, I think it makes more sense to put it in the element.
2021-09-16 16:43:43 -06:00
Nathan Sobo
4f0c9a3e31
Build workspace editor TextStyle from font fields in settings
...
We'll specify values in the theme but we'll only end up using the color for these editors.
2021-09-16 14:43:19 -06:00
Nathan Sobo
a1f0693599
Specify full TextStyles in EditorStyle
2021-09-16 14:12:38 -06:00
Nathan Sobo
c21b754c4c
Make placeholder text style optional
2021-09-16 13:23:42 -06:00
Nathan Sobo
606aa148a6
Require a build_style callback to be passed to Editor on construction
...
We're going to use this to control the text style, so it really doesn't make sense to allow an editor to be constructed without it.
2021-09-16 13:20:12 -06:00
Nathan Sobo
ad9712db70
Move EditorStyle into editor module
2021-09-16 12:26:18 -06:00
Nathan Sobo and Max Brunsfeld
95ef70e4f4
Switch to new resolution system in ThemeRegistry
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-09-15 12:56:20 -06:00
Nathan Sobo and Antonio Scandurra
c2e9aa1b54
Render chat panel messages even if connection is lost
...
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
2021-09-15 05:18:13 -06:00
Nathan Sobo and Antonio Scandurra
ec7c6f3f91
Always assign credentials on rpc::Client after connecting
...
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
2021-09-15 05:13:05 -06:00
Nathan Sobo
7d59b2d861
Log panics when not attached to a pty
...
Hopefully this will give us better forensics if we panic in production.
2021-09-15 04:51:22 -06:00
Nathan Sobo
7e4d5b7d04
Clear cached credentials when establishing a websocket connection with an invalid token
2021-09-14 20:36:03 -06:00
Nathan Sobo and Max Brunsfeld
4a9918979e
WIP: Clear cached credentials if authentication fails
...
Still need to actually handle an HTTP response from the server indicating there was an invalid token.
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-09-14 19:19:11 -06:00
Nathan Sobo and Max Brunsfeld
77a4a36eb3
Test that we reuse credentials when reconnecting
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-09-14 18:30:17 -06:00
Nathan Sobo and Max Brunsfeld
44a457e8b6
Cache credentials in memory separately from connection status
...
This prevents us from re-prompting for keychain access when we retry connections after the connection is lost.
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-09-14 18:21:46 -06:00
Nathan Sobo and Max Brunsfeld
99a2dc4880
Render an offline icon in titlebar when connection is lost
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-09-14 17:47:43 -06:00
Nathan Sobo and Max Brunsfeld
e212461dfe
Authenticate when clicking on unauthenticated avatar in titlebar
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-09-14 17:06:40 -06:00
Nathan Sobo and Max Brunsfeld
0f415a594f
Style avatar image with border and rounded corners
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-09-14 16:59:38 -06:00
Nathan Sobo and Max Brunsfeld
426d52d8c1
Mix quad border color with background color based on its alpha channel
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-09-14 16:59:09 -06:00
Nathan Sobo and Max Brunsfeld
b63b717eac
Preserve aspect ratio when scaling images
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-09-14 16:39:35 -06:00
Nathan Sobo and Max Brunsfeld
e0e0bdbc3a
Synthesize GitHub avatar URL and follow redirects when fetching it
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-09-14 16:28:26 -06:00
Nathan Sobo
4be17b7a9b
Fix signups query
2021-09-14 13:23:35 -06:00
Nathan Sobo
f0019e3725
WIP
2021-09-14 12:29:56 -06:00
Nathan Sobo
27b3d11aa6
Make the builder and runtime OS versions match
...
We can't build the latest server on buster, but we were using "latest" so it actually was building on bullseye. Then we tried to run it on buster and it blew up. This locks both versions to bullseye so we're running on the same environment where we build.
2021-09-13 14:03:00 -06:00
Nathan Sobo
c14ebb264f
Make release notes look better with more than 1 release
2021-09-13 13:23:06 -06:00
Nathan Sobo
7737699981
Use a pointing hand cursor style on tab close icons
2021-09-13 11:49:10 -06:00
Nathan Sobo
2b7f69c317
Merge pull request #143 from zed-industries/codesign
...
Perform code signing with Apple-issued certificate on CI
2021-09-10 23:20:48 -06:00
Nathan Sobo
2498a98ea7
Notarize DMG with Apple
2021-09-10 23:15:23 -06:00
Nathan Sobo
cbc23a158a
Tweak order
2021-09-10 22:51:45 -06:00
Nathan Sobo
0710d66092
Perform code signing with Apple-issued certificate on CI
2021-09-10 22:07:20 -06:00
Nathan Sobo
e2b56e8764
If a test connection has been killed, never return a message
2021-09-09 08:25:58 -06:00
Nathan Sobo
5164026238
Test rewraping on font size change
2021-09-07 22:10:01 -06:00
Nathan Sobo
0fb59ee491
Hold a weak handle when watching settings in WrapMap
2021-09-07 22:08:40 -06:00
Nathan Sobo
8262afd1fb
Fix compile errors in tests
2021-09-07 21:46:36 -06:00
Nathan Sobo
17d46cef7f
Recompute wraps when font size changes
2021-09-07 21:38:14 -06:00
Nathan Sobo
fe3889c786
Add bindings to adjust buffer font size
2021-09-07 17:06:42 -06:00
Nathan Sobo and Max Brunsfeld
13143e64a2
Style resize handles
...
We want the draggable area to be larger than the visual appearance, so we added a padding facility to MouseEventHandler that enlarges the "hit area" by the specified padding.
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-09-07 13:22:21 -06:00
Nathan Sobo and Max Brunsfeld
8085e74b98
Style the left and right sidebars independently in the theme
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-09-07 13:02:43 -06:00
Nathan Sobo and Max Brunsfeld
59931a472b
Style titlebar via theme and give it a bottom border
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-09-07 12:52:10 -06:00
Nathan Sobo and Max Brunsfeld
b29e673c43
Set sidebar icon heights via theme
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-09-07 12:45:48 -06:00
Nathan Sobo
6323e8cc59
WIP: Try rendering underlines after all other quads
...
I thought this would allow underlines to show up in tabs, but it doesn't seem to be working.
2021-09-06 16:57:58 -06:00
Nathan Sobo and Antonio Scandurra
ee9ee294ad
Improve sender styling
...
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
2021-08-26 09:17:43 -06:00
Nathan Sobo and Max Brunsfeld
8f86fa1ccd
Associate messages with their sender, fetching senders if necessary
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-08-25 14:20:03 -06:00
77c7fa53da
Introduce Orientation concept to List
...
When the Orientation is Bottom, we paint elements from the bottom of the list when underflowing and express scroll position relative to the bottom. In either orientation, when inserting elements outside the visible area, we adjust the scroll position as needed to keep the visible elements stable.
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
2021-08-25 12:45:17 -06:00
Nathan Sobo and Max Brunsfeld
33dbbf271e
WIP
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-08-24 18:09:36 -07:00
Nathan Sobo and Max Brunsfeld
0187ac8fde
Share a single pool of LineWrappers across all threads
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-08-24 18:16:13 -06:00
Nathan Sobo and Max Brunsfeld
3ac489a8b6
Fix panic when scrolling non-overflowing lists
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-08-24 17:51:37 -06:00
Nathan Sobo and Max Brunsfeld
a79b32cfc2
Apply theme to chat messages
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-08-24 17:46:41 -06:00