Skip to content

Comments

Support Relative Paths in Mandolin Settings#20

Open
wmccrthy wants to merge 13 commits intomasterfrom
support-relative-paths
Open

Support Relative Paths in Mandolin Settings#20
wmccrthy wants to merge 13 commits intomasterfrom
support-relative-paths

Conversation

@wmccrthy
Copy link
Collaborator

@wmccrthy wmccrthy commented Feb 19, 2026

This PR adds support for providing Mandolin configuration values (i.e foremanTomlPath, rulesPath, etc) as relative paths instead of absolute. This is a nice QoL feature that makes configuring Mandolin per-workspace easier and importantly, allows us to commit Mandolin settings to a repo once, for example, and have them work and apply to all users of that repo thereafter.

Paths are resolved relative to the workspace root of the open file when Mandolin runs.

@wmccrthy wmccrthy marked this pull request as ready for review February 19, 2026 16:57
@wmccrthy wmccrthy requested a review from skberkeley February 19, 2026 17:07
@skberkeley
Copy link
Collaborator

Can you not just use ${workspaceFolder} in your settings?

@skberkeley
Copy link
Collaborator

skberkeley commented Feb 20, 2026

Nevermind, looks like Microsoft only allows variables for certain privileged settings. I think we should still have users specify relative paths by using ${workspaceFolder}, as this seems to be the standard and just using a vanilla relative path could get messy. Can you update this to take the relative path using workspace.workspaceFolders instead?

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