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

Sugestion: reorganize folders add option to use a specific folder for API objects #280

Open
ti-jalopez opened this issue Jun 23, 2023 · 1 comment

Comments

@ti-jalopez
Copy link

Nowadays it is quite common to create API pages.
It would be nice to use a folder for the APIs, instead of using the Page folder.

Perhaps a parameter can be added to indicate if a different folder is used for the APIs, using the default API as a folder name.

Best regards,

@ernestasjuska
Copy link

Hi, we use the following way to group API pages:

// in .vscode/settings.json or your.code-workspace
"explorer.fileNesting.enabled": true,
"explorer.fileNesting.expand": false,
"explorer.fileNesting.patterns": {
    "*.report.al": "$(capture).report.rdl, $(capture).report.docx, $(capture).report.xlsx",
    "*.reportext.al": "$(capture).reportext.rdl, $(capture).reportext.docx, $(capture).reportext.xlsx",
    "_APIPageContainer.txt": "API*.Page.al",     // <------------------
    "_APIQueryContainer.txt": "API*.Query.al",   // <------------------
},

So if you create a file named _APIPageContainer.txt in pages folder all pages starting with API will appear to be under _APIPageContainer.txt.
image

This only works in inside VS Code though.

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