private bool NavigateToViewModel(ViewModelDirectiveValue currentDirective)
        {
            //get all declarations of the viewmodel's name
            var declarations = WorkspaceHelper
                               .GetSyntaxTreeInfos()
                               .SelectMany(
                s =>
                s.Tree.GetRoot()
                .DescendantNodes()
                .OfType <TypeDeclarationSyntax>()
                .Select(d => new { DeclarationSyntax = d, Info = s }))
                               .Where(s => s.DeclarationSyntax.Identifier.ToString() == currentDirective.TypeName);

            //get exact match
            foreach (var declaration in declarations)
            {
                //declaration.Info.Compilation.GetTypeByMetadataName()

                var semanticModel  = declaration.Info.Compilation.GetSemanticModel(declaration.DeclarationSyntax.SyntaxTree);
                var declaredSymbol = semanticModel
                                     .GetDeclaredSymbol(declaration.DeclarationSyntax);

                // check assambly name and namespace
                if (declaredSymbol.ContainingAssembly.Identity.Name == currentDirective.AssamblyName &&
                    declaredSymbol.ContainingNamespace.ToString() == currentDirective.Namespace)
                {
                    //navigate to definition - open window
                    var item = DTEHelper.GetProjectItemByFullPath(declaration.DeclarationSyntax.Identifier.SyntaxTree.FilePath);
                    DTEHelper.ChangeActiveWindowTo(item);
                    return(true);
                }
            }
            return(false);
        }
        private bool NavigateToMasterPage(DothtmlDirectiveNode masterPageDirective)
        {
            //get full path of item
            var path         = DTEHelper.GetCurrentProject().Properties.Item("FullPath").Value;
            var itemFullPath = Path.Combine(path, masterPageDirective.Value);

            //check if item exists
            if (File.Exists(itemFullPath))
            {
                //navigate to item
                var item = DTEHelper.GetProjectItemByFullPath(itemFullPath);
                DTEHelper.ChangeActiveWindowTo(item);
                return(true);
            }

            return(false);
        }