Make it opt-in

This commit is contained in:
Jonas Schievink 2021-06-03 16:11:20 +02:00
parent e5a2c6596d
commit 9fdb8f9037
9 changed files with 44 additions and 4 deletions

View file

@ -119,12 +119,12 @@ impl GlobalState {
let analysis_host = AnalysisHost::new(config.lru_capacity());
let (flycheck_sender, flycheck_receiver) = unbounded();
GlobalState {
let mut this = GlobalState {
sender,
req_queue: ReqQueue::default(),
task_pool,
loader,
config: Arc::new(config),
config: Arc::new(config.clone()),
analysis_host,
diagnostics: Default::default(),
mem_docs: FxHashMap::default(),
@ -151,7 +151,10 @@ impl GlobalState {
fetch_build_data_queue: OpQueue::default(),
latest_requests: Default::default(),
}
};
// Apply any required database inputs from the config.
this.update_configuration(config);
this
}
pub(crate) fn process_changes(&mut self) -> bool {