private IList <VariableCompletionData> GetVariableCompletion(string completionWord, int caretOffset) { if (_languageContext.IsInSubContext(caretOffset)) { return(_languageContext.GetVariables(caretOffset, true).ToList()); } return(_languageContext.GetVariables(caretOffset, false).ToList()); }