Skip to content

Commit 04a50d3

Browse files
Merge pull request #441 from X-Sharp/master
Updated some Guids: removed literals and replaced with a reference to… [release]
2 parents f20f44b + 8969a29 commit 04a50d3

File tree

1 file changed

+38
-27
lines changed
  • src/toolkit/Community.VisualStudio.Toolkit.Shared/Windows

1 file changed

+38
-27
lines changed

src/toolkit/Community.VisualStudio.Toolkit.Shared/Windows/WindowGuids.cs

Lines changed: 38 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,34 @@
1-
namespace Community.VisualStudio.Toolkit
1+
using static EnvDTE.Constants;
2+
namespace Community.VisualStudio.Toolkit
23
{
34
/// <summary>
45
/// Provides GUIDs that are used to identify Visual Studio tool windows.
56
/// </summary>
67
public class WindowGuids
78
{
8-
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
9-
public const string MainWindow = "{9DDABE98-1D02-11D3-89A1-00C04F688DDE}";
9+
/// <summary>The Main window.</summary>
10+
public const string MainWindow = vsWindowKindMainWindow;
1011

12+
/// <summary>The Document well</summary>
1113
public const string DocumentWell = "DocumentWell";
1214

13-
public const string CallStack = "{0504FF91-9D61-11D0-A794-00A0C9110051}";
15+
/// <summary>The CallStack window.</summary>
16+
public const string CallStack = vsWindowKindCallStack;
1417

15-
public const string Locals = "{4A18F9D0-B838-11D0-93EB-00A0C90F2734}";
18+
/// <summary>The Locals window.</summary>
19+
public const string Locals = vsWindowKindLocals;
1620

17-
public const string Watch = "{90243340-BD7A-11D0-93EF-00A0C90F2734}";
21+
/// <summary>The Auto window.</summary>
22+
public const string AutoLocals = vsWindowKindAutoLocals;
1823

19-
public const string Properties = "{EEFA5220-E298-11D0-8F78-00A0C9110057}";
20-
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member
24+
/// <summary>The Watch window.</summary>
25+
public const string Watch = vsWindowKindWatch;
26+
27+
/// <summary>The Web Browser window.</summary>
28+
public const string WebBrowser = vsWindowKindWebBrowser;
29+
30+
/// <summary>The Properties window.</summary>
31+
public const string Properties = vsWindowKindProperties;
2132

2233
/// <summary>The Git Changes window introduced in Visual Studio 2019.</summary>
2334
public const string GitChanges = "{1C64B9C2-E352-428E-A56D-0ACE190B99A6}";
@@ -31,74 +42,74 @@ public class WindowGuids
3142
/// <summary>
3243
/// Provides a list of components that can be added to a project, typically through the Windows Forms designer.
3344
/// </summary>
34-
public const string Toolbox = "{B1E99781-AB81-11D0-B683-00AA00A3EE26}";
45+
public const string Toolbox = vsext_wk_Toolbox;
3546

3647
/// <summary>
3748
/// Provides a list of properties associated with the currently selected file or project in the Solution Explorer.
3849
/// </summary>
39-
public const string PropertyBrowser = "{EEFA5220-E298-11D0-8F78-00A0C9110057}";
50+
public const string PropertyBrowser = vsWindowKindProperties;
4051

4152
/// <summary>
4253
/// Provides a list of projects and their files in a solution.
4354
/// </summary>
44-
public const string SolutionExplorer = "{3AE79031-E1BC-11D0-8F78-00A0C9110057}";
55+
public const string SolutionExplorer = vsWindowKindSolutionExplorer;
4556

4657
/// <summary>Displays any output generated by a build process or a program being debugged.</summary>
47-
public const string OutputWindow = "{34E76E81-EE4A-11D0-AE2E-00A0C90FFFC3}";
58+
public const string OutputWindow = vsWindowKindOutput;
4859

4960
/// <summary>Provides an outline of an HTML file.</summary>
50-
public const string DocOutline = "{25F7E850-FFA1-11D0-B63F-00A0C922E851}";
61+
public const string DocOutline = vsWindowKindDocumentOutline;
5162

5263
/// <summary>Provides a list of user-specified tasks to be accomplished for a project.</summary>
53-
public const string TaskList = "{4A9B7E51-AA16-11D0-A8C5-00A0C921A4D2}";
64+
public const string TaskList = vsWindowKindTaskList;
5465

5566
/// <summary>Provides a list of servers used for connecting to databases.</summary>
56-
public const string ServerExplorer = "{74946827-37A0-11D2-A273-00C04F8EF4FF}";
67+
public const string ServerExplorer = vsWindowKindServerExplorer;
5768

5869
/// <summary>Provides a list of macros available for use in the Visual Studio shell.</summary>
59-
public const string MacroExplorer = "{07CD18B4-3BA1-11D2-890A-0060083196C6}";
70+
public const string MacroExplorer = vsWindowKindMacroExplorer;
6071

6172
/// <summary>Provides links to help topics based on the current context.</summary>
62-
public const string ContextWindow = "{66DBA47C-61DF-11D2-AA79-00C04F990343}";
73+
public const string ContextWindow = vsWindowKindDynamicHelp;
6374

6475
/// <summary>Provides a list of all classes in a solution.</summary>
65-
public const string ClassView = "{C9C0AE26-AA77-11D2-B3F0-0000F87570EE}";
76+
public const string ClassView = vsWindowKindClassView;
6677

6778
/// <summary>Provides a list of resources available in a project.</summary>
68-
public const string ResourceView = "{2D7728C2-DE0A-45B5-99AA-89B609DFDE73}";
79+
public const string ResourceView = vsWindowKindResourceView;
6980

7081
/// <summary>Provides the ability to search for a symbol.</summary>
71-
public const string ObjectSearchWindow = "{53024D34-0EF5-11D3-87E0-00C04F7971A5}";
82+
public const string ObjectSearchWindow = vsWindowKindFindSymbol;
7283

7384
/// <summary>Provides a way to execute commands directly in the Visual Studio shell.</summary>
74-
public const string CommandWindow = "{28836128-FC2C-11D2-A433-00C04F72D18A}";
85+
public const string CommandWindow = vsWindowKindCommandWindow;
7586

7687
/// <summary>Provides the results of searching for a symbol.</summary>
77-
public const string ObjectSearchResultsWindow = "{68487888-204A-11D3-87EB-00C04F7971A5}";
88+
public const string ObjectSearchResultsWindow = vsWindowKindFindSymbolResults;
7889

7990
/// <summary>Provides a list of components installed on the system.</summary>
80-
public const string ObjectBrowser = "{269A02DC-6AF8-11D3-BDC4-00C04F688E50}";
91+
public const string ObjectBrowser = vsWindowKindObjectBrowser;
8192

8293
/// <summary>For internal use only.</summary>
8394
public const string BrowserDoc = "{6B8E94B4-0949-4D9C-A81F-C1B9B744185C}";
8495

8596
/// <summary>Provides the ability to search and replace on the currently opened file.</summary>
8697
public const string FindReplace =
8798
#if VS14 || VS15
88-
"{CF2DDC32-8CAD-11D2-9302-005345000000}"
99+
vsWindowKindFindReplace
89100
#else
90101
"{6324226F-61B6-4F28-92EE-18D4B5FE1E48}"
91102
#endif
92103
;
93-
104+
94105
/// <summary>Provides the ability to search files for a string.</summary>
95106
public const string FindAdvanced = "{E830EC50-C2B5-11D2-9375-0080C747D9A0}";
96107

97108
/// <summary>Provides a list of the search results.</summary>
98-
public const string FindResults1 = "{0F887920-C2B6-11D2-9375-0080C747D9A0}";
109+
public const string FindResults1 = vsWindowKindFindResults1;
99110

100111
/// <summary>Provides a second list of search results.</summary>
101-
public const string FindResults2 = "{0F887921-C2B6-11D2-9375-0080C747D9A0}";
112+
public const string FindResults2 = vsWindowKindFindResults2;
102113

103114
/// <summary>Provides a command prompt for PowerShell.</summary>
104115
public const string DeveloperPowerShell = "{D212F56B-C48A-434C-A121-1C5D80B59B9F}";

0 commit comments

Comments
 (0)