Skip to content

Enhance MuleSoft tools and UI with new DataWeave features#24

Merged
ajaykontham merged 4 commits into
dev/anypoint-studiofrom
dev/mule-support
May 24, 2026
Merged

Enhance MuleSoft tools and UI with new DataWeave features#24
ajaykontham merged 4 commits into
dev/anypoint-studiofrom
dev/mule-support

Conversation

@ajaykontham

Copy link
Copy Markdown
Member

No description provided.

…ave scripts

- Introduced `mule_read_transform` to read DataWeave scripts from `ee:transform` components in Mule XML files.
- Introduced `mule_write_transform` to safely update DataWeave scripts in Transform Message components.
- Enhanced `MuleTransformSupport` with shared utilities for XML parsing, transform lookup, resource resolution, and serialization.
- Updated agent assets to include new tools and ensure proper usage of local and MCP tools.
- Improved error handling for transform read/write operations, ensuring clean failures for various edge cases.
- Hardened XML handling with secure parser settings to avoid unnecessary churn in XML declarations.
- Added comprehensive tests to validate the functionality of the new tools and ensure expected behavior.
…iched tool descriptions, and new context preferences

- Expanded six existing prompt files for detailed guidance on Mulesoft best practices, security, performance, deployment, API contract validation, and MUnit testing.
- Introduced three new prompt files focusing on DataWeave best practices, connector governance, and logging observability.
- Deepened agent instructions to include specific Mulesoft patterns and error handling strategies.
- Enriched tool descriptions to provide clearer context on usage and expected outcomes.
- Added new preferences for console and transform context in the Chat Preferences page.
- Updated preference initializer with default values for new context features.
- Introduced a new DataWeave content assist processor for inline completions in .dwl editors.
- Documented changes and improvements in MULESOFT_COPILOT_IMPROVEMENTS.md for clarity on enhancements.
- Added a method to refresh the input background in ActionBar to ensure consistent styling.
- Introduced CSS class for chat input in ChatInputTextViewer and applied dark mode colors.
- Styled text inputs across various preference dialogs using PreferencePageUtils for better UI consistency.
- Migrated old MCP tools status preferences to remove plugin display name prefixes from server names in LanguageServerSettingManager.
- Documented the structure and styling of chat window containers in new markdown and SVG files for better developer reference.
Copilot AI review requested due to automatic review settings May 24, 2026 22:19

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR adds MuleSoft/Anypoint Studio–focused capabilities on top of the existing GitHub Copilot for Eclipse plugin: new Mule-oriented agent tools/prompts, optional chat context injection from the Eclipse console and Transform Message editor, and UI/theming adjustments (including DataWeave .dwl editor/content assist wiring).

Changes:

  • Introduces a new com.microsoft.copilot.eclipse.anypoint plugin + feature for Anypoint Studio integration (MuleSoft MCP preferences + server registration).
  • Adds MuleSoft agent tools (project scan/review/security/MUnit/DataWeave, etc.) and bundles MuleSoft agent prompt assets into the UI plugin.
  • Improves chat UX via console/transform context commands, updated styling, and DataWeave .dwl content type + content assist registration.

Reviewed changes

