-
Notifications
You must be signed in to change notification settings - Fork 8
W-18759737-workspace-differences-CP #479
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
Open
Crispy-Salesforce
wants to merge
18
commits into
latest
Choose a base branch
from
W-18759737-Differences-workspaces-CP
base: latest
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
41b69d8
W-18759737-workspace-differences-CP
Crispy-Salesforce 633bbac
W-18759737-workspace-differences-CP
Crispy-Salesforce 5d23791
W-18759737-workspace-differences-CP
Crispy-Salesforce abfab1c
W-18759737-workspace-differences-CP
Crispy-Salesforce c211794
W-18759737-Address-vale-CP
Crispy-Salesforce c7ab712
W-18759737-Add-link-to-VSCode-help-CP
Crispy-Salesforce 1d6dde0
W-18759737-Add-info-to-workspace-article-CP
Crispy-Salesforce 0b3767f
W-18759737-Improve-content-CP
Crispy-Salesforce 9f3cc09
W-18759737-Add-more-info-to-help-CP
Crispy-Salesforce 5e3b989
W-18759737-Change-page-layout-CP
Crispy-Salesforce c237e84
W-18759737-Delete-duplicated-info-CP
Crispy-Salesforce d57c9f7
W-18759737-Update-content-CP
Crispy-Salesforce 48508a1
W-18759737-Fix-format-CP
Crispy-Salesforce f0aaa08
W-18759737-Address-Vale-feedback-CP
Crispy-Salesforce bc53e86
W-18759737-Add-missing-steps-CP
Crispy-Salesforce 05cbca3
W-18759737-Address-Sujan-feedback-CP
Crispy-Salesforce 157cf5e
W-18759737-improve-steps-CP
Crispy-Salesforce e00d013
W-18759737-Remove-a-section-CP
Crispy-Salesforce File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,6 +18,98 @@ include::partial$acb-project-migration.adoc[tag="exporting-considerations-from-s | |
|
|
||
| include::partial$acb-project-migration.adoc[tag="import-mule-project-into-acb"] | ||
|
|
||
| == Understand Workspaces | ||
|
|
||
| An IDE workspace is a logical environment that groups your projects. It also contains all associated settings, configurations, and state for development. Workspaces are primarily used for: | ||
|
|
||
| * Managing multiple related projects | ||
| * Keeping plugin-specific settings and environments consistent | ||
| * Isolating different development contexts | ||
|
|
||
| === Workspace Considerations | ||
|
|
||
| * Anypoint Code Builder uses a folder-based VS Code workspace, typically with one or more projects per workspace. | ||
| * All your projects within a workspace must use the same Mule runtime and Java version. | ||
|
|
||
| === Create a New Workspace | ||
|
|
||
| . In Anypoint Code Builder, go to *File* > *Open Folder*. | ||
| . Go to the folder where you want to create your workspace. | ||
| . Click *New Folder*. | ||
| . Enter a name for your workspace. | ||
| . Click *Create*. | ||
|
|
||
| === Add Projects to a Workspace | ||
|
|
||
| . In Anypoint Code Builder, open the project to add to the Anypoint Code Builder workspace. | ||
| . Go to *File* > *Add Folder to Workspace*. | ||
| . Select the folder where you want to add your project. | ||
| . Click *Add*. | ||
| . Click *Restart Anyway*. | ||
|
|
||
| === Add Configurations to a Workspace | ||
|
|
||
| Group multiple project folders into one top-level workspace if working on several related projects at one time. | ||
|
|
||
| A workspace configuration file (`.code-workspace`) is created to store workspace-specific settings. This file is located in the root folder. | ||
|
|
||
| . Go to *File* > *Save Workspace As*. | ||
| . Select a location for your `.code-workspace` file and click *Save*. | ||
| . Click *Restart Anyway*. | ||
| . Open the `.code-workspace` file. | ||
| . Add your configurations in JSON format. | ||
|
|
||
| For example, you can define settings that apply to all projects in the workspace: | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We need to confirm with Subhash if these are honored for sure |
||
| [source,json] | ||
| ---- | ||
| { | ||
| "folders": [ | ||
| { | ||
| "path": "project-a" | ||
| }, | ||
| { | ||
| "path": "project-b" | ||
| } | ||
| ], | ||
| "settings": { | ||
| "java.home": "/path/to/your/jdk" | ||
| } | ||
| } | ||
| ---- | ||
|
|
||
| You can add any VS Code setting to the `settings` section of your `.code-workspace` file. | ||
|
|
||
| === Verify Workspace Setup | ||
|
|
||
| After importing your project into Anypoint Code Builder, verify that the setup is correct. | ||
|
|
||
| * The `pom.xml` file is compatible with Anypoint Code Builder | ||
| * The Mule runtime version is supported in Anypoint Code Builder | ||
| * The Maven dependencies resolve correctly | ||
| * The project builds successfully after running `mvn clean package` | ||
| * Your Mule application runs as expected in the new Anypoint Code Builder workspace | ||
| * Debug configurations are set up to troubleshoot your application | ||
| * The configuration XML file show no errors | ||
| * The canvas loads correctly, which means that the component dependencies resolve correctly | ||
|
|
||
| === Troubleshooting Migration Issues | ||
|
|
||
| ==== Canvas Loading Issues | ||
|
|
||
| If the canvas is stuck loading flows, update your Mule projects in the workspace to use the same Java and Mule runtime versions. See xref:int-version.adoc#select-mule-and-java-versions-for-a-project[Select Mule and Java Versions for a Project]. | ||
|
|
||
| ==== Mule Runtime or Java Version Issues | ||
|
|
||
| If the Mule runtime or Java version in the project isn't compatible with the IDE, it shows a *Mule runtime or Java version requires further action* error. | ||
|
|
||
| . Click *Set Version* to update the Mule runtime or Java version. See xref:int-version.adoc#select-mule-and-java-versions-for-a-project[Select Mule and Java Versions for a Project]. | ||
| . After selecting compatible Mule runtime and Java versions, click *Apply*. | ||
| . Open the *Mule Config XML* file in your project. | ||
| + | ||
| The error disappears, and you can work on your project. | ||
|
|
||
| == See Also | ||
|
|
||
| * xref:int-import-mule-project.adoc[] | ||
| * https://code.visualstudio.com/docs/editing/workspaces/workspaces[Visual Studio Code Workspace] | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
what is this? I have not seen this prompt
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.
As mentioned by the title (Add Configurations to a Workspace), it's not a prompt but an option for customers to configure their workspace. Should we provide this option?