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

[Suggestion] Set the root namespace of Hazel-ScriptCore to "Hazel" #582

Open
tadashuai opened this issue Sep 4, 2022 · 0 comments
Open

Comments

@tadashuai
Copy link

tadashuai commented Sep 4, 2022

Is your feature request related to a problem? Please describe

The default namespace is the project name("Hazel-ScriptCore"), so set it to "Hazel" for the new file.

However, because of the "Source" folder, we have a new issue. Once creating a new cs script in it, the namespace will be Hazel.Source.
The original intention of this suggestion is to not need to modify the namespace after creating a new script, but it make no senses just like this. Perhaps creating a new script directly under the solution is an indescribable way. As for the sub namespace, for example Hazel.UI, then we create the folder named UI at this point.

Describe the solution you'd like

In the Hazel\Hazel-ScriptCore\premake5.lua, add namespace "Hazel" below the project line. Like this:

project "Hazel-ScriptCore"
    . . .
    namespace "Hazel"
@tadashuai tadashuai changed the title [Suggestion] Set the root namespace of Hazel-ScriptCore to "Hazal" [Suggestion] Set the root namespace of Hazel-ScriptCore to "Hazel" Mar 27, 2023
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

1 participant