Skip to content

Commit 39d6404

Browse files
authored
Change to_lsp_range to be public again since cli uses it (#8246)
1 parent 53a82a5 commit 39d6404

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

rust/kcl-lib/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ pub use execution::{
9696
};
9797
pub use kcl_error::SourceRange;
9898
pub use lsp::{
99+
ToLspRange,
99100
copilot::Backend as CopilotLspBackend,
100101
kcl::{Backend as KclLspBackend, Server as KclLspServerSubCommand},
101102
};

rust/kcl-lib/src/lsp/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pub(crate) fn to_lsp_edit(suggestion: &Suggestion, code: &str) -> LspSuggestion
5757
(suggestion.clone(), range)
5858
}
5959

60-
pub(crate) trait ToLspRange {
60+
pub trait ToLspRange {
6161
fn to_lsp_range(&self, code: &str) -> Range {
6262
let start = self.start_to_lsp_position(code);
6363
let end = self.end_to_lsp_position(code);

0 commit comments

Comments
 (0)