private List <Completion> GetCompletionsListOfLabels(string batSource)
        {
            var completions = new List <Completion>();
            var labels      = new TextHighlighterExtension.BatParser(batSource).GetLabels();

            foreach (var v in labels)
            {
                completions.Add(new Completion()
                {
                    DisplayText        = "{0}".format(v),
                    InsertionText      = "{0}".format(v),
                    Description        = null,//"{0}".format(v),
                    IconSource         = TextHighlighterExtension.BatColorEngine.BatchIconBlack,
                    IconAutomationText = "IconAutomationText"
                });
            }
            if (completions.Count == 0)
            {
                completions.Add(new Completion()
                {
                    DisplayText = "Nothing found"
                });
            }
            return(completions);
        }
        private List <Completion> GetCompletionsListOfVariables(string batSource)
        {
            var completions = new List <Completion>();
            var variables   = new TextHighlighterExtension.BatParser(batSource).GetVariables();

            foreach (var v in variables)
            {
                completions.Add(new Completion()
                {
                    DisplayText        = "{0}".format(v),
                    InsertionText      = "{0}%".format(v),
                    Description        = null,//"{0}".format(v),
                    IconSource         = TextHighlighterExtension.BatColorEngine.BatchIconBlack,
                    IconAutomationText = "IconAutomationText"
                });
            }
            completions.AddRange(this.GetCompletionsListOfEnvironmentVariables());
            if (completions.Count == 0)
            {
                completions.Add(new Completion()
                {
                    DisplayText = "Nothing found"
                });
            }
            return(completions);
        }