Repository: microsoft/PowerToys
File: src/modules/launcher/Plugins/Community.PowerToys.Run.Plugin.ValueGenerator/Main.cs (C#)

Code before:
                    if (_context != null && _context.API != null)
                    {
                        _context.API.ThemeChanged -= OnThemeChanged;
                    }

                    _disposed = true;
                }
            }
        }

        public string GetTranslatedPluginDescription()
        {
            return Resources.plugin_description;
        }

        public string GetTranslatedPluginTitle()
        {
            return Resources.plugin_name;
        }

        public List<Result> Query(Query query)
        {
            ArgumentNullException.ThrowIfNull(query);

            var results = new List<Result>();
            if (string.IsNullOrWhiteSpace(query?.Search))
            {
                return GetSuggestionResults(query, results);
            }

            try
            {
                IComputeRequest computeRequest = _inputParser.ParseInput(query);
                var result = GetResult(computeRequest);

                if (!string.IsNullOrEmpty(result.Title))
                {
                    results.Add(result);
                }
                else
                {
                    return results;
                }
            }
            catch (ArgumentException e)
            {
                results.Add(GetErrorResult(e.Message));
            }
            catch (FormatException e)
            {
                Log.Debug(GetTranslatedPluginTitle() + ": " + e.Message, GetType());

Review comment (suggestion):
And `!string.IsNullOrEmpty(query?.ActionKeyword)`.

We should only show it on search with action keyword. Otherwise this will be shown on empty global queries.

Code after:
                {
                    if (_context != null && _context.API != null)
                    {
                        _context.API.ThemeChanged -= OnThemeChanged;
                    }

                    _disposed = true;
                }
            }
        }

        public string GetTranslatedPluginDescription()
        {
            return Resources.plugin_description;
        }

        public string GetTranslatedPluginTitle()
        {
            return Resources.plugin_name;
        }

        public List<Result> Query(Query query)
        {
            ArgumentNullException.ThrowIfNull(query);

            var results = new List<Result>();
            if (string.IsNullOrWhiteSpace(query?.Search) && !string.IsNullOrEmpty(query?.ActionKeyword))
            {
                return GetSuggestionResults(query, results);
            }

            try
            {
                IComputeRequest computeRequest = _inputParser.ParseInput(query);
                var result = GetResult(computeRequest);

                if (!string.IsNullOrEmpty(result.Title))
                {
                    results.Add(result);
                }
                else
                {
                    return results;
                }
            }
            catch (ArgumentException e)
            {
                results.Add(GetErrorResult(e.Message));
            }
            catch (FormatException e)
            {