Skip to content

Commit 40c7661

Browse files
Use paths internally and convert to URIs at LSP boundary (#284)
1 parent ced7efb commit 40c7661

File tree

13 files changed

+288
-629
lines changed

13 files changed

+288
-629
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ toml = "0.9"
3535
tracing = "0.1"
3636
tracing-appender = "0.2"
3737
tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt", "time"] }
38-
url = "2.5"
3938
walkdir = "2.5"
4039
which = "8.0"
4140

crates/djls-semantic/src/resolution/templates.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ pub use crate::primitives::TemplateName;
1414
pub fn discover_templates(db: &dyn SemanticDb) -> Vec<Template<'_>> {
1515
let mut templates = Vec::new();
1616

17+
// TODO(virtual-paths): After DocumentPath enum is added, also discover
18+
// virtual documents from open buffers and add them to the template index.
19+
// This will allow {% extends "virtual/untitled-1.html" %} to work.
20+
1721
if let Some(search_dirs) = db.template_dirs() {
1822
tracing::debug!("Discovering templates in {} directories", search_dirs.len());
1923

crates/djls-server/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ tower-lsp-server = { workspace = true }
2424
tracing = { workspace = true }
2525
tracing-appender = { workspace = true }
2626
tracing-subscriber = { workspace = true }
27-
url = { workspace = true }
2827

2928
[dev-dependencies]
3029
tempfile = { workspace = true }

0 commit comments

Comments
 (0)