Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@etriebe
Copy link

@etriebe etriebe commented Jun 16, 2022

This PR fixes #53715

This won't change the default experience but will give people an option to change the fuzzy search algorithm that is used.

How to test:

  1. Create a new C# test.cs file
  2. install omnisharp
  3. Populate the file with this
using System;
using System.Collections.Generic;

public class FuzzyTest
{

    public FuzzyTest()
    {
        // Type here
    }
}

public class FBUserSession
{
    string test;
    string test2;
}
  1. In constructor, type FBUserSession, UserSession and Session. The first and last will work with the setting off.
  2. Turn the new setting on
  3. Redo test for step 4 and see that all those words typed will return the FBUserSession object that the user wants

@ghost
Copy link

ghost commented Jun 16, 2022

CLA assistant check
All CLA requirements met.

Copy link
Member

@jrieken jrieken left a comment

Choose a reason for hiding this comment

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

Thanks so far. This is already looking quite good. I left a few nit comments for seemingly un-needed changes (please PR minimally). We also need to come up with a good name, IMO firstMatchCanBeWeak is too technical to expose it as user-facing setting

src/vs/base/common/filters.ts Outdated Show resolved Hide resolved
src/vs/base/common/filters.ts Outdated Show resolved Hide resolved
@etriebe
Copy link
Author

etriebe commented Jun 20, 2022

Thanks so far. This is already looking quite good. I left a few nit comments for seemingly un-needed changes (please PR minimally). We also need to come up with a good name, IMO firstMatchCanBeWeak is too technical to expose it as user-facing setting

@jrieken what about allowMidWordMatch? Because I think this is what this current change will do. Or we change logic to have the inverse, which is something like, forceFirstTypedCharacterToBeStartOfWord or forceMatchOnStartOfWord. I might prefer the second.

@etriebe
Copy link
Author

etriebe commented Jun 21, 2022

@jrieken all issues should be resolved besides the name choice which I'd love your feedback on before making a choice.

Also, as an aside, what formatter do you use for format document to work to avoid hygiene issues? I used prettier and then the whole doc changed significantly.

@jrieken jrieken added this to the July 2022 milestone Jun 27, 2022
@etriebe etriebe changed the title Add an option to expose the firstMatchCanBeWeak as a setting Add an option to expose the allowMidWordMatch as a setting Jun 27, 2022
@etriebe etriebe requested a review from jrieken June 27, 2022 18:08
@etriebe
Copy link
Author

etriebe commented Jun 30, 2022

Any chance you can take a look? @jrieken

@jrieken jrieken modified the milestones: July 2022, August 2022 Jul 21, 2022
@jrieken
Copy link
Member

jrieken commented Jul 21, 2022

Sorry - I have been swapped recently and I am now heading out to a longer vacation. My plan is to finally pick this up in August. Thanks for being patient.

@etriebe
Copy link
Author

etriebe commented Jul 21, 2022

Sorry - I have been swapped recently and I am now heading out to a longer vacation. My plan is to finally pick this up in August. Thanks for being patient.

All good! Thanks for the heads up! We're going to work on a fix internally for now and will revert that once this lands here. 😀

@etriebe
Copy link
Author

etriebe commented Aug 16, 2022

Any chance you'll be able to take a look for August? @jrieken

src/vs/base/common/filters.ts Outdated Show resolved Hide resolved
src/vs/editor/common/config/editorOptions.ts Show resolved Hide resolved
@etriebe etriebe requested a review from jrieken August 19, 2022 16:40
Copy link
Member

@jrieken jrieken left a comment

Choose a reason for hiding this comment

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

Thanks. I have pushed a change with the new name for this (matchOnWordStartOnly) and this is now ready to be merged

@jrieken jrieken merged commit eab7774 into microsoft:main Aug 22, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Oct 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

suggestion score - allow first character to be a weak match

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.