Skip to content

Commit

Permalink
feat: return text as default
Browse files Browse the repository at this point in the history
  • Loading branch information
xhyrom committed Aug 4, 2024
1 parent 47d309a commit d82c41a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lsp/src/languages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ pub fn get_language(document: &Document) -> Option<String> {
return Some(s.to_string());
}

None
map.get("text").map(|s| s.to_string())
}

0 comments on commit d82c41a

Please sign in to comment.