
We temporarily let it grow when the message size exceed the limit, but restore the buffer's capacity shortly after. This ensures that, for each connection in its entire lifetime, we only ever use 1MB.
34 lines
1 KiB
TOML
34 lines
1 KiB
TOML
[package]
|
|
name = "lsp"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
path = "src/lsp.rs"
|
|
doctest = false
|
|
|
|
[features]
|
|
test-support = ["async-pipe"]
|
|
|
|
[dependencies]
|
|
collections = { path = "../collections" }
|
|
gpui = { path = "../gpui" }
|
|
util = { path = "../util" }
|
|
anyhow = "1.0"
|
|
async-pipe = { git = "https://github.com/zed-industries/async-pipe-rs", rev = "82d00a04211cf4e1236029aa03e6b6ce2a74c553", optional = true }
|
|
futures = "0.3"
|
|
log = { version = "0.4.16", features = ["kv_unstable_serde"] }
|
|
lsp-types = "0.91"
|
|
parking_lot = "0.11"
|
|
postage = { version = "0.4.1", features = ["futures-traits"] }
|
|
serde = { version = "1.0", features = ["derive", "rc"] }
|
|
serde_json = { version = "1.0", features = ["raw_value"] }
|
|
smol = "1.2"
|
|
|
|
[dev-dependencies]
|
|
gpui = { path = "../gpui", features = ["test-support"] }
|
|
util = { path = "../util", features = ["test-support"] }
|
|
async-pipe = { git = "https://github.com/zed-industries/async-pipe-rs", rev = "82d00a04211cf4e1236029aa03e6b6ce2a74c553" }
|
|
ctor = "0.1"
|
|
env_logger = "0.8"
|
|
unindent = "0.1.7"
|