Copilot reviewed 98 out of 99 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
pom.xml Adds new Anypoint modules to the build reactor.
docs/DEVELOPER_NOTES_MULESOFT_SUPPORT.md New developer notes covering MuleSoft support changes and validation steps.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/utils/UiUtils.java Adds “use parent background” support for flat icon buttons.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/utils/PreferencesUtils.java Adds getters for new chat context preference toggles.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/swt/ItemController.java Improves focused row background painting + background propagation/disposal.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/swt/DropdownPopup.java Ensures popup background is applied consistently to children/hover.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/swt/DropdownButton.java Allows dropdown buttons to use parent background when not hovered.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/swt/CssConstants.java Adds chat background/foreground color helpers.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/preferences/WrappableNoteLabel.java Ensures preference labels inherit parent background (incl. resize).
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/preferences/WrappableIconLink.java Ensures preference icon links inherit parent background (incl. resize).
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/preferences/PreferencePageUtils.java Adds helpers for inheriting backgrounds + styling text inputs in dark mode.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/preferences/messages.properties Adds preference strings for console/transform context toggles.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/preferences/Messages.java Exposes new NLS keys for console/transform context preferences.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/preferences/McpPreferencePage.java Styles MCP URL text inputs for dark mode readability.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/preferences/LanguageServerSettingManager.java Migrates MCP tool-status server naming; normalizes server names.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/preferences/GeneralPreferencesPage.java Styles GitHub Enterprise text input for dark mode readability.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/preferences/CustomModesPreferencePage.java Styles custom mode name input for dark mode readability.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/preferences/CustomInstructionPreferencePage.java Styles instruction text inputs for dark mode readability.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/preferences/CopilotPreferenceInitializer.java Changes defaults for workspace/console/transform context preferences.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/preferences/ChatPreferencesPage.java Adds preference toggles for console/transform context; styles numeric input.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/preferences/AddByokModelDialog.java Styles BYOK dialog inputs for dark mode readability.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/preferences/AddApiKeyDialog.java Styles API key input for dark mode readability.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/UserTurnWidget.java Applies CSS class/background adjustments for user message text.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/tools/MunitValidateFlowTestsTool.java New tool: validates MUnit suites against flow coverage expectations.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/tools/MunitImprovementSuggestionsTool.java New tool: suggests improvements to MUnit coverage/cadence.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/tools/MunitFullReviewTool.java New tool: comprehensive MUnit suite review with scenario analysis.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/tools/MuleToolResponse.java New shared structured response object for Mule tools.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/tools/MuleSecurityReviewTool.java New tool: MuleSoft security review scanner.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/tools/MuleProjectSummaryTool.java New tool: human-readable Mule project summarizer.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/tools/MuleProjectScanTool.java New tool: deterministic structured Mule project scan.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/tools/MuleProjectErrorsTool.java New tool: reads Eclipse problem markers for a Mule project.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/tools/MuleProjectAnalysis.java New internal data model for Mule project analysis results.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/tools/MuleDwlWriteTool.java New tool: writes standalone .dwl modules (with confirmation + refresh).
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/tools/MuleDwlReadTool.java New tool: reads standalone .dwl modules.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/tools/MuleDiagnostic.java New internal diagnostic shape for Mule analysis tools.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/tools/MuleCodeReviewTool.java New tool: MuleSoft code review scanner producing structured findings.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/tools/ApiSchemaAnalyzeTool.java New tool: API schema analyzer for RAML/OpenAPI/etc. in Mule projects.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/services/UserPreferenceService.java Reloads built-in modes async on auth status change to avoid startup races.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/services/TransformEditorContextPromptProcessor.java New processor: injects Transform editor context on @transform.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/services/MuleConsoleParser.java New parser: prepends a structured summary for Mule runtime errors.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/services/McpExtensionPointManager.java Sanitizes persisted MCP contrib info; improves change detection comparisons.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/services/MavenConsoleParser.java New parser: prepends a structured summary for Maven console output.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/services/ConsoleContextService.java New service: captures bounded console output for chat context.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/services/ConsoleContextPromptProcessor.java New processor: injects console context on @console.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/services/ChatCompletionService.java Adds @console/@transform command availability gated by mode/prefs.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/services/AgentToolService.java Registers new MuleSoft tools into agent tool service.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/ChatMarkupViewer.java Ensures chat markup viewer applies message background/CSS class.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/ChatInputTextViewer.java Improves dark-theme input styling and background reapplication hooks.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/ChatAssistProcessor.java Adds completion proposals for @console/@transform when available.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/AddContextButton.java Applies flat/parent-background icon button styling.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/ActionBar.java Applies parent-background styling for icon buttons; refreshes input background.
com.microsoft.copilot.eclipse.ui/plugin.xml Registers .dwl content type + content assist processor + editor binding.
com.microsoft.copilot.eclipse.ui/mulesoft-copilot/.github/prompts/mule-security-review.prompt.md New MuleSoft agent prompt: security review workflow.
com.microsoft.copilot.eclipse.ui/mulesoft-copilot/.github/prompts/mule-performance-review.prompt.md New MuleSoft agent prompt: performance review workflow.
com.microsoft.copilot.eclipse.ui/mulesoft-copilot/.github/prompts/mule-code-review.prompt.md New MuleSoft agent prompt: code review workflow.
com.microsoft.copilot.eclipse.ui/mulesoft-copilot/.github/prompts/logging-observability.prompt.md New MuleSoft agent prompt: logging/observability workflow.
com.microsoft.copilot.eclipse.ui/mulesoft-copilot/.github/prompts/generate-munit-tests.prompt.md New MuleSoft agent prompt: MUnit test generation workflow.
com.microsoft.copilot.eclipse.ui/mulesoft-copilot/.github/prompts/error-handling-contract.prompt.md New MuleSoft agent prompt: error handling contract review workflow.
com.microsoft.copilot.eclipse.ui/mulesoft-copilot/.github/prompts/deployment-readiness.prompt.md New MuleSoft agent prompt: deployment readiness workflow.
com.microsoft.copilot.eclipse.ui/mulesoft-copilot/.github/prompts/dataweave-optimize.prompt.md New MuleSoft agent prompt: DataWeave optimization workflow.
com.microsoft.copilot.eclipse.ui/mulesoft-copilot/.github/prompts/dataweave-best-practices.prompt.md New MuleSoft agent prompt: DataWeave best practices workflow.
com.microsoft.copilot.eclipse.ui/mulesoft-copilot/.github/prompts/connector-governance.prompt.md New MuleSoft agent prompt: connector governance workflow.
com.microsoft.copilot.eclipse.ui/mulesoft-copilot/.github/prompts/batch-job-review.prompt.md New MuleSoft agent prompt: batch job review workflow.
com.microsoft.copilot.eclipse.ui/mulesoft-copilot/.github/prompts/async-flow-review.prompt.md New MuleSoft agent prompt: async flow review workflow.
com.microsoft.copilot.eclipse.ui/mulesoft-copilot/.github/prompts/api-spec-review.prompt.md New MuleSoft agent prompt: API spec review workflow.
com.microsoft.copilot.eclipse.ui/mulesoft-copilot/.github/prompts/api-led-architecture-review.prompt.md New MuleSoft agent prompt: API-led architecture review workflow.
com.microsoft.copilot.eclipse.ui/META-INF/MANIFEST.MF Loosens Mylyn WikiText version constraints to a range.
com.microsoft.copilot.eclipse.ui/css/macosx-light.css Tweaks chat message background in macOS light theme.
com.microsoft.copilot.eclipse.ui/css/light.css Tweaks overall light theme backgrounds and chat message styling.
com.microsoft.copilot.eclipse.ui/css/dark.css Tweaks dark theme chat/action bar backgrounds and input/text styling.
com.microsoft.copilot.eclipse.ui/build.properties Includes bundled MuleSoft agent assets in build output.
com.microsoft.copilot.eclipse.ui.test/src/com/microsoft/copilot/eclipse/ui/preferences/CopilotPreferenceInitializerTest.java Adds test coverage for console-context default preference.
com.microsoft.copilot.eclipse.ui.test/src/com/microsoft/copilot/eclipse/ui/chat/services/MavenConsoleParserTest.java New tests for Maven console parsing enrichment.
com.microsoft.copilot.eclipse.ui.test/src/com/microsoft/copilot/eclipse/ui/chat/services/ConsoleContextServiceTest.java New tests for console snapshot capture/truncation behavior.
com.microsoft.copilot.eclipse.ui.test/src/com/microsoft/copilot/eclipse/ui/chat/services/ConsoleContextPromptProcessorTest.java New tests for @console prompt processing and enrichment.
com.microsoft.copilot.eclipse.ui.test/src/com/microsoft/copilot/eclipse/ui/chat/services/ChatCompletionServiceTest.java Updates tests to cover @console command availability by mode/prefs.
com.microsoft.copilot.eclipse.ui.test/src/com/microsoft/copilot/eclipse/ui/chat/ChatAssistProcessorTest.java New tests for @console proposal availability in completion.
com.microsoft.copilot.eclipse.ui.test/src/com/microsoft/copilot/eclipse/anypoint/MuleSoftMcpConfigurationTest.java New tests for MuleSoft MCP config JSON generation.
com.microsoft.copilot.eclipse.ui.test/META-INF/MANIFEST.MF Adds required bundles for new tests (anypoint + console).
com.microsoft.copilot.eclipse.repository/pom.xml Adjusts Tycho repository build plugins/config.
com.microsoft.copilot.eclipse.repository/category.xml Switches p2 category feature entry/label to Anypoint feature.
com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/lsp/protocol/CopilotAgentSettings.java Adds MCP tool auto-approval settings shape to agent settings.
com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/format/FormatOptionProvider.java Maps .dwl extension to dataweave language id.
com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/Constants.java Adds new preference keys for console/transform context features.
com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/completion/CompletionProvider.java Handles CancellationException during completion to return CANCEL status.
com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/chat/BuiltInChatModeManager.java Adds async mode reload API to avoid blocking UI thread.
com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/AuthStatusManager.java Handles CancellationException during sign-out to clear local auth state.
com.microsoft.copilot.eclipse.core/plugin.xml Adds LSP content type mapping for DataWeave content type id.
com.microsoft.copilot.eclipse.core/copilot-agent/package.json Formatting-only JSON update.
com.microsoft.copilot.eclipse.core/copilot-agent/copy-binaries.js Stops failing install when platform-specific binaries are missing.
com.microsoft.copilot.eclipse.core.test/src/com/microsoft/copilot/eclipse/core/completion/FormatOptionProviderTests.java Adds .dwl formatting fallback test coverage.
com.microsoft.copilot.eclipse.core.agent.win32/pom.xml Adds tycho-packaging-plugin config.
com.microsoft.copilot.eclipse.core.agent.macosx.x64/pom.xml Adds tycho-packaging-plugin config.
com.microsoft.copilot.eclipse.core.agent.macosx.aarch64/pom.xml Adds tycho-packaging-plugin config.
com.microsoft.copilot.eclipse.core.agent.linux.x64/pom.xml Adds tycho-packaging-plugin config.
com.microsoft.copilot.eclipse.core.agent.linux.aarch64/pom.xml Adds tycho-packaging-plugin config.
com.microsoft.copilot.eclipse.anypoint/templates/copilot-instructions-mule-template.md Adds a Mule project Copilot instructions scaffold template.
com.microsoft.copilot.eclipse.anypoint/src/com/microsoft/copilot/eclipse/anypoint/MuleSoftMcpSettings.java Adds secure-storage backed settings for MuleSoft MCP credentials.
com.microsoft.copilot.eclipse.anypoint/src/com/microsoft/copilot/eclipse/anypoint/MuleSoftMcpRegistrationProvider.java Registers MuleSoft MCP server configuration via extension point.
com.microsoft.copilot.eclipse.anypoint/src/com/microsoft/copilot/eclipse/anypoint/MuleSoftMcpPreferencePage.java Adds Anypoint preferences UI for MuleSoft MCP credentials/enablement.
com.microsoft.copilot.eclipse.anypoint/src/com/microsoft/copilot/eclipse/anypoint/MuleSoftMcpConfiguration.java Generates MCP server JSON config for official MuleSoft MCP server.
com.microsoft.copilot.eclipse.anypoint/pom.xml New module POM for the Anypoint integration plugin.
com.microsoft.copilot.eclipse.anypoint/plugin.xml Registers MCP provider + preference page.
com.microsoft.copilot.eclipse.anypoint/META-INF/MANIFEST.MF New OSGi manifest for the Anypoint integration plugin.
com.microsoft.copilot.eclipse.anypoint/build.properties Build includes templates and plugin metadata.
com.microsoft.copilot.eclipse.anypoint.feature/pom.xml New feature project POM for Anypoint packaging.
com.microsoft.copilot.eclipse.anypoint.feature/feature.xml Defines Anypoint feature including base Copilot feature + anypoint plugin.
CHANGELOG.md Adds an “Unreleased — MuleSoft Anypoint Studio Enhancements” entry.
base.target Adds additional terminal installable units to the target platform.
.gitignore Adjusts zip ignore patterns and adds additional build folder ignores.
.github/workflows/sync-upstream.yml New scheduled workflow to sync from upstream repository.
.github/workflows/build-and-package.yml New workflow to build and package a p2 ZIP release artifact.

