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))); }
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; }
public NpmCommandHandler(OutputPaneWrapper outputPane) { this.outputPane = outputPane; }
public ContextMenuProvider(OutputPaneWrapper outputPane) { this.outputPane = outputPane; this.npmHandler = new NpmCommandHandler(this.outputPane); }
public CompileRedirector(OutputPaneWrapper outputPane) { this.outputPane = outputPane; }