Commit Graph
31406 Commits
Author SHA1 Message Date
Antonio Scandurra 297842b911 Broadcast only visible worktree root names 2022-06-14 15:15:23 +02:00
Antonio Scandurra ebcbcc3956 Prevent setting files from showing up in project and contacts panels 2022-06-14 14:47:16 +02:00
Antonio Scandurra a3a8c03396 🎨 2022-06-14 14:03:25 +02:00
Antonio Scandurra 37452e8dcb Attempt to open new entry only if it is a file 2022-06-14 14:01:49 +02:00
Antonio Scandurra a408c59709 Open files in project panel using enter instead of right 2022-06-14 13:56:56 +02:00
Antonio Scandurra ead4b30638 Open files when creating them in project panel 2022-06-14 13:49:47 +02:00
Antonio Scandurra a92e888419 Merge branch 'main' into users-api 2022-06-14 11:14:16 +02:00
Antonio Scandurra 6988a24297 Allow specifying query, limit and page when hitting /api/users
This is needed to introduce pagination and search in our admin panel.
2022-06-13 17:30:01 +02:00
Antonio Scandurra ce8444afb7 Expose a new POST /api/bulk_users API to create many users at once
This API will accept a vector of JSON entries containing the GitHub login,
the email address and the invite count. If that user already exist, the
invite count will be updated to the new one.
2022-06-13 15:18:18 +02:00
Antonio Scandurra c9943d6f39 Merge pull request #1172 from zed-industries/more-logs
Add more logging to `collab` to better understand user behavior
2022-06-13 09:22:37 +02:00
Antonio Scandurra 217385e726 Exclude ignored files from the logged extension count 2022-06-13 09:16:16 +02:00
Antonio Scandurra a6cc293327 Don't retain message payloads in span, just log the payload instead 2022-06-13 09:06:58 +02:00
Antonio Scandurra b1cfad4d4a Log extension counts when worktree is updated 2022-06-13 08:57:21 +02:00
Max Brunsfeld 4675e2b21f Merge pull request #1171 from zed-industries/prompt-save-before-quit
Prompt to save changes before quitting the app
2022-06-10 17:32:57 -07:00
Max Brunsfeld a71a9eb665 Prompt to save changes before quitting the app 2022-06-10 17:26:33 -07:00
Max Brunsfeld edc9277f33 Move prometheus annotations from deployment to pod spec 2022-06-10 14:32:36 -07:00
Max BrunsfeldandAntonio Scandurra 20e6ab92ee Add DataDog OpenMetrics annotations to collab k8s deployment
Co-authored-by: Antonio Scandurra <me@as-cii.com>
2022-06-10 13:35:52 -07:00
Max BrunsfeldandAntonio Scandurra 3a4c8743f3 Add OpenMetrics endpoint exposing the basic RPC store metrics as guages
Co-authored-by: Antonio Scandurra <me@as-cii.com>
2022-06-10 13:32:56 -07:00
Max Brunsfeld 311b1a773b v0.38.0 2022-06-10 10:19:21 -07:00
Antonio Scandurra 18a5f6e96f WIP: Start adding more logs 2022-06-10 18:17:02 +02:00
Antonio Scandurra eceb736095 Simplify EditorElement::layout_blocks 2022-06-10 13:57:43 +02:00
Antonio Scandurra d467da1afc Introduce a new BlockStyle field for blocks
This new field allows blocks to specify how they want to be laid out:

