Commit Graph

25990 Commits

Author SHA1 Message Date
Anthony Eid
13dd3aa2b5 Enable session to send changed breakpoints to active dap servers 2025-02-19 02:26:00 -05:00
Anthony Eid
ac68f31550 Allow session to handle toggling ignore breakpoint 2025-02-19 01:58:05 -05:00
Piotr Osiewicz
95eca602c4 Bring back old UI 2025-02-19 02:02:07 +01:00
Piotr Osiewicz
1af8c11ef4 Initialization sequence 2025-02-19 01:31:23 +01:00
Piotr Osiewicz
859cc67fa1 WIP 2025-02-19 01:20:16 +01:00
Piotr Osiewicz
060c8df7e8 Remove code 2025-02-19 00:13:02 +01:00
Anthony Eid
1644871336 Start work on handling stopped event
I didn't have time to finish this beacuse I have a pairing session
that I have to go too. Will resume soon
2025-02-18 12:59:22 -05:00
Anthony Eid
c1ad9873db Rename event handler to message handle in debug client func 2025-02-18 12:31:01 -05:00
Anthony Eid
df6c3649df Clean up handle initialized event return func 2025-02-18 12:31:00 -05:00
Anthony Eid
286532e439 Handle initialize event 2025-02-18 12:31:00 -05:00
Piotr Osiewicz
4e0408ab34 Start wiring in running state
Co-authored-by: Anthony <anthony@zed.dev>
2025-02-18 17:52:22 +01:00
Anthony Eid
5908d5d5fd Cherry pick from remove-dap-session 2025-02-18 10:47:56 -05:00
Piotr Osiewicz
4bb00ad953 Merge branch 'main' into debugger 2025-02-18 16:44:05 +01:00
Cole Miller
76f501af71 git: Don't load shallow HEAD text of symlinks (#25058)
For symlinks, return `None` from `load_committed_text` as we do from
`load_index_text` ever since #10037.

Release Notes:

