Skip to content

Commit

Permalink
Unused definition ranged diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
edusporto committed Aug 7, 2024
1 parent a516c17 commit 847411f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
11 changes: 6 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021"

[dependencies]
bend-lang = "0.2.36"
bend-lang = { git = "https://github.com/HigherOrderCO/Bend.git", branch = "lsp-experiments" }
tree-sitter-bend = { git = "https://github.com/HigherOrderCO/tree-sitter-bend.git" }
tower-lsp = { version = "0.20", features = ["proposed"] }
tokio = { version = "1.17", features = ["full"] }
Expand All @@ -24,6 +24,4 @@ ropey = "1.6"
cc = "1.1"

[patch.crates-io]
bend-lang = { git = "https://github.com/HigherOrderCO/Bend.git", branch = "lsp-experiments" }
TSPL = { git = "https://github.com/HigherOrderCO/TSPL.git", branch = "range-info" }
hvm = { git = "https://github.com/higherorderco/hvm.git", branch = "parser-update" }
hvm = { git = "https://github.com/HigherOrderCO/hvm.git", branch = "parser-update" }
8 changes: 4 additions & 4 deletions src/core/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ fn treat_diagnostic(diag: &Diagnostic) -> Option<lsp::Diagnostic> {
fn span_to_range(span: &TextSpan) -> lsp::Range {
lsp::Range {
start: Position {
line: span.0.line as u32,
character: span.0.char as u32,
line: span.start.line as u32,
character: span.start.char as u32,
},
end: Position {
line: span.1.line as u32,
character: span.1.char as u32,
line: span.end.line as u32,
character: span.end.char as u32,
},
}
}

0 comments on commit 847411f

Please sign in to comment.