private IList <ICompletionData> GetParameterCompletion(string completionWord, int lineNumber, int caretOffset) { var completionData = new List <ICompletionData>(); // Parameter var keyword = _languageContext.GetKeywordFromPosition(lineNumber, caretOffset); if (keyword != null && _backendContext.IsRunbook(keyword.Text)) { var statusManager = AppContext.Resolve <IStatusManager>(); statusManager.SetText("Loading parameters from " + keyword.Text); var runbook = GetRunbook(keyword.Text); if (runbook != null) { var parameters = runbook.GetParameters(completionWord); completionData.AddRange(parameters); statusManager.SetTimeoutText("Parameters loaded.", 5); } } return(completionData); }