Kirill Bulatov
2996ff6c1b
Fix a compilation error
2023-11-03 21:51:12 +02:00
Kirill Bulatov
3592b98e8f
Refresh diagnostics inside the tab
2023-11-03 21:51:12 +02:00
Max Brunsfeld
8910cb29c2
Add missing dev-dependency feature for editor multi_buffer dependency
2023-10-30 15:32:52 -07:00
Joseph T. Lyons
7c504125d1
Pull duplicate call out of if-else block
2023-10-29 13:54:32 -05:00
Joseph T. Lyons
572f4ba629
Do not call scroll_to twice
2023-10-29 13:47:02 -05:00
Piotr Osiewicz
d1c8772592
Extract multi_buffer module out of editor ( #3170 )
...
Release Notes:
- N/A
2023-10-25 19:31:47 +02:00
Julia
c917ff7618
F8 navigation bugs ( #3163 )
...
Release Notes:
- Fixed "go to previous hunk" getting suck on deletion.
- Fixed a rare case where "go to (prev) diagnostic" could get stuck with
specifically overlapping diagnostics.
2023-10-25 19:03:45 +02:00
Joseph T. Lyons
5a9ce39478
Allow completion menus to be cycled
2023-10-24 19:29:44 +02:00
Julia
80e59b5a01
When navigating diagnostics, skip diagnostic containing cursor
...
Slightly unfortunate but prevents an issue with weirdly overlapping
diagnostics causing the cursor to bounce between them
2023-10-24 17:56:56 +02:00
Kirill Bulatov
ab12b3c6e1
Rework prettier tests
...
Do not infuse `FakeNodeRuntime` with prettier exceptions, rather keep
the default formatter installation method as no-op.
2023-10-24 14:25:46 +02:00
Julia
296ed84646
Re-understand that the line just below git deletion is "inside" hunk
...
Fixes "go to previous hunk" getting stuck on a deletion, never going
further up
2023-10-24 11:17:42 +02:00
Conrad Irwin
480c33efed
Fix infinite loop in select all ( #3154 )
...
[[PR Description]]
Release Notes:
- Fixed an infinite loop in select all matches
([#2170 ](https://github.com/zed-industries/community/issues/2170 )).
2023-10-24 02:58:48 -06:00
Conrad Irwin
84ac6a4401
Fix character selection
2023-10-24 10:50:08 +02:00
Conrad Irwin
3a1846689c
Fix infinite loop in select all
2023-10-23 16:08:12 +02:00
Conrad Irwin
92e91e5b45
Fix some bugs with vim objects
...
- softwrap interaction
- correct selection if cursor is on opening marker
2023-10-22 21:44:34 -06:00
Kirill Bulatov
a7f4fce1e4
Move prettier parsers data into languages from LSP adapters ( #3150 )
...
Release Notes:
- Fixed incorrect prettier parsers sometimes being applied to certain
files
2023-10-21 02:22:21 +03:00
Kirill Bulatov
fb3932aa57
Move prettier parsers data into languages from LSP adapters
2023-10-21 01:14:03 +02:00
Conrad Irwin
d1bef9f6f2
pixel columns ( #3052 )
...
@ForLoveOfCats and I found a few speedups that make this acceptably fast
(able to update ~10k selections in <100ms), so the remaining work here
is to fix the tests, and then ship!
Release notes:
- Updated up/down to work based on pixel positions
([#1966 ](https://github.com/zed-industries/community/issues/1966 ))
([#759 ](https://github.com/zed-industries/community/issues/759 ))
- vim: Fixed off-by-one in visual block mode
([2123](https://github.com/zed-industries/community/issues/2123 ))
2023-10-20 15:01:27 -06:00
Conrad Irwin
8415926840
Hide any circumstantial evidence that this didn't work perfectly first
...
time
2023-10-20 14:45:37 -06:00
Conrad Irwin
41b0045040
Fix build columnar selection logic
2023-10-20 12:55:41 -06:00
Conrad Irwin
91a76e6546
Handle pixel-down to last line when no trailing newline
2023-10-20 12:46:14 -06:00
Conrad Irwin
83d315d720
Fix single column vim selections
2023-10-20 11:17:19 -06:00
Conrad Irwin
93fcf99ec6
Fix test
2023-10-20 10:34:09 -06:00
Kirill Bulatov
dc719f09d0
Sort hint request ranges before asserting to avoid flackiness
2023-10-19 11:05:47 +03:00
Conrad Irwin
fbbf36d152
Merge branch 'main' into pixel-columns
2023-10-18 23:00:56 -06:00
Conrad Irwin
3d5cbcaad1
Refactor TextLayoutDetails construction
2023-10-18 22:56:11 -06:00
Conrad Irwin
7436ed4d45
Make vim visual block work better
2023-10-18 22:23:06 -06:00
Max Brunsfeld and Piotr
80b1b6be22
Fix possibility of infinite loop in selections_with_autoclose_regions
...
Previously, that method could loop forever if the editor's autoclose
regions had unexpected selection ids.
Co-authored-by: Piotr <piotr@zed.dev >
2023-10-18 11:16:14 -07:00
Piotr Osiewicz
503ca69e86
editor/language: hoist out non-generic parts of edit functions. ( #3130 )
...
This reduces LLVM IR size of editor (that's one of the heaviest crates
to build) by almost 5%.
LLVM IR size of `editor` before this PR: 3280386
LLVM IR size with `editor::edit` changed: 3227092
LLVM IR size with `editor::edit` and `language::edit` changed: 3146807
Release Notes:
- N/A
2023-10-16 13:17:44 +02:00
Piotr Osiewicz
563d506da1
copilot: Propagate action if suggest_next is not possible. ( #3129 )
...
One of our users ran into an issue where typing "true quote" characters
(option-[ for „ and option-] for ‚) was not possible; I've narrowed it
down to a collision with Copilot's NextSuggestion and PreviousSuggestion
action default keybinds. I explicitly did not want to alter the key
bindings, so I've went with a more neutral fix - one that propagates the
keystroke if there's no Copilot action to be taken (user is not using
Copilot etc). Note however that typing true quotes while using a Copilot
is still not possible, as for that we'd have to change a keybind.
Fixes zed-industries/community#2072
Release Notes:
- Fixed Copilot's "Suggest next" and "Suggest previous" actions
colliding with true quotes key bindings (`option-[` and `option-]`). The
keystrokes are now propagated if there's no Copilot action to be taken
at cursor's position.
2023-10-15 17:27:36 +02:00
Julia
e3e012b4b4
Autocomplete docs ( #3126 )
...
Release Notes:
- Added documentation display for autocomplete items.
- Fixed autocomplete filtering blocking the Zed UI, causing hitches and
input delays with large completion lists.
- Fixed hover popup link not firing if the mouse moved a slight amount
while clicking.
- Added support for absolute path file links in hover popup and
autocomplete docs.
2023-10-13 13:26:45 -04:00
Julia
8985fca6a9
Add setting to disable completion docs
2023-10-12 22:08:47 -04:00
Julia
cbb05fe9a8
Whooooops
2023-10-12 21:00:31 -04:00
Julia
bcfc3a8d6a
Eagerly attempt to resolve missing completion documentation
2023-10-12 19:28:17 -04:00
Julia
4c0091df7a
Unbork markdown parse test by making links match
2023-10-12 16:18:54 -04:00
Julia
1dd6e3c0d0
Race completion filter w/completion request & make not block UI
2023-10-12 13:23:26 -04:00
Julia
1a27bf9ae1
Allow file links in markdown & filter links a bit aggressively
2023-10-12 12:11:27 -04:00
Kirill Bulatov
222bb37da6
Add more tests
2023-10-12 15:14:51 +03:00
Kirill Bulatov
7c90ad59a6
Make the first prettier test pass
2023-10-12 13:30:49 +03:00
Julia
28dadd1002
Fire markdown link on mouse down
...
Previously any amount of mouse movement would disqualify the mouse down
and up from being a click, being a drag instead, which is a long
standing UX issue. We can get away with just firing on mouse down here
for now
2023-10-11 14:39:34 -04:00
Julia
09cbfcb608
Fixup layout
2023-10-11 13:41:58 -04:00
Kirill Bulatov
61f321016d
Add prettier tests infrastructure
2023-10-11 19:13:28 +03:00
Julia and Antonio Scandurra
545bfa4231
Make completion documentation scroll & fix accompanying panic from tag
...
Co-Authored-By: Antonio Scandurra <antonio@zed.dev >
2023-10-10 10:08:29 -04:00
Julia and Antonio Scandurra
378ea7f7e1
Avoid leaving selected item index past end of matches list
...
Co-Authored-By: Antonio Scandurra <antonio@zed.dev >
2023-10-10 09:27:18 -04:00
Julia
24233511f1
Enable completion menu to resolve documentation when guest
2023-10-10 00:16:15 -04:00
Conrad Irwin
ccc2c5fdd6
Use Horizontal ranges everywhere
2023-10-09 21:48:50 -06:00
Conrad Irwin
3e26012885
Round better for up/down
2023-10-09 21:48:32 -06:00
Conrad Irwin
a1ae399638
Get the project running!
2023-10-09 21:48:31 -06:00
Conrad Irwin
21e620fbd0
Refactor to pass a TextLayoutDetails around
2023-10-09 21:47:58 -06:00
Conrad Irwin and Julia
9ad2240680
Begin to use pixels for column selection
...
For zed-industries/community#759
For zed-industries/community#1966
Co-Authored-By: Julia <floc@unpromptedtirade.com >
2023-10-09 21:47:58 -06:00