/// <summary> /// 移除便签 /// </summary> /// <param name="window"></param> public static void RemoveNotepad(WindowNotepad window) { if (WindowList.Contains(window)) { WindowList.Remove(window); } }
private void PaneUpdated(OutputWindowPane pane) { if (!WindowList.Contains(pane.Name)) { WindowList.Add(pane.Name); if (string.IsNullOrEmpty(CurrentWindow)) { CurrentWindow = pane.Name; } } if (!_windowNames.ContainsKey(pane.Name)) { _windowNames.Add(pane.Name, pane.Guid); } // See [IDE GUID](https://docs.microsoft.com/en-us/visualstudio/extensibility/ide-guids?view=vs-2017 ) PorcessNewInput(pane); UpdateOutput(); }