-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMRUHelper.cs
More file actions
27 lines (25 loc) · 1.01 KB
/
MRUHelper.cs
File metadata and controls
27 lines (25 loc) · 1.01 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
using Microsoft.VisualStudio.Settings;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DebuggerListener
{
internal class MRUHelper
{
private SettingsStore settingsStore;
private List<string> recentProjectsPaths;
public MRUHelper(string path)
{
ExternalSettingsManager externalSettingsManager = ExternalSettingsManager.CreateForApplication(path);
settingsStore = externalSettingsManager.GetReadOnlySettingsStore(SettingsScope.UserSettings);
foreach (string name in settingsStore.GetPropertyNames(@"MRUItems\{a9c4a31f-f9cb-47a9-abc0-49ce82d0b3ac}\Items"))
{
string value = settingsStore.GetString(@"MRUItems\{a9c4a31f-f9cb-47a9-abc0-49ce82d0b3ac}\Items", name);
Console.WriteLine("Property name: {0}, value: {1}", name, value.Split('|')[0]);
recentProjectsPaths.Add(value.Split('|')[0]);
}
}
}
}