Ejemplo n.º 1
0
        public static async Task <bool> CompileProjectAsync(string filePath, OutputPaneWrapper outputPane)
        {
            if (!TypeScriptHelpers.IsTsJsConfigJsonFile(filePath) || !Path.IsPathRooted(filePath))
            {
                throw new ArgumentException($"{nameof(filePath)} has to be a rooted 'tsconfig.json' file.");
            }

            return(await CompileAsync($"-p \"{filePath}\"", workingDir : Path.GetDirectoryName(filePath), redirector : new CompileRedirector(outputPane)));
        }
Ejemplo n.º 2
0
        public static async Task <bool> CompileFileAsync(string filePath, OutputPaneWrapper outputPane, string workingDir = null)
        {
            if (!TypeScriptHelpers.IsTypeScriptFile(filePath) || !Path.IsPathRooted(filePath))
            {
                throw new ArgumentException($"{nameof(filePath)} has to be a rooted '.ts' or '.tsx' file.");
            }

            return(await CompileAsync($"\"{filePath}\"", workingDir ?? Path.GetDirectoryName(filePath), new CompileRedirector(outputPane)));
        }
 public BuildTsFileContextAction(string filePath, FileContext fileContext, OutputPaneWrapper outputPane)
     : base(filePath, fileContext, outputPane)
 {
 }
 public FileContextActionProvider(IWorkspace workspaceContext, OutputPaneWrapper outputPane)
 {
     this.workspaceContext = workspaceContext;
     this.outputPane       = outputPane;
 }
 public TypeScriptActionProviderFactory(OutputPaneWrapper outputPane)
 {
     this.outputPane = outputPane;
 }
 public BuildFileContextAction(string filePath, FileContext fileContext, OutputPaneWrapper outputPane)
 {
     this.Source     = fileContext;
     this.FilePath   = filePath;
     this.OutputPane = outputPane;
 }
Ejemplo n.º 7
0
 public NpmCommandHandler(OutputPaneWrapper outputPane)
 {
     this.outputPane = outputPane;
 }
Ejemplo n.º 8
0
 public ContextMenuProvider(OutputPaneWrapper outputPane)
 {
     this.outputPane = outputPane;
     this.npmHandler = new NpmCommandHandler(this.outputPane);
 }
Ejemplo n.º 9
0
 public CompileRedirector(OutputPaneWrapper outputPane)
 {
     this.outputPane = outputPane;
 }