-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathLaunchyBarConfiguration.cs
More file actions
107 lines (102 loc) · 3.54 KB
/
LaunchyBarConfiguration.cs
File metadata and controls
107 lines (102 loc) · 3.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
using System.Collections.Generic;
namespace CodingWithCalvin.LaunchyBar.Models;
/// <summary>
/// Configuration for the LaunchyBar extension.
/// </summary>
public sealed class LaunchyBarConfiguration
{
/// <summary>
/// Version of the configuration schema for migration purposes.
/// </summary>
public int Version { get; set; } = 1;
/// <summary>
/// The configured launch items.
/// </summary>
public List<LaunchItem> Items { get; set; } = new();
/// <summary>
/// Width of the bar in pixels.
/// </summary>
public int BarWidth { get; set; } = 48;
/// <summary>
/// Creates a default configuration with common VS items.
/// </summary>
public static LaunchyBarConfiguration CreateDefault()
{
return new LaunchyBarConfiguration
{
Items = new List<LaunchItem>
{
new()
{
Id = "solution-explorer",
Name = "Solution Explorer",
IconPath = "KnownMonikers.Solution",
Type = LaunchItemType.ToolWindow,
Target = "View.SolutionExplorer",
Position = LaunchItemPosition.Top,
Order = 0
},
new()
{
Id = "search",
Name = "Find in Files",
IconPath = "KnownMonikers.Search",
Type = LaunchItemType.VsCommand,
Target = "Edit.FindInFiles",
Position = LaunchItemPosition.Top,
Order = 1
},
new()
{
Id = "git-changes",
Name = "Git Changes",
IconPath = "KnownMonikers.Git",
Type = LaunchItemType.ToolWindow,
Target = "View.GitWindow",
Position = LaunchItemPosition.Top,
Order = 2
},
new()
{
Id = "debug",
Name = "Start Debugging",
IconPath = "KnownMonikers.Run",
Type = LaunchItemType.VsCommand,
Target = "Debug.Start",
Position = LaunchItemPosition.Top,
Order = 3
},
new()
{
Id = "start-without-debugging",
Name = "Start Without Debugging",
IconPath = "KnownMonikers.RunOutline",
Type = LaunchItemType.VsCommand,
Target = "Debug.StartWithoutDebugging",
Position = LaunchItemPosition.Top,
Order = 4
},
new()
{
Id = "terminal",
Name = "Terminal",
IconPath = "KnownMonikers.Console",
Type = LaunchItemType.ToolWindow,
Target = "View.Terminal",
Position = LaunchItemPosition.Bottom,
Order = 0
},
new()
{
Id = "settings",
Name = "Options",
IconPath = "KnownMonikers.Settings",
Type = LaunchItemType.VsCommand,
Target = "Tools.Options",
Position = LaunchItemPosition.Bottom,
Order = 1
}
}
};
}
}