mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-08 21:10:32 +00:00
Merge pull request #6361 from faldor20/fix-lang-server-hang
Fix hang from bad imports
This commit is contained in:
commit
07ddd272e2
4 changed files with 127 additions and 8 deletions
|
@ -23,6 +23,16 @@ impl<'a> HeaderType<'a> {
|
|||
HeaderType::Platform { .. } | HeaderType::Package { .. } => &[],
|
||||
}
|
||||
}
|
||||
pub fn to_string(&'a self) -> &str {
|
||||
match self {
|
||||
HeaderType::App { .. } => "app",
|
||||
HeaderType::Hosted { .. } => "hosted",
|
||||
HeaderType::Builtin { .. } => "builtin",
|
||||
HeaderType::Package { .. } => "package",
|
||||
HeaderType::Platform { .. } => "platform",
|
||||
HeaderType::Interface { .. } => "interface",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue