-
Notifications
You must be signed in to change notification settings - Fork 43
refactor: Enhance XML Fragment context menu control with addXMLPlugin Integration #3091
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
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 3f6e999 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
public init() { | ||
this.initPlugin(); | ||
CommunicationService.subscribe(async (action: ExternalAction): Promise<void> => { | ||
if (addFragment.match(action)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is probably not needed anymore, as we have generic context menu in outline that works with action service.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in: 564535f
@@ -132,20 +133,25 @@ export const getExtendControllerItemText = (overlay: ElementOverlay, isReuseComp | |||
* @param syncViewsIds Ids of all application sync views | |||
* @param ui5VersionInfo UI5 version information | |||
*/ | |||
export const initDialogs = async (rta: RuntimeAuthoring, syncViewsIds: string[], ui5VersionInfo: Ui5VersionInfo): Promise<void> => { | |||
export const initDialogs = async (rta: RuntimeAuthoring, syncViewsIds: string[], ui5VersionInfo: Ui5VersionInfo): Promise<Promise<void>> => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The return type does not look right.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this is a merging issue I missed.
Fixed in: bce4294
}); | ||
} else { | ||
const addFragmentService = (await import('open/ux/preview/client/adp/add-fragment')).default; | ||
new addFragmentService(rta).init(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks a bit odd to create a new class instance but never actually use it. Wouldn't static methods or just initialisation function be more appropriate here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, refactored with static methods.
Fixed in: 48efacc
…pen-ux-tools into feat/consume-addxml-plugin
…pen-ux-tools into feat/consume-addxml-plugin
…pen-ux-tools into feat/consume-addxml-plugin
Please retry analysis of this Pull-Request directly on SonarQube Cloud |
|
#3093
addXMLPlugin
is used.