Skip to content
This repository was archived by the owner on Dec 19, 2018. It is now read-only.

Commit f9623c2

Browse files
KirillOsenkovrynowak
authored andcommitted
Hardcode two constants from Microsoft.VisualStudio.ImageCatalog.dll
This removes the runtime reference to ImageCatalog which is not available on VS for Mac.
1 parent a7ae749 commit f9623c2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Microsoft.VisualStudio.Editor.Razor/RazorDirectiveCompletionSource.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@ internal class RazorDirectiveCompletionSource : IAsyncCompletionSource
2121
{
2222
// Internal for testing
2323
internal static readonly object DescriptionKey = new object();
24+
// Hardcoding the Guid here to avoid a reference to Microsoft.VisualStudio.ImageCatalog.dll
25+
// that is not present in Visual Studio for Mac
26+
internal static readonly Guid ImageCatalogGuid = new Guid("{ae27a6b0-e345-4288-96df-5eaf394ee369}");
2427
internal static readonly ImageElement DirectiveImageGlyph = new ImageElement(
25-
new ImageId(KnownImageIds.ImageCatalogGuid, KnownImageIds.Type),
28+
new ImageId(ImageCatalogGuid, 3233), // KnownImageIds.Type = 3233
2629
"Razor Directive.");
2730
internal static readonly ImmutableArray<CompletionFilter> DirectiveCompletionFilters = new[] {
2831
new CompletionFilter("Razor Directive", "r", DirectiveImageGlyph)

0 commit comments

Comments
 (0)