Skip to content
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

A couple of function dialog fixes #10415

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

riknoll
Copy link
Member

@riknoll riknoll commented Mar 7, 2025

fixes microsoft/pxt-arcade#6764
fixes microsoft/pxt-arcade#6770

a couple of fixes for the function dialog!

first one is a bug with the initialization of the argument editors for custom non-primitive types. i ran into the same thing when doing #10402; basically initSvg was getting caused out of order which led to weirdness. this change just switches them to be the same as all of the other types rather than using domToBlock

second one was just an oversight when i rewrote the functions implementation during the great blockly swap. i guess i never tested this!

@riknoll riknoll requested a review from a team March 7, 2025 23:21
@@ -1,21 +1,18 @@
import * as Blockly from "blockly";
import { FunctionManager } from "../functionManager";
import { ArgumentEditorBlock } from "../blocks/argumentEditorBlocks";

export interface FieldArgumentEditorConfig extends Blockly.FieldTextInputConfig {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we still need this as a separate interface if it no longer adds something to the Blockly.FieldTextInputConfig?

Copy link
Collaborator

@eanders-ms eanders-ms left a comment

Choose a reason for hiding this comment

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

LGTM!

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.

Edit function: parameter type icons aren't visible Edit function: parameter list is incorrect
3 participants