Skip to content

Enable formatOnType feature #505

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
merged 7 commits into from
Feb 15, 2017
Merged

Enable formatOnType feature #505

merged 7 commits into from
Feb 15, 2017

Conversation

kapilmb
Copy link

@kapilmb kapilmb commented Feb 14, 2017

This enables "editor.formatOnType" option in vscode settings.

Related PR: PowerShell/PowerShellEditorServices#370

@kapilmb
Copy link
Author

kapilmb commented Feb 14, 2017

This PR is dependent on changes in #501 and hence should not be merged before #501 is merged.

@kapilmb kapilmb changed the title [WIP] Enable formatOnType feature Enable formatOnType feature Feb 14, 2017
@kapilmb
Copy link
Author

kapilmb commented Feb 14, 2017

Needs rebase after #501 is merged.

Copy link
Contributor

@daviwil daviwil left a comment

Choose a reason for hiding this comment

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

Looks good, nice work!

"powershell",
this.documentFormattingEditProvider,
this.firstTriggerCharacter,
...this.moreTriggerCharacters);
Copy link
Contributor

Choose a reason for hiding this comment

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

This is such a bizarre way for them to define this API... If it's a new API why have a "first" param and then a "more" param? Weird.

Copy link
Author

Choose a reason for hiding this comment

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

Yes, they could just have one argument taking in triggerCharacters instead of this!

@kapilmb kapilmb force-pushed the kapilmb/format-on-type branch from 13d121c to 1160398 Compare February 14, 2017 18:45
@kapilmb
Copy link
Author

kapilmb commented Feb 14, 2017

Rebased on develop after #501 merge and removed some redundant code.

@kapilmb kapilmb merged commit 68798e5 into develop Feb 15, 2017
@kapilmb kapilmb deleted the kapilmb/format-on-type branch February 15, 2017 17:04
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.

3 participants