void CreateTypeScriptContextIfProjectHasTypeScriptFiles(IProject project)
		{
			var typeScriptProject = new TypeScriptProject(project);
			if (typeScriptProject.HasTypeScriptFiles()) {
				contextProvider.CreateProjectContext(typeScriptProject);
			}
		}
        public bool IsValid(object caller, Condition condition)
        {
            if (ProjectService.CurrentProject == null)
                return false;

            var project = new TypeScriptProject(ProjectService.CurrentProject);
            return project.HasTypeScriptFiles();
        }
예제 #3
0
        void CreateTypeScriptContextIfProjectHasTypeScriptFiles(IProject project)
        {
            var typeScriptProject = new TypeScriptProject(project);

            if (typeScriptProject.HasTypeScriptFiles())
            {
                contextProvider.CreateProjectContext(typeScriptProject);
            }
        }
		public bool IsValid(object caller, Condition condition)
		{
			var currentProject = ProjectService.CurrentProject as MSBuildBasedProject;
			if (currentProject == null)
				return false;
			
			var project = new TypeScriptProject(currentProject);
			return project.HasTypeScriptFiles();
		}
        public bool IsValid(object caller, Condition condition)
        {
            if (ProjectService.CurrentProject == null)
            {
                return(false);
            }

            var project = new TypeScriptProject(ProjectService.CurrentProject);

            return(project.HasTypeScriptFiles());
        }
예제 #6
0
        public bool IsValid(object caller, Condition condition)
        {
            var currentProject = ProjectService.CurrentProject as MSBuildBasedProject;

            if (currentProject == null)
            {
                return(false);
            }

            var project = new TypeScriptProject(currentProject);

            return(project.HasTypeScriptFiles());
        }