Skip to content

Commit

Permalink
Settings: Ignore non-source-level settings
Browse files Browse the repository at this point in the history
  • Loading branch information
SLaks committed Jan 21, 2014
1 parent 47b1403 commit ec70846
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions Rebracer/Utilities/KnownSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,26 @@ public static bool IsAllowed(SettingsSection section) {
}

static readonly IReadOnlyDictionary<SettingsSection, IReadOnlyCollection<string>> skipProperties = new Dictionary<SettingsSection, IReadOnlyCollection<string>>{
// Cannot read: Exception occurred. (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION))
{ new SettingsSection("TextEditor", "C/C++ Specific"), new [] { "IntellisenseOptions" } },
// Cannot write: Member not found. (Exception from HRESULT: 0x80020003 (DISP_E_MEMBERNOTFOUND))
{ new SettingsSection("TextEditor", "JavaScript Specific"), new [] { "ImplicitReferences" } },
{ new SettingsSection("TextEditor", "C/C++ Specific"), new [] {
// Cannot read: Exception occurred. (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION))
"IntellisenseOptions",
// Non-source settings that can vary independently
"InactiveCodeOpacityPercent", "CompleteSlashStar", "CompleteParensInRawString", "DisableReferencesResolving"

// Typo'd setting in some VS builds; ignoring to not give warnings for most people.
{ new SettingsSection("TextEditor", "CSharp-Specific"), new []{ "NewLineQueryExpression_EachClause" } }
} },
{ new SettingsSection("TextEditor", "JavaScript Specific"), new [] {
// Cannot write: Member not found. (Exception from HRESULT: 0x80020003 (DISP_E_MEMBERNOTFOUND))
"ImplicitReferences",
// Non-source settings that can vary independently
"OnlyUseTaborEnterToCommit"
} },

{ new SettingsSection("TextEditor", "CSharp-Specific"), new []{
// Typo'd setting in some VS builds; ignoring to not give warnings for most people.
"NewLineQueryExpression_EachClause",
// Non-source settings that can vary independently
"Rename_Preview", "EnterOutliningModeOnOpen"
} }
};
///<summary>Checks whether a specific property should be skipped to to persistence issues.</summary>
public static bool ShouldSkip(SettingsSection section, string property) {
Expand Down

0 comments on commit ec70846

Please sign in to comment.