Keith Simmons and Max Brunsfeld
3bcc515b7b
Add typescript language server
...
Currently not tested for tsx files
Co-authored-by: Max Brunsfeld <max@zed.dev >
2022-03-29 13:42:21 -07:00
Max Brunsfeld
79884d9e72
WIP
2022-03-29 11:06:08 -07:00
Max Brunsfeld and Keith Simmons
833065a311
Add basic TypeScript and TSX support
...
Co-Authored-By: Keith Simmons <keith@zed.dev >
2022-03-29 10:42:46 -07:00
Max Brunsfeld
c6b04f7797
Make language's language server config non-optional
2022-03-28 18:14:49 -07:00
Max Brunsfeld
f675fc0c12
Remove duplication in build_language_registry
2022-03-28 18:01:29 -07:00
Antonio Scandurra
9ac7e584c3
Merge pull request #692 from zed-industries/selection-history
...
Allow undoing and redoing selections via `cmd-u` and `cmd-shift-u`
2022-03-28 17:55:09 +02:00
Antonio Scandurra
87cb21b390
Avoid unnecessary clones when undoing/redoing selections
2022-03-28 17:47:14 +02:00
Antonio Scandurra
b905efe0c3
Merge branch 'main' into selection-history
2022-03-28 17:24:46 +02:00
Antonio Scandurra and Nathan Sobo
87528c7a2e
Test selection history
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-03-28 17:20:52 +02:00
Antonio Scandurra and Nathan Sobo
c329a0f620
Always use square brackets in marked_text_ranges
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-03-28 17:11:35 +02:00
Antonio Scandurra
26a3076f5a
Merge pull request #690 from zed-industries/indent-keybindings
...
Bind `Outdent` and `Indent` respectively to `cmd-[` and `cmd-]`
2022-03-28 16:50:23 +02:00
Antonio Scandurra
cdcdc6665f
Cap selection history to 1024 entries
2022-03-28 16:37:48 +02:00
Antonio Scandurra and Nathan Sobo
616034a4a1
Insert tabs instead of indenting only when all selections are empty
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-03-28 16:36:12 +02:00
Antonio Scandurra
ba0d4f7246
Merge pull request #689 from zed-industries/format-timeout
...
Skip formatting during save if it takes too long
2022-03-28 16:17:56 +02:00
Antonio Scandurra
43c4df2200
Merge pull request #691 from zed-industries/snap-icons-to-pixel-grid
...
Snap icon sprites to pixel grid
2022-03-28 16:16:06 +02:00
Antonio Scandurra
f3871654a0
Implement cmd-u and cmd-shift-u to undo and redo selections
2022-03-28 16:05:44 +02:00
Antonio Scandurra
04524d0cb8
Extract SelectionHistory in preparation to store an undo/redo stack
2022-03-28 14:52:54 +02:00
Antonio Scandurra
5008138919
Autoscroll to newest cursor on cmd-d instead of fitting all selections
2022-03-28 14:38:51 +02:00
Antonio Scandurra
5af07d69fa
Snap icon sprites to pixel grid
...
This should resolve some rendering artifacts potentially caused by
floating point errors when sampling the texture. It should also lead
to crisper images when icons are rendered midway through a pixel.
2022-03-28 11:52:13 +02:00
Antonio Scandurra
dc87310b05
Bind Outdent and Indent respectively to cmd-[ and cmd-]
2022-03-28 11:34:46 +02:00
Antonio Scandurra
f87b66efc7
Make indent and outdent explicit actions and unify tabbing logic
2022-03-28 11:34:38 +02:00
Antonio Scandurra
0995424cf7
Fix warnings
2022-03-28 11:05:55 +02:00
Antonio Scandurra
c3a7e13408
Skip formatting during save if it takes too long
2022-03-28 11:02:20 +02:00
Antonio Scandurra
5d18def959
Fire fake timers waking up at the same time as the current clock
2022-03-28 10:57:52 +02:00
Antonio Scandurra
fb4f218382
Allow returning futures in fake language server request handlers
2022-03-28 10:44:32 +02:00
Nathan Sobo
d22cc7b8c7
Merge pull request #686 from zed-industries/disable-vim-on-start
...
Fully disable vim mode on start unless it's enabled
2022-03-26 19:23:46 -06:00
Nathan Sobo
96254384cf
Assign normal mode when re-enabling
2022-03-26 19:19:12 -06:00
Nathan Sobo
8a57598939
Fully disable vim mode on start unless it's enabled
...
Also: Make some structural adjustments to remove the need for defer. Instead of accessing the global in associated VimState functions, have a single method that allows us to call update instance methods.
2022-03-26 19:19:12 -06:00
Nathan Sobo
60dff22cf2
Test that vim mode can be disabled on startup
2022-03-26 19:19:12 -06:00
Nathan Sobo
c1f83a7a6d
0.23.0
2022-03-26 07:22:01 -06:00
Nathan Sobo
331c615c31
Merge pull request #684 from zed-industries/subword
...
Add bindings for subword movement and deletion
2022-03-26 07:18:29 -06:00
Nathan Sobo
b0e20a4715
Merge pull request #682 from zed-industries/vim-hjkl
...
Vim hjkl
2022-03-26 07:11:46 -06:00
Nathan Sobo
e94325777a
Add bindings for subword movement and deletion
2022-03-26 07:10:16 -06:00
Keith Simmons
19c4e3cbff
Fixed issue with enabling and disabling vim mode dynamically
...
Also added indoc and marked text utility to vim tests to improve readability
2022-03-25 20:10:52 -07:00
Keith Simmons and Nathan Sobo
4e569432a2
Add clip_to_line_end to display_map/snapshot and set it to ensure vim positioning in normal mode
...
Co-authored-by: Nathan Sobo <nathan@zed.dev >
2022-03-25 20:10:52 -07:00
Keith Simmons and Nathan Sobo
4a4982d518
Add initial vim mode mode switching
...
Co-authored-by: Nathan Sobo <nathan@zed.dev >
2022-03-25 20:10:37 -07:00
Nathan Sobo
b5b408ad4b
Merge pull request #680 from zed-industries/unregister-on-disconnect
...
Properly clear out registration and sharing state when a host loses their connection
2022-03-25 11:52:25 -06:00
Nathan Sobo and Antonio Scandurra
504a88d3ab
Add integration test for dropping host connections while sharing
...
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
2022-03-25 10:32:31 -06:00
Nathan Sobo and Antonio Scandurra
a22e44d86c
Clear out project registration and sharing state on disconnect
...
Previously, we weren't fully clearing the state associated with projects and worktrees when losing connection. This caused us to not see guest avatars disappear and not be able to re-share upon reconnect.
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
2022-03-25 10:15:08 -06:00
Antonio Scandurra
0b4e735917
Merge pull request #678 from zed-industries/disk-based-diagnostics-transformation
...
Preserve disk-based diagnostics whose ranges intersect with an edit since save
2022-03-25 17:04:07 +01:00
Antonio Scandurra
e59bdfe6c5
Merge pull request #673 from zed-industries/unfold-on-select-match
...
Unfold when selecting next match
2022-03-25 15:40:22 +01:00
Antonio Scandurra and Nathan Sobo
f7b13fbc0b
Preserve disk-based diagnostics whose ranges intersect with an edit since save
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-03-25 15:35:31 +01:00
Antonio Scandurra and Nathan Sobo
8aa34653a9
Rename Patch::transform_old to Patch::old_to_new
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-03-25 14:57:40 +01:00
Antonio Scandurra
5c3e450318
Introduce Patch::transform_old
2022-03-25 14:28:38 +01:00
Nathan Sobo
28251eba43
Merge branch 'main' into unfold-on-select-match
2022-03-24 14:13:27 -06:00
Nathan Sobo
77a4829660
Merge pull request #672 from zed-industries/fix-unfollowing-on-edit
...
Automatically unfollow leader only for edits that originate from the follower editor
2022-03-24 13:26:28 -06:00
Keith Simmons
ae4be7bb55
Merge pull request #676 from zed-industries/highlighted-text-fix
...
Highlighted text fix
2022-03-24 11:52:06 -07:00
Keith Simmons and Nathan Sobo
1eacdcf00a
Remove result from anchor cmp functions
...
Co-authored-by: Nathan Sobo <nathan@zed.dev >
2022-03-24 11:48:31 -07:00
e0d394eaf6
Change language::anchor::min() to a constant
...
Co-authored-by: Antonio Scandurra <me@as-cii.com >
Co-authored-by: Nathan Sobo <nathan@zed.dev >
2022-03-24 10:41:33 -07:00
dcb6b335e7
Make rename highlights work across multibuffer excerpts
...
Co-authored-by: Antonio Scandurra <me@as-cii.com >
Co-authored-by: Nathan Sobo <nathan@zed.dev >
2022-03-24 10:22:47 -07:00