Comment on lines +45 to +49
initializer.initializeDefaultPreferences();

boolean consoleContextEnabled = CopilotUi.getPlugin().getPreferenceStore()
.getDefaultBoolean(Constants.CONSOLE_CONTEXT_ENABLED);
assertFalse(consoleContextEnabled);
Comment on lines +34 to +38
- Updated [com.microsoft.copilot.eclipse.anypoint/templates/mulesoft-agent.agent.md](/Users/ajaykontham/Work/GitProjects/copilot-for-eclipse/com.microsoft.copilot.eclipse.anypoint/templates/mulesoft-agent.agent.md) to:
- keep local MuleSoft tools available
- register official MCP tools with `mulesoft/` prefixes
- mention transform read/write workflow explicitly
- Updated the bundled MuleSoft assets under:
Comment on lines +39 to +43
- [com.microsoft.copilot.eclipse.ui/mulesoft-copilot/.github/agents/mulesoft-engineer.agent.md](/Users/ajaykontham/Work/GitProjects/copilot-for-eclipse/com.microsoft.copilot.eclipse.ui/mulesoft-copilot/.github/agents/mulesoft-engineer.agent.md)
- [com.microsoft.copilot.eclipse.ui/mulesoft-copilot/.github/prompts/api-spec-review.prompt.md](/Users/ajaykontham/Work/GitProjects/copilot-for-eclipse/com.microsoft.copilot.eclipse.ui/mulesoft-copilot/.github/prompts/api-spec-review.prompt.md)
- [com.microsoft.copilot.eclipse.ui/mulesoft-copilot/.github/prompts/deployment-readiness.prompt.md](/Users/ajaykontham/Work/GitProjects/copilot-for-eclipse/com.microsoft.copilot.eclipse.ui/mulesoft-copilot/.github/prompts/deployment-readiness.prompt.md)
- [com.microsoft.copilot.eclipse.ui/mulesoft-copilot/.github/prompts/generate-munit-tests.prompt.md](/Users/ajaykontham/Work/GitProjects/copilot-for-eclipse/com.microsoft.copilot.eclipse.ui/mulesoft-copilot/.github/prompts/generate-munit-tests.prompt.md)
- [com.microsoft.copilot.eclipse.ui/mulesoft-copilot/.github/prompts/mule-code-review.prompt.md](/Users/ajaykontham/Work/GitProjects/copilot-for-eclipse/com.microsoft.copilot.eclipse.ui/mulesoft-copilot/.github/prompts/mule-code-review.prompt.md)
Comment on lines +50 to +54
if (UiUtils.isDarkTheme()) {
return new Color(display, 47, 47, 47);
// return new Color(display, 222, 225, 229);
// return new Color(display, 30, 31, 34);
}
Comment on lines 65 to 74
Comment on lines +228 to +234
<editor
class="org.eclipse.ui.editors.text.TextEditor"
contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor"
id="com.microsoft.copilot.eclipse.ui.editors.DataWeaveTextEditor"
name="Text Editor"
icon="icons/text_file.gif">
<contentTypeBinding
Comment on lines +63 to +65
- Not rerun in normal mode:
- the repo still has the unrelated `ChatInputTextViewer.java` Checkstyle issue outside this MuleSoft change set

