Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit 635d220

Browse files
committed
changes after code review
1 parent 3b98b88 commit 635d220

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/actions/post_build.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ impl PostBuildHandler {
8989
// It's not a good idea to make a long message here, the output in
9090
// VSCode is one single line, and it's important to capture the
9191
// root cause.
92-
// let msg = format!("There was an error trying to build, RLS features will be limited: {}", cause);
93-
self.notifier.notify_build_error_diagnostics(cause);
92+
self.notifier.notify_error_diagnostics(cause);
9493
}
9594
self.notifier.notify_end_diagnostics();
9695
self.active_build_count.fetch_sub(1, Ordering::SeqCst);

src/actions/progress.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub enum ProgressUpdate {
3434
pub trait DiagnosticsNotifier: Send {
3535
fn notify_begin_diagnostics(&self);
3636
fn notify_publish_diagnostics(&self, PublishDiagnosticsParams);
37-
fn notify_build_error_diagnostics(&self, msg: String);
37+
fn notify_error_diagnostics(&self, msg: String);
3838
fn notify_end_diagnostics(&self);
3939
}
4040

@@ -121,7 +121,7 @@ impl<O: Output> DiagnosticsNotifier for BuildDiagnosticsNotifier<O> {
121121
fn notify_publish_diagnostics(&self, params: PublishDiagnosticsParams) {
122122
self.out.notify(Notification::<PublishDiagnostics>::new(params));
123123
}
124-
fn notify_build_error_diagnostics(&self, message: String) {
124+
fn notify_error_diagnostics(&self, message: String) {
125125
self.out.notify(Notification::<ShowMessage>::new(ShowMessageParams {
126126
typ: MessageType::Error,
127127
message: message.to_owned(),

src/build/cargo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ pub(super) fn cargo(internals: &Internals, package_arg: PackageArg, progress_sen
9494
format!("({})", stdout)
9595
};
9696
let msg = format!("Cargo failed: {}{}", err, stdout_msg);
97-
info!("{}", msg);
97+
debug!("{}", msg);
9898
BuildResult::Err(msg, None)
9999
}
100100
}

0 commit comments

Comments
 (0)