Hardcode two constants from Microsoft.VisualStudio.ImageCatalog.dll
This removes the runtime reference to ImageCatalog which is not available on VS for Mac.
This commit is contained in:
parent
a7ae749ab2
commit
f9623c2c27
|
|
@ -21,8 +21,11 @@ namespace Microsoft.VisualStudio.Editor.Razor
|
||||||
{
|
{
|
||||||
// Internal for testing
|
// Internal for testing
|
||||||
internal static readonly object DescriptionKey = new object();
|
internal static readonly object DescriptionKey = new object();
|
||||||
|
// Hardcoding the Guid here to avoid a reference to Microsoft.VisualStudio.ImageCatalog.dll
|
||||||
|
// that is not present in Visual Studio for Mac
|
||||||
|
internal static readonly Guid ImageCatalogGuid = new Guid("{ae27a6b0-e345-4288-96df-5eaf394ee369}");
|
||||||
internal static readonly ImageElement DirectiveImageGlyph = new ImageElement(
|
internal static readonly ImageElement DirectiveImageGlyph = new ImageElement(
|
||||||
new ImageId(KnownImageIds.ImageCatalogGuid, KnownImageIds.Type),
|
new ImageId(ImageCatalogGuid, 3233), // KnownImageIds.Type = 3233
|
||||||
"Razor Directive.");
|
"Razor Directive.");
|
||||||
internal static readonly ImmutableArray<CompletionFilter> DirectiveCompletionFilters = new[] {
|
internal static readonly ImmutableArray<CompletionFilter> DirectiveCompletionFilters = new[] {
|
||||||
new CompletionFilter("Razor Directive", "r", DirectiveImageGlyph)
|
new CompletionFilter("Razor Directive", "r", DirectiveImageGlyph)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue