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 support for local instance plugins #817

Closed
wants to merge 7 commits into from
Closed

Add support for local instance plugins #817

wants to merge 7 commits into from

Conversation

jarrodldavis
Copy link
Contributor

This improves upon the changes in #706 to always resolve the local prettier instance when resolving supported languages.

This allows format provider and status bar handler to be aware of locally-installed Prettier plugins.

This is an alternative implementation of #757, and should fix #395 and fix #612 as well.

  • Run tests
  • Update the CHANGELOG.md with a summary of your changes

Update the status bar and edit provider logic to use the local Prettier
instance when possible.
Refactor supported language resolution utils to use a provided file path
to resolve a prettier instance instead of requiring all call sites to
resolve instances individually.
Install `npm-run-all` and use it to run preparation steps for tests.
@esamattis esamattis mentioned this pull request May 1, 2019
@Tiberriver256
Copy link

Yay!

@gopeter
Copy link

gopeter commented Jul 4, 2019

Is there anything to do to take this forward? Would be great if this could be merged soon 😄

@ntotten ntotten self-requested a review August 9, 2019 15:19
@ntotten ntotten added this to the 1.9.0 milestone Aug 9, 2019
@matzkoh
Copy link

matzkoh commented Aug 9, 2019

fileOptions || {},

Editing this line fixes #878.

{ ...fileOptions, filepath: fileName },

@ntotten ntotten requested a review from lipis August 9, 2019 19:35
@ntotten ntotten changed the base branch from master to develop August 9, 2019 19:51
@ntotten ntotten mentioned this pull request Aug 9, 2019
@ntotten
Copy link
Member

ntotten commented Aug 9, 2019

Replaced by #899

@ntotten ntotten closed this Aug 9, 2019
@jarrodldavis jarrodldavis deleted the enhancement/local-language-resolution branch February 25, 2020 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants