Extract InlineCompletionProvider to its own crate (#20935)

This PR extracts the `InlineCompletionProvider` trait and its related
types out of `editor` and into a new `inline_completion` crate.

By doing so we're able to remove a dependency on `editor` from the
`copilot` and `supermaven` crates.

We did have to move `editor::Direction` into the `inline_completion`
crate, as it is referenced by the `InlineCompletionProvider`. This
should find a better home, at some point.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers
2024-11-20 16:51:13 -05:00
committed by GitHub
parent e076f55d78
commit 29c9f0f6a1
11 changed files with 56 additions and 18 deletions
Generated
+13
View File
@@ -2876,6 +2876,7 @@ dependencies = [
"gpui",
"http_client",
"indoc",
"inline_completion",
"language",
"lsp",
"menu",
@@ -3721,6 +3722,7 @@ dependencies = [
"gpui",
"http_client",
"indoc",
"inline_completion",
"itertools 0.13.0",
"language",
"linkify",
@@ -6056,6 +6058,16 @@ dependencies = [
"syn 2.0.87",
]
[[package]]
name = "inline_completion"
version = "0.1.0"
dependencies = [
"gpui",
"language",
"project",
"text",
]
[[package]]
name = "inline_completion_button"
version = "0.1.0"
@@ -11781,6 +11793,7 @@ dependencies = [
"futures 0.3.31",
"gpui",
"http_client",
"inline_completion",
"language",
"log",
"postage",