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

fix: Add additional global config path on macos #130

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

WillLillis
Copy link
Collaborator

@WillLillis WillLillis commented Aug 27, 2024

Currently the server uses the dirs crate to find the global configuration path. On MacOS this is unintuitively $HOME/Library/Application Support/. This PR adds $HOME/.config as an additional directory to search if the first check comes up empty.

cc @JezerM I don't have a Mac to test this locally. If you have the time, could you check if this resolves the behavior outlined in #127?

EDIT: Not sure why CI is failing, everything is passing locally in Ubuntu. Give me a minute to work this out :)

@WillLillis WillLillis mentioned this pull request Aug 27, 2024
@JezerM
Copy link

JezerM commented Aug 27, 2024

I can confirm it works. I placed the config at ~/.config/asm-lsp/.asm-lsp.toml with no project overrides.

Captura de pantalla 2024-08-26 a la(s) 21 26 42

@WillLillis
Copy link
Collaborator Author

I can confirm it works. I placed the config at ~/.config/asm-lsp/.asm-lsp.toml with no project overrides.

Captura de pantalla 2024-08-26 a la(s) 21 26 42

Great, thank you!

@WillLillis WillLillis enabled auto-merge (squash) August 27, 2024 03:54
@WillLillis WillLillis merged commit 813b6b3 into bergercookie:master Aug 27, 2024
17 checks passed
@WillLillis WillLillis deleted the macos_config_dir branch August 27, 2024 03:56
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