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

My hrl file is located in the "server/inc" directory. How can I set the default hrl file, as there doesn't seem to be an option to set the inc path in Visual Studio Code? #69

Closed
imLaoYang opened this issue Dec 16, 2024 · 2 comments

Comments

@imLaoYang
Copy link

No description provided.

@imLaoYang imLaoYang changed the title My hrl file is located in the "server/inc" directory. How can I set the default HRL file, as there doesn't seem to be an option to set the inc path in Visual Studio Code? My hrl file is located in the "server/inc" directory. How can I set the default hrl file, as there doesn't seem to be an option to set the inc path in Visual Studio Code? Dec 16, 2024
@alanz
Copy link
Member

alanz commented Dec 16, 2024

You should set the include path via your rebar config, or by using a custom project config as per https://whatsapp.github.io/erlang-language-platform/docs/get-started/configure-project/custom-project/

@robertoaloi
Copy link
Contributor

You can also specify custom paths via the build-info section of the ELP config file, if you are not using rebar3 or Buck2.

https://whatsapp.github.io/erlang-language-platform/docs/get-started/configure-project/elp-toml/#build-info

Closing since this is already supported.

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

3 participants