Max Brunsfeld
4a0487b81d
Treat .pyi files as Python
2022-06-23 11:14:11 -07:00
Max Brunsfeld
b5b88d35e1
Syntax-highlight Python project symbols and completions
2022-06-23 11:14:01 -07:00
Max Brunsfeld
daada15dbc
Upgrade tree-sitter-python for error recovery improvement
2022-06-23 11:13:30 -07:00
Max Brunsfeld
7aeaeafd8d
Integrate pyright language server
2022-06-22 16:58:19 -07:00
Max Brunsfeld
3527013928
Add python outline and bracket queries
2022-06-22 16:28:09 -07:00
Max Brunsfeld
30b3af39a8
Make python indent query more general
...
Upgrade Tree-sitter for a query bugfix that I found while
writing this indent query.
2022-06-22 16:18:52 -07:00
Max Brunsfeld
0e85cba7dd
Start work on Python support
2022-06-21 17:04:54 -07:00
Max Brunsfeld
b9431522f9
Merge pull request #1217 from zed-industries/fix-lsp-statuses-for-guests
...
Report running language servers when sharing project for the first time
2022-06-21 11:50:58 -07:00
Antonio Scandurra
5135e64f96
Merge pull request #1215 from zed-industries/suggest-upgrade-on-reconnect
...
Show upgrade required message when reconnecting after a protocol change
2022-06-21 20:41:36 +02:00
Antonio Scandurra and Max Brunsfeld
e4981d98ab
Report running language servers when sharing project for the first time
...
Co-Authored-By: Max Brunsfeld <max@zed.dev >
2022-06-21 20:39:54 +02:00
Max Brunsfeld and Antonio Scandurra
c47abf1d47
Add failing test for replication of lsp statuses
...
Co-authored-by: Antonio Scandurra <me@as-cii.com >
2022-06-21 11:27:08 -07:00
Antonio Scandurra
216481ca21
Merge pull request #1214 from zed-industries/fix-error-on-empty-worktree-update
...
Fix error when worktree has no file extensions
2022-06-21 20:08:20 +02:00
Max Brunsfeld and Antonio Scandurra
a9fa5ec14a
Fix error when worktree has no file extensions
...
Co-authored-by: Antonio Scandurra <me@as-cii.com >
2022-06-21 11:02:13 -07:00
Keith Simmons
a299dbfd39
Merge pull request #1213 from zed-industries/hover-dismiss-fix
...
hide hover on editor blur
2022-06-21 10:47:52 -07:00
Keith Simmons
1ed49ac974
hide hover on editor blur
2022-06-21 10:37:59 -07:00
Max Brunsfeld and Antonio Scandurra
a323afac3f
Show upgrade required message when reconnecting after a protocol change
...
Co-authored-by: Antonio Scandurra <me@as-cii.com >
2022-06-21 10:26:34 -07:00
Antonio Scandurra
490c0f4e88
Merge pull request #1212 from zed-industries/persist-project-activity
...
Add an API that returns the most active zed users and the projects where they've been active
2022-06-21 18:16:29 +02:00
Antonio Scandurra
d240b4920a
Expose project metadata via GET /project_metadata
2022-06-21 18:06:31 +02:00
Antonio Scandurra
0f30de23aa
Exclude staff from activity recording
2022-06-21 16:07:59 +02:00
Antonio Scandurra
72f3ffe284
Accept a datetime range when querying project activity
2022-06-21 14:03:10 +02:00
Antonio Scandurra
7eb672c1e4
Unregister project from db when user disconnects or manually does so
2022-06-21 10:37:34 +02:00
Antonio Scandurra
12b3138de1
Register projects in the database and record worktree extensions
2022-06-21 10:29:26 +02:00
Max Brunsfeld
46d614d62f
Add an API that returns the most active users and the projects where they've been active
2022-06-20 19:46:37 -07:00
Antonio Scandurra
0fc4f0d19e
Merge pull request #1209 from zed-industries/mdx-highlighting
...
Highlight files ending in `mdx` as Markdown
2022-06-20 15:56:14 +02:00
Antonio Scandurra
c32acc2c32
Highlight files ending in mdx as Markdown
...
This is clearly a stopgap solution but it'll make our life easier
while hacking on zed.dev.
2022-06-20 15:53:45 +02:00
Antonio Scandurra
cada115e80
Merge pull request #1208 from zed-industries/enhance-autoclose
...
Enhance auto-closing bracket behavior
2022-06-20 12:17:10 +02:00
Antonio Scandurra
b4c87187b2
Allow wrapping selected text with ' in Rust
2022-06-20 11:56:46 +02:00
Antonio Scandurra
f7823657d4
Auto-close ' for TypeScript and don't do so for Rust
2022-06-20 11:55:40 +02:00
Antonio Scandurra
20d4bbf136
Respect close in language configuration when autoclosing bracket
2022-06-20 11:50:44 +02:00
Antonio Scandurra
cf942a390c
Add missing auto-close brackets from various languages
2022-06-20 11:38:12 +02:00
Antonio Scandurra
04de49909c
Merge pull request #1207 from zed-industries/remove-folder-from-project
...
Replace "Remove Folder from Project" label with "Remove from Project`
2022-06-20 10:58:20 +02:00
Antonio Scandurra
5589b9d345
Replace "Remove Folder from Project" label with "Remove from Project`
2022-06-20 10:53:26 +02:00
Max Brunsfeld
7b442f704d
Merge pull request #1206 from zed-industries/fix-offline-project-leak
...
Fix project leak in contacts panel
2022-06-17 15:55:43 -07:00
Max Brunsfeld
06913cf4fc
Avoid holding a strong project handle in an on_click callback
2022-06-17 15:41:48 -07:00
Max Brunsfeld
1fe96f0857
v0.39.0
2022-06-17 14:22:49 -07:00
Antonio Scandurra
e37caa19f4
Merge pull request #1205 from zed-industries/bypass-app-menu
...
Override `performKeyEquivalent` to handle key events
2022-06-17 17:31:51 +02:00
Antonio Scandurra
3e2ad40589
Use BOOL instead of Rust booleans in handle_key_equivalent
2022-06-17 17:19:18 +02:00
Antonio Scandurra
7599cec58e
Override performKeyEquivalent to handle key events
...
This lets us bypass the application menu and invoke the event handler
in Zed first. If that doesn't handle the event, the application menu
item corresponding to the shortcut will be actioned. Prior to this
commit the opposite would happen, which would dramatically limit the
throughput at which we could handle events.
2022-06-17 17:12:56 +02:00
Antonio Scandurra
de08bd4d26
Return true in the Window::on_event callback if event was handled
2022-06-17 17:09:16 +02:00
Antonio Scandurra
18631fd3d0
Merge pull request #1204 from zed-industries/accurate-is-dirty
...
Determine `Buffer::is_dirty` based on the rope's fingerprint
2022-06-17 16:08:07 +02:00
Antonio Scandurra
42064f76b0
Don't compute fingerprint for every text summary
2022-06-17 15:15:27 +02:00
Antonio Scandurra
50530929eb
Fix editor tests after changing the semantics of is_dirty
2022-06-17 12:57:40 +02:00
Antonio Scandurra
aefe40b6d6
Bump protocol version
2022-06-17 12:39:59 +02:00
Antonio Scandurra
5ad9e9e6c8
Determine Buffer::is_dirty based on the rope's fingerprint
2022-06-17 12:38:25 +02:00
Antonio Scandurra
4d65ad3543
Introduce a new fingerprint field to TextSummary
...
This is calculated in `Rope` and uses the `bromberg_sl2` homomorphic
hash function to determine the fingerprint of a single chunk and
compose each chunk fingerprint into a single fingerprint for the entire
rope that is equivalent to hashing all the rope's bytes at once.
2022-06-17 12:12:37 +02:00
Max Brunsfeld
fa050e6184
Merge pull request #1203 from zed-industries/themes-in-app-menu
...
Themes in app menu
2022-06-16 17:59:10 -07:00
Max Brunsfeld
ccbedd09e2
Add a Zed > Preferences submenu with prefs, bindings, theme
2022-06-16 17:50:44 -07:00
Max Brunsfeld
926bd0f417
Always use capital letters when rendering a keystroke
2022-06-16 17:48:10 -07:00
Max Brunsfeld
946ae01618
Allow creating application menus with submenus
2022-06-16 17:47:39 -07:00
Max Brunsfeld
f1e16b56b8
Merge pull request #1202 from zed-industries/avoid-bad-markdown-autoindent
...
Disable auto-indent entirely for markdown
2022-06-16 15:00:07 -07:00