Max Brunsfeld
6b8ce3cc85
Add a setting for when to seed the search query from the text under the cursor
2023-11-09 14:03:14 -08:00
Max Brunsfeld
28d3d21108
Generalize Refineable derive macro to derive arbitrary traits on the refinement type
2023-11-09 13:23:31 -08:00
Max Brunsfeld
dba41e99dd
Avoid suggesting search query if cursor is not on a word
2023-11-09 12:33:30 -08:00
Max Brunsfeld
c6b76d908f
Use normal JS comments within JSX tags and JSX expression blocks ( #3290 )
...
This fix only required changing the `overrides` queries for JavaScript
and TSX. I've made the fix in both the `zed2` and `zed` crates.
Release Notes:
- Fixed an issue in JavaScript and TSX files, where the 'toggle
comments' command used the wrong comment syntax inside of JSX tags and
expressions within JSX.
2023-11-09 11:15:08 -08:00
Max Brunsfeld
e50318e7e1
Duplicate buffer test changes in language2 version
2023-11-09 11:09:49 -08:00
Max Brunsfeld and Kirill
4c89b2885e
Use normal JS comments within JSX tags and JSX expression blocks
...
Co-authored-by: Kirill <kirill@zed.dev >
2023-11-09 10:58:33 -08:00
Conrad Irwin
72de5cb6ce
Fix escape in GoToLine with new event emitter ( #3289 )
...
[[PR Description]]
Release Notes:
- N/A
2023-11-09 11:23:26 -07:00
Julia
98271fb9bb
zed2: Get tsserver running again ( #3288 )
...
Port these changes to the zed2 directory
Release Notes:
- N/A
2023-11-09 12:55:27 -05:00
Conrad Irwin
3c689ba33e
Fix escape in GoToLine with new event emitter
2023-11-09 10:52:17 -07:00
Julia
9cb14c189b
zed2: Get tsserver running again
2023-11-09 11:43:40 -05:00
Joseph T. Lyons
40f40ab1ec
Fix typo in EULA ( #3287 )
...
Release Notes:
- N/A
2023-11-09 11:25:50 -05:00
Joseph T. Lyons
604682bb91
Fix typo in EULA
2023-11-09 11:08:30 -05:00
Kirill Bulatov
b157453630
Do not use prettier for formatting node_modules/** files ( #3286 )
...
Fixes
> the most annoying thing i'm running into right now is that when i'm
patching something inside node_modules, Zed tries to pretty-format it
according to my prettier config. this messes up the patch because it has
formatting changes now. i need the pretty formatting on save to be off
inside node_modules, that never makes sense
feedback from #influencers
Do note though, that language servers will still format any file inside
node_modules, but at least it's not prettier now.
VSCode seem to format the node_modules/** files via language servers
too, so that seems ok for now, and the rest could be fixed during
> "project diagnostics" (eslint) seem to be running inside node_modules,
e.g. i'm seeing 3182 "errors" in my project. that doesn't make sense and
probably wastes resources in addition to being annoying
feedback later.
Release Notes:
- Fixed prettier formatting files inside node_modules
2023-11-09 17:42:58 +02:00
Kirill Bulatov
f55d89088b
Port changes to gpui2
2023-11-09 17:18:41 +02:00
Julia
27b3378020
Get tsserver running again ( #3277 )
...
Release Notes:
- Fixed a few issues preventing Javascript/Typescript language server
from working with latest upstream changes.
2023-11-09 10:14:36 -05:00
Kirill Bulatov
2e957bc564
Do not propose prettier formatters for documents in node_modules/
2023-11-09 14:49:37 +02:00
Kirill Bulatov
ce40d5e0c5
Adjust the tests
2023-11-09 14:40:32 +02:00
Kirill Bulatov
8be07eddcc
Change locate prettier method signature
2023-11-09 14:23:33 +02:00
Mikayla Maki
ad3b0bd227
port notifications2 and integration tests ( #3283 )
...
Release Notes:
- N/A
2023-11-08 21:32:33 -08:00
Nathan Sobo
8c44f6a814
Simplify input handling ( #3282 )
...
This PR takes a different approach to input handling.
Rather than returning the optional input handler, focus handle pair from
the element trait, we instead allow you to register an input handler
imperatively on the window context with `WindowContext::handle_input`.
You pass a focus handle reference and any implementer of
`PlatformInputHandler`. There's an `ElementInputHandler<V>` that
implements `PlatformWindowHandler` so long as `V` implements
`InputHandler`.
Release Notes:
- N/A
2023-11-08 22:27:36 -07:00
Mikayla
7888dc4592
Add notifications2
2023-11-08 21:23:31 -08:00
Nathan Sobo
d52c5646b4
Add docs
2023-11-08 22:03:26 -07:00
Nathan Sobo
7c922ad6ee
Remove comments
2023-11-08 21:49:21 -07:00
Nathan Sobo
8278a07354
Actually set the input handler
2023-11-08 21:43:14 -07:00
Mikayla Maki
8330fb5f10
port rope2 to zed2 ( #3224 )
...
port rope2 to zed2
Release Notes:
- NA
2023-11-08 20:19:05 -08:00
Mikayla Maki
e2130ca444
Switch from associated type to generic on EventEmitter trait ( #3281 )
...
This removes a lot of ad-hoc event translation code in the workspace and
replaces it with a GPUI feature and trait bounds.
TODO:
- [x] Proof out idea
- [x] Convert the workspace
- [x] Convert the rest of the app
Release Notes:
- N/A
2023-11-08 20:16:33 -08:00
Mikayla
2c67cc80ba
Merge branch 'main' into event-emitter
2023-11-08 20:10:38 -08:00
Nathan Sobo
9a022671a2
Simplify IME support
2023-11-08 21:06:00 -07:00
Mikayla
3c57b912b9
Update editor to use new event emitter
2023-11-08 19:52:43 -08:00
Mikayla
a97c8bf58f
Get workspace compiling with new event emitters
2023-11-08 19:29:00 -08:00
Conrad Irwin
97ce9e9586
de-dbg ( #3280 )
...
Remove some debugging from GoToLine
Release Notes:
- N/A
2023-11-08 18:45:42 -07:00
Max Brunsfeld
2bf8616a48
Implement bounds_for_range, so that text input windows are positioned correctly ( #3278 )
...


2023-11-08 17:38:11 -08:00
Conrad Irwin
47a63d5cb7
de-dbg
2023-11-08 18:36:12 -07:00
Max Brunsfeld
4350801399
Merge branch 'main' into bounds-for-range
2023-11-08 17:31:00 -08:00
Max Brunsfeld
277fbda356
Fix vertical position in first_rect_for_character_range
2023-11-08 17:27:32 -08:00
Max Brunsfeld
86865431b9
Assign gutter widht on editor view when painting element
2023-11-08 17:01:50 -08:00
Mikayla
26fc36ee0e
First pass at allowing multiple event types to be emitted by an entity
2023-11-08 16:34:38 -08:00
Marshall Bowers
15f6fbf53b
Merge branch 'bounds-for-range' of github.com:zed-industries/zed into bounds-for-range
2023-11-08 19:25:18 -05:00
Marshall Bowers
9a41c58779
Hard-code the gutter margin temporarily
2023-11-08 19:25:12 -05:00
Max Brunsfeld
b77fab0fae
🎨
2023-11-08 16:24:11 -08:00
Conrad Irwin
b90e34aeb2
go to line2 ( #3261 )
...
- MODAL
- center a div
- MOAR CODE
- Beautiful go to line modal
Release Notes:
- N/A
2023-11-08 17:16:00 -07:00
Max Brunsfeld and Marshall
7a8f219251
Account for element's bounds in Editor::bounds_for_range
...
Co-authored-by: Marshall <marshall@zed.dev >
2023-11-08 16:15:10 -08:00
Conrad Irwin
cef8fa5570
tidy tidy
2023-11-08 17:09:38 -07:00
Max Brunsfeld and Marshall
1a37d9edc6
Register text input handlers via new element hook
...
Provide element bounds to the input handler's `bounds_for_rect` method.
Co-authored-by: Marshall <marshall@zed.dev >
2023-11-08 15:48:55 -08:00
Conrad Irwin
1b9f76c01d
Refactor GoToLine to use cx.observe_new_views()
2023-11-08 16:23:05 -07:00
Max Brunsfeld and Marshall
d273fa6dd0
Fix DisplaySnapshot::x_for_point always returning 0
...
Co-authored-by: Marshall <marshall@zed.dev >
2023-11-08 13:55:39 -08:00
Max Brunsfeld
c81440424b
Fix blinking in editor2 ( #3272 )
...
This also introduces new APIs in `ViewContext` for observing window
focus changes.
Release Notes:
- N/A
2023-11-08 13:53:43 -08:00
Julia
c7139db39e
Get tsserver running again
2023-11-08 16:51:54 -05:00
Conrad Irwin
cbdd4aca89
Merge branch 'main' into go-to-line2
2023-11-08 14:46:52 -07:00
Conrad Irwin
6a802e2fda
Make Modals dismissable in theory
2023-11-08 14:45:54 -07:00