@ajaykontham ajaykontham merged commit 1d149c5 into dev/anypoint-studio May 24, 2026
1 check passed
@chatgpt-codex-connector

Copy link
Copy Markdown

💡 Codex Review

String extMcpInfo = gson.toJson(sanitizeExtMcpInfo(extMcpInfoMap));
preferenceStore.setValue(Constants.MCP_EXTENSION_POINT_CONTRIB, extMcpInfo);

P1 Badge Persist unredacted MCP runtime configuration

Avoid redacting the persisted mcpServers payload here: this preference blob is later read during startup to rebuild approvedExtMcpServers, and CopilotUi syncs that value to the language server before extension providers finish reloading. Persisting <redacted> values therefore causes approved MCP servers to be initialized with invalid credentials after restart, and because the sanitized JSON may be unchanged, no follow-up preference-change sync is guaranteed to repair it automatically.


int documentVersion = document.hashCode();
provider.triggerCompletion(file, position, documentVersion, false);

P1 Badge Send a real document version with DataWeave completions

Do not use document.hashCode() as the completion version: IDocument hash codes are object-identity based and remain stable across edits, so requests are sent with a stale/non-monotonic version. In editors where the server validates document versions, this can cause completions to be dropped or computed against an outdated snapshot.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ajaykontham ajaykontham deleted the dev/mule-support branch May 27, 2026 23:32
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

Successfully merging this pull request may close these issues.

2 participants