Commit log

7253160 Add more vscode colors

Nate Butler created

b157453 Do not use prettier for formatting node_modules/** files (#3286)

Click to expand commit body
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

Kirill Bulatov created

f55d890 Port changes to gpui2

Kirill Bulatov created

27b3378 Get tsserver running again (#3277)

Click to expand commit body
Release Notes:

- Fixed a few issues preventing Javascript/Typescript language server
from working with latest upstream changes.

Julia created

2e957bc Do not propose prettier formatters for documents in node_modules/

Kirill Bulatov created

ce40d5e Adjust the tests

Kirill Bulatov created

8be07ed Change locate prettier method signature

Kirill Bulatov created

656eb9d WIP

Mikayla created

43eb7f2 checkpoint

Mikayla created

bdeb32c Extend VSCode theme importer

Nate Butler created

25c8b19 WIP

Nate Butler created

f569628 Merge branch 'more-gpui2-apis' into editor-tests

Mikayla created

86630bb Add extra clone

Mikayla created

269c3ea Uncomment tests

Mikayla created

7a7ef10 Add Context::read_window, WindowHandle::root, and change ViewContext.view() to return a reference

Mikayla created

b5f60b7 Merge branch 'main' into update-workspace-styles

Nate Butler created

4404e76 Merge branch 'main' into editor-integration

Mikayla created

0bfd18b WIP

Mikayla created

ad3b0bd port notifications2 and integration tests (#3283)

Click to expand commit body
Release Notes:

- N/A

Mikayla Maki created

8c44f6a Simplify input handling (#3282)

Click to expand commit body
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

Nathan Sobo created

7888dc4 Add notifications2

Mikayla created

d52c564 Add docs

Nathan Sobo created

7c922ad Remove comments

Nathan Sobo created

8278a07 Actually set the input handler

Nathan Sobo created

8330fb5 port rope2 to zed2 (#3224)

Click to expand commit body
port rope2 to zed2

Release Notes:

- NA

Mikayla Maki created

e2130ca Switch from associated type to generic on EventEmitter trait (#3281)

Click to expand commit body
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

Mikayla Maki created

2c67cc8 Merge branch 'main' into event-emitter

Mikayla created

9a02267 Simplify IME support

Nathan Sobo created

3c57b91 Update editor to use new event emitter

Mikayla created

a97c8bf Get workspace compiling with new event emitters

Mikayla created

97ce9e9 de-dbg (#3280)

Click to expand commit body
Remove some debugging from GoToLine

Release Notes:

- N/A

Conrad Irwin created

2bf8616 Implement `bounds_for_range`, so that text input windows are positioned correctly (#3278)

Click to expand commit body
![Screenshot 2023-11-08 at 5 33
10 PM](https://github.com/zed-industries/zed/assets/326587/09efd785-2c43-41b2-9429-c17067497fd2)

![Screenshot 2023-11-08 at 5 33
28 PM](https://github.com/zed-industries/zed/assets/326587/14a9faee-3547-40b6-a31f-16f653cdcb36)

Max Brunsfeld created

47a63d5 de-dbg

Conrad Irwin created

4350801 Merge branch 'main' into bounds-for-range

Max Brunsfeld created

277fbda Fix vertical position in first_rect_for_character_range

Max Brunsfeld created

8686543 Assign gutter widht on editor view when painting element

Max Brunsfeld created

26fc36e First pass at allowing multiple event types to be emitted by an entity

Mikayla created

15f6fbf Merge branch 'bounds-for-range' of github.com:zed-industries/zed into bounds-for-range

Marshall Bowers created

9a41c58 Hard-code the gutter margin temporarily

Marshall Bowers created

b77fab0 :art:

Max Brunsfeld created

b90e34a go to line2 (#3261)

Click to expand commit body
- MODAL
- center a div
- MOAR CODE
- Beautiful go to line modal


Release Notes:
- N/A

Conrad Irwin created

7a8f219 Account for element's bounds in Editor::bounds_for_range

Click to expand commit body
Co-authored-by: Marshall <marshall@zed.dev>

Max Brunsfeld and Marshall created

cef8fa5 tidy tidy

Conrad Irwin created

1a37d9e Register text input handlers via new element hook

Click to expand commit body
Provide element bounds to the input handler's `bounds_for_rect` method.

Co-authored-by: Marshall <marshall@zed.dev>

Max Brunsfeld and Marshall created

1b9f76c Refactor GoToLine to use cx.observe_new_views()

Conrad Irwin created

d273fa6 Fix DisplaySnapshot::x_for_point always returning 0

Click to expand commit body
Co-authored-by: Marshall <marshall@zed.dev>

Max Brunsfeld and Marshall created

c814404 Fix blinking in `editor2` (#3272)

Click to expand commit body
This also introduces new APIs in `ViewContext` for observing window
focus changes.

Release Notes:

- N/A

Max Brunsfeld created

c7139db Get tsserver running again

Julia created

cbdd4ac Merge branch 'main' into go-to-line2

Conrad Irwin created

6a802e2 Make Modals dismissable in theory

Conrad Irwin created