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

Add poweshell.helpCompletion setting to control/disable feature #1282

Merged
merged 2 commits into from Apr 22, 2018

Conversation

rkeithhill
Copy link
Collaborator

Changing this setting does require a reload window.

Trigger sequence changed to just "##".

Fix #1228

Changing this setting does require a reload window.

Trigger sequence changed to just "##".

Fix #1228
Copy link
Member

@TylerLeonhardt TylerLeonhardt left a comment

Choose a reason for hiding this comment

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

LGTM @rkeithhill! Great as always 😀

Just a couple questions but otherwise this is good to go!


constructor() {
this.triggerFinderBlockComment = new TriggerFinder("<#");
this.triggerFinderLineComment = new TriggerFinder("##");
Copy link
Member

Choose a reason for hiding this comment

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

Could this be set to the settings value rather than "##"? One less string to manage. If it's less performant we don't have to do this change.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Regardless of the settings value (BlockComment or LineComment), the trigger sequence is always ##. Perhaps I'm not following the ask here??

Copy link
Member

Choose a reason for hiding this comment

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

Oh! I see now, you're right. Somehow I was thinking you could set the trigger to Block or Line. <# or ##. Ignore me :)

}

public get triggerFound(): boolean {
return this.triggerFinderBlockComment.found || this.triggerFinderLineComment.found;
return this.triggerFinderLineComment.found;
Copy link
Member

Choose a reason for hiding this comment

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

Since we only have the one variable now, could this be renamed to triggerFinderHelpComment so that it's more apparent this applies to both block and line?

Copy link
Member

@TylerLeonhardt TylerLeonhardt left a comment

Choose a reason for hiding this comment

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

Looks great @rkeithhill! 🎉 🎉

@rkeithhill rkeithhill merged commit a13bc67 into master Apr 22, 2018
@rkeithhill rkeithhill deleted the rkeithhill/add-help-completion-option branch April 22, 2018 19:21
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