コード例 #1
0
        private void CommitSelection()
        {
            if (null != lstAutoComplete.SelectedItem)
            {
                string selectedItem = ((AutoCompleteItem)lstAutoComplete.SelectedItem).Item;
                if (string.IsNullOrEmpty(selectedItem) == false)
                {
                    textEditorControl.ReplaceIdentifierAtCursor(selectedItem);
                }

                Logger.LogInfo("AutoComplete-CommitSelection", selectedItem);
                Logger.LogInfo("AutoComplete-CommitSelection-code", Solution.Current.ActiveScript.GetTextBuffer().GetContent());
            }
        }