mirror of
https://github.com/latex-lsp/texlab.git
synced 2025-08-03 18:29:03 +00:00
Refactor symbol request tests
This commit is contained in:
parent
4cc0b20a56
commit
7fb38fa877
44 changed files with 1290 additions and 1678 deletions
|
@ -18,7 +18,7 @@ pub enum Owner {
|
|||
Server,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
#[derive(Clone)]
|
||||
pub struct Document {
|
||||
pub uri: Url,
|
||||
pub dir: Url,
|
||||
|
@ -100,6 +100,12 @@ impl Document {
|
|||
}
|
||||
}
|
||||
|
||||
impl std::fmt::Debug for Document {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
f.debug_tuple("Document").field(&self.uri.as_str()).finish()
|
||||
}
|
||||
}
|
||||
|
||||
impl std::borrow::Borrow<Url> for Document {
|
||||
fn borrow(&self) -> &Url {
|
||||
&self.uri
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue