handleAnalysisSetContextRoots method
Future<AnalysisSetContextRootsResult>
handleAnalysisSetContextRoots(
- AnalysisSetContextRootsParams parameters
override
Handle an 'analysis.setContextRoots' request.
Throw a RequestFailure
if the request could not be handled.
Implementation
@override
Future<plugin.AnalysisSetContextRootsResult> handleAnalysisSetContextRoots(
plugin.AnalysisSetContextRootsParams parameters,
) async {
final result = await super.handleAnalysisSetContextRoots(parameters);
// The super-call adds files to the driver, so we need to prioritize them so they get analyzed.
_updatePriorityFiles();
return result;
}