Skip to content

Commit bbb45f8

Browse files
authored
Merge pull request #452 from posit-dev/task/lsp-utils
Export LSP utils crate for Ark
2 parents 5792de4 + 50b02c2 commit bbb45f8

File tree

20 files changed

+301
-215
lines changed

20 files changed

+301
-215
lines changed

Cargo.lock

Lines changed: 33 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,22 @@ keywords = ["formatter", "parser"]
1313
categories = ["development-tools"]
1414

1515
[workspace.dependencies]
16+
aether_lsp_utils = { path = "./crates/aether_lsp_utils" }
1617
air_formatter_test = { path = "./crates/air_formatter_test" }
1718
air_r_factory = { path = "./crates/air_r_factory" }
1819
air_r_formatter = { path = "./crates/air_r_formatter" }
1920
air_r_parser = { path = "./crates/air_r_parser" }
2021
air_r_syntax = { path = "./crates/air_r_syntax" }
2122
anyhow = "1.0.89"
2223
assert_matches = "1.5.0"
23-
biome_formatter = { git = "https://github.com/biomejs/biome", rev = "c13fc60726883781e4530a4437724273b560c8e0" }
24-
biome_line_index = { git = "https://github.com/biomejs/biome", rev = "c13fc60726883781e4530a4437724273b560c8e0" }
25-
biome_parser = { git = "https://github.com/biomejs/biome", rev = "c13fc60726883781e4530a4437724273b560c8e0" }
26-
biome_rowan = { git = "https://github.com/biomejs/biome", rev = "c13fc60726883781e4530a4437724273b560c8e0" }
27-
biome_string_case = { git = "https://github.com/biomejs/biome", rev = "c13fc60726883781e4530a4437724273b560c8e0" }
28-
biome_text_size = { git = "https://github.com/biomejs/biome", rev = "c13fc60726883781e4530a4437724273b560c8e0" }
24+
biome_formatter = { git = "https://github.com/lionel-/biome", rev = "41d799cfa4cedd25625fc3f6bd7898532873f051" }
25+
biome_line_index = { git = "https://github.com/lionel-/biome", rev = "41d799cfa4cedd25625fc3f6bd7898532873f051" }
26+
biome_parser = { git = "https://github.com/lionel-/biome", rev = "41d799cfa4cedd25625fc3f6bd7898532873f051" }
27+
biome_rowan = { git = "https://github.com/lionel-/biome", rev = "41d799cfa4cedd25625fc3f6bd7898532873f051" }
28+
biome_string_case = { git = "https://github.com/lionel-/biome", rev = "41d799cfa4cedd25625fc3f6bd7898532873f051" }
29+
biome_text_size = { git = "https://github.com/lionel-/biome", rev = "41d799cfa4cedd25625fc3f6bd7898532873f051" }
2930
biome_ungrammar = { path = "./crates/biome_ungrammar" }
30-
biome_unicode_table = { git = "https://github.com/biomejs/biome", rev = "c13fc60726883781e4530a4437724273b560c8e0" }
31+
biome_unicode_table = { git = "https://github.com/lionel-/biome", rev = "41d799cfa4cedd25625fc3f6bd7898532873f051" }
3132
bytes = "1.8.0"
3233
cargo_metadata = "0.20.0"
3334
case = "1.0.0"

crates/aether_lsp_utils/Cargo.toml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
[package]
2+
name = "aether_lsp_utils"
3+
version = "0.0.0"
4+
authors.workspace = true
5+
edition.workspace = true
6+
rust-version.workspace = true
7+
homepage.workspace = true
8+
repository.workspace = true
9+
license.workspace = true
10+
keywords.workspace = true
11+
categories.workspace = true
12+
publish = false
13+
14+
[dependencies]
15+
anyhow.workspace = true
16+
biome_line_index.workspace = true
17+
biome_text_size.workspace = true
18+
dissimilar.workspace = true
19+
itertools.workspace = true
20+
line_ending.workspace = true
21+
settings.workspace = true
22+
tower-lsp.workspace = true
23+
24+
[lints]
25+
workspace = true
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use biome_text_size::{TextRange, TextSize};
88

99
use super::text_edit::TextEdit;
1010

11-
pub(crate) fn diff(left: &str, right: &str) -> TextEdit {
11+
pub fn diff(left: &str, right: &str) -> TextEdit {
1212
use dissimilar::Chunk;
1313

1414
let chunks = dissimilar::diff(left, right);

crates/aether_lsp_utils/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pub mod diff;
2+
pub mod proto;
3+
pub mod text_edit;

0 commit comments

Comments
 (0)