Exemplo n.º 1
0
 // Make sure we have the equivalent of `{caret}` at the start of the file, so we don't have to edit the binary file
 public override void Process(FileSystemPath basePath, params string[] files)
 {
     base.Process(basePath, files);
     if (CaretPosition == null)
     {
         var file = FileSystemPath.TryParse(files[0]);
         if (file.IsEmpty)
         {
             file = basePath.NotNull().Combine(files[0]);
         }
         file          = GetProcessedFilePath(file);
         CaretPosition = new CaretPosition(file, 0);
     }
 }