mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +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
|
@ -242,10 +242,11 @@ fn get_maybe_hash(
|
|||
}
|
||||
|
||||
fn get_hash(source: &str, hash_data: u64) -> String {
|
||||
let mut hasher = FastInsecureHasher::new();
|
||||
hasher.write_str(source);
|
||||
hasher.write_u64(hash_data);
|
||||
hasher.finish().to_string()
|
||||
FastInsecureHasher::new()
|
||||
.write_str(source)
|
||||
.write_u64(hash_data)
|
||||
.finish()
|
||||
.to_string()
|
||||
}
|
||||
|
||||
/// Hash the URL so it can be sent to `tsc` in a supportable way
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue