private IList <Completion> labelCompletions() { IList <Completion> completions = new List <Completion>(); ImageSource imageSource = this._icons[TokenType.Label]; SortedDictionary <string, string> labels = new SortedDictionary <string, string>(AsmDudeToolsStatic.getLabels(this._buffer)); foreach (KeyValuePair <string, string> entry in labels) { //Debug.WriteLine(string.Format(CultureInfo.CurrentCulture, "INFO:{0}:AugmentCompletionSession; label={1}; description={2}", this.ToString(), entry.Key, entry.Value)); completions.Add(new Completion(entry.Key, entry.Key, entry.Value, imageSource, "")); } return(completions); }
/// <summary> /// Get all labels with context info containing in the provided text /// </summary> public static IDictionary <string, string> getLabels(ITextBuffer text) { return(AsmDudeToolsStatic.getLabels(text.CurrentSnapshot.GetText())); }