diff --git a/src/DynamoCore/Configuration/IPreferences.cs b/src/DynamoCore/Configuration/IPreferences.cs
index 74ee4bc469e..7852e3a6b4b 100644
--- a/src/DynamoCore/Configuration/IPreferences.cs
+++ b/src/DynamoCore/Configuration/IPreferences.cs
@@ -182,6 +182,18 @@ internal interface IDisablePackageLoadingPreferences
bool DisableCustomPackageLocations { get; set; }
}
+ ///
+ /// Temporary interface to avoid breaking changes.
+ /// TODO: Merge with StartupConfiguration for 3.0 (DYN-1699)
+ ///
+ internal interface IHideAutocompleteMethodOptions
+ {
+ ///
+ /// If true, autocomplete method options are hidden from UI
+ ///
+ bool HideAutocompleteMethodOptions { get; set; }
+ }
+
///
/// Represents data about active state of preview background
///
diff --git a/src/DynamoCore/Configuration/PreferenceSettings.cs b/src/DynamoCore/Configuration/PreferenceSettings.cs
index b723a111540..3979a9d8943 100644
--- a/src/DynamoCore/Configuration/PreferenceSettings.cs
+++ b/src/DynamoCore/Configuration/PreferenceSettings.cs
@@ -45,7 +45,7 @@ internal static void CopyProperties(this PreferenceSettings source, PreferenceSe
/// from a XML file from DYNAMO_SETTINGS_FILE.
/// When GUI is closed, the settings are saved back into the XML file.
///
- public class PreferenceSettings : NotificationObject, IPreferences, IRenderPrecisionPreference, IDisablePackageLoadingPreferences, ILogSource
+ public class PreferenceSettings : NotificationObject, IPreferences, IRenderPrecisionPreference, IDisablePackageLoadingPreferences, ILogSource, IHideAutocompleteMethodOptions
{
private string numberFormat;
private string lastUpdateDownloadPath;
@@ -552,6 +552,11 @@ public string PythonTemplateFilePath
///
public int MLRecommendationNumberOfResults { get; set; }
+ ///
+ /// If true, autocomplete method options are hidden from UI
+ ///
+ public bool HideAutocompleteMethodOptions { get; set; }
+
///
/// This defines if user wants to see the enabled Dynamo Notification Center.
///
@@ -814,6 +819,7 @@ public PreferenceSettings()
HideNodesBelowSpecificConfidenceLevel = false;
MLRecommendationConfidenceLevel = 10;
MLRecommendationNumberOfResults = 10;
+ HideAutocompleteMethodOptions = false;
EnableNotificationCenter = true;
isStaticSplashScreenEnabled = true;
DefaultPythonEngine = string.Empty;
diff --git a/src/DynamoCoreWpf/ViewModels/Core/DynamoViewModel.cs b/src/DynamoCoreWpf/ViewModels/Core/DynamoViewModel.cs
index 0a6cad5a78c..37a6ec72bd7 100644
--- a/src/DynamoCoreWpf/ViewModels/Core/DynamoViewModel.cs
+++ b/src/DynamoCoreWpf/ViewModels/Core/DynamoViewModel.cs
@@ -749,8 +749,7 @@ protected DynamoViewModel(StartConfiguration startConfiguration)
model.ComputeModelDeserialized += model_ComputeModelDeserialized;
model.RequestNotification += model_RequestNotification;
- preferencesViewModel = new PreferencesViewModel(this);
-
+ preferencesViewModel = new PreferencesViewModel(this);
if (!DynamoModel.IsTestMode && !DynamoModel.IsHeadless)
{
diff --git a/src/DynamoCoreWpf/ViewModels/Menu/PreferencesViewModel.cs b/src/DynamoCoreWpf/ViewModels/Menu/PreferencesViewModel.cs
index 2ec1773e013..514dbf5cb2d 100644
--- a/src/DynamoCoreWpf/ViewModels/Menu/PreferencesViewModel.cs
+++ b/src/DynamoCoreWpf/ViewModels/Menu/PreferencesViewModel.cs
@@ -838,6 +838,17 @@ public bool PersistExtensionsIsChecked
#region [ Node Autocomplete ]
+ ///
+ /// If true, autocomplete method options are hidden from UI
+ ///
+ public bool HideAutocompleteMethodOptions
+ {
+ get
+ {
+ return preferenceSettings.HideAutocompleteMethodOptions;
+ }
+ }
+
///
/// Controls the IsChecked property in the "Node autocomplete" toogle button
///
diff --git a/src/DynamoCoreWpf/Views/Menu/PreferencesView.xaml b/src/DynamoCoreWpf/Views/Menu/PreferencesView.xaml
index f9837705b65..ea08b820bae 100644
--- a/src/DynamoCoreWpf/Views/Menu/PreferencesView.xaml
+++ b/src/DynamoCoreWpf/Views/Menu/PreferencesView.xaml
@@ -745,11 +745,11 @@
-
-
+
diff --git a/test/settings/DynamoSettings-NewSettings.xml b/test/settings/DynamoSettings-NewSettings.xml
index f4d7ffc4d9a..7cde6e7f156 100644
--- a/test/settings/DynamoSettings-NewSettings.xml
+++ b/test/settings/DynamoSettings-NewSettings.xml
@@ -69,6 +69,7 @@
true
99
5
+ true
false
false
true