rnwContext_ == null ? null : rnwContext_.getActiveRnwWeave());
String[] pkgNames = new String[result.completions.length()];
Arrays.fill(pkgNames, "`chunk-option`");
Completions response = Completions.createCompletions(
result.token,
result.completions,
JsUtil.toJsArrayString(pkgNames),
JsUtil.toJsArrayBoolean(new ArrayList<Boolean>(result.completions.length())),
JsUtil.toJsArrayInteger(new ArrayList<Integer>(result.completions.length())),
"",
false,
false);
// Unlike other completion types, Sweave completions are not
// guaranteed to narrow the candidate list (in particular
// true/false).
response.setCacheable(false);
if (result.completions.length() > 0 &&
result.completions.get(0).endsWith("="))
{
response.setSuggestOnAccept(true);
}
requestCallback.onResponseReceived(response);
}
@Override