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

Run muon format from root of workspace. #192

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

lukester1975
Copy link
Contributor

Any reason not to do this? Allows a workspace root relative muon config file path.

Thanks

Allows a meaningful relative config file path.
@@ -42,7 +42,7 @@ export async function lint(muon: Tool, root: string, document: vscode.TextDocume
return diagnostics;
}

export async function format(muon: Tool, document: vscode.TextDocument): Promise<vscode.TextEdit[]> {
export async function format(muon: Tool, root: string, document: vscode.TextDocument): Promise<vscode.TextEdit[]> {
Copy link
Contributor

Choose a reason for hiding this comment

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

Wanna call this argument sourceRoot?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Only if lint() is changed accordingly...

@tristan957 tristan957 merged commit 40d5952 into mesonbuild:main Nov 22, 2023
5 checks passed
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.

None yet

2 participants