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

feat: add support for dprint.command option #67

Closed
wants to merge 6 commits into from

Conversation

Im-Beast
Copy link

@Im-Beast Im-Beast commented Aug 2, 2023

This PR adds new dprint.command vscode option which allows running custom command.

Closes #38 and #45

@CLAassistant
Copy link

CLAassistant commented Aug 2, 2023

CLA assistant check
All committers have signed the CLA.

@Im-Beast
Copy link
Author

Im-Beast commented Aug 2, 2023

@dsherret PTAL

src/extension.ts Outdated Show resolved Hide resolved
src/executable/DprintExecutable.ts Outdated Show resolved Hide resolved
@@ -45,6 +45,20 @@
"C:\\some-dir\\dprint.exe"
]
},
"dprint.command": {
Copy link
Member

Choose a reason for hiding this comment

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

Could this functionality be built into dprint.path instead?

Copy link
Author

Choose a reason for hiding this comment

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

probably, but I'm certain it would confuse some, e.g. I wouldn't think that path is possibly a npm run dprint command

@Im-Beast
Copy link
Author

Im-Beast commented Aug 2, 2023

I disconnected the command logic from #cmdPath to its own #command which I think is a bit better.
Please LMKWYT

@Im-Beast Im-Beast closed this by deleting the head repository Jul 30, 2024
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.

Allow getting dprint path from a command.
3 participants