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

Adding support for require-pragma and depracting previous naive implemenation #206

Merged
merged 2 commits into from
Sep 13, 2019

Conversation

mitermayer
Copy link
Member

@mitermayer mitermayer commented Sep 13, 2019

This diff adds support for require-pragma option


  • Removes naive implementation of require-pragma in favour of prettier cli implementation. There should be no change of behaviour besides some performances improvements as we no longer scan through the file in search of pragma tags

  • This diff also enables user to autoformat based on @prettier tag as well as @format as opposed to just @format

- Our previous undo implementation tried to be naive on implementing
require-pragma, and created some undo bugs due to it. This diff enables
us to use the prettier upstream support for require-pragma
- On subsequent PR's we will completetly phase out the previous undo
implementation in favour to this one in order to fix bug #184
requirePragma

- This commit ensures that we use `prettier` default way to identify
pragmas for the auto save and remove our previous naive implementation
@mitermayer mitermayer changed the title issues/184-fixing-undo-step - Adding support for require-pragma Adding support for require-pragma and depracting previous naive implemenation Sep 13, 2019
@mitermayer mitermayer merged commit e98b108 into release/1.x Sep 13, 2019
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.

1 participant