- If `Fixed` they can take up all the width they want and they will impact
the scroll width of the editor. This is useful for diagnostic messages and
allows scrolling the editor further to the right to visualize the entire message.
- If `Flex` they can extend all the way to the scroll width without impacting it
any further. This is useful for the rename editor that we insert as a block
decoration when hitting `F2`.
- If `Sticky`, they will be as wide as the editor element and won't participate
in the horizontal scrolling of the editor. This is useful for headers in general,
where we want e.g. the filename and the jump button to always be visible
independently of how much the user has scrolled to the right.
2022-06-10 13:47:40 +02:00
Keith Simmons c921ddae3a Always delay hover display 2022-06-09 18:08:23 -07:00
Keith Simmons a9c3aa48b3 Merge fix 2022-06-09 17:07:32 -07:00
Keith Simmons b1b41425db fix compile error in EditorLspTestContext 2022-06-09 17:03:45 -07:00
Keith Simmons 9c561064c8 Test fixes 2022-06-09 17:03:45 -07:00
Keith Simmons 9f53cfb758 Fix delayed lsp request 2022-06-09 17:03:45 -07:00
Keith Simmons d75a411aad test and build fixes 2022-06-09 17:03:45 -07:00
Keith Simmons 2232ebf584 Add hover test and tweak dismiss logic 2022-06-09 17:03:45 -07:00
Keith Simmons 6cbb582c48 Hide hover when font changes, and handle case where delay was preventing hover with large symbol range 2022-06-09 17:03:44 -07:00
Keith Simmons 5f1e3a5933 Rework hover delay, respect editor font size, and enable hover in multibuffers 2022-06-09 17:03:44 -07:00
Keith Simmons a07c3b8731 wip 2022-06-09 17:03:44 -07:00
Max Brunsfeld 2e11995a75 Merge pull request #1155 from zed-industries/golang
Add Go support
2022-06-09 14:18:37 -07:00
Max Brunsfeld 862bc339d0 Tweak golang outline query 2022-06-09 13:31:30 -07:00
Max Brunsfeld a8be3e8b62 Add project symbol labels for Go 2022-06-09 13:16:08 -07:00
Max Brunsfeld ddec3fc97d Add syntax highlighting for Go completions 2022-06-09 13:08:18 -07:00
Max Brunsfeld 3a848da1eb Ignore completions from gopls that we can't yet handle
We only support additionalEdits if they are provided when resolving the
completion, not if they are provided immediately.
2022-06-09 13:08:08 -07:00
Max Brunsfeld 01aca3b128 Add tests and fix bugs for editor indent/outdent commands w/ hard tabs 2022-06-09 10:26:09 -07:00
Max Brunsfeld 1c9d3d551d Add buffer test for autoindent with hard tabs 2022-06-09 09:05:07 -07:00
Antonio Scandurra 77719c2e5c Snap overlay's bottom/right edge to same window's edge on overflow 2022-06-09 13:48:02 +02:00
Antonio Scandurra ec99b1ca50 Remove language server statuses synchronously when stopping a server 2022-06-09 10:59:02 +02:00
Antonio Scandurra e19d19ba7a Add unit test to ensure changing enable_language_server works 2022-06-09 10:48:06 +02:00
Antonio Scandurra be274c940e Start/stop language servers when enable_language_server changes 2022-06-09 10:08:11 +02:00
Antonio Scandurra f7fcf5064b Introduce a new language-overrideable enable_language_server setting 2022-06-09 10:07:31 +02:00
Antonio Scandurra bd0a466807 Extract a Project::stop_language_server method when restarting server
This will be useful later to stop a language server when detecting
configuration changes.
2022-06-09 10:05:35 +02:00
Antonio Scandurra a23128f3aa Add ModelContext::observe_global 2022-06-09 10:05:00 +02:00
Max Brunsfeld 60335c5d1c Add support for hard tabs
* Add a `hard_tabs` setting that causes indentation to be performed
  using a tab instead of multiple spaces.
* Change Buffer's indentation-related APIs to return an `IndentSize`
  struct with a length and a kind, instead of just a single u32.
* Use hard tabs by default in Go.
2022-06-08 18:30:10 -07:00
Max BrunsfeldandAntonio Scandurra a15333634f Add parser and queries for go
Co-authored-by: Antonio Scandurra <me@as-cii.com>
2022-06-08 10:44:13 -07:00
Max BrunsfeldandAntonio Scandurra 23ba55f6ff Handle messages associated with LSP WorkDoneProgress::Begin messages
Co-authored-by: Antonio Scandurra <me@as-cii.com>
2022-06-08 10:26:41 -07:00
Max BrunsfeldandAntonio Scandurra c5f8dff67a Launch gopls with the right arguments
Co-authored-by: Antonio Scandurra <me@as-cii.com>
2022-06-08 10:25:58 -07:00