Mikayla Maki
5569199db3
Attempting to do throttling again
2022-08-02 12:15:04 -07:00
Mikayla Maki
668ea56310
Fixed bel bug
2022-08-02 11:58:24 -07:00
Mikayla Maki
0cbee423a2
Merged main and branch
2022-08-02 11:44:59 -07:00
Max Brunsfeld and Julia Risley
ff59fd1c7e
Fix selection positions in tab w/ multiple non-empty selections on the same line
...
Co-authored-by: Julia Risley <floc@unpromptedtirade.com >
2022-08-02 11:42:23 -07:00
Max Brunsfeld and Julia Risley
6baab93bf3
Restructure tab command to treat each cursor individually
...
Co-authored-by: Julia Risley <floc@unpromptedtirade.com >
2022-08-02 11:08:49 -07:00
Antonio Scandurra
1c98b1758f
Merge pull request #1444 from zed-industries/smaller-diffs
...
Compute diffs based on characters rather than lines
2022-08-02 19:17:54 +02:00
Antonio Scandurra
fd7890064c
Merge pull request #1449 from zed-industries/fix-terminal-test-flakiness
...
Remove terminal integration test
2022-08-02 19:17:40 +02:00
Antonio Scandurra and Mikayla Maki
d64b0ebd08
Remove terminal integration test
...
Creating a full-fledged terminal is flaky and causes tests to either
hang or outright panic. The only test that requires creating a terminal
was `test_terminal` but we think the value added by that test is not
worth the flakiness, so we're removing it.
Co-Authored-By: Mikayla Maki <mikayla@zed.dev >
2022-08-02 19:09:34 +02:00
Antonio Scandurra
9a1ae987f4
Fix tests
2022-08-02 18:48:17 +02:00
Mikayla Maki
13847a011a
Merge main into branch
2022-08-02 09:25:52 -07:00
Antonio Scandurra
84b1a2722e
Compute diffs based on characters rather than lines
...
Previously, a change on a given line would cause that whole line to be
replaced. In turn, this caused anchors on that line to go to the start
of that line because they would lie inside of a deleted region after applying
the diff.
By switching to a character-wise diff, we perform smaller edits to the buffer
which stabilizes anchor positions.
2022-08-02 16:52:37 +02:00
Antonio Scandurra
8adc8e31a9
Merge pull request #1443 from zed-industries/non-functional-sign-in
...
Allow signing in again if authentication is pending or was unsuccessful
2022-08-02 14:56:14 +02:00
Antonio Scandurra
ea1ad8961f
Fix tests assuming a certain execution order
2022-08-02 14:40:46 +02:00
Antonio Scandurra
ef417fad91
Add tests for client authentication while a previous sign in is pending
2022-08-02 14:28:47 +02:00
Antonio Scandurra
f4b11c0612
Allow signing in again if authentication is pending or was unsuccessful
...
The local server that we spin up to receive OAuth callbacks isn't
called when an error occurs and it is non-trivial to do so with
next-auth. Besides, there could be cases where the user explicitly
closes the browser window before the callback can be invoked.
With this commit, the user can sign in even while an authentication
is still in progress. As opposed to waiting for at most 10 minutes
before killing the local HTTP server if we haven't received the callback,
we will repeatedly check for a response every second for 100 seconds.
This gives us a chance to determine whether a new authentication has started
in the meantime and, if so, abort the current authentication flow.
2022-08-02 14:16:14 +02:00
Mikayla Maki
52f3edab68
End of day
2022-08-01 17:13:06 -07:00
Mikayla Maki
9d73c4e411
Probably good enough using the two thread solution, latency is low for most things, and it feels good
2022-08-01 16:52:21 -07:00
Max Brunsfeld and Julia Risley
8505231e9a
Start work on auto-indenting lines on tab
...
Co-authored-by: Julia Risley <floc@unpromptedtirade.com >
2022-08-01 16:47:59 -07:00
Mikayla Maki
ba16e3cea9
Abandoning this attempt, nto good enough at async
2022-08-01 16:47:16 -07:00
Max Brunsfeld
cab023cd84
Use first cursor's indent column when pasting w/ different # of cursors
2022-08-01 11:03:07 -07:00
Max Brunsfeld
2c732526a9
Fix mistakes in editor auto-indent test
2022-08-01 11:02:29 -07:00
Antonio Scandurra
e06099512f
Merge pull request #1437 from zed-industries/exponential-invites
...
Assign 5 invites to users who redeem an invite code
2022-08-01 15:04:21 +02:00
Antonio Scandurra
9921462d21
Assign 5 invites to users who redeem an invite code
2022-08-01 14:58:28 +02:00
Antonio Scandurra
47845cade9
Merge pull request #1430 from zed-industries/xdg-compliance
...
Store config files under `~/.config/zed` and data files under `~/Library/Application Support/Zed`
2022-08-01 12:13:08 +02:00
Julia
61025b866c
Merge pull request #1420 from zed-industries/goto-type-definition
...
Draft: Add "go to type definition" action
2022-07-29 18:31:50 -04:00
ForLoveOfCats
3c06dc3982
Deduplicate some lsp_command code
2022-07-29 18:04:14 -04:00
ForLoveOfCats
bfb6e995a3
Add test cases for `cmd+shift+click" behavior
2022-07-29 17:00:07 -04:00
ForLoveOfCats
07dafaac8f
Add cmd+shift+click action for triggering go to type definition
2022-07-29 17:00:07 -04:00
ForLoveOfCats
ef6efc9590
Add "go to type definition" action
2022-07-29 11:41:08 -04:00
Antonio Scandurra
a10489a451
Copy setting and keymap files from legacy config locations
2022-07-29 10:01:48 +02:00
Antonio Scandurra
0b4891f4db
Extract all zed config/cache paths into a paths module
2022-07-29 10:01:48 +02:00
Antonio Scandurra
186464eeb7
Use XDG-compliant directories for config and cache files
2022-07-29 10:01:48 +02:00
Max Brunsfeld
ca6f3e5336
Merge pull request #1418 from zed-industries/autoindent-on-paste
...
Auto-indent improvements
2022-07-28 23:23:42 -07:00
Max Brunsfeld
75c349243c
🎨 Rename and simplify some autoindent stuff
2022-07-28 22:40:30 -07:00
Max Brunsfeld
357c9d53a9
Record start columns when writing to the clipboard from Zed
2022-07-28 22:13:32 -07:00
Max Brunsfeld
345e33fa98
Start work on adjusting pasted text based on old start column
2022-07-28 17:29:42 -07:00
Mikayla Maki
a6855f7b96
Improved render performance implementation to use a fork of alacritty which includes the last # of bytes processed as a way of estimating throughput in cases where the terminal output is chanegd in place
2022-07-28 16:03:00 -07:00
Max Brunsfeld
7f991029b9
Merge branch 'main' into autoindent-on-paste
2022-07-28 15:09:18 -07:00
Mikayla Maki
6cfd74236e
Reduced time holding lock even more
2022-07-28 14:58:19 -07:00
Max Brunsfeld and Mikayla Maki
669d716519
Introduce AutoindentMode parameter to Buffer::edit
...
This controls whether or not we preserve the relative indentation
of inserted text blocks.
Co-authored-by: Mikayla Maki <mikayla.c.maki@gmail.com >
2022-07-28 14:03:31 -07:00
Max Brunsfeld and Mikayla Maki
48610f5819
Remove indent_size parameter from Buffer::edit_with_autoindent
...
Instead, compute the indent size by reading the settings inside that method.
Co-authored-by: Mikayla Maki <mikayla.c.maki@gmail.com >
2022-07-28 13:00:05 -07:00
Max Brunsfeld
d349ca1f4e
Fix error in autoindent range calculation
2022-07-28 11:51:03 -07:00
Antonio Scandurra
5f96136f37
Merge pull request #1402 from zed-industries/open-log
...
Introduce `zed: open log` command
2022-07-28 10:36:09 +02:00
Antonio Scandurra
7628977349
Open both old and new log files, but just retain the last 1000 lines
2022-07-28 10:25:40 +02:00
Antonio Scandurra
a1466639da
Prevent log file from becoming larger than 1MB
2022-07-28 10:02:38 +02:00
Isaac Clayton
81e8617e47
First draft for opening Zed.log
2022-07-28 09:25:39 +02:00
Mikayla Maki
08c8caa8c1
Added variable rate refreshing based on terminal throughput. Should be the last of the performance improvements for now
2022-07-27 16:46:15 -07:00
Mikayla Maki
485db97836
Implemcargo
2022-07-27 16:33:15 -07:00
K Simmons
73858d0935
Move terminal modal keymap context to the connected view
2022-07-27 11:00:54 -07:00
Mikayla Maki
164e72d605
Working on finding a way of estimating throughput
2022-07-27 10:58:23 -07:00