mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
refactor(lsp): move config file related code to config.rs (#19790)
Will make #19788 easier.
This commit is contained in:
parent
629d09b149
commit
8dd9d5f523
10 changed files with 176 additions and 169 deletions
5
cli/cache/node.rs
vendored
5
cli/cache/node.rs
vendored
|
@ -49,10 +49,7 @@ impl NodeAnalysisCache {
|
|||
}
|
||||
|
||||
pub fn compute_source_hash(text: &str) -> String {
|
||||
FastInsecureHasher::new()
|
||||
.write_str(text)
|
||||
.finish()
|
||||
.to_string()
|
||||
FastInsecureHasher::hash(text).to_string()
|
||||
}
|
||||
|
||||
fn ensure_ok<T: Default>(res: Result<T, AnyError>) -> T {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue