예제 #1
0
        void Rename()
        {
            var renamer = new LanguageClientReferencesFinder(Editor, session);

            if (session.IsRenameProvider)
            {
                string newName = PromptForNewNameForRename();
                if (newName != null)
                {
                    renamer.Rename(fileName, Editor.CaretLocation, newName).Ignore();
                }
            }
            else
            {
                renamer.RenameOccurrences(fileName, Editor.CaretLocation).Ignore();
            }
        }
예제 #2
0
        void FindReferences()
        {
            var finder = new LanguageClientReferencesFinder(Editor, session);

            finder.FindReferences(fileName, Editor.CaretLocation).Ignore();
        }