-
Notifications
You must be signed in to change notification settings - Fork 35
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
feat: Refactor and enhance Launch Configuration Logic for debugging generated apps in @sap-ux/launch-config #2274
Conversation
🦋 Changeset detectedLatest commit: 712bb26 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
…tools into debug-launch-config
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.
Code changes are well structured, documented and tested.
Changeset ✅
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.
Re-approving
Quality Gate passedIssues Measures |
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.
Comments addressed.
Test coverage is good.
Changeset present.
Thanks for reviewing 👍 |
* origin/main: (38 commits) chore: apply latest changesets feat: Refactor and enhance Launch Configuration Logic for debugging generated apps in @sap-ux/launch-config (#2274) chore: apply latest changesets fix(ui5-proxy-middleware): refactoring of directLoad implementation (#2319) chore: apply latest changesets fix(cpe): outline tree scroll bar (#2283) chore: apply latest changesets feat: quick actions (#2142) chore: apply latest changesets feat(fe-fpm-writer): apply context path to a building block based on min ui5 version (#2312) chore: apply latest changesets fix(abap-deploy-config-inquirer ): remove inquirer package (#2318) chore: apply latest changesets fix(cf-deploy-config-writer): refactor hasUI5CliV3 to project-access for common reuse (#2313) chore: apply latest changesets fix(abap-deploy-config-inquirer ): add missing dependencies (#2314) chore: apply latest changesets fix(odata-service-inquirer): #2309 fix for annotations not retrieved using service url prompt (#2310) chore: apply latest changesets fix: adjustment of the color of chevron on selection (#2303) ...
@@ -34,6 +34,9 @@ | |||
"@sap-ux/project-access": "workspace:*", | |||
"@sap-ux/ui5-config": "workspace:*", | |||
"@sap-ux/ui5-info": "workspace:*", | |||
"@sap-ux/odata-service-inquirer": "workspace:*", |
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.
Please remove this dependency, this is using types not intended for this purpose and should only be consumed if you are calling getPrompts
or prompt
The implementation will focus on managing various workspace scenarios, including unsaved workspaces, folders without workspace files, and saved workspaces so users can seamlessly debug the generated application, regardless of their workspace configuration.
debug-config/workspaceManager.ts
Manages the configuration of the debug workspace based on the provided options.
It handles different scenarios such as whether a workspace is open, whether the project is inside or outside of a workspace, and other contextual factors.
handleWorkspaceConfig
returnsWorkspaceHandlerInfo
, an object containing:1. The path where the
launch.json
file will be written.2. The
cwd
command, determined by workspace settings.3.
workspaceFolderUri
, if provided, which facilitates workspace reloading.debug-config/config.ts
Generates the contents of the
launch.json
file based on the options provided.configureLaunchJsonFile
returns the configuredlaunch.json
object, tailored to the specified debug options and cwd command.launch-config-crud/create.ts
Handles the creation of the launch configuration for the project based on the provided debug options.
configureLaunchConfig
generates and creates thelaunch.json
file.If
workspaceFolderUri
is provided, it creates thelaunch.json file
, triggers a workspace reload, and updates theappInfo.json
file with the current project path. This ensures the App Info page is correctly loaded post-reload.Add unit tests