Skip to content

Avoid adding duplicate completion from contextual keyword#26947

Merged
1 commit merged into
masterfrom
duplicateKeywordCompletions
Sep 7, 2018
Merged

Avoid adding duplicate completion from contextual keyword#26947
1 commit merged into
masterfrom
duplicateKeywordCompletions

Conversation

@ghost
Copy link
Copy Markdown

@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
Copy Markdown
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
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
This pull request was closed.
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.

1 participant