Skip to content

Commit

Permalink
rstfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsonk committed May 10, 2021
1 parent b469b79 commit 959e529
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
8 changes: 6 additions & 2 deletions cli/lsp/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ async fn update_diagnostics(

let ts = async {
let collection = collection.clone();
let mark = snapshot.performance.mark("update_diagnostics_ts", None::<()>);
let mark = snapshot
.performance
.mark("update_diagnostics_ts", None::<()>);
let diagnostics =
generate_ts_diagnostics(snapshot.clone(), collection.clone(), ts_server)
.await
Expand All @@ -153,7 +155,9 @@ async fn update_diagnostics(

let deps = async {
let collection = collection.clone();
let mark = snapshot.performance.mark("update_diagnostics_deps", None::<()>);
let mark = snapshot
.performance
.mark("update_diagnostics_deps", None::<()>);
let diagnostics =
generate_dependency_diagnostics(snapshot.clone(), collection.clone())
.await
Expand Down
12 changes: 9 additions & 3 deletions cli/lsp/language_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,9 @@ impl Inner {
&mut self,
params: DidChangeConfigurationParams,
) {
let mark = self.performance.mark("did_change_configuration", Some(&params));
let mark = self
.performance
.mark("did_change_configuration", Some(&params));

if self.config.client_capabilities.workspace_configuration {
let specifiers: Vec<ModuleSpecifier> =
Expand Down Expand Up @@ -1870,7 +1872,9 @@ impl Inner {
if !self.config.specifier_enabled(&specifier) {
return Ok(None);
}
let mark = self.performance.mark("prepare_call_hierarchy", Some(&params));
let mark = self
.performance
.mark("prepare_call_hierarchy", Some(&params));

let line_index =
if let Some(line_index) = self.get_line_index_sync(&specifier) {
Expand Down Expand Up @@ -2124,7 +2128,9 @@ impl Inner {
if !self.config.specifier_enabled(&specifier) {
return Ok(None);
}
let mark = self.performance.mark("semantic_tokens_range", Some(&params));
let mark = self
.performance
.mark("semantic_tokens_range", Some(&params));

let line_index =
if let Some(line_index) = self.get_line_index_sync(&specifier) {
Expand Down

0 comments on commit 959e529

Please sign in to comment.