static public void NavigateToFileLocation(string sourceLocation) { var location = FileLocation.Parse(sourceLocation); location.Start = Npp.CharOffsetToPosition(location.Start, location.File); location.End = Npp.CharOffsetToPosition(location.End, location.File); TranslateCompiledLocation(location); if (File.Exists(location.File)) { if (Npp.GetCurrentFile().IsSameAs(location.File, true)) { ShowBreakpointSourceLocation(location); } else { OnNextFileOpenComplete = () => ShowBreakpointSourceLocation(location); Npp.OpenFile(location.File); //needs to by asynchronous } } }