Skip to content

Adding Format On Save Option (#6) - #24

Merged
jesperbjensen merged 10 commits into
madskristensen:masterfrom
tommck:master
Sep 6, 2018
Merged

jesperbjensen merged 10 commits into
madskristensen:masterfrom
tommck:master

Conversation

@tommck

@tommck tommck commented Aug 26, 2018

Copy link
Copy Markdown
Contributor

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

tommck commented Aug 27, 2018

Copy link
Copy Markdown
Contributor Author

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

@tommck

tommck commented Sep 2, 2018

Copy link
Copy Markdown
Contributor Author

No comments?

@jesperbjensen

Copy link
Copy Markdown
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.

@jesperbjensen jesperbjensen left a comment

Copy link
Copy Markdown
Collaborator

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)

Comment thread src/NodeProcess.cs Outdated

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

Comment thread src/NodeProcess.cs Outdated
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
Copy Markdown
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
Copy Markdown
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

tommck commented Sep 5, 2018

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants