Skip to content

Commit

Permalink
Merge pull request #126 from dfinance/initialize-pool
Browse files Browse the repository at this point in the history
Initialize ConstPool
  • Loading branch information
mkurnikov authored Oct 23, 2020
2 parents 3440543 + f3395b9 commit ebab31d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions language_server/src/main_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ use crate::inner::config::Config;
use crate::inner::analysis::Analysis;
use lang::compiler::file::MoveFile;
use std::fmt::Debug;
use move_lang::name_pool::ConstPool;

#[derive(Debug)]
pub struct LspError {
Expand Down Expand Up @@ -389,6 +390,8 @@ pub fn compute_file_diagnostics<I>(
I: IntoIterator<Item = String> + Debug,
{
log::info!("Computing diagnostics for files: {:#?}", files);
let _pool = ConstPool::new();

let mut diagnostics = vec![];
for fpath in files {
// clear previous diagnostics for file
Expand Down

0 comments on commit ebab31d

Please sign in to comment.