Index: runtime/vm/service.cc |
diff --git a/runtime/vm/service.cc b/runtime/vm/service.cc |
index ccc5309e1fdf30083f898bffe19852b472797791..8ef6e8945abac5c1c7ade1623371734315fd2a2c 100644 |
--- a/runtime/vm/service.cc |
+++ b/runtime/vm/service.cc |
@@ -2457,6 +2457,7 @@ static bool GetSourceReport(Thread* thread, JSONStream* js) { |
static const MethodParameter* reload_sources_params[] = { |
RUNNABLE_ISOLATE_PARAMETER, |
+ new BoolParameter("force", false), |
NULL, |
}; |
@@ -2489,8 +2490,10 @@ static bool ReloadSources(Thread* thread, JSONStream* js) { |
"This isolate cannot reload sources right now."); |
return true; |
} |
+ const bool force_reload = |
+ BoolParameter::Parse(js->LookupParam("force"), false); |
- isolate->ReloadSources(); |
+ isolate->ReloadSources(force_reload); |
const Error& error = Error::Handle(isolate->sticky_reload_error()); |