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

Remove isGlobalCompletionScope #21342

Closed
wants to merge 1 commit into from
Closed

Remove isGlobalCompletionScope #21342

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Jan 22, 2018

Alternate fix for #21330
Now if we're providing global completions, we always set isGlobalCompletion to true, regardless of whether we're in a statement vs expression.
I believe the original motivation for this check was to avoid setting isGlobalCompletion to true inside of imports and such -- but we also don't want to be searching for global symbols in that case, and we now don't. I don't think there's any situation where we do want to provide global symbols but don't want isGlobalCompletion to be true.
CC @jramsay who originally did #11338 and #11647 for potential review.
Discovered #21341 along the way.

@mhegazy
Copy link
Contributor

mhegazy commented Feb 12, 2018

we did add this one for a reason... can you check with @amcasey what it is used for. i can not recall why we added to be frank.
may @jramsay or @paulvanbrenk would remember.

@amcasey
Copy link
Member

amcasey commented Feb 12, 2018

I think it might control whether or not we offer snippets during completion.

@amcasey
Copy link
Member

amcasey commented Feb 12, 2018

Yes, it appears to be used exclusively for determining whether or not to ask for available snippets while populating the completion list.

@ghost ghost mentioned this pull request Feb 15, 2018
@ghost
Copy link
Author

ghost commented Feb 17, 2018

Closing in favor of #21973.

@ghost ghost closed this Feb 17, 2018
@ghost ghost deleted the isGlobalCompletionScope branch February 17, 2018 00:48
@microsoft microsoft locked and limited conversation to collaborators Jul 3, 2018
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.

2 participants