Commit 2898cdd
[feat] integrate refactorex (#5)
* temp: commented formatter dep imports
* feat: added refactorex as a dependency
* feat: added refactorex as a code action handler
* temp: skipping broken remote control tests
* refactor: less restrict refactorex dependency version
Co-authored-by: Steve Cohen <[email protected]>
* refactor: removed useless test
* feat: range subtree (selection) extraction algorithm - inlined from refactorex
* Revert "feat: range subtree (selection) extraction algorithm - inlined from refactorex"
This reverts commit a362383.
* refactor: using Document.fragment/3 to find the selection, then positioning it
* refactor: improved test infrastructure and multiline selection test
* fix: fixed the formatter import deps problem
* Revert "temp: commented formatter dep imports"
This reverts commit b4ad1ce.
* feat: introducing context.trigger_kind to Code Actions so they can decide when they are triggered
* refactor: adding more supported code actions
* refactor: removed Logger used for debugging
* [bugfix] Only index if there's stuff to index
A colleague found a fun edge case. He added three new empty files to a
project, and Expert wouldn't start. This is because of a divide by
zero error when there are no bytes to index, which causes progress
updates to fail (indexing completed successfully).
This fix checks for this condition and no-ops if there's nothing to index.
* refactor: sort aliases
* refactor: remove unnecessary changes.
* refactor: better naming the test cases
* Revert "temp: skipping broken remote control tests"
This reverts commit 389afbba063341ccde90bad72d0aa1246c9c3a5a.
* Update Nix hash of Mix deps
* fix: removed GenLSP from refactorex so it is not imported into remote_control
* Update Nix hash of Mix deps
* fix: setting up Project before tests
* refactor: bump Sourceror and using updates on Refactorex
* Update Nix hash of Mix deps
---------
Co-authored-by: Steve Cohen <[email protected]>1 parent f3dc077 commit 2898cdd
File tree
25 files changed
+237
-52
lines changed- apps
- common
- lexical_credo
- protocol
- proto
- remote_control
- lib/lexical
- remote_control
- code_action
- handlers
- test
- lexical/remote_control/code_action/handlers
- server
- lib/lexical/server
- provider/handlers
- nix
25 files changed
+237
-52
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
53 | | - | |
| 54 | + | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| |||
Lines changed: 23 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
33 | | - | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
53 | 59 | | |
54 | 60 | | |
55 | | - | |
56 | | - | |
57 | | - | |
| 61 | + | |
| 62 | + | |
58 | 63 | | |
59 | | - | |
60 | | - | |
61 | | - | |
| 64 | + | |
| 65 | + | |
62 | 66 | | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
| |||
0 commit comments