Skip to content

Commit 59b25cf

Browse files
shorten diagnostic source name for more concise editor display (#316)
1 parent 6dece6e commit 59b25cf

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

crates/djls-ide/src/diagnostics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ trait DiagnosticError: std::fmt::Display {
2929
self.diagnostic_code().to_string(),
3030
)),
3131
code_description: None,
32-
source: Some("Django Language Server".to_string()),
32+
source: Some(crate::SOURCE_NAME.to_string()),
3333
message: self.message(),
3434
related_information: None,
3535
tags: None,

crates/djls-ide/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ pub use snippets::generate_partial_snippet;
1313
pub use snippets::generate_snippet_for_tag;
1414
pub use snippets::generate_snippet_for_tag_with_end;
1515
pub use snippets::generate_snippet_from_args;
16+
17+
pub const SOURCE_NAME: &str = "djls";

0 commit comments

Comments
 (0)