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

crs-al disable reorganizes file #266

Open
SebastiaanLubbers opened this issue Oct 27, 2022 · 1 comment
Open

crs-al disable reorganizes file #266

SebastiaanLubbers opened this issue Oct 27, 2022 · 1 comment

Comments

@SebastiaanLubbers
Copy link

crs-al disable prevents renaming the object but still reorganizes the file.

For given table extension

//crs-al disable
tableextension 50400 "PRFX Functional Setup" extends "PRFX General Setup"
//crs-al enable

It prevents renaming the object "PRFX PRFX General Setup"
But still moves the file out of the subfolder "src/tableextension/" into "src/"

Workspace settings:

"settings": {
	"al.codeAnalyzers": [
		"${CodeCop}",
		"${PerTenantExtensionCop}",
		"${UICop}"
	],
	"al.enableCodeAnalysis": true,
	"al.packageCachePath": "../.alpackages/",
	"al.ruleSetPath": "../workspace.ruleset.json",
	"CRS.ExtensionObjectNamePattern": "<Prefix><BaseName>",
	"CRS.FileNamePattern": "<ObjectNameShort>.<ObjectTypeShortPascalCase>.al",
	"CRS.FileNamePatternExtensions": "<ObjectNameShort>.<ObjectTypeShortPascalCase>.al",
	"CRS.ObjectNamePrefix": "PRFX ",
	"CRS.OnSaveAlFileAction": "Reorganize",
	"CRS.SkipWarningMessageOnRenameAll": true,
	"files.exclude": {
		".snapshots": true
	},
	"search.exclude": {
		"**/*.g.xlf": true
	}
}
@kevindstanley1988
Copy link

It would be really nice if there was a "CRS.Exclude": [ 'filename', 'or directory'] to be able to define an array or files or directories to be skipped for rename/reorganize.

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