Skip to content

Commit 69ba7b6

Browse files
committed
Adjust the human readable names of the colors for the VS settings
1 parent e289be9 commit 69ba7b6

11 files changed

+23
-6
lines changed

AutoItSyntaxHighlight/AutoItEditorClassifierClassificationDefinition.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ internal static class AutoItEditorClassifierClassificationDefinition
2626
{
2727
// This disables "The field is never used" compiler's warning. Justification: the field is used by MEF.
2828
#pragma warning disable 169
29+
#pragma warning disable CS0414
2930

3031
/// <summary>
3132
/// Defines the "AutoItEditorClassifier" classification type.
@@ -61,5 +62,6 @@ internal static class AutoItEditorClassifierClassificationDefinition
6162
internal static FileExtensionToContentTypeDefinition AutoItFileExtensionDefinition = null;
6263

6364
#pragma warning restore 169
65+
#pragma warning restore CS0414
6466
}
6567
}

AutoItSyntaxHighlight/ClassificationFormats/AutoItEditorClassifierFormat.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace AutoItSyntaxHighlight.ClassificationFormats
2222
[Export(typeof(EditorFormatDefinition))]
2323
[ClassificationType(ClassificationTypeNames = "AutoItEditorClassifier")]
2424
[Name("AutoItEditorClassifier")]
25-
[UserVisible(true)] // This should be visible to the end user
25+
[UserVisible(false)] // This should be visible to the end user
2626
[Order(Before = Priority.Default)] // Set the priority to be after the default classifiers
2727
internal sealed class AutoItEditorClassifierFormat : ClassificationFormatDefinition
2828
{

AutoItSyntaxHighlight/ClassificationFormats/AutoItEditorCommentClassifierFormat.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ internal sealed class AutoItEditorCommentClassifierFormat : ClassificationFormat
3030
{
3131
public AutoItEditorCommentClassifierFormat()
3232
{
33-
this.DisplayName = "AutoItEditorCommentClassifier"; // Human readable version of the name
33+
this.DisplayName = "AutoIt comments"; // Human readable version of the name
3434
var color = VSColorTheme.GetThemedColor(EnvironmentColors.ToolWindowBackgroundBrushKey);
3535
if(color.R == 37 && color.G == 37 && color.B == 38)
3636
{

AutoItSyntaxHighlight/ClassificationFormats/AutoItEditorFunctionsClassifierFormat.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ internal sealed class AutoItEditorFunctionsClassifierFormat : ClassificationForm
3030
{
3131
public AutoItEditorFunctionsClassifierFormat()
3232
{
33-
this.DisplayName = "AutoItEditorFunctionsClassifier"; // Human readable version of the name
33+
this.DisplayName = "AutoIt functions"; // Human readable version of the name
3434
var color = VSColorTheme.GetThemedColor(EnvironmentColors.ToolWindowBackgroundBrushKey);
3535
if (color.R == 37 && color.G == 37 && color.B == 38)
3636
{

AutoItSyntaxHighlight/ClassificationFormats/AutoItEditorKeywordClassifierFormat.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ internal sealed class AutoItEditorKeywordClassifierFormat : ClassificationFormat
3030
{
3131
public AutoItEditorKeywordClassifierFormat()
3232
{
33-
this.DisplayName = "AutoItEditorKeywordClassifier"; // Human readable version of the name
33+
this.DisplayName = "AutoIt keywords"; // Human readable version of the name
3434
var color = VSColorTheme.GetThemedColor(EnvironmentColors.ToolWindowBackgroundBrushKey);
3535
if (color.R == 37 && color.G == 37 && color.B == 38)
3636
{

AutoItSyntaxHighlight/ClassificationFormats/AutoItEditorStringClassifierFormat.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ internal sealed class AutoItEditorStringClassifierFormat : ClassificationFormatD
3030
{
3131
public AutoItEditorStringClassifierFormat()
3232
{
33-
this.DisplayName = "AutoItEditorStringClassifier"; // Human readable version of the name
33+
this.DisplayName = "AutoIt strings"; // Human readable version of the name
3434
var color = VSColorTheme.GetThemedColor(EnvironmentColors.ToolWindowBackgroundBrushKey);
3535
if (color.R == 37 && color.G == 37 && color.B == 38)
3636
{

AutoItSyntaxHighlight/Lexer/AutoItLexerFunctions.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ internal sealed class AutoItLexerFunctions : IAutoItLexer
2626
{
2727
private Regex m_Regex;
2828
private readonly IClassificationType m_Type;
29+
30+
#pragma warning disable CS0067
2931
public event EventHandler<ClassificationChangedEventArgs> ClassificationChanged;
32+
#pragma warning restore CS0067
3033

3134
public AutoItLexerFunctions(IClassificationTypeRegistryService registry)
3235
{

AutoItSyntaxHighlight/Lexer/AutoItLexerKeywords.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ internal sealed class AutoItLexerKeywords : IAutoItLexer
2626
{
2727
private readonly IClassificationType m_Type;
2828
private List<string> m_Keywords;
29+
30+
#pragma warning disable CS0067
2931
public event EventHandler<ClassificationChangedEventArgs> ClassificationChanged;
32+
#pragma warning restore CS0067
3033

3134
public AutoItLexerKeywords(IClassificationTypeRegistryService registry)
3235
{

AutoItSyntaxHighlight/Lexer/AutoItLexerStrings.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ internal sealed class AutoItLexerStrings : IAutoItLexer
2626
{
2727
private Regex m_Regex;
2828
private readonly IClassificationType m_Type;
29+
30+
#pragma warning disable CS0067
2931
public event EventHandler<ClassificationChangedEventArgs> ClassificationChanged;
32+
#pragma warning restore CS0067
3033

3134
public AutoItLexerStrings(IClassificationTypeRegistryService registry)
3235
{

AutoItSyntaxHighlight/source.extension.vsixmanifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
33
<Metadata>
4-
<Identity Id="f0d099a8-5c0d-4414-82c7-ef78c396578b" Version="1.0.0.1" Language="en-US" Publisher="David Roller" />
4+
<Identity Id="f0d099a8-5c0d-4414-82c7-ef78c396578b" Version="1.0.0.2" Language="en-US" Publisher="David Roller" />
55
<DisplayName>AutoItSyntaxHighlight</DisplayName>
66
<Description xml:space="preserve">AutoIt scripting language support for Visual Studio</Description>
77
<License>LICENSE</License>

0 commit comments

Comments
 (0)