Skip to content

Commit 67f71f5

Browse files
committed
Files extensions_asset_map.json and vs_assets_map.json moved to Config/ directory
1 parent 9f23304 commit 67f71f5

7 files changed

Lines changed: 9 additions & 19 deletions

File tree

VisualStudioDiscordRPC.Dev16/VisualStudioDiscordRPC.Dev16.csproj

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,10 @@
6060
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
6161
<IncludeInVSIX>true</IncludeInVSIX>
6262
</Content>
63-
<Content Include="..\VisualStudioDiscordRPC.Shared\extensions_assets_map.json">
64-
<Link>extensions_assets_map.json</Link>
65-
<IncludeInVSIX>true</IncludeInVSIX>
63+
<Content Include="..\VisualStudioDiscordRPC.Shared\Configs\*.*">
64+
<Link>Configs\%(Filename).%(Extension)</Link>
6665
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
67-
</Content>
68-
<Content Include="..\VisualStudioDiscordRPC.Shared\vs_assets_map.json">
69-
<Link>extensions_assets_map.json</Link>
7066
<IncludeInVSIX>true</IncludeInVSIX>
71-
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
7267
</Content>
7368
<Content Include="..\VisualStudioDiscordRPC.Shared\Translations\*.*">
7469
<Link>Translations\%(Filename).%(Extension)</Link>

VisualStudioDiscordRPC.Dev17/VisualStudioDiscordRPC.Dev17.csproj

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,10 @@
6060
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
6161
<IncludeInVSIX>true</IncludeInVSIX>
6262
</Content>
63-
<Content Include="..\VisualStudioDiscordRPC.Shared\extensions_assets_map.json">
64-
<Link>extensions_assets_map.json</Link>
65-
<IncludeInVSIX>true</IncludeInVSIX>
63+
<Content Include="..\VisualStudioDiscordRPC.Shared\Configs\*.*">
64+
<Link>Configs\%(Filename).%(Extension)</Link>
6665
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
67-
</Content>
68-
<Content Include="..\VisualStudioDiscordRPC.Shared\vs_assets_map.json">
69-
<Link>extensions_assets_map.json</Link>
7066
<IncludeInVSIX>true</IncludeInVSIX>
71-
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
7267
</Content>
7368
<Content Include="..\VisualStudioDiscordRPC.Shared\Translations\*.*">
7469
<Link>Translations\%(Filename).%(Extension)</Link>

VisualStudioDiscordRPC.Shared/AssetMap/Models/Assets/ExtensionAsset.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public ExtensionAsset(string key, string name, IList<string> extensions)
1616
{
1717
Key = key ?? throw new ArgumentNullException(nameof(key));
1818
Name = name ?? throw new ArgumentNullException(nameof(name));
19-
Extensions = extensions ?? throw new ArgumentException(nameof(extensions));
19+
Extensions = extensions ?? throw new ArgumentNullException(nameof(extensions));
2020
}
2121
}
2222
}

VisualStudioDiscordRPC.Shared/extensions_assets_map.json renamed to VisualStudioDiscordRPC.Shared/Configs/extensions_assets_map.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
{
139139
"name": "Shader",
140140
"key": "shader_file",
141-
"extension": [ ".hlsl", ".glsl", ".shader", ".frag", ".vert", ".cg" ]
141+
"extensions": [ ".hlsl", ".glsl", ".shader", ".frag", ".vert", ".cg" ]
142142
}
143143
]
144144
}
File renamed without changes.

VisualStudioDiscordRPC.Shared/PackageController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ private void RegisterServices()
8686
_gitObserver = new GitObserver(_vsObserver);
8787
ServiceRepository.Default.AddService(_gitObserver);
8888

89-
// Registering localization service
89+
// Registering localization service.
9090
string translationPath = _settingsService.Read<string>(SettingsKeys.TranslationsPath);
9191
string currentLanguage = _settingsService.Read<string>(SettingsKeys.Language);
9292

VisualStudioDiscordRPC.Shared/Services/PlugService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ namespace VisualStudioDiscordRPC.Shared.Services
1919
{
2020
public class PlugService
2121
{
22-
private const string ExtensionAssetMapFilename = "extensions_assets_map.json";
23-
private const string VsVersionAssetMapFilename = "vs_assets_map.json";
22+
private const string ExtensionAssetMapFilename = "Configs/extensions_assets_map.json";
23+
private const string VsVersionAssetMapFilename = "Configs/vs_assets_map.json";
2424

2525
private readonly List<BasePlug> _plugs = new List<BasePlug>();
2626
private readonly VsObserver _vsObserver = ServiceRepository.Default.GetService<VsObserver>();

0 commit comments

Comments
 (0)