private void HandlePositionCompletionResult(HaxeComplete hc, HaxePositionCompleteResult result, HaxeCompleteStatus status) { switch (status) { case HaxeCompleteStatus.ERROR: TraceManager.Add(hc.Errors, -3); break; case HaxeCompleteStatus.POSITION: ASComplete.SaveLastLookupPosition(hc.Sci); PluginBase.MainForm.OpenEditableDocument(result.Path, false); const string keywords = "(function|var|[,(])"; ASComplete.LocateMember(keywords, hc.CurrentWord, result.LineStart - 1); break; } }
internal void OnPositionCompletionResult(HaxeComplete hc, HaxePositionCompleteResult result, HaxeCompleteStatus status) { if (hc.Sci.InvokeRequired) { hc.Sci.BeginInvoke((MethodInvoker)delegate { HandlePositionCompletionResult(hc, result, status); }); } else HandlePositionCompletionResult(hc, result, status); }