public HLSLLineScanner(HLSLLanguageService service) { this.lex = new Babel.Lexer.Scanner(); _service = service; #if !NOTTEST //get the current working directory, we will need to reset this late string resetDir = Directory.GetCurrentDirectory(); //get into the ShaderSense folder while (Directory.GetCurrentDirectory().Contains("ShaderSense")) { Directory.SetCurrentDirectory((Directory.GetParent(Directory.GetCurrentDirectory()).ToString())); } Directory.SetCurrentDirectory("ShaderSense"); //this is out output file testFileOutput = Directory.GetCurrentDirectory() + "\\TestOutput.txt"; //clean the file so we can output new data if (File.Exists("tooltipsOutput.txt")) { File.Delete("tooltipsOutput.txt"); } if (File.Exists("tokensfile.txt")) { RunTooltipTest("tokensfile.txt", "tooltipsOutput.txt"); } Directory.SetCurrentDirectory(resetDir); #endif //System.Windows.Forms.MessageBox.Show("File is: " + testFileOutput); }
public HLSLSource(HLSLLanguageService service, IVsTextLines textLines, Colorizer colorizer) : base(service, textLines, colorizer) { }