Skip to content

Conversation

@tommck
Copy link
Contributor

@tommck tommck commented Aug 26, 2018

This addresses #6

Not 100% sure if the implementation is Kosher or not.

NOTE: I also updated the version to 2.1 with this PR. I figured we needed to start documenting the CHANGELOG with a new version number.

Needs squashing too.

@tommck
Copy link
Contributor Author

tommck commented Aug 27, 2018

Sorry, I rarely use git and need to google how to squash my commits before sending a PR

@tommck
Copy link
Contributor Author

tommck commented Sep 2, 2018

No comments?

@jesperbjensen
Copy link
Collaborator

Hi Tom

I will try to look into it tomorrow. I’m not the extension expert - so the thing about the kosher thing is properly Mads’es call - but if it looks good to me then let’s just merge it - and then maybe mads can look at it when he got the time.

Copy link
Collaborator

@jesperbjensen jesperbjensen left a comment

Choose a reason for hiding this comment

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

There is some code that looks unused.
Other than that it looks good to me - although I have no idea about the actual "Format on Save" thing.

About the squash thingy. I can squash it into a single commit - and then you will be the author. (Its part of Githubs Merge Powers)


private static string _installDir = Path.Combine(Path.GetTempPath(), Vsix.Name, Packages.GetHashCode().ToString());
private static readonly string _executable = Path.Combine(_installDir, "node_modules\\.bin\\prettier.cmd");
private static readonly string[] _supportedExtensionRegexes = new string[] { ".jsx?", ".tsx?" };
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you use this anywhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Huh.. I thought I had removed that change. That's for adding tslint support (another issue)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops.. thought I had removed that. I'll update

private static string _installDir = Path.Combine(Path.GetTempPath(), Vsix.Name, Packages.GetHashCode().ToString());
private static readonly string _executable = Path.Combine(_installDir, "node_modules\\.bin\\prettier.cmd");
private static readonly string[] _supportedExtensionRegexes = new string[] { ".jsx?", ".tsx?" };
private static readonly IDictionary<string, string> _specificExtensionCommandMap = new Dictionary<string, string> // TODO: better name
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you use this anywhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

same thing..

@tommck
Copy link
Contributor Author

tommck commented Sep 5, 2018

So, I removed that unused code, so this should be good to go unless there are other issues

@jesperbjensen jesperbjensen merged commit d379368 into madskristensen:master Sep 6, 2018
@jesperbjensen
Copy link
Collaborator

I’ve merged it. Good work 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants