Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix field value suggestions when quoting is used. #13087

Merged

Conversation

dennisoelkers
Copy link
Member

Description

Motivation and Context

This PR is fixing an issue with the field value completions not working when the user is starting a field value with quoting, e.g. when the user types field:"", no completions appear.

This PR is fixing this and also retains quoting information, so when the user uses quoting, the value returned is not escaped, if the user is not using quoting, escaping is used.

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (non-breaking change)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.

@dennisoelkers dennisoelkers force-pushed the fix/support-quoted-strings-for-field-value-suggestions branch from 07ece43 to 7987225 Compare July 22, 2022 10:27
Copy link
Contributor

@linuspahl linuspahl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@linuspahl linuspahl merged commit 0201897 into master Jul 25, 2022
@linuspahl linuspahl deleted the fix/support-quoted-strings-for-field-value-suggestions branch July 25, 2022 14:21
dennisoelkers added a commit that referenced this pull request Jul 25, 2022
* Adding test.

* Extracting input from quoted value properly, keeping quotation consistent for completions.

* Fixing handling of empty quoted string.
linuspahl pushed a commit that referenced this pull request Aug 1, 2022
* Adding test.

* Extracting input from quoted value properly, keeping quotation consistent for completions.

* Fixing handling of empty quoted string.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants