Commit Graph
3306 Commits
Author SHA1 Message Date
Max BrunsfeldandNathan Sobo 7040e6df03 Scan any external/ignored directories needed for LSP watchers
Also, don't include "external" files in project searches. Treat them
the same as ignored files.

Co-authored-by: Nathan Sobo <nathan@zed.dev>
2023-06-23 12:53:25 -07:00
Julia 4590864edc Remove installation test binary from language server instance 2023-06-23 13:24:50 -04:00
Max Brunsfeld dcf9c11ca7 Prune the set of expanded dir ids as entries are removed 2023-06-23 10:23:21 -07:00
Max Brunsfeld 746aa18515 Emit loaded events for lazily loaded paths in worktree 2023-06-23 09:39:37 -07:00
Julia 074a8b100d Remove some status stuff 2023-06-23 00:17:27 -04:00
Julia b6af3c1f94 Remove now-unnecessary complexity 2023-06-22 20:19:07 -04:00
Max Brunsfeld 727bc55d6b Fix randomized worktree test failures
* Distinguish between unloaded and pending directories via separate entry kind.
* Scan directories before updating ignore statuses after fs events.
2023-06-22 16:52:04 -07:00
Max Brunsfeld dbfa5136e9 Get integration test passing. Wait for expand entry on remote projects. 2023-06-22 10:34:28 -07:00
Max Brunsfeld e43bcae24b Scan directories when they stop being ignored 2023-06-22 10:34:28 -07:00
Max Brunsfeld 61634b4a51 Add failing test for changing a gitignore so a pending dir is no longer ignored 2023-06-22 10:34:28 -07:00
Max Brunsfeld b34e8c7682 Fix reloading of git repositories
Also, clean up logic for reloading git repositories.
2023-06-22 10:34:28 -07:00
Max Brunsfeld bfb334ed74 Fix expansion of ancestor directories when refreshing a path 2023-06-22 10:34:28 -07:00
Max Brunsfeld 44d90f6790 Expand dirs on-demand when opening buffers inside unloaded dirs 2023-06-22 10:34:28 -07:00
Max Brunsfeld e7aacf59c8 Add a bit to each entry indicating if it's outside of the worktree root 2023-06-22 10:34:28 -07:00
Max Brunsfeld 948ed1d9f0 Fix confusion between canonical vs non-canonical paths when rescanning, expanding paths 2023-06-22 10:34:28 -07:00
Max Brunsfeld 05ad741c4d Load git repositories when inserting the entry for the .git
Don't wait until populating that directory entry, for two reasons:
* In the case of submodules, .git is not a directory
* We don't eagerly populate .git directories, since their contents
  are automatically ignored.
2023-06-22 10:34:28 -07:00
Max Brunsfeld 91778c829e Fix detection of when refreshed paths are outside of worktree root 2023-06-22 10:34:28 -07:00
Max Brunsfeld 28cb3f2d0b Wait for ignored directory to be expanded in descendant entries test 2023-06-22 10:34:28 -07:00
Max Brunsfeld 6690be7b40 Remove logic for marking worktree entries as collapsed 2023-06-22 10:34:28 -07:00
Max Brunsfeld 0ed4f130dd Only scan ignored or externals paths if expanded in a project panel 2023-06-22 10:34:28 -07:00
Max Brunsfeld 5850c521c9 Maintain on the background scanner a set of expanded directories 2023-06-22 10:34:28 -07:00
Julia 14d5b4d3fb Remove individual location's request error handling 2023-06-22 11:43:26 -04:00
Julia 56d0eeda3d Revert "Route language server requests through wrapper object"
This reverts commit 18096e493f.
2023-06-22 10:45:08 -04:00
Julia 18096e493f Route language server requests through wrapper object 2023-06-21 23:05:37 -04:00
Julia 63de597246 The log-ification 2023-06-21 14:02:21 -04:00
Julia 074db3e420 Merge branch 'main' into fix-broken-lsp-installations 2023-06-20 17:23:34 -04:00
Nathan Sobo b53c0fef84 Rename SumTree::push_tree to ::append (#2626)
This is something I've been meaning to rename in SumTree. Was looking at
the code and figure why not now.
2023-06-20 08:37:55 -06:00
Nathan Sobo e526fd506e Rename SumTree::push_tree to ::append 2023-06-19 19:49:33 -06:00
Max Brunsfeld ce67424f65 Show a notification that gopls can't be installed without go 2023-06-19 18:05:12 -07:00
Max Brunsfeld 6ae28e4bdf Introduce LspAdapterDelegate trait, passed to LspDelegates 2023-06-19 16:12:25 -07:00
Julia 87cfe7a983 Remove server from both hashmaps 2023-06-19 18:02:57 -04:00
Julia a8a79c9d0e Get further reinstalling a server which died on startup 2023-06-19 17:45:27 -04:00
Julia 430fd91694 Route some more information for reinstall after startup failure
Doesn't actually reinstall on that particular failure due to wrong
variant in hashmap
2023-06-19 15:18:12 -04:00
Julia d0ee2df6ce Actually fully start reinstalled language server 2023-06-15 13:56:07 -04:00
Julia c8b86e2031 Setup C adapter with test binary 2023-06-15 12:18:34 -04:00
Julia a0154eefff Actually check and reinstall broken server 2023-06-15 12:18:34 -04:00
Julia 7353151a33 Many steps toward validating and reinstalling server after failure 2023-06-15 12:18:34 -04:00
Julia 6c5fd5f1a3 Detect LSP startup failure 2023-06-15 12:18:34 -04:00
Max Brunsfeld 527d6d1761 Flatten worktree tests module structure 2023-06-13 10:31:29 -07:00
Max Brunsfeld a1471a191b Move worktree tests to their own file 2023-06-13 10:22:14 -07:00
Max Brunsfeld 51be482a57 Respect LSP goToTypeDefinition server capability 2023-06-08 11:33:09 -07:00
Max Brunsfeld 94e8749c2f Merge branch 'main' into lsp-log-messages 2023-06-08 08:49:08 -07:00
Mikayla Maki d27b60d298 Fixed ci 2023-06-07 16:58:55 -07:00
Mikayla Maki ef2c77a366 add scan_complete await 2023-06-07 16:51:54 -07:00
Max Brunsfeld 5603fbe39c Restructure LSP log view to show log messages in addition to RPC trace 2023-06-07 16:51:09 -07:00
Mikayla Maki eda11c055b add mroe dbg 2023-06-07 16:50:15 -07:00
Mikayla Maki 692d02a76b Fix warning 2023-06-07 16:45:36 -07:00
Mikayla Maki 5a4aac7af3 Attempting to debug on ci... 2023-06-07 16:44:13 -07:00
Mikayla Maki 4c6bfeef98 Add track caller 2023-06-07 16:39:10 -07:00
Mikayla MakiandMax 9a667e9c7b Fixed a bug where buffer saved clocks would desynchronize in rare execution paths
co-authored-by: Max <max@zed.dev>
2023-06-07 16:10:45 -07:00