Skip to content

Surfacing method to get Completion Symbol#10813

Merged
mhegazy merged 6 commits into
microsoft:masterfrom
samelhusseini:master
Sep 9, 2016
Merged

Surfacing method to get Completion Symbol#10813
mhegazy merged 6 commits into
microsoft:masterfrom
samelhusseini:master

Conversation

@samelhusseini

Copy link
Copy Markdown

Fixes #10812

Surfacing method to get Completion Symbol instead of details for better extensibility.

@msftclas

msftclas commented Sep 9, 2016

Copy link
Copy Markdown

Hi @MicrosoftSam, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!


It looks like you're a Microsoft contributor (Sam El-Husseini). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;

Comment thread src/services/completions.ts Outdated
// We don't need to perform character checks here because we're only comparing the
// name against 'entryName' (which is known to be good), not building a new
// completion entry.
const symbol = forEach(symbols, s => getCompletionEntryDisplayNameForSymbol(typeChecker, s, compilerOptions.target, /*performCharacterChecks*/ false, location) === entryName ? s : undefined);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

just return the result of forEach. it will return a symbol|undefined which is what you want.

@mhegazy

mhegazy commented Sep 9, 2016

Copy link
Copy Markdown
Contributor

one small style comment, otherwise we are good to go.

@samelhusseini

Copy link
Copy Markdown
Author

Okay, I'll get that in right away.

@mhegazy mhegazy merged commit 3facc3e into microsoft:master Sep 9, 2016
@mhegazy

mhegazy commented Sep 9, 2016

Copy link
Copy Markdown
Contributor

thanks!

@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
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.

3 participants