public static void AddSuggestionsForUnaryOperatorKeyWords(IntellisenseData.IntellisenseData intellisenseData) { Contracts.AssertValue(intellisenseData); // TASK: 76039: Intellisense: Update intellisense to filter suggestions based on the expected type of the text being typed in UI IntellisenseHelper.AddSuggestionsForMatches(intellisenseData, TexlLexer.LocalizedInstance.GetUnaryOperatorKeywords(), SuggestionKind.KeyWord, SuggestionIconKind.Other, requiresSuggestionEscaping: false); }
// Suggest the Globals that can appear in the context of '[@____]' // Suggesting controls, datasources, appVariables, and enums. private static void AddSuggestionsForScopedGlobals(IntellisenseData.IntellisenseData intellisenseData) { Contracts.AssertValue(intellisenseData); var suggestions = intellisenseData.AdditionalGlobalSuggestions .Union(intellisenseData.EnumSymbols.Select(symbol => new KeyValuePair <string, SuggestionIconKind>(symbol.Name, SuggestionIconKind.Other))); IntellisenseHelper.AddSuggestionsForMatches(intellisenseData, suggestions, SuggestionKind.Global, requiresSuggestionEscaping: true); }