Closes [1729](https://github.com/longbridge/gpui-component/issues/1729) ## Description Adds support for inline completions, which allows the editor to support agentic "tab to complete" solutions. This works, (tested macOS), but not sure of any gotchas or different approaches. ## Screenshot https://github.com/user-attachments/assets/8e437f1e-9792-4417-b070-0a1dd8de6024 ## How to Test User implements the `inline_completion` method in CompletionsProvider. Not implementing should have no effect. ## Checklist - [x] I have read the [CONTRIBUTING](../CONTRIBUTING.md) document and followed the guidelines. - [x] Reviewed the changes in this PR and confirmed AI generated code (If any) is accurate. - [x] Passed `cargo run` for story tests related to the changes. - [ ] Tested macOS, Windows and Linux platforms performance (if the change is platform-specific) --------- Co-authored-by: Jason Lee <huacnlee@gmail.com>
85 lines
2 KiB
TOML
85 lines
2 KiB
TOML
[workspace]
|
|
default-members = [
|
|
"crates/ui",
|
|
"crates/story",
|
|
"crates/assets"
|
|
]
|
|
members = [
|
|
"crates/macros",
|
|
"crates/story",
|
|
"crates/ui",
|
|
"crates/assets",
|
|
"examples/app_assets",
|
|
"examples/hello_world",
|
|
"examples/input",
|
|
"examples/window_title",
|
|
"examples/dialog_overlay",
|
|
]
|
|
resolver = "2"
|
|
|
|
[workspace.package]
|
|
publish = false
|
|
edition = "2024"
|
|
|
|
[workspace.dependencies]
|
|
gpui-component = { path = "crates/ui", version = "0.5.0-preview2" }
|
|
gpui-component-macros = { path = "crates/macros", version = "0.5.0-preview2" }
|
|
gpui-component-assets = { path = "crates/assets", version = "0.5.0-preview2" }
|
|
story = { path = "crates/story" }
|
|
|
|
gpui = "0.2.2"
|
|
gpui-macros = "0.2.2"
|
|
reqwest = { version = "0.12.15-zed", package = "zed-reqwest" }
|
|
sum-tree = { version = "0.2.0", package = "zed-sum-tree" }
|
|
|
|
anyhow = "1"
|
|
log = "0.4"
|
|
lsp-types = { version = "0.97.0", features = ["proposed"] }
|
|
notify = "7.0.0"
|
|
raw-window-handle = "0.6.2"
|
|
ropey = { version = "=2.0.0-beta.1", features = [
|
|
"metric_lines_lf",
|
|
"metric_utf16",
|
|
] }
|
|
rust-i18n = "3"
|
|
schemars = "1"
|
|
serde = { version = "1.0.219", features = ["derive"] }
|
|
serde_json = "1"
|
|
serde_repr = "0.1"
|
|
smallvec = "1"
|
|
smol = "2"
|
|
tracing = "0.1.41"
|
|
|
|
[workspace.dependencies.windows]
|
|
features = ["Wdk", "Wdk_System", "Wdk_System_SystemServices"]
|
|
version = "0.58.0"
|
|
|
|
[workspace.lints.clippy]
|
|
almost_complete_range = "allow"
|
|
arc_with_non_send_sync = "allow"
|
|
borrowed_box = "allow"
|
|
dbg_macro = "deny"
|
|
let_underscore_future = "allow"
|
|
manual_is_multiple_of = "allow"
|
|
map_entry = "allow"
|
|
module_inception = "allow"
|
|
non_canonical_partial_ord_impl = "allow"
|
|
reversed_empty_ranges = "allow"
|
|
single_range_in_vec_init = "allow"
|
|
style = { level = "allow", priority = -1 }
|
|
todo = "deny"
|
|
type_complexity = "allow"
|
|
|
|
[profile.dev]
|
|
codegen-units = 16
|
|
debug = "limited"
|
|
split-debuginfo = "unpacked"
|
|
|
|
[profile.dev.package]
|
|
resvg = { opt-level = 3 }
|
|
rustybuzz = { opt-level = 3 }
|
|
taffy = { opt-level = 3 }
|
|
ttf-parser = { opt-level = 3 }
|
|
|
|
[workspace.metadata.typos]
|
|
files.extend-exclude = ["**/fixtures/*"]
|