mirror of
https://github.com/google/gn-language-server.git
synced 2025-12-23 12:26:43 +00:00
cargo fmt
This commit is contained in:
parent
17cb1c0b2a
commit
18383a8a76
2 changed files with 3 additions and 6 deletions
|
|
@ -39,5 +39,6 @@ pub fn compute_diagnostics(
|
|||
[
|
||||
collect_syntax_errors(file.ast.get(), &file.document),
|
||||
collect_undefined_identifiers(file, analyzer, request_time),
|
||||
].concat()
|
||||
]
|
||||
.concat()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,11 +32,7 @@ pub async fn publish_diagnostics(context: &RequestContext, uri: &Url) {
|
|||
return;
|
||||
};
|
||||
|
||||
let diagnostics = compute_diagnostics(
|
||||
¤t_file,
|
||||
&context.analyzer,
|
||||
context.request_time,
|
||||
);
|
||||
let diagnostics = compute_diagnostics(¤t_file, &context.analyzer, context.request_time);
|
||||
|
||||
let version = if let DocumentVersion::InMemory { revision } = current_file.document.version {
|
||||
Some(revision)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue