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

Relative path for for assumeFilename not working #160

Open
filip-os opened this issue Jan 8, 2024 · 6 comments
Open

Relative path for for assumeFilename not working #160

filip-os opened this issue Jan 8, 2024 · 6 comments

Comments

@filip-os
Copy link

filip-os commented Jan 8, 2024

Hi all,

I am trying to set a relative path for assumeFilename, but it does not work.
For example the .clang-format file is in the .vscode folder.

My current settings are:

"clang-format.style": "file",
"clang-format.assumeFilename": "${workspaceFolder}/.vscode/.clang-format"

Also tried using ${workspaceRoot} to no avail.
An absolute path to the same file works!
My current vscode version is 1.85.1

Is a relative path for assumeFilename supported?

Thanks in advance

@Mr-Bossman
Copy link

this is a feature that im going to add hopefully in the next few hours

@Mr-Bossman
Copy link

Mr-Bossman@9e8f068

Oh for assumeFilename? I don't know how that option works there arent good docs. is it the same as stye?

@filip-os
Copy link
Author

Thank you for working on this..
It is an old comment but I think what I was trying to do at the time was have a relative path to my .clang-format file.
The file resides in "${workspaceFolder}/.vscode/.clang-format"

I think the way to do this is through assumeFilename ? Is there an alternative way?

@Mr-Bossman
Copy link

you are suposed to put ur clang-format file in the "clang-format.style" option like so "clang-format.style": "file:${workspaceFolder}/.clang-format", with my changes or "clang-format.style": "file:/home/jesse/code/vscode-clang-format/tests/.clang-format", for the extension without my changes

@filip-os
Copy link
Author

Ok then, your changes should solve my issue.. Thank you!

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

No branches or pull requests

2 participants