summaryrefslogtreecommitdiff
path: root/cli/lsp/documents.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-03-23 09:54:22 -0400
committerGitHub <noreply@github.com>2022-03-23 09:54:22 -0400
commit53dac7451bbdd527aa91e01653b678547624fc39 (patch)
treec43dbc34fd4ada4249064aab2086ab64b276a460 /cli/lsp/documents.rs
parent5edcd9dd355483df6b9a8c34ca94f3f54d672b9e (diff)
chore: remove all `pub(crate)`s from the cli crate (#14083)
Diffstat (limited to 'cli/lsp/documents.rs')
-rw-r--r--cli/lsp/documents.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/lsp/documents.rs b/cli/lsp/documents.rs
index 13071157b..28ef19af9 100644
--- a/cli/lsp/documents.rs
+++ b/cli/lsp/documents.rs
@@ -96,7 +96,7 @@ impl deno_graph::SourceParser for SourceParser {
}
#[derive(Debug, Clone, PartialEq, Eq)]
-pub(crate) enum LanguageId {
+pub enum LanguageId {
JavaScript,
Jsx,
TypeScript,
@@ -527,7 +527,7 @@ impl Document {
}
}
-pub(crate) fn to_hover_text(result: &Resolved) -> String {
+pub fn to_hover_text(result: &Resolved) -> String {
match result {
Resolved::Ok { specifier, .. } => match specifier.scheme() {
"data" => "_(a data url)_".to_string(),
@@ -544,7 +544,7 @@ pub(crate) fn to_hover_text(result: &Resolved) -> String {
}
}
-pub(crate) fn to_lsp_range(range: &deno_graph::Range) -> lsp::Range {
+pub fn to_lsp_range(range: &deno_graph::Range) -> lsp::Range {
lsp::Range {
start: lsp::Position {
line: range.start.line as u32,
@@ -697,7 +697,7 @@ fn get_document_path(
}
#[derive(Debug, Clone, Default)]
-pub(crate) struct Documents {
+pub struct Documents {
/// The DENO_DIR that the documents looks for non-file based modules.
cache: HttpCache,
/// A flag that indicates that stated data is potentially invalid and needs to