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

Mka/whitelist external properties #118

Merged
merged 4 commits into from
May 31, 2022

Conversation

Eddykasp
Copy link
Contributor

@Eddykasp Eddykasp commented May 31, 2022

This changes which properties are kept for the serialization by default.
Now only klighd and elk properties are included by default. Any additionally desired properties must be registered on a whitelist through the KlighdDataManager. This prevents blind inclusion of properties which might be incompatible and requires users to be more explicit about their own properties that they may wish to include.

The blacklist can be used to forbid any property. This makes the most sense for forbidding properties that are included by default ("de.cau.cs.kieler.klighd*", "klighd*" or "org.eclipse.elk*"). External properties (with other prefixes) are now excluded by default. Adding them to the whitelist explicitly allows them to be added again. The whitelist is checked after the blacklist

@Eddykasp Eddykasp added enhancement New feature or request LSP Affect the klighd language server. labels May 31, 2022
@Eddykasp Eddykasp requested a review from NiklasRentzCAU May 31, 2022 09:17
Copy link
Member

@NiklasRentzCAU NiklasRentzCAU left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@NiklasRentzCAU NiklasRentzCAU merged commit 6336f79 into master May 31, 2022
@Eddykasp Eddykasp deleted the mka/whitelist-external-properties branch September 12, 2023 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request LSP Affect the klighd language server.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants