void CompileFiles(TypeScriptProject project, FileName[] fileNames)
        {
            ReportCompileStarting(project);

            var compiler = new TypeScriptCompiler();
            compiler.AddFiles(fileNames);

            Report(compiler.GetCommandLine());

            TypeScriptCompilerResult result = compiler.Compile();
            UpdateProject(project, result.GeneratedFiles);

            ReportCompileFinished(result.HasErrors);
        }
        public void Compile(FileName fileName)
        {
            ReportCompileStarting(fileName);

            var compiler = new TypeScriptCompiler();
            compiler.AddFiles(fileName);

            Report(compiler.GetCommandLine());

            TypeScriptCompilerResult result = compiler.Compile();

            TypeScriptProject project = TypeScriptService.GetProjectForFile(fileName);
            if (project != null) {
                UpdateProject(project, result.GeneratedFiles);
            }

            ReportCompileFinished(result.HasErrors);
        }