- Fixed diff hunks appearing in unchanged symlinked files
2025-02-18 15:18:23 +00:00
Cole Miller
9ef0501853 file_finder: Remove common segments of long paths in search results (#25049)
This PR makes progress on #7711 by identifying any common prefix of the
paths in the file finder's search results, and replacing the "interior"
of that prefix---every path segment but the first and last---with `...`,
when a heuristic indicates that the longest path would otherwise
overflow the modal.

The elision is not applied to any segment that contains a match for the
search query.

There may be more work to do on #7711 in the case of long result paths
that do not share a significant common prefix.

Release Notes:

- Improved display of long paths in the file finder modal

Co-authored-by: Max <max@zed.dev>
2025-02-18 10:09:15 -05:00
Piotr Osiewicz
4d2ecb2cdf Remove some more code 2025-02-18 15:52:48 +01:00
Piotr Osiewicz
b159e3c163 Remove start_client_internal 2025-02-18 15:51:09 +01:00
Piotr Osiewicz
2ca2942ffa Adjust DAP store to return session from start methods 2025-02-18 15:46:16 +01:00
Kirill Bulatov
80458ffb96 Persist selections for editors (#25083)
Part of https://github.com/zed-industries/zed/issues/7371
Closes https://github.com/zed-industries/zed/issues/12853

Release Notes:

- Started to persist latest selections for editors, to restore those on
restart
2025-02-18 14:27:00 +00:00
Danilo Leal
b34037876e terminal: Change context menu item label (#25085)
Super subtle, but when I initially saw just "Close", I got weirded out
asking myself "why there's a menu item to close the context menu?", to
only then realize that it didn't close the menu, but the terminal _tab_.
Might be obvious, because that's how buffer tabs are labled, but I don't
know, it feels like the redundancy here is overall positive.

Release Notes:

- N/A
2025-02-18 11:14:10 -03:00
Danilo Leal
295e486113 edit prediction: Update disabled globs link in the onboarding modal (#25084)
Release Notes:

- N/A
2025-02-18 10:45:25 -03:00
Piotr Osiewicz
27bda501a1 Remove another session id 2025-02-18 14:22:04 +01:00
Piotr Osiewicz
b4c2de0838 Oops 2025-02-18 14:12:37 +01:00
Piotr Osiewicz
1c10133f1e ^ 2025-02-18 14:11:21 +01:00
Piotr Osiewicz
b8911725c2 client_id -> session_id some more 2025-02-18 14:10:51 +01:00
Piotr Osiewicz
9ea14ec74d Touchups 2025-02-18 14:07:19 +01:00
Piotr Osiewicz
083fca426e Style starting state a bit 2025-02-18 14:02:04 +01:00
Piotr Osiewicz
e82520c6cf Move from inert to starting state 2025-02-18 13:58:05 +01:00
Piotr Osiewicz
1d5fc3771f Change dap name on click in inert state 2025-02-18 13:15:44 +01:00
Antonio Scandurra
00bb9a4e92 Fix LSP rename in Go (#25073)
Some language servers report version 0 even if the buffer hasn't been
opened yet. We detect this case and treat it as if the version was
`None`.

Closes #23706

Release Notes:

- Fixed a bug that prevented renames for some languages.
2025-02-18 10:37:58 +00:00
João Marcos
b4fc127e49 editor: Disable "Open in Terminal" when it's not possible (#25059)
When impossible to trigger action, the button should be disabled.

Release Notes:

- N/A
2025-02-18 04:07:04 -03:00
Joseph T. Lyons
0e38d2d4f1 Add doc on workspace persistence (#25062)
Release Notes:

- N/A
2025-02-18 06:07:18 +00:00
Max Brunsfeld
813d870a03 Bump Tree-sitter for bug fixes affecting YAML parser loaded via WASM (#25054)
Closes https://github.com/zed-industries/zed/issues/24742
Closes #24632

This PR bumps Tree-sitter to bring in bug fixes:
* https://github.com/tree-sitter/tree-sitter/pull/4218
* https://github.com/tree-sitter/tree-sitter/pull/4213
* https://github.com/tree-sitter/tree-sitter/pull/4210

I've also bumped Wasmtime and wit-bindgen, since the new Tree-sitter
uses a newer wasmtime.

Release Notes:

- Fixed a parsing bug that caused memory leaks and crashes when using
the Ansible extension

---------

Co-authored-by: Anthony <anthony@zed.dev>
Co-authored-by: Anthony Eid <hello@anthonyeid.me>
2025-02-17 21:29:27 -08:00
João Marcos
8942e657aa add more tests to editor::SelectAllMatches (#25060)
Release Notes:

- N/A
2025-02-18 05:07:57 +00:00
Cole Miller
06726a28d3 Revert splitting display diff hunks (#25020)
This PR reverts two recent commits that changed our gutter highlights to
mark separately the deleted and added portions of an expanded
modification hunk. It returns to the previous status quo where the
gutter highlight for an expanded modification hunk has the same color
for the deleted and added portions.

Release Notes:

- N/A
2025-02-17 23:45:37 -05:00
Marshall Bowers
93efb57c75 docs: Fix formatting (#25057)
This PR fixes a formatting issue in the docs that was introduced in
#5669.

Seems that PR was merged without passing CI.

Release Notes:

- N/A
2025-02-18 04:43:50 +00:00
João Marcos
a8de6af641 Fix editor::SplitSelectionIntoLines adding an extra line at the end (#25053)
Closes #4795

Release Notes:

- Fixed `editor::SplitSelectionIntoLines` adding an extra line at end
of selection
2025-02-18 03:23:48 +00:00
Piotr Osiewicz
04a1e569c2 fmt 2025-02-18 02:23:30 +01:00
Piotr Osiewicz
ced8514177 Merge pull request #115 from zed-industries/remove-dap-session
Remove dap session
2025-02-18 02:22:14 +01:00
Ben Kunkle
12aa270b9a Fix TypeScript block indenting when using allman style (#25051)
Closes #24976 

Release Notes:

- Fixed an issue where writing TypeScript using Allman style would
result in incorrect auto-indent behavior
2025-02-18 01:15:10 +00:00
Piotr Osiewicz
c308a8cc2d Reduce visibility of modes 2025-02-18 02:11:31 +01:00
Piotr Osiewicz
a8f59b8a1d Renames 2025-02-18 02:09:23 +01:00
Piotr Osiewicz
afaaf24455 Renames 2025-02-18 02:09:05 +01:00
Piotr Osiewicz
b8383bedae Renames 2025-02-18 02:07:14 +01:00
Piotr Osiewicz
bd27f879e2 Rename DebugAdapterClientId to SessionId 2025-02-18 01:56:57 +01:00
Piotr Osiewicz
05a35375a4 cleanups 2025-02-18 01:51:43 +01:00
Piotr Osiewicz
28d6e76298 Add Initialize command 2025-02-18 01:16:26 +01:00
Piotr Osiewicz
abda28fb6b Use LocalDapCommand in bounds 2025-02-18 01:04:01 +01:00
Piotr Osiewicz
9b8ea48883 Split out local part from DapCommand 2025-02-18 01:02:45 +01:00
Michael Sloan
888dc0b344 Document file_scan_inclusions and make consistent with default.json (#25046)
Release Notes:

- N/A
2025-02-17 23:31:06 +00:00