Skip to content

Support Resizing of the C# Code Editor in the Workflow Designer #660

@diequeeq

Description

@diequeeq

Feature Request

The C# code editor displayed within the workflow designer for activities like Set Variable is currently fixed at a small size and cannot be manually
resized. This significantly hinders the ability to comfortably write, view, and manage code snippets larger than a few lines.

Details

Expected Behavior

The C# code editor within the activity settings should be manually resizable (e.g., draggable on corners or edges) to accommodate larger code blocks, improving the developer experience.

Actual Behavior

The C# code editor is a small, non-resizable box. This makes development difficult when dealing with more complex C# expressions.

Pre-requisites (Environment)

The issue occurs when C# support is enabled on the server:
UseCSharp() // add to the Elsa Server configuration.

Steps to Reproduce

  1. Create a new workflow.
  2. From the Primitives category, add a Set Variable activity to the canvas.
  3. Select the activity to open its properties panel.
  4. In the properties panel, select C# from the dropdown next to the Value field.
  5. Attempt to write or view a multi-line C# expression.
A screenshot of the Elsa workflow designer with a 'Set Variable' activity open, showing the small, fixed-size C# code editor for the 'Value' property.

Note

While the Set Variable activity is used as a simple example to reproduce the issue, this applies to all activities in the workflow designer that utilize the same embedded C# code editor.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions