Skip to content

Avoid adding duplicate completion from contextual keyword #26947

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

Merged
1 commit merged into from
Sep 7, 2018

Conversation

ghost
Copy link

@ghost ghost commented Sep 6, 2018

Since some completion keywords are contextual keywords, there may already be a variable with that name.

verify.completionEntryDetailIs("foo", "var foo: (p1: string) => void", "Modify the parameter");
goTo.marker('2');
verify.completionEntryDetailIs("foo", "(property) a.foo: (p1: string) => void", "Modify the parameter");
verify.completions(
Copy link
Author

Choose a reason for hiding this comment

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

Changing this test to use verify.completions which tests for duplicates.

@ghost ghost requested a review from sheetalkamat September 7, 2018 00:09
@ghost ghost merged commit b1430e5 into master Sep 7, 2018
@ghost ghost deleted the duplicateKeywordCompletions branch September 7, 2018 19:18
This pull request was closed.
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.

1 participant