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(completions): remove filterText override for bracket accessor #593

Merged
merged 1 commit into from
Sep 26, 2022

Conversation

rchl
Copy link
Member

@rchl rchl commented Sep 26, 2022

Removed this old code that overridden filterText for bracket accessor completions.

This old code originally came from VSCode and was later replaced there with a quite different code: microsoft/vscode@beb5998 to fix issue microsoft/vscode#63100

I've tested in ST and don't see the issue that VSCode had so given no evidence that it's needed outside of VSCode, I'm not trying to replicate what they did here.

Also, in ST at least, the results are better without this old code:

Before:

Screenshot 2022-09-26 at 13 01 25

After:

Screenshot 2022-09-26 at 13 01 06

So before this change editor has shown a leading dot which is not really needed or expected.

As a bonus (in ST at least) it makes this case better as we can see that the property is optional:

Screenshot 2022-09-26 at 13 13 14

Copy link
Contributor

@predragnikolic predragnikolic left a comment

Choose a reason for hiding this comment

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

👍

@rchl rchl changed the title fix: remove unnecessary filterText override for bracket accessor fix(completions): remove filterText override for bracket accessor Sep 26, 2022
@rchl rchl merged commit 1ed4e2e into master Sep 26, 2022
@rchl rchl deleted the fix/member-filter branch September 26, 2022 18:54
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