public void UpdateTree(string fileName, bool ignoreCache = false)
        {
            var codeProvider = new NppCodeProvider(fileName);

            var result = _jsParserService.Process(codeProvider, ignoreCache);

            if (result == null)
            {
                //not JS case
                _jsParserService.InvalidateCash();
                if (_frmParserUiContainer != null)
                {
                    _frmParserUiContainer.navigationTreeView1.Clear();
                }

                return;
            }

            if (!result.IsEmpty)
            {
                if (_frmParserUiContainer != null)
                {
                    _frmParserUiContainer.navigationTreeView1.UpdateTree(result, codeProvider);
                }
            }
        }
        public void UpdateTree(string fileName, bool ignoreCache = false)
        {
            var codeProvider = new NppCodeProvider(fileName);

            var result = _jsParserService.Process(codeProvider, ignoreCache);
            if (result == null)
            {
                //not JS case
                _jsParserService.InvalidateCash();
                if (_frmParserUiContainer != null)
                {
                    _frmParserUiContainer.navigationTreeView1.Clear();
                }

                return;
            }

            if (!result.IsEmpty)
            {
                if (_frmParserUiContainer != null)
                {
                    _frmParserUiContainer.navigationTreeView1.UpdateTree(result, codeProvider);
                }
            }
        }