示例#1
0
 public FSharpOption <ITextView> LoadFileIntoNewWindow(string filePath, FSharpOption <int> line, FSharpOption <int> column)
 {
     if (File.Exists(filePath))
     {
         var document = IdeApp.Workbench.OpenDocument(filePath, null, line.SomeOrDefault(0), column.SomeOrDefault(0)).Result;
         var textView = TextViewFromDocument(document);
         return(FSharpOption.CreateForReference(textView));
     }
     return(FSharpOption <ITextView> .